From 5800d46774b4c4de5fdc56b8dd0f58f2ec4d1469 Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Tue, 20 Mar 2018 15:40:24 -0400 Subject: [PATCH] Tweaking weather alarms --- automation/weather.yaml | 6 ++---- scripts/chromecast_media_stop.yaml | 6 ++++++ 2 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 scripts/chromecast_media_stop.yaml diff --git a/automation/weather.yaml b/automation/weather.yaml index c302e74..a7a903b 100644 --- a/automation/weather.yaml +++ b/automation/weather.yaml @@ -43,7 +43,7 @@ entity_id: input_boolean.tornado_alarm to: 'off' action: - - service: script.kill_audible_alarm + - service: script.chromecast_stop_media - service: homeassistant.turn_off entity_id: script.tornado_alarm @@ -53,7 +53,6 @@ entity_id: input_boolean.tornado_alarm to: "on" action: - - service: script.tornado_warning - service: homeassistant.turn_on entity_id: script.tornado_alarm @@ -75,9 +74,8 @@ - alias: "Weather Watch Tornado" trigger: - - platform: numeric_state + - platform: state entity_id: sensor.pws_alerts - above: 0 condition: condition: or conditions: diff --git a/scripts/chromecast_media_stop.yaml b/scripts/chromecast_media_stop.yaml new file mode 100644 index 0000000..e1775ce --- /dev/null +++ b/scripts/chromecast_media_stop.yaml @@ -0,0 +1,6 @@ +chromecast_media_stop: + sequence: + - service: media_player.stop_media + data: + entity_id: media_player.living_room_tv + \ No newline at end of file