Cleaning up house party protocol. Steamlining
This commit is contained in:
parent
fb583d9ae3
commit
cbb741d07b
|
@ -18,7 +18,12 @@ automation:
|
||||||
entity_id: input_boolean.house_party_protocol
|
entity_id: input_boolean.house_party_protocol
|
||||||
to: 'on'
|
to: 'on'
|
||||||
action:
|
action:
|
||||||
- service: script.activate_house_party_protocol
|
- service: homeassistant.turn_on
|
||||||
|
entity_id: group.incense
|
||||||
|
- service: script.ah_report
|
||||||
|
data_template:
|
||||||
|
call_confirmation: 1
|
||||||
|
call_house_party_protocol_enabled: 1
|
||||||
|
|
||||||
- id: house_party_protocol_off
|
- id: house_party_protocol_off
|
||||||
alias: Turn Off House Party Protocol
|
alias: Turn Off House Party Protocol
|
||||||
|
@ -28,30 +33,9 @@ automation:
|
||||||
entity_id: input_boolean.house_party_protocol
|
entity_id: input_boolean.house_party_protocol
|
||||||
to: 'off'
|
to: 'off'
|
||||||
action:
|
action:
|
||||||
- service: script.deactivate_house_party_protocol
|
- service: homeassistant.turn_off
|
||||||
|
|
||||||
script:
|
|
||||||
activate_house_party_protocol:
|
|
||||||
sequence:
|
|
||||||
- service: group.turn_on
|
|
||||||
entity_id: group.incense
|
entity_id: group.incense
|
||||||
- service: script.ah_report
|
- service: script.ah_report
|
||||||
data_template:
|
data_template:
|
||||||
speech_message: >
|
call_confirmation: 1
|
||||||
{{ [
|
call_house_party_protocol_disabled: 1
|
||||||
"Anchorage House has been configured for a House Party.",
|
|
||||||
"Incense has been turned on.",
|
|
||||||
"I have enabled house party protocol."
|
|
||||||
] | random }}
|
|
||||||
deactivate_house_party_protocol:
|
|
||||||
sequence:
|
|
||||||
- service: group.turn_off
|
|
||||||
entity_id: group.incense
|
|
||||||
- service: script.ah_report
|
|
||||||
data_template:
|
|
||||||
speech_message: >
|
|
||||||
{{ [
|
|
||||||
"The House Party has been canceled.",
|
|
||||||
"Incense has been turned off.",
|
|
||||||
"I have disabled house party protocol."
|
|
||||||
] | random }}
|
|
||||||
|
|
Loading…
Reference in New Issue