Home Assistant Integration

PeterD
Posts: 3
Joined: Mon Apr 21, 2025 6:25 pm

Re: Home Assistant Integration

Post by PeterD »

Hi all,
Which Rule is used in the Tasmota TuyaMCU shutter? The original Rule causes a huge amount of mqtt spam, looks that the rule runs in a loop….
Does anybody has a fix?
AnonymerTyp
Posts: 2
Joined: Fri Aug 29, 2025 3:37 pm

Re: Home Assistant Integration

Post by AnonymerTyp »

Hey all,

I got my 2 switches set up fine with HomeAssistant and MQTT. I let the curtains go up on sunrise and down on sunset via HomeAssistant automation.

Roughly once per month any one of the 2 shutter modules restarts during sunrise or sunset automation and goes to its last known position (before automation start).
Do you also experience some random restarts once in a while or have an idea what could be causing it?

My WiFi connection itself is super stable.
ijobs
Posts: 1
Joined: Sun Aug 31, 2025 10:24 pm

Re: Home Assistant Integration

Post by ijobs »

HI,
I try to do the same, but having trouble to set it up in HA.
Could you please share your confguration details ?

Thanks
AnonymerTyp
Posts: 2
Joined: Fri Aug 29, 2025 3:37 pm

Re: Home Assistant Integration

Post by AnonymerTyp »

Code: Select all

# Currysmarter Tasmota Shutter Controls
mqtt:
  cover:
    - name: "yourEntityName"
      unique_id: "yourEntityId"
      qos: 1
      command_topic: "cmnd/tasmota_wz/tuyasend4"
      payload_open: "1,0"
      payload_close: "1,2"
      payload_stop: "1,1"
      set_position_topic: "cmnd/tasmota_wz/shutterposition"
      set_position_template: "{{value}}"
      position_topic: "stat/tasmota_wz/RESULT"
      position_template: "{{ value_json.Shutter1.Position if value_json.Shutter1 is defined }}"
      availability_topic: "tele/tasmota_wz/LWT"
      payload_available: "Online"
      payload_not_available: "Offline"
That's my config in HA configuration.yaml. You gotta replace "tasmota_wz" with the mqtt name you gave it in Tasmota. You can check your MQTT topics etc. with something like MQTTExplorer.

After a reboot you should have a shutter entity.
Post Reply