@Hunt4Beer wrote:
Hello,
I need some help with my automation. I try to start my vacuum at a time which I set with an input_number slider. The slider just adjust the hour, so I compare the current hour with the slider.
- id: '1558202812387' alias: Staubsaugen Uhrzeit trigger: - platform: template value_template: '{{ now().hour == (states("input_number.uhrzeit_staubsauger") | int )}}' condition: [] action: - entity_id: vacuum.rockrobo service: vacuum.start
The template works fine. I tested it in the “developer tool / template”.
The template is “true” if the current hour matches the value of the input_number.Somehow the automation doesn’t start, so it seems to be a problem with the trigger.
I hope some of you can help me.
Thank you in advance.
Posts: 5
Participants: 4