Elektroda.com
Elektroda.com
X

Options for Retaining Relays & Power Channels in TuyaMCU Switches for HA Restart

jbrande 108 2
  • #1
    jbrande
    Level 3  
    Is there any option like flag 21 to retain relays and power channels for TuyaMCU switches?
    I tried with Flag 19 but it does not retain the values so when i restart HA the buttons do not work

    Added after 19 [minutes]:

    or something like this when home assistant starts?

    - alias: "Tasmota State on HA Restart"
    trigger:
    platform: homeassistant
    event: start
    action:
    - service: mqtt.publish
    data:
    topic: "cmnd/tasmotas/backlog"
    payload: "power1 ;power2 ;power3 ;power4 ;power5; dimmer; state"
  • #3
    jbrande
    Level 3  
    Thank you, I will try that. I didn't see that flag,
    but I solved it this way... for now.

    Code: yaml
    Log in, to see the code