Tweaking house party protocol
This commit is contained in:
parent
41a8891068
commit
3713709e0d
|
@ -2,17 +2,39 @@
|
||||||
# @author : Jeffrey Stone
|
# @author : Jeffrey Stone
|
||||||
# @date : 07/09/2019
|
# @date : 07/09/2019
|
||||||
# @package : Jarvis
|
# @package : Jarvis
|
||||||
# @description : Brining some Jarvis to Home Assistant
|
# @description : Bringing some Jarvis to Home Assistant
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
automation:
|
input_boolean:
|
||||||
|
house_party_protocol:
|
||||||
|
name: House Party Protocol
|
||||||
|
|
||||||
|
automation:
|
||||||
|
- id: house_party_protocol_on
|
||||||
|
alias: Turn On House Party Protocol
|
||||||
|
initial_state: true
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: input_boolean.house_party_protocol
|
||||||
|
to: 'on'
|
||||||
|
action:
|
||||||
|
- service: script.activate_house_party_protocol
|
||||||
|
|
||||||
|
- id: house_party_protocol_off
|
||||||
|
alias: Turn Off House Party Protocol
|
||||||
|
initial_state: true
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: input_boolean.house_party_protocol
|
||||||
|
to: 'off'
|
||||||
|
action:
|
||||||
|
- service: script.deactivate_house_party_protocol
|
||||||
|
|
||||||
script:
|
script:
|
||||||
activate_house_party_protocol:
|
activate_house_party_protocol:
|
||||||
sequence:
|
sequence:
|
||||||
- service: scene.turn_on
|
- service: group.turn_on
|
||||||
entity_id: scene.house_party_protocol
|
entity_id: group.incense
|
||||||
- service: script.ah_report
|
- service: script.ah_report
|
||||||
data_template:
|
data_template:
|
||||||
speech_message: >
|
speech_message: >
|
||||||
|
@ -21,3 +43,15 @@ script:
|
||||||
"Incense has been turned on.",
|
"Incense has been turned on.",
|
||||||
"I have enabled house party protocol."
|
"I have enabled house party protocol."
|
||||||
] | random }}
|
] | 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