...
With the iFan in flash mode, click Upload.
Tasmota Commands
Cmd | Cmnd | Value | URL |
---|---|---|---|
Light Off | Power | 0 | http://xxx/cm?cmnd=Power 0 |
Light On | Power | 1 | http://xxx/cm?cmnd=Power 1 |
Fan Off | FanSpeed | 0 | http://xxx/cm?cmnd=FanSpeed 0 |
Low Speed | FanSpeed | 1 | http://xxx/cm?cmnd=FanSpeed 1 |
Med Speed | FanSpeed | 2 | http://xxx/cm?cmnd=FanSpeed 2 |
High Speed | FanSpeed | 3 | http://xxx/cm?cmnd=FanSpeed 3 |
Integration with Homebridge
Configure MQTT
Code Block |
---|
{
"accessory": "mqttthing",
"type": "fan",
"name": "fireplace-fan",
"url": "http://192.168.1.50:1883",
"username": "homebridge",
"password": "pass",
"topics": {
"getOn": {
"topic": "stat/fireplace-fan/RESULT",
"apply": "return JSON.parse(message).FanSpeed > 0 ? true : false;"
},
"setOn": {
"topic": "cmnd/fireplace-fan/FanSpeed",
"apply": "return message ? '' : 0"
},
"getRotationSpeed": {
"topic": "stat/fireplace-fan/RESULT",
"apply": "return Math.round(JSON.parse(message).FanSpeed * 33.3);"
},
"setRotationSpeed": {
"topic": "cmnd/fireplace-fan/FanSpeed",
"apply": "return Math.round(message / 33.3);"
}
},
"confirmationPeriodms": 1000
},
|
References
Reference | URL |
---|---|
Flashing Tasmota | https://tasmota.github.io/docs/devices/Sonoff-iFan02/ |
Tasmota Commands | https://tasmota.github.io/docs/Commands/ |
...