MQTT binding OnOffType

Tags: #<Tag:0x00007f1739da9d58> #<Tag:0x00007f1739da9c40>

in latest SNAPSHOT (3.1.0~S2165-1) build of Openhab 3 there is problem interpreting things switch channel. Upon receiving 1 or 0(corresponding) I get:
[WARN ] [ab.binding.mqtt.generic.ChannelState] - Command ‘1’ not supported by type ‘OnOffValue’: No enum constant org.openhab.core.library.types.OnOffType.1

Downgrading mqtt to:
269 │ Active │ 80 │ │ org.openhab.binding.mqtt
271 │ Active │ 80 │ │ org.openhab.binding.mqtt.generic

solves the problem. Same problem occurs with contact channel type.


I’ve added on=1, off=0 to my thing definition. This has solved the problem.