OH 3 MQTT Binding - Error in LogView


I configured the following Thing/Channel:

And this is what I get in my Logview:

2021-01-03 16:14:46.754 [WARN ] [ab.binding.mqtt.generic.ChannelState] - Command '{"Time":"2021-01-03T16:14:47","Uptime":"3T05:06:34","Vcc":3.122,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"POWER":"ON","Wifi":{"AP":2,"SSId":"XXX","BSSId":"10:XXX","Channel":1,"RSSI":30,"LinkCount":2,"Downtime":"0T00:00:11"}}' not supported by type 'OnOffValue': No enum constant org.openhab.core.library.types.OnOffType.{"Time":"2021-01-03T16:14:47","Uptime":"3T05:06:34","Vcc":3.122,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"POWER":"ON","Wifi":{"AP":2,"SSId":"XXX","BSSId":"10:XXX","Channel":1,"RSSI":30,"LinkCount":2,"Downtime":"0T00:00:11"}}

So why is the state fo the devices recongized as “Command”? What is wrong here?

Thanks in advance!

You have subscribed to the STATE topic. Tasmota publishes information on this topic in JSON format, so you will have to use the JSONPATH Transformation Service to extract the POWER value.

But, you can just subscribe to the stat/...../POWER topic, on which Tasmota only publishes ON or OFF so no transformations needed.

See section 5 in this tutorial for the setup of a very similar device.

1 Like

Wow, thank you, this is the solution!