Add ryzen stock notifications
This commit is contained in:
parent
c5b230aa50
commit
2862de7eb1
50
automations/files/ryzen.yaml
Normal file
50
automations/files/ryzen.yaml
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user