mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-17 10:57:03 +00:00
Closes #96 - Who let the dogs out?
This commit is contained in:
@@ -1 +1 @@
|
|||||||
0.39.2
|
0.39.3
|
15
automation/guard_dog.yaml
Executable file
15
automation/guard_dog.yaml
Executable file
@@ -0,0 +1,15 @@
|
|||||||
|
######################################################################
|
||||||
|
## Speak Max! Speak Max!!
|
||||||
|
######################################################################
|
||||||
|
|
||||||
|
- alias: Guard Dog
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: input_boolean.guard_dog
|
||||||
|
state: 'on'
|
||||||
|
from: 'off'
|
||||||
|
|
||||||
|
action:
|
||||||
|
- service: script.dog_bark
|
||||||
|
- service: input_boolean.turn_off
|
||||||
|
entity_id: input_boolean.guard_dog
|
@@ -22,7 +22,7 @@ frontend:
|
|||||||
|
|
||||||
group: !include_dir_merge_named group
|
group: !include_dir_merge_named group
|
||||||
device_tracker: !include_dir_merge_list device_tracker
|
device_tracker: !include_dir_merge_list device_tracker
|
||||||
# discovery: - Disabled due to LOTS of bugs.
|
discovery:
|
||||||
updater:
|
updater:
|
||||||
sun:
|
sun:
|
||||||
|
|
||||||
|
@@ -11,10 +11,15 @@ input_boolean.alert_mode:
|
|||||||
|
|
||||||
input_boolean.flash:
|
input_boolean.flash:
|
||||||
friendly_name: 'Flash'
|
friendly_name: 'Flash'
|
||||||
emulated_hue: False
|
emulated_hue: True
|
||||||
hidden: False
|
hidden: False
|
||||||
icon: mdi:yin-yang
|
icon: mdi:yin-yang
|
||||||
|
|
||||||
|
input_boolean.guard_dog:
|
||||||
|
friendly_name: 'Guard Dog'
|
||||||
|
emulated_hue: True
|
||||||
|
hidden: False
|
||||||
|
icon: mdi:paw
|
||||||
|
|
||||||
input_boolean.good_morning:
|
input_boolean.good_morning:
|
||||||
friendly_name: 'Good Morning'
|
friendly_name: 'Good Morning'
|
||||||
|
@@ -22,3 +22,7 @@ work:
|
|||||||
flash:
|
flash:
|
||||||
name: Flash
|
name: Flash
|
||||||
initial: off
|
initial: off
|
||||||
|
|
||||||
|
guard_dog:
|
||||||
|
name: Guard Dog
|
||||||
|
initial: off
|
||||||
|
@@ -9,6 +9,8 @@
|
|||||||
|
|
||||||
dog_bark:
|
dog_bark:
|
||||||
sequence:
|
sequence:
|
||||||
|
- wait_template: "{{ states.media_player.livingroomCC.states != 'playing' }}"
|
||||||
|
timeout: 00:00:30
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: >
|
value_template: >
|
||||||
{% if is_state('media_player.livingroomCC', 'playing') %}
|
{% if is_state('media_player.livingroomCC', 'playing') %}
|
||||||
@@ -16,9 +18,6 @@ dog_bark:
|
|||||||
{% else %}
|
{% else %}
|
||||||
true
|
true
|
||||||
{% endif %}
|
{% endif %}
|
||||||
- condition: state
|
|
||||||
entity_id: input_boolean.alert_mode
|
|
||||||
state: 'on'
|
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.speech_notifications
|
entity_id: input_boolean.speech_notifications
|
||||||
state: 'on'
|
state: 'on'
|
||||||
@@ -42,9 +41,6 @@ dog_bark:
|
|||||||
0.40
|
0.40
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
- service: media_player.turn_on
|
|
||||||
entity_id: media_player.livingroomCC
|
|
||||||
|
|
||||||
- service: media_player.play_media
|
- service: media_player.play_media
|
||||||
data_template:
|
data_template:
|
||||||
entity_id:
|
entity_id:
|
@@ -41,3 +41,4 @@ front_house_motion:
|
|||||||
brightness: 15
|
brightness: 15
|
||||||
- delay: '00:00:10'
|
- delay: '00:00:10'
|
||||||
- service: script.monthly_color_scene
|
- service: script.monthly_color_scene
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user