Hello,
I used MQTT2.4 for a 2 way tuya device , so with DPS . the problem is the tuya devise send a state “true” or “false” , but openhab don’ like true or false state . So i think i need to make a jsonpath transformation in PaperUI . but I don’t know to transform true value to on value with jsonpath in Incoming value transformation
here the error in logs :
2019-07-24 22:08:17.940 [ome.event.ItemCommandEvent] - Item 'Lum_hotte' received command OFF
2019-07-24 22:08:17.958 [nt.ItemStatePredictedEvent] - Lum_hotte predicted to become OFF
2019-07-24 22:08:17.967 [vent.ItemStateChangedEvent] - Lum_hotte changed from ON to OFF
==> /var/log/openhab2/openhab.log <==
2019-07-24 22:08:18.314 [WARN ] [eneric.internal.generic.ChannelState] - Command 'false' not supported by type 'OnOffValue': No enum constant org.eclipse.smarthome.core.library.types.OnOffType.false
2019-07-24 22:08:18.389 [WARN ] [eneric.internal.generic.ChannelState] - Command 'false' not supported by type 'OnOffValue': No enum constant org.eclipse.smarthome.core.library.types.OnOffType.false
2019-07-24 22:08:18.404 [WARN ] [eneric.internal.generic.ChannelState] - Command 'false' not supported by type 'OnOffValue': No enum constant org.eclipse.smarthome.core.library.types.OnOffType.false
if someone can hep me , please