WARNING: New Tuya devices have replaced their Wi-Fi module with one incompatible with Tasmota!!!
Tuya-Convert might not be possible for this device since the template was added (2019-12-24).
Install latest Tasmota
Issue command
TuyaMCU 12,102
Set up rule
Rule1 on TuyaReceived#Data=55AA00070005020400010012 do publish2 stat/flatbedfan/speed 2,0 endon on TuyaReceived#Data=55AA00070005020400010113 do publish2 stat/flatbedfan/speed 2,1 endon on TuyaReceived#Data=55AA00070005020400010214 do publish2 stat/flatbedfan/speed 2,2 endon
Enable rule with Rule1 1
Add the following to Home Assistant to your fan section
-platform:mqttname:"FlatBedroomFan"state_topic:"stat/flatbedfan/POWER1"command_topic:"cmnd/flatbedfan/POWER1"payload_on:"ON"payload_off:"OFF"availability_topic:"tele/flatbedfan/LWT"payload_available:"Online"payload_not_available:"Offline"preset_mode_state_topic:"stat/flatbedfan/speed"preset_mode_value_template:>{%- if value == '2,0' %}low{%- elif value == '2,1' %}medium{%- elif value == '2,2' %}high{%- endif -%}preset_mode_command_topic:"cmnd/flatbedfan/TuyaSend4"preset_mode_command_template:>{%- if value == "low" %}2,0{%- elif value == "medium" %}2,1{%- elif value == "high" %}2,2{%- endif -%}qos:0preset_modes:-"low"-"medium"-"high"
Add the following to Home Assistant to your light section (if required):