@DenisSh wrote:
Please help me with:
Invalid config for [automation]: [entity] is an invalid option for [automation]. Check: automation->trigger->0->entity. (See /config/configuration.yaml, line 165).
my automations.yaml- alias: 'Home automation' trigger: platform: state entity: sensor.kitchen_wall_button from: 'off' to: 'on' condition: condition: state entity_id: switch.sw_one state: 'off' action: - service: switch.turn_on entity_id: switch.sw_one data: message: 'Тик Так 10 сек' - delay: seconds: 10 - service: switch.turn_off entity_id: switch.sw_one data: message: 'Выключаю'
the entity in the trigger block (from configuration.yaml):
kitchen_wall_button: value_template: "{{states.sensor.esp.attributes.push_btn}}" friendly_name: 'DSH wall button'
work well - I can see it state in Lovelace
Posts: 9
Participants: 3