Yes, but this is fixed and running all the time… If you want to modify (because of party or friends coming,…), you must go to the automation and make changes… Right?
Yes, you can manually ON/OFF.
But if you would like to change from ‘04:00PM’ till ‘04:30PM’ and forget; then you must go to ‘automation’. And make changes…
My question was: if someone invented ‘code’ to do the changes in the ‘card’…?
- alias: Open Curtains Early
trigger:
- platform: template
value_template: "{{ states('sensor.time') == (states.input_datetime.open_curtains_time_early.attributes.timestamp | int | timestamp_custom('%H:%M', False)) }}"
That’s how I do it for my curtains.
Have a look in my GitHub for the full setup. curtains_blinds.yaml
Also if you look in the heating one you can see how to have conditions for specific days of the week. Or even use Google calendar etc.