Código actualización automática de ESPHome

alias: Actualizar ESPHome automáticamente
description: ""
trigger:
  - platform: template
    value_template: >-
      {{ integration_entities('esphome') | select('match','^update') |
      select('is_state', 'on') | list | count > 0 }}
condition: []
action:
  - repeat:
      for_each: >-
        {{ states.update | selectattr('state', 'eq', 'on') | 
        map(attribute='entity_id') |
        select('in',integration_entities('esphome')) | list }}
      sequence:
        - service: update.install
          data: {}
          target:
            entity_id: "{{ repeat.item }}"
        - wait_template: "{{ is_state(repeat.item, 'off') }}"
          continue_on_timeout: true
mode: single
Nativo Digital
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.