diff --git a/automations/files/ryzen.yaml b/automations/files/ryzen.yaml new file mode 100644 index 0000000..723d6a7 --- /dev/null +++ b/automations/files/ryzen.yaml @@ -0,0 +1,50 @@ +- id: ryzen_notify + alias: Ryzen 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: + - 255 + - 0 + - 0 + 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 Ryzen jest dostępny kupuj teraz + entity_id: media_player.livingroom_speaker + - service: notify.mobile_app_sm_g965f + data: + message: Ryzen 5900X 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