From 76a8a9e75efe15f837dbcd5b0a19ff916bbc9688 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Thu, 3 Dec 2020 00:39:10 +0100 Subject: [PATCH] Add radeon notifications --- automations/files/radeon.yaml | 50 +++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 automations/files/radeon.yaml diff --git a/automations/files/radeon.yaml b/automations/files/radeon.yaml new file mode 100644 index 0000000..96e26f7 --- /dev/null +++ b/automations/files/radeon.yaml @@ -0,0 +1,50 @@ +- id: ryzen_notify + alias: Radeon Notifications + description: '' + trigger: + - platform: state + entity_id: sensor.imap_notifications + condition: + - condition: template + value_template: '{{ trigger.to_state.state | int > trigger.from_state.state | int }}' + action: + - service: light.turn_on + data: + brightness: 200 + rgb_color: + - 244 + - 117 + - 30 + entity_id: + - light.computer_left + - light.computer_right + - service: light.turn_on + data: + flash: long + brightness: 200 + rgb_color: + - 255 + - 0 + - 0 + entity_id: + - light.computer_left + - light.computer_right + - service: tts.google_translate_say + data: + language: pl + message: UWAGA Radeon jest dostępny + entity_id: media_player.livingroom_speaker + - service: notify.mobile_app_sm_g965f + data: + message: Radeon 6800 XT jest dostępny + - delay: 0:00:05 + - service: media_player.volume_set + data: + volume_level: 1 + entity_id: media_player.livingroom_speaker + - service: media_player.play_media + data: + media_content_id: media-source://media_source/local/JohnCena.mp3 + media_content_type: music + entity_id: media_player.livingroom_speaker + mode: single