I’m sending MQTT updates for various datapoints I have and have configured my MQTT channel (generic MQTT Thing) as follows:
the red marked values are default and are already in the GUI, when you add a “Contact” Channel.
This leads to:
2021-01-06 11:43:49.100 [WARN ] [ab.binding.mqtt.generic.ChannelState] - Command '0' not supported by type 'OpenCloseValue': No enum constant org.openhab.core.library.types.OpenClosedType.0
2021-01-06 11:43:49.148 [WARN ] [ab.binding.mqtt.generic.ChannelState] - Command '1' not supported by type 'OpenCloseValue': No enum constant org.openhab.core.library.types.OpenClosedType.1
I had to go into “Code” and manually add the “on/off” values, to enable the action, the GUI tells me is already going on.
- id: State_AnforderungKessel1
channelTypeUID: mqtt:contact
label: Anforderung Kessel 1
description: ""
configuration:
stateTopic: openHAB/master/Oktopus/State_AnforderungKessel1
off: "0"
on: "1"
2021-01-06 11:48:07.061 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'MQTTOktopus_AnforderungKessel1' changed from NULL to CLOSED
Is this a bug, or did I miss something?