as Shelly Plus is not yet supported by the binding I went via MQTT. the Plus API publishes events on the same statetopic so one has to filter the required properties. unfortunately the statetopic does not include all properties when sent but just the one property that changed. this results that an openhab warning is logged on receipt of a statetopic that does not include the filter criteria.
MQTT message when switch changed to OFF:
{
"src":"shellyplus1pm-441793d4e558",
"dst":"shellyplus1pm-441793d4e558/events",
"method":"NotifyStatus",
"params":
{
"ts":1643612407.10,
"switch:0":
{
"id":0,
"apower":0,
"current":0,
"output":false,
"source":"WS_in"}}}
MQTT message when Wh changed:
{
"src":"shellyplus1pm-441793d4e558",
"dst":"shellyplus1pm-441793d4e558/events",
"method":"NotifyStatus",
"params":
{
"ts":1643612220.25,
"switch:0":
{
"id":0,
"aenergy":
{
"by_minute":[0.000,0.000,0.000],
"minute_ts":1643612218,
"total":257.553}}}}
I tried Jsonpath and Regex but both still post warning messages which fill my log file.
JSONPATH:$.params.switch:0.current
REGEX:(.*shellyplus1pm-441793d4e558.*)ā©JSONPATH:$.params.switch:0.apower
If the Wh Item receives an update a warning is sent for Current, Switch and W Items because their jsonpath filter failed:
Executing the JSONPATH-transformation failed: Invalid path '$.params.switch:0.current'
Iām sure there are some shelly Plus owner here, how did you solve this issue?