oscarb / home-assistant-config

Configuration for Home Assistant
0 stars 0 forks source link

Sync Tasmota states after reboots #105

Open oscarb opened 1 year ago

oscarb commented 1 year ago
automation:
  - id: Sync Tasmota states
    alias: Sync Tasmota states
    initial_state: true
    trigger:
      platform: homeassistant
      event: start
    action:
    # sync state for devices with default fulltopics
    - service: mqtt.publish
      data:
        topic: cmnd/tasmotas/state
        payload: ''

Source: https://tasmota.github.io/docs/Home-Assistant/#useful-automations