1
0
ansible-home-assistant/automations/files/ryzen.yaml

51 lines
1.3 KiB
YAML
Raw Normal View History

2020-11-13 20:19:24 +00:00
- 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