@kolossboss wrote:
Hi,
I’m triying to made a realtiv complex automation for a sprinker system.One goal was to select the start and stop time in the UI with an input_datetime helper. I’m having a pretty hard time to get this to work. (why is thats so incredible complicated with template etc…?)
Now I need to compare input_datetime with < and >. Is that even possbile without template? I’m pretty bad at templating…
It should look something like this. (Sorry I’m REALY bad
)
{% if states('sensor.time') > (states.input_datetime.start_bewaesserung_erd.attributes.timestamp) and {% if states('sensor.time') < (states.input_datetime.start_bewaesserung_erd.attributes.timestamp) Then = TRUE {% endif %}
And this should be a condition in this automation
- id: auto_steuerung_erd alias: Erdbeeren Auto Steuerung description: '' trigger: - entity_id: input_boolean.auto_steuerung_erd_1 platform: state to: 'on' condition: [] action: - data: {} entity_id: input_boolean.manuelle_steuerung_erd_1 service: input_boolean.turn_off
Please help.
Posts: 1
Participants: 1