Skip to content

Instantly share code, notes, and snippets.

@mitch-b
Created January 23, 2024 01:33
Show Gist options
  • Save mitch-b/486823bb0a9de103859cb435c3393594 to your computer and use it in GitHub Desktop.
Save mitch-b/486823bb0a9de103859cb435c3393594 to your computer and use it in GitHub Desktop.
Home Assistant Reset Chore Automation
# instead of specifying all chores that need to be reset, this can find any input_boolean that is prefixed with 'chore_' to turn off
alias: Reset Chores
description: ""
trigger:
- platform: time
at: "01:00:00"
condition: []
action:
- service: homeassistant.turn_off
target:
entity_id: >
{{ states.input_boolean | map(attribute='entity_id') | select('match',
'input_boolean.chore_') | join(',') }}
data: {}
alias: Turn off input_boolean.chore_*
mode: single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment