Newbie here. Hello, I want an automation to trigger 1 hour after the solar noon but I can’t get it to work. I tried a simple automation in order to test it, pasted below. I converted the rising attribute of sun.sun into a sensor like this:
- platform: template
sensors:
rising:
value_template: "{{ state_attr('sun.sun', 'rising') }}"
The sensor is showing at the frontend so I assume I did it ok. Then I tried this simple automation, which isn’t working:
- id: '1585398410584'
alias: Nueva automatización
description: ''
trigger:
- entity_id: sensor.rising
for: 01:00:00
platform: state
to: 'false'
condition: []
action:
- device_id: 78a45f0ae1774f1bb6b01b7b69a2ea66
domain: light
entity_id: light.q_cocina
type: turn_on
any help will be much appreciated