Hi All
I’m tried to bind a sonoff device to openhab with mqtt.
I been able to send commands to the device.
But for some reason I didn’t got any feedback on OH when switching the module.
In the logs I get:
Executing the JSONPATH-transformation failed: Invalid path '$.POWER' in 'OFF'
I presume your openHAB stateTopic is tied to the POWER topic of your sonoff. This doesn’t require using a JSON transformation at all, as the POWER topic returns either OFF or ON - nothing in JSON format.
If you share your things configuration we can very quickly tell you what to change!
The // are where I have commented this out and moved to creating my Things via PaperUI and use files for items. This is also the recommended way for most users.