I have some automations that have waits that are in my opinion too long to use a typical wait service and I have not been succesful in setting up date/time to do something similar. Any help would be appreciated.
description: "test"
trigger:
- platform: state
entity_id:
- input_boolean.sunroomlights_2
to: "on"
condition: []
action:
- service: light.turn_on
target:
entity_id: light.sun_room
data:
brightness_pct: 100
kelvin: 6500
- wait_template: "{{ states('sensor.date_time') >= states('input_datetime.den_override_end_time') }}"
- service: light.turn_off
target:
entity_id:
- light.sun_room
data: {}
mode: single
this is a test to make sure it the date/time template would work with the date/time helper doing its thing for 10-15 seconds or so and then turn the lights off after it completed that condition. I would then move the working date/time template to the actual automation that I need date/time to add 2 hours to ‘now’ time. I hope this is worded correctly. Many thanks for any help!