2019-07-12 16:32:25 -04:00
|
|
|
###############################################################################
|
|
|
|
# @author : Jeffrey Stone
|
|
|
|
# @date : 07/09/2019
|
|
|
|
# @package : Jarvis
|
2019-11-09 19:16:53 -05:00
|
|
|
# @description : Bringing some Jarvis to Home Assistant
|
2019-07-12 16:32:25 -04:00
|
|
|
###############################################################################
|
|
|
|
|
2019-11-09 19:16:53 -05:00
|
|
|
input_boolean:
|
|
|
|
house_party_protocol:
|
|
|
|
name: House Party Protocol
|
2019-07-15 21:40:39 -04:00
|
|
|
|
2019-11-09 19:16:53 -05:00
|
|
|
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:
|
2019-11-21 21:32:19 -05:00
|
|
|
- service: homeassistant.turn_on
|
|
|
|
entity_id: group.incense
|
2020-12-04 12:55:04 -05:00
|
|
|
- service: script.speech_engine
|
2019-11-21 21:32:19 -05:00
|
|
|
data_template:
|
2020-12-02 22:55:11 -05:00
|
|
|
who: '{{ states.sensor.room_audio.state }}'
|
2020-12-03 00:11:42 -05:00
|
|
|
message: Incense has been turned on.
|
2019-11-09 19:16:53 -05:00
|
|
|
|
|
|
|
- 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:
|
2019-11-21 21:32:19 -05:00
|
|
|
- service: homeassistant.turn_off
|
2019-11-09 19:16:53 -05:00
|
|
|
entity_id: group.incense
|
2020-12-04 12:55:04 -05:00
|
|
|
- service: script.speech_engine
|
2019-11-09 19:16:53 -05:00
|
|
|
data_template:
|
2020-12-02 22:55:11 -05:00
|
|
|
who: '{{ states.sensor.room_audio.state }}'
|
2020-12-03 00:11:42 -05:00
|
|
|
message: Incense has been turned off.
|
|
|
|
|