Hello,
I have a device which utilises a MqttSwitch
The topic for On / Off controll is
broadlink/power/1
and requires the following to be sent to turn on the device
On
and the following to be sent to turn off the device
Off
The state topic is
broadlink/state/pwr1
when the device is On it posts a 1
when the deviceis Off it posts a 0
I am having difficutlies for the Pimatic status to follow the 1 and 0 Mqtt output when I have defined the onMessage/offMessage as On/Off
I can also request the hardware to post output the status as JSON which provides me with the following output for pwr1 being off.
{"pwr": 0, "pwr1": 0, "pwr2": 0, "maxworktime": 0, "maxworktime1": 0, "maxworktime2": 0, "idcbrightness": 56}
Do I need to impliment some kind of stateValueKey along with JSON output and onMessage/offMessage defined to track the status and allow control of the device from Pimatic?
Thanks
Imp