1
0

Update automations

This commit is contained in:
pgrondek 2020-11-21 04:28:38 +01:00
parent 0ac5cfcd70
commit b86b332fb7
4 changed files with 25 additions and 55 deletions

View File

@ -14,8 +14,8 @@
brightness: 200
rgb_color:
- 0
- 255
- 0
- 200
- 83
entity_id:
- light.computer_left
- light.computer_right
@ -25,8 +25,8 @@
brightness: 200
rgb_color:
- 0
- 0
- 255
- 200
- 83
entity_id:
- light.computer_left
- light.computer_right

View File

@ -3,7 +3,7 @@
description: ''
trigger:
- platform: time
at: '23:55'
at: '23:25'
condition:
- condition: time
weekday:
@ -28,5 +28,8 @@
- light.computer_left
- light.computer_right
- delay: '0:05:00'
- condition: state
entity_id: binary_sensor.desktop
state: 'on'
- service: shell_command.poweroff_pc
mode: single

View File

@ -0,0 +1,17 @@
- id: humidity_notificaiton
alias: Humidity notification
trigger:
- platform: numeric_state
entity_id: sensor.ble_humidity_bedroom_sensor
below: '40'
condition: []
action:
- service: tts.google_translate_say
data:
language: pl
message: Niska wilgotność uzupełnij wodę w nawilżaczu
entity_id: media_player.livingroom_speaker
- service: notify.mobile_app_sm_g965f
data:
message: Niska wilgotność uzupełnij wodę w nawilżaczu
mode: single

View File

@ -1,50 +0,0 @@
- 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:
- 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 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