1
0

Add radeon notifications

This commit is contained in:
Przemek Grondek 2020-12-03 00:39:10 +01:00
parent b86b332fb7
commit 76a8a9e75e

View File

@ -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