I am using OpenHab2 inside an Ubuntu VM. It has been working for about 6 months with no issues using Sonoff products. I finally broke down and ordered an IFan02 and flashed it with Tasmota 6.4.1.
Now for the issue: For the life of me I can not figure out the MQTT statement for the items file. I can get the light to turn on and off with the following statement
Switch MBFan “Master Bedroom Fan” [ “Switchable” ] { mqtt=">[broker:cmnd/MBFan/POWER1:command:*:default],<[broker:stat/MBFan/POWER1:state:default]" }
But for the fan control, I am lost. Below I pasted the console for the Tasmota IFan02 device
15:59:42 MQT: stat/MBFan/RESULT = {“FanSpeed”:2}
16:02:00 MQT: tele/MBFan/UPTIME = {“Time”:“2018-12-26T16:02:00”,“Uptime”:“0T00:28:56”}
16:02:23 MQT: stat/MBFan/RESULT = {“FanSpeed”:0}
16:02:30 MQT: stat/MBFan/RESULT = {“FanSpeed”:3}
16:02:34 MQT: stat/MBFan/RESULT = {“POWER1”:“OFF”}
16:02:34 MQT: stat/MBFan/POWER1 = OFF
16:02:46 MQT: stat/MBFan/RESULT = {“POWER1”:“ON”}
16:02:46 MQT: stat/MBFan/POWER1 = ON
16:02:52 MQT: stat/MBFan/RESULT = {“POWER1”:“OFF”}
16:02:52 MQT: stat/MBFan/POWER1 = OFF
16:02:57 MQT: stat/MBFan/RESULT = {“FanSpeed”:0}
16:03:05 MQT: stat/MBFan/RESULT = {“FanSpeed”:3}
16:03:24 MQT: tele/MBFan/STATE = {“Time”:“2018-12-26T16:03:24”,“Uptime”:“0T00:30:20”,“Vcc”:3.545,“SleepMode”:“Dynamic”,“Sleep”:250,“LoadAvg”:3,“POWER1”:“OFF”,“FanSpeed”:3,“Wifi”:{“AP”:1,“SSId”:“ACEHouse24”,“BSSId”:“A8:11:FC:C9:9E:10”,“Channel”:11,“RSSI”:80}}
16:03:26 MQT: stat/MBFan/RESULT = {“FanSpeed”:0}
16:03:58 MQT: stat/MBFan/RESULT = {“POWER1”:“ON”}
16:03:58 MQT: stat/MBFan/POWER1 = ON
16:08:25 MQT: tele/MBFan/STATE = {“Time”:“2018-12-26T16:08:25”,“Uptime”:“0T00:35:21”,“Vcc”:3.543,“SleepMode”:“Dynamic”,“Sleep”:250,“LoadAvg”:3,“POWER1”:“ON”,“FanSpeed”:0,“Wifi”:{“AP”:1,“SSId”:“ACEHouse24”,“BSSId”:“A8:11:FC:C9:9E:10”,“Channel”:11,“RSSI”:82}}
16:13:26 MQT: tele/MBFan/STATE = {“Time”:“2018-12-26T16:13:26”,“Uptime”:“0T00:40:22”,“Vcc”:3.547,“SleepMode”:“Dynamic”,“Sleep”:250,“LoadAvg”:3,“POWER1”:“ON”,“FanSpeed”:0,“Wifi”:{“AP”:1,“SSId”:“ACEHouse24”,“BSSId”:“A8:11:FC:C9:9E:10”,“Channel”:11,“RSSI”:86}}
16:18:26 MQT: tele/MBFan/STATE = {“Time”:“2018-12-26T16:18:26”,“Uptime”:“0T00:45:22”,“Vcc”:3.547,“SleepMode”:“Dynamic”,“Sleep”:250,“LoadAvg”:3,“POWER1”:“ON”,“FanSpeed”:0,“Wifi”:{“AP”:1,“SSId”:“ACEHouse24”,“BSSId”:“A8:11:FC:C9:9E:10”,“Channel”:11,“RSSI”:82}}
16:23:29 MQT: tele/MBFan/STATE = {“Time”:“2018-12-26T16:23:29”,“Uptime”:“0T00:50:25”,“Vcc”:3.545,“SleepMode”:“Dynamic”,“Sleep”:250,“LoadAvg”:3,“POWER1”:“ON”,“FanSpeed”:0,“Wifi”:{“AP”:1,“SSId”:“ACEHouse24”,“BSSId”:“A8:11:FC:C9:9E:10”,“Channel”:11,“RSSI”:80}}
16:24:18 MQT: stat/MBFan/RESULT = {“FanSpeed”:0}
16:24:20 MQT: stat/MBFan/RESULT = {“FanSpeed”:1}
16:24:23 MQT: stat/MBFan/RESULT = {“FanSpeed”:2}
16:24:26 MQT: stat/MBFan/RESULT = {“FanSpeed”:3}
16:24:29 MQT: stat/MBFan/RESULT = {“FanSpeed”:0}
Any help creating a MQTT statement for this device would be appreciated.
Thank you!