Hello I use a drop down helper to control all my automations, - sleep, kids sleep, wake- every morning we forget to change the drop down from sleep to wake up and I was wondering if any one knew a way to do this automatically so at 7 the helper changes from sleep to wake or change the drop down to something else to do this.
Use an automation with a time trigger and input_select.select_option
action…
trigger:
- platform: time
at: "07:00:00"
condition: []
action:
- service: input_select.select_option
target:
entity_id: input_select.YOUR_HELPER
data:
option: wake up
1 Like
Thank you so much i been racking my brain trying to work out how to do thi.
In case you want to add additional triggers and conditions to the same automation I mocked this up to show how it could be done. The conditions keep it monday-friday and the trigger id’s allow for choose statement in actions.
id: 'Control Helper Actions'
alias: 'Control Helper Actions'
description: Set the value of the helper based on time
trigger:
- id: 'wakeup'
platform: time
at: input_datetime.wake_up
- id: 'sleep'
platform: time
at: input_datetime.sleep
- id: 'bedtime'
platform: time
at: input_datetime.bedtime
condition:
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
action:
- choose:
- conditions: "{{ trigger.id == 'wakeup' }}"
sequence:
- service: input_select.select_option
target:
entity_id: input_select.YOUR_HELPER
data:
option: wakeup
- conditions: "{{ trigger.id == 'sleep' }}"
sequence:
- service: input_select.select_option
target:
entity_id: input_select.YOUR_HELPER
data:
option: sleep
- conditions: "{{ trigger.id == 'bedtime' }}"
sequence:
- service: input_select.select_option
target:
entity_id: input_select.YOUR_HELPER
data:
option: bedtime
default: []
mode: single
I thought this might be your next requirement.