mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
initial push
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
alias: Handle Clints Meds
|
||||
id: automation_handle_clints_meds
|
||||
description: 'Manage the booleans associated with Clints meds'
|
||||
trigger:
|
||||
- id: homeassistant_start
|
||||
platform: homeassistant
|
||||
event: start
|
||||
|
||||
- id: boolean_changed
|
||||
platform: state
|
||||
entity_id:
|
||||
- input_boolean.clint_needs_am_meds
|
||||
- input_boolean.clint_needs_pm_meds
|
||||
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id:
|
||||
- input_boolean.clint_needs_am_meds
|
||||
- input_boolean.clint_needs_pm_meds
|
||||
state: 'off'
|
||||
|
||||
sequence:
|
||||
- service: input_boolean.turn_off
|
||||
data: {}
|
||||
target:
|
||||
entity_id: input_boolean.clint_needs_meds
|
||||
|
||||
default:
|
||||
- service: input_boolean.turn_on
|
||||
data: {}
|
||||
target:
|
||||
entity_id: input_boolean.clint_needs_meds
|
||||
Reference in New Issue
Block a user