Maybe a Problem in transform?


sorry, i dont no, how to report the Problem, but i think, this is a programmer error.


I have write a Bridge, to translate UPD INformation from a Vent to MQTT.
The MQTT ist always in the same string:
{'Man_speed': '22', 'State': '0', 'Humidity': '46', 'Airflow': '0', 'Speed': '2'}

I have a Channel Thing to read/fill it:
Type switch : vent_state [ stateTopic="Vent/Blauberg/Status", commandTopic="Vent/Blauberg/Command/State", transformationPattern="JSONPATH:$.State", ON="1", OFF="0"]

But, in some times, Openhab dont change the Status 0 or 1 in ON/OFF.
ERROR:Command '0' not supported by type 'OnOffValue': No enum constant org.eclipse.smarthome.core.library.types.OnOffType.0

But when i restart openhab, often, there is no error. The tramsform to ON/OFF between 0/1 will works.

Im confused.

Try on="1", off="0" (use lowercase)

1 Like


i will try it.
Because the error is not alwys, i will take a look.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.