add automations
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
|||||||
2023.1.2
|
2023.1.4
|
||||||
@@ -0,0 +1,196 @@
|
|||||||
|
# Turns on alarms on workdays and off on "not workdays"
|
||||||
|
- alias: 'Turn on alarms soft wakeup'
|
||||||
|
trigger:
|
||||||
|
platform: time
|
||||||
|
at: '20:05:00'
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: binary_sensor.arbejdsdag
|
||||||
|
state: 'on'
|
||||||
|
action:
|
||||||
|
- service: homeassistant.turn_on
|
||||||
|
entity_id: switch.sonos_alarm_1782
|
||||||
|
|
||||||
|
- alias: 'Turn off alarms soft wakeup'
|
||||||
|
trigger:
|
||||||
|
platform: time
|
||||||
|
at: '20:00:00'
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: binary_sensor.arbejdsdag
|
||||||
|
state: 'off'
|
||||||
|
action:
|
||||||
|
- service: homeassistant.turn_off
|
||||||
|
entity_id: switch.sonos_alarm_1782
|
||||||
|
|
||||||
|
- alias: 'Turn on alarms Andreas'
|
||||||
|
trigger:
|
||||||
|
platform: time
|
||||||
|
at: '20:05:10'
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: binary_sensor.arbejdsdag
|
||||||
|
state: 'on'
|
||||||
|
action:
|
||||||
|
- service: homeassistant.turn_on
|
||||||
|
entity_id: switch.sonos_alarm_445
|
||||||
|
|
||||||
|
- alias: 'Turn off alarms Andreas'
|
||||||
|
trigger:
|
||||||
|
platform: time
|
||||||
|
at: '20:00:10'
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: binary_sensor.arbejdsdag
|
||||||
|
state: 'off'
|
||||||
|
action:
|
||||||
|
- service: homeassistant.turn_off
|
||||||
|
entity_id: switch.sonos_alarm_445
|
||||||
|
|
||||||
|
- alias: 'Turn on alarms Andreas Tuesdays'
|
||||||
|
trigger:
|
||||||
|
platform: time
|
||||||
|
at: '20:05:20'
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: binary_sensor.arbejdsdag
|
||||||
|
state: 'on'
|
||||||
|
action:
|
||||||
|
- service: homeassistant.turn_on
|
||||||
|
entity_id: switch.sonos_alarm_1824
|
||||||
|
|
||||||
|
- alias: 'Turn off alarms Andreas Tuesdays'
|
||||||
|
trigger:
|
||||||
|
platform: time
|
||||||
|
at: '20:00:20'
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: binary_sensor.arbejdsdag
|
||||||
|
state: 'off'
|
||||||
|
action:
|
||||||
|
- service: homeassistant.turn_off
|
||||||
|
entity_id: switch.sonos_alarm_1824
|
||||||
|
|
||||||
|
- alias: 'Turn on alarms Andreas Saturdays'
|
||||||
|
trigger:
|
||||||
|
platform: time
|
||||||
|
at: '20:05:30'
|
||||||
|
condition:
|
||||||
|
- condition: or
|
||||||
|
conditions:
|
||||||
|
- condition: template
|
||||||
|
value_template: '{{ now().date() | string != "2022-12-24" }}'
|
||||||
|
- condition: template
|
||||||
|
value_template: '{{ now().date() | string != "2022-12-31" }}'
|
||||||
|
action:
|
||||||
|
- service: homeassistant.turn_on
|
||||||
|
entity_id: switch.sonos_alarm_1874
|
||||||
|
|
||||||
|
- alias: 'Turn off alarms Andreas Saturdays'
|
||||||
|
trigger:
|
||||||
|
platform: time
|
||||||
|
at: '20:00:30'
|
||||||
|
action:
|
||||||
|
- service: homeassistant.turn_off
|
||||||
|
entity_id: switch.sonos_alarm_1874
|
||||||
|
|
||||||
|
- alias: 'Turn on alarms Daniel'
|
||||||
|
trigger:
|
||||||
|
platform: time
|
||||||
|
at: '20:05:40'
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: binary_sensor.arbejdsdag
|
||||||
|
state: 'on'
|
||||||
|
action:
|
||||||
|
- service: homeassistant.turn_on
|
||||||
|
entity_id: switch.sonos_alarm_377
|
||||||
|
|
||||||
|
|
||||||
|
- alias: 'Turn off alarms Daniel'
|
||||||
|
trigger:
|
||||||
|
platform: time
|
||||||
|
at: '20:00:40'
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: binary_sensor.arbejdsdag
|
||||||
|
state: 'off'
|
||||||
|
action:
|
||||||
|
- service: homeassistant.turn_off
|
||||||
|
entity_id: switch.sonos_alarm_377
|
||||||
|
|
||||||
|
- alias: 'Turn on alarms Daniel Afsted'
|
||||||
|
trigger:
|
||||||
|
platform: time
|
||||||
|
at: '20:05:50'
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: binary_sensor.arbejdsdag
|
||||||
|
state: 'on'
|
||||||
|
action:
|
||||||
|
- service: homeassistant.turn_on
|
||||||
|
entity_id: switch.sonos_alarm_1894
|
||||||
|
|
||||||
|
|
||||||
|
- alias: 'Turn off alarms Daniel Afsted'
|
||||||
|
trigger:
|
||||||
|
platform: time
|
||||||
|
at: '20:00:50'
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: binary_sensor.arbejdsdag
|
||||||
|
state: 'off'
|
||||||
|
action:
|
||||||
|
- service: homeassistant.turn_off
|
||||||
|
entity_id: switch.sonos_alarm_1894
|
||||||
|
|
||||||
|
|
||||||
|
- alias: 'Turn on alarms Badeværelse'
|
||||||
|
trigger:
|
||||||
|
platform: time
|
||||||
|
at: '20:06:00'
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: binary_sensor.arbejdsdag
|
||||||
|
state: 'on'
|
||||||
|
action:
|
||||||
|
- service: homeassistant.turn_on
|
||||||
|
entity_id: switch.sonos_alarm_298
|
||||||
|
|
||||||
|
|
||||||
|
- alias: 'Turn off alarms Badeværelse'
|
||||||
|
trigger:
|
||||||
|
platform: time
|
||||||
|
at: '20:01:00'
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: binary_sensor.arbejdsdag
|
||||||
|
state: 'off'
|
||||||
|
action:
|
||||||
|
- service: homeassistant.turn_off
|
||||||
|
entity_id: switch.sonos_alarm_298
|
||||||
|
|
||||||
|
- alias: 'Turn on alarms Badeværelse Afsted'
|
||||||
|
trigger:
|
||||||
|
platform: time
|
||||||
|
at: '20:06:10'
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: binary_sensor.arbejdsdag
|
||||||
|
state: 'on'
|
||||||
|
action:
|
||||||
|
- service: homeassistant.turn_on
|
||||||
|
entity_id: switch.sonos_alarm_1899
|
||||||
|
|
||||||
|
|
||||||
|
- alias: 'Turn off alarms Badeværelse Afsted'
|
||||||
|
trigger:
|
||||||
|
platform: time
|
||||||
|
at: '20:06:20'
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: binary_sensor.arbejdsdag
|
||||||
|
state: 'off'
|
||||||
|
action:
|
||||||
|
- service: homeassistant.turn_off
|
||||||
|
entity_id: switch.sonos_alarm_1899
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
- id: '1673462687513'
|
||||||
|
alias: Andreas colorloop start longpress 1st button
|
||||||
|
description: ''
|
||||||
|
trigger:
|
||||||
|
- device_id: d8eb3c4b3fcc7cc36600b24aa819c180
|
||||||
|
domain: hue
|
||||||
|
platform: device
|
||||||
|
type: long_release
|
||||||
|
subtype: 1
|
||||||
|
unique_id: 851e4f55-9c8b-4648-b7d0-8b9213d9f829
|
||||||
|
condition: []
|
||||||
|
action:
|
||||||
|
- service: script.colorloopandreas
|
||||||
|
data: {}
|
||||||
|
mode: single
|
||||||
|
- id: '1673462709596'
|
||||||
|
alias: Andreas colorloop stop longpress 4th button
|
||||||
|
description: ''
|
||||||
|
trigger:
|
||||||
|
- device_id: d8eb3c4b3fcc7cc36600b24aa819c180
|
||||||
|
domain: hue
|
||||||
|
platform: device
|
||||||
|
type: long_release
|
||||||
|
subtype: 4
|
||||||
|
unique_id: 7225a51d-78af-4f99-bb67-78e2bd374283
|
||||||
|
condition: []
|
||||||
|
action:
|
||||||
|
- service: script.turn_off
|
||||||
|
entity_id: script.colorloopandreas
|
||||||
|
mode: single
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
- id: '1673461353198'
|
||||||
|
alias: Daniel colorloop start longpress 1st button
|
||||||
|
description: ''
|
||||||
|
trigger:
|
||||||
|
- device_id: e286dca25ab7ad629af4f7c1ebdf40b2
|
||||||
|
domain: hue
|
||||||
|
platform: device
|
||||||
|
type: long_release
|
||||||
|
subtype: 1
|
||||||
|
unique_id: 9891d593-fe16-47e3-8947-845b063ed863
|
||||||
|
condition: []
|
||||||
|
action:
|
||||||
|
- service: script.colorloopdaniel
|
||||||
|
data: {}
|
||||||
|
mode: single
|
||||||
|
|
||||||
|
- id: '1673461856731'
|
||||||
|
alias: Daniel colorloop stop longpress 4th button
|
||||||
|
description: ''
|
||||||
|
trigger:
|
||||||
|
- device_id: e286dca25ab7ad629af4f7c1ebdf40b2
|
||||||
|
domain: hue
|
||||||
|
platform: device
|
||||||
|
type: long_release
|
||||||
|
subtype: 4
|
||||||
|
unique_id: 7426e326-a0e7-4108-abf0-76d10cee8932
|
||||||
|
condition: []
|
||||||
|
action:
|
||||||
|
- service: script.turn_off
|
||||||
|
entity_id: script.colorloopdaniel
|
||||||
|
mode: single
|
||||||
|
|
||||||
@@ -0,0 +1,390 @@
|
|||||||
|
# logik
|
||||||
|
# hvis om dagen, så høj lydstyrke. Gem sonos-config. udkoble alle. Ding-dong i lille bad og hund der gør i alrum. Blink med lamperne.
|
||||||
|
# send push besked til telefoner
|
||||||
|
|
||||||
|
- id: '1672487404009'
|
||||||
|
alias: Ringklokke bagdør
|
||||||
|
description: Når det ringer på bagdør, send besked, lav lyd og blink
|
||||||
|
trigger:
|
||||||
|
- platform: mqtt
|
||||||
|
topic: '{{''shellies/shellybutton1-'' ~ button_id ~ ''/input_event/0''}}'
|
||||||
|
condition: []
|
||||||
|
action:
|
||||||
|
- choose:
|
||||||
|
- conditions:
|
||||||
|
- condition: template
|
||||||
|
value_template: '{{ trigger.payload_json.event == "S" }}'
|
||||||
|
sequence:
|
||||||
|
- service: notify.mobile_app_clausiphone
|
||||||
|
data:
|
||||||
|
message: Det ringer på bagdøren
|
||||||
|
- service: notify.mobile_app_annes_iphone_xs
|
||||||
|
data:
|
||||||
|
message: Det ringer på bagdøren
|
||||||
|
|
||||||
|
- choose:
|
||||||
|
- conditions:
|
||||||
|
- condition: time
|
||||||
|
after: '20:00:00'
|
||||||
|
before: 06:00:00
|
||||||
|
weekday:
|
||||||
|
- mon
|
||||||
|
- tue
|
||||||
|
- wed
|
||||||
|
- thu
|
||||||
|
- fri
|
||||||
|
- sat
|
||||||
|
- sun
|
||||||
|
sequence:
|
||||||
|
- service: media_player.volume_set
|
||||||
|
data:
|
||||||
|
volume_level: 0.5
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
- service: media_player.play_media
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
data:
|
||||||
|
media_content_id: media-source://media_source/local/doorbell-shortened-100308.mp3
|
||||||
|
media_content_type: audio/mpeg
|
||||||
|
metadata:
|
||||||
|
title: doorbell-shortened-100308.mp3
|
||||||
|
thumbnail:
|
||||||
|
media_class: music
|
||||||
|
children_media_class:
|
||||||
|
navigateIds:
|
||||||
|
- {}
|
||||||
|
- media_content_type: app
|
||||||
|
media_content_id: media-source://media_source
|
||||||
|
- service: scene.create
|
||||||
|
data:
|
||||||
|
scene_id: before
|
||||||
|
snapshot_entities:
|
||||||
|
- light.pendle1
|
||||||
|
- service: light.turn_on
|
||||||
|
data:
|
||||||
|
entity_id: light.pendle1
|
||||||
|
brightness: 255
|
||||||
|
rgb_color: [255, 0, 0]
|
||||||
|
flash: long
|
||||||
|
- delay: 2
|
||||||
|
- service: scene.turn_on
|
||||||
|
entity_id: scene.before
|
||||||
|
|
||||||
|
default:
|
||||||
|
- service: media_player.volume_set
|
||||||
|
data:
|
||||||
|
volume_level: 0.8
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
- service: media_player.play_media
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
data:
|
||||||
|
media_content_id: media-source://media_source/local/doorbell.mp3
|
||||||
|
media_content_type: audio/mpeg
|
||||||
|
metadata:
|
||||||
|
title: doorbell.mp3
|
||||||
|
thumbnail:
|
||||||
|
media_class: music
|
||||||
|
children_media_class:
|
||||||
|
navigateIds:
|
||||||
|
- {}
|
||||||
|
- media_content_type: app
|
||||||
|
media_content_id: media-source://media_source
|
||||||
|
|
||||||
|
- service: media_player.play_media
|
||||||
|
target:
|
||||||
|
entity_id: media_player.alrum
|
||||||
|
data:
|
||||||
|
media_content_id: media-source://tts/google_translate?message=der+er+nogen+der+ringer+p%C3%A5%0A
|
||||||
|
media_content_type: provider
|
||||||
|
metadata:
|
||||||
|
title: 'der er nogen der ringer på
|
||||||
|
|
||||||
|
'
|
||||||
|
thumbnail: https://brands.home-assistant.io/_/google_translate/logo.png
|
||||||
|
media_class: app
|
||||||
|
children_media_class:
|
||||||
|
navigateIds:
|
||||||
|
- {}
|
||||||
|
- media_content_type: app
|
||||||
|
media_content_id: media-source://tts
|
||||||
|
- media_content_type: provider
|
||||||
|
media_content_id: media-source://tts/google_translate?message=der+er+nogen+der+ringer+p%C3%A5%0A
|
||||||
|
- service: scene.create
|
||||||
|
data:
|
||||||
|
scene_id: before
|
||||||
|
snapshot_entities:
|
||||||
|
- light.pendle1
|
||||||
|
- service: light.turn_on
|
||||||
|
data:
|
||||||
|
entity_id: light.pendle1
|
||||||
|
brightness: 255
|
||||||
|
rgb_color: [255, 0, 0]
|
||||||
|
flash: long
|
||||||
|
- delay: 2
|
||||||
|
- service: scene.turn_on
|
||||||
|
entity_id: scene.before
|
||||||
|
|
||||||
|
- conditions:
|
||||||
|
- condition: template
|
||||||
|
value_template: '{{ trigger.payload_json.event == "SS" }}'
|
||||||
|
sequence:
|
||||||
|
- service: notify.mobile_app_clausiphone
|
||||||
|
data:
|
||||||
|
message: Det ringer på bagdøren - doublepress
|
||||||
|
- service: notify.mobile_app_annes_iphone_xs
|
||||||
|
data:
|
||||||
|
message: Det ringer på bagdøren - doublepress
|
||||||
|
- choose:
|
||||||
|
- conditions:
|
||||||
|
- condition: time
|
||||||
|
after: '20:00:00'
|
||||||
|
before: 06:00:00
|
||||||
|
weekday:
|
||||||
|
- mon
|
||||||
|
- tue
|
||||||
|
- wed
|
||||||
|
- thu
|
||||||
|
- fri
|
||||||
|
- sat
|
||||||
|
- sun
|
||||||
|
sequence:
|
||||||
|
- service: media_player.volume_set
|
||||||
|
data:
|
||||||
|
volume_level: 0.5
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
- service: media_player.play_media
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
data:
|
||||||
|
media_content_id: media-source://media_source/local/german-shephard.mp3
|
||||||
|
media_content_type: audio/mpeg
|
||||||
|
metadata:
|
||||||
|
title: german-shephard.mp3
|
||||||
|
thumbnail:
|
||||||
|
media_class: music
|
||||||
|
children_media_class:
|
||||||
|
navigateIds:
|
||||||
|
- {}
|
||||||
|
- media_content_type: app
|
||||||
|
media_content_id: media-source://media_source
|
||||||
|
default:
|
||||||
|
- service: media_player.volume_set
|
||||||
|
data:
|
||||||
|
volume_level: 0.8
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
- service: media_player.play_media
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
data:
|
||||||
|
media_content_id: media-source://media_source/local/german-shephard.mp3
|
||||||
|
media_content_type: audio/mpeg
|
||||||
|
metadata:
|
||||||
|
title: german-shephard.mp3
|
||||||
|
thumbnail:
|
||||||
|
media_class: music
|
||||||
|
children_media_class:
|
||||||
|
navigateIds:
|
||||||
|
- {}
|
||||||
|
- media_content_type: app
|
||||||
|
media_content_id: media-source://media_source
|
||||||
|
|
||||||
|
- service: media_player.play_media
|
||||||
|
target:
|
||||||
|
entity_id: media_player.alrum
|
||||||
|
data:
|
||||||
|
media_content_id: media-source://tts/google_translate?message=der+er+nogen+der+ringer+p%C3%A5%0A
|
||||||
|
media_content_type: provider
|
||||||
|
metadata:
|
||||||
|
title: 'der er nogen der ringer på
|
||||||
|
|
||||||
|
'
|
||||||
|
thumbnail: https://brands.home-assistant.io/_/google_translate/logo.png
|
||||||
|
media_class: app
|
||||||
|
children_media_class:
|
||||||
|
navigateIds:
|
||||||
|
- {}
|
||||||
|
- media_content_type: app
|
||||||
|
media_content_id: media-source://tts
|
||||||
|
- media_content_type: provider
|
||||||
|
media_content_id: media-source://tts/google_translate?message=der+er+nogen+der+ringer+p%C3%A5%0A
|
||||||
|
|
||||||
|
- conditions:
|
||||||
|
- condition: template
|
||||||
|
value_template: '{{ trigger.payload_json.event == "SSS" }}'
|
||||||
|
sequence:
|
||||||
|
- service: notify.mobile_app_clausiphone
|
||||||
|
data:
|
||||||
|
message: Det ringer på bagdøren - triple-press
|
||||||
|
- service: notify.mobile_app_annes_iphone_xs
|
||||||
|
data:
|
||||||
|
message: Det ringer på bagdøren - triple-press
|
||||||
|
- choose:
|
||||||
|
- conditions:
|
||||||
|
- condition: time
|
||||||
|
after: '20:00:00'
|
||||||
|
before: 06:00:00
|
||||||
|
weekday:
|
||||||
|
- mon
|
||||||
|
- tue
|
||||||
|
- wed
|
||||||
|
- thu
|
||||||
|
- fri
|
||||||
|
- sat
|
||||||
|
- sun
|
||||||
|
sequence:
|
||||||
|
- service: media_player.volume_set
|
||||||
|
data:
|
||||||
|
volume_level: 0.5
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
- service: media_player.play_media
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
data:
|
||||||
|
media_content_id: media-source://media_source/local/dog-barking-2-bullmastiff.mp3
|
||||||
|
media_content_type: audio/mpeg
|
||||||
|
metadata:
|
||||||
|
title: dog-barking-2-bullmastiff.mp3
|
||||||
|
thumbnail:
|
||||||
|
media_class: music
|
||||||
|
children_media_class:
|
||||||
|
navigateIds:
|
||||||
|
- {}
|
||||||
|
- media_content_type: app
|
||||||
|
media_content_id: media-source://media_source
|
||||||
|
default:
|
||||||
|
- service: media_player.volume_set
|
||||||
|
data:
|
||||||
|
volume_level: 0.8
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
- service: media_player.play_media
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
data:
|
||||||
|
media_content_id: media-source://media_source/local/dog-barking-2-bullmastiff.mp3
|
||||||
|
media_content_type: audio/mpeg
|
||||||
|
metadata:
|
||||||
|
title: dog-barking-2-bullmastiff.mp3
|
||||||
|
thumbnail:
|
||||||
|
media_class: music
|
||||||
|
children_media_class:
|
||||||
|
navigateIds:
|
||||||
|
- {}
|
||||||
|
- media_content_type: app
|
||||||
|
media_content_id: media-source://media_source
|
||||||
|
|
||||||
|
- service: media_player.play_media
|
||||||
|
target:
|
||||||
|
entity_id: media_player.alrum
|
||||||
|
data:
|
||||||
|
media_content_id: media-source://tts/google_translate?message=der+er+nogen+der+ringer+p%C3%A5%0A
|
||||||
|
media_content_type: provider
|
||||||
|
metadata:
|
||||||
|
title: 'der er nogen der ringer på
|
||||||
|
|
||||||
|
'
|
||||||
|
thumbnail: https://brands.home-assistant.io/_/google_translate/logo.png
|
||||||
|
media_class: app
|
||||||
|
children_media_class:
|
||||||
|
navigateIds:
|
||||||
|
- {}
|
||||||
|
- media_content_type: app
|
||||||
|
media_content_id: media-source://tts
|
||||||
|
- media_content_type: provider
|
||||||
|
media_content_id: media-source://tts/google_translate?message=der+er+nogen+der+ringer+p%C3%A5%0A
|
||||||
|
|
||||||
|
- conditions:
|
||||||
|
- condition: template
|
||||||
|
value_template: '{{ trigger.payload_json.event == "L" }}'
|
||||||
|
sequence:
|
||||||
|
- service: notify.mobile_app_clausiphone
|
||||||
|
data:
|
||||||
|
message: Det ringer på bagdøren - long-press
|
||||||
|
- service: notify.mobile_app_annes_iphone_xs
|
||||||
|
data:
|
||||||
|
message: Det ringer på bagdøren - long-press
|
||||||
|
- choose:
|
||||||
|
- conditions:
|
||||||
|
- condition: time
|
||||||
|
after: '20:00:00'
|
||||||
|
before: 06:00:00
|
||||||
|
weekday:
|
||||||
|
- mon
|
||||||
|
- tue
|
||||||
|
- wed
|
||||||
|
- thu
|
||||||
|
- fri
|
||||||
|
- sat
|
||||||
|
- sun
|
||||||
|
sequence:
|
||||||
|
- service: media_player.volume_set
|
||||||
|
data:
|
||||||
|
volume_level: 0.5
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
- service: media_player.play_media
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
data:
|
||||||
|
media_content_id: media-source://media_source/local/two-tone-chime.mp3
|
||||||
|
media_content_type: audio/mpeg
|
||||||
|
metadata:
|
||||||
|
title: two-tone-chime.mp3
|
||||||
|
thumbnail:
|
||||||
|
media_class: music
|
||||||
|
children_media_class:
|
||||||
|
navigateIds:
|
||||||
|
- {}
|
||||||
|
- media_content_type: app
|
||||||
|
media_content_id: media-source://media_source
|
||||||
|
default:
|
||||||
|
- service: media_player.volume_set
|
||||||
|
data:
|
||||||
|
volume_level: 0.8
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
- service: media_player.play_media
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
data:
|
||||||
|
media_content_id: media-source://media_source/local/two-tone-chime.mp3
|
||||||
|
media_content_type: audio/mpeg
|
||||||
|
metadata:
|
||||||
|
title: two-tone-chime.mp3
|
||||||
|
thumbnail:
|
||||||
|
media_class: music
|
||||||
|
children_media_class:
|
||||||
|
navigateIds:
|
||||||
|
- {}
|
||||||
|
- media_content_type: app
|
||||||
|
media_content_id: media-source://media_source
|
||||||
|
|
||||||
|
- service: media_player.play_media
|
||||||
|
target:
|
||||||
|
entity_id: media_player.alrum
|
||||||
|
data:
|
||||||
|
media_content_id: media-source://tts/google_translate?message=der+er+nogen+der+ringer+p%C3%A5%0A
|
||||||
|
media_content_type: provider
|
||||||
|
metadata:
|
||||||
|
title: 'der er nogen der ringer på
|
||||||
|
|
||||||
|
'
|
||||||
|
thumbnail: https://brands.home-assistant.io/_/google_translate/logo.png
|
||||||
|
media_class: app
|
||||||
|
children_media_class:
|
||||||
|
navigateIds:
|
||||||
|
- {}
|
||||||
|
- media_content_type: app
|
||||||
|
media_content_id: media-source://tts
|
||||||
|
- media_content_type: provider
|
||||||
|
media_content_id: media-source://tts/google_translate?message=der+er+nogen+der+ringer+p%C3%A5%0A
|
||||||
|
|
||||||
|
mode: single
|
||||||
|
trigger_variables:
|
||||||
|
button_id: 98CDAC1E5F42
|
||||||
@@ -0,0 +1,286 @@
|
|||||||
|
# logik
|
||||||
|
# hvis om dagen, så høj lydstyrke. Gem sonos-config. udkoble alle. Ding-dong i lille bad og hund der gør i alrum. Blink med lamperne.
|
||||||
|
# send push besked til telefoner
|
||||||
|
|
||||||
|
- id: '1672487404010'
|
||||||
|
alias: Ringklokke bagdør
|
||||||
|
description: Når det ringer på bagdør, send besked, lav lyd og blink
|
||||||
|
trigger:
|
||||||
|
- platform: mqtt
|
||||||
|
topic: '{{''shellies/shellybutton1-'' ~ button_id ~ ''/input_event/0''}}'
|
||||||
|
condition: []
|
||||||
|
action:
|
||||||
|
- choose:
|
||||||
|
- conditions:
|
||||||
|
- condition: template
|
||||||
|
value_template: '{{ trigger.payload_json.event == "S" }}'
|
||||||
|
sequence:
|
||||||
|
- service: script.doorbell
|
||||||
|
data:
|
||||||
|
tekst: "Det ringer på bagdøren"
|
||||||
|
volumennat: 0.5
|
||||||
|
volumendag: 0.8
|
||||||
|
lydfil: doorbell-shortened-100308.mp3
|
||||||
|
lampe: light.pendle1
|
||||||
|
|
||||||
|
- conditions:
|
||||||
|
- condition: template
|
||||||
|
value_template: '{{ trigger.payload_json.event == "SS" }}'
|
||||||
|
sequence:
|
||||||
|
- service: notify.mobile_app_clausiphone
|
||||||
|
data:
|
||||||
|
message: Det ringer på bagdøren - doublepress
|
||||||
|
- service: notify.mobile_app_annes_iphone_xs
|
||||||
|
data:
|
||||||
|
message: Det ringer på bagdøren - doublepress
|
||||||
|
- choose:
|
||||||
|
- conditions:
|
||||||
|
- condition: time
|
||||||
|
after: '20:00:00'
|
||||||
|
before: 06:00:00
|
||||||
|
weekday:
|
||||||
|
- mon
|
||||||
|
- tue
|
||||||
|
- wed
|
||||||
|
- thu
|
||||||
|
- fri
|
||||||
|
- sat
|
||||||
|
- sun
|
||||||
|
sequence:
|
||||||
|
- service: media_player.volume_set
|
||||||
|
data:
|
||||||
|
volume_level: 0.5
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
- service: media_player.play_media
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
data:
|
||||||
|
media_content_id: media-source://media_source/local/german-shephard.mp3
|
||||||
|
media_content_type: audio/mpeg
|
||||||
|
metadata:
|
||||||
|
title: german-shephard.mp3
|
||||||
|
thumbnail:
|
||||||
|
media_class: music
|
||||||
|
children_media_class:
|
||||||
|
navigateIds:
|
||||||
|
- {}
|
||||||
|
- media_content_type: app
|
||||||
|
media_content_id: media-source://media_source
|
||||||
|
default:
|
||||||
|
- service: media_player.volume_set
|
||||||
|
data:
|
||||||
|
volume_level: 0.8
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
- service: media_player.play_media
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
data:
|
||||||
|
media_content_id: media-source://media_source/local/german-shephard.mp3
|
||||||
|
media_content_type: audio/mpeg
|
||||||
|
metadata:
|
||||||
|
title: german-shephard.mp3
|
||||||
|
thumbnail:
|
||||||
|
media_class: music
|
||||||
|
children_media_class:
|
||||||
|
navigateIds:
|
||||||
|
- {}
|
||||||
|
- media_content_type: app
|
||||||
|
media_content_id: media-source://media_source
|
||||||
|
|
||||||
|
- service: media_player.play_media
|
||||||
|
target:
|
||||||
|
entity_id: media_player.alrum
|
||||||
|
data:
|
||||||
|
media_content_id: media-source://tts/google_translate?message=der+er+nogen+der+ringer+p%C3%A5%0A
|
||||||
|
media_content_type: provider
|
||||||
|
metadata:
|
||||||
|
title: 'der er nogen der ringer på
|
||||||
|
|
||||||
|
'
|
||||||
|
thumbnail: https://brands.home-assistant.io/_/google_translate/logo.png
|
||||||
|
media_class: app
|
||||||
|
children_media_class:
|
||||||
|
navigateIds:
|
||||||
|
- {}
|
||||||
|
- media_content_type: app
|
||||||
|
media_content_id: media-source://tts
|
||||||
|
- media_content_type: provider
|
||||||
|
media_content_id: media-source://tts/google_translate?message=der+er+nogen+der+ringer+p%C3%A5%0A
|
||||||
|
|
||||||
|
- conditions:
|
||||||
|
- condition: template
|
||||||
|
value_template: '{{ trigger.payload_json.event == "SSS" }}'
|
||||||
|
sequence:
|
||||||
|
- service: notify.mobile_app_clausiphone
|
||||||
|
data:
|
||||||
|
message: Det ringer på bagdøren - triple-press
|
||||||
|
- service: notify.mobile_app_annes_iphone_xs
|
||||||
|
data:
|
||||||
|
message: Det ringer på bagdøren - triple-press
|
||||||
|
- choose:
|
||||||
|
- conditions:
|
||||||
|
- condition: time
|
||||||
|
after: '20:00:00'
|
||||||
|
before: 06:00:00
|
||||||
|
weekday:
|
||||||
|
- mon
|
||||||
|
- tue
|
||||||
|
- wed
|
||||||
|
- thu
|
||||||
|
- fri
|
||||||
|
- sat
|
||||||
|
- sun
|
||||||
|
sequence:
|
||||||
|
- service: media_player.volume_set
|
||||||
|
data:
|
||||||
|
volume_level: 0.5
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
- service: media_player.play_media
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
data:
|
||||||
|
media_content_id: media-source://media_source/local/dog-barking-2-bullmastiff.mp3
|
||||||
|
media_content_type: audio/mpeg
|
||||||
|
metadata:
|
||||||
|
title: dog-barking-2-bullmastiff.mp3
|
||||||
|
thumbnail:
|
||||||
|
media_class: music
|
||||||
|
children_media_class:
|
||||||
|
navigateIds:
|
||||||
|
- {}
|
||||||
|
- media_content_type: app
|
||||||
|
media_content_id: media-source://media_source
|
||||||
|
default:
|
||||||
|
- service: media_player.volume_set
|
||||||
|
data:
|
||||||
|
volume_level: 0.8
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
- service: media_player.play_media
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
data:
|
||||||
|
media_content_id: media-source://media_source/local/dog-barking-2-bullmastiff.mp3
|
||||||
|
media_content_type: audio/mpeg
|
||||||
|
metadata:
|
||||||
|
title: dog-barking-2-bullmastiff.mp3
|
||||||
|
thumbnail:
|
||||||
|
media_class: music
|
||||||
|
children_media_class:
|
||||||
|
navigateIds:
|
||||||
|
- {}
|
||||||
|
- media_content_type: app
|
||||||
|
media_content_id: media-source://media_source
|
||||||
|
|
||||||
|
- service: media_player.play_media
|
||||||
|
target:
|
||||||
|
entity_id: media_player.alrum
|
||||||
|
data:
|
||||||
|
media_content_id: media-source://tts/google_translate?message=der+er+nogen+der+ringer+p%C3%A5%0A
|
||||||
|
media_content_type: provider
|
||||||
|
metadata:
|
||||||
|
title: 'der er nogen der ringer på
|
||||||
|
|
||||||
|
'
|
||||||
|
thumbnail: https://brands.home-assistant.io/_/google_translate/logo.png
|
||||||
|
media_class: app
|
||||||
|
children_media_class:
|
||||||
|
navigateIds:
|
||||||
|
- {}
|
||||||
|
- media_content_type: app
|
||||||
|
media_content_id: media-source://tts
|
||||||
|
- media_content_type: provider
|
||||||
|
media_content_id: media-source://tts/google_translate?message=der+er+nogen+der+ringer+p%C3%A5%0A
|
||||||
|
|
||||||
|
- conditions:
|
||||||
|
- condition: template
|
||||||
|
value_template: '{{ trigger.payload_json.event == "L" }}'
|
||||||
|
sequence:
|
||||||
|
- service: notify.mobile_app_clausiphone
|
||||||
|
data:
|
||||||
|
message: Det ringer på bagdøren - long-press
|
||||||
|
- service: notify.mobile_app_annes_iphone_xs
|
||||||
|
data:
|
||||||
|
message: Det ringer på bagdøren - long-press
|
||||||
|
- choose:
|
||||||
|
- conditions:
|
||||||
|
- condition: time
|
||||||
|
after: '20:00:00'
|
||||||
|
before: 06:00:00
|
||||||
|
weekday:
|
||||||
|
- mon
|
||||||
|
- tue
|
||||||
|
- wed
|
||||||
|
- thu
|
||||||
|
- fri
|
||||||
|
- sat
|
||||||
|
- sun
|
||||||
|
sequence:
|
||||||
|
- service: media_player.volume_set
|
||||||
|
data:
|
||||||
|
volume_level: 0.5
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
- service: media_player.play_media
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
data:
|
||||||
|
media_content_id: media-source://media_source/local/two-tone-chime.mp3
|
||||||
|
media_content_type: audio/mpeg
|
||||||
|
metadata:
|
||||||
|
title: two-tone-chime.mp3
|
||||||
|
thumbnail:
|
||||||
|
media_class: music
|
||||||
|
children_media_class:
|
||||||
|
navigateIds:
|
||||||
|
- {}
|
||||||
|
- media_content_type: app
|
||||||
|
media_content_id: media-source://media_source
|
||||||
|
default:
|
||||||
|
- service: media_player.volume_set
|
||||||
|
data:
|
||||||
|
volume_level: 0.8
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
- service: media_player.play_media
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
data:
|
||||||
|
media_content_id: media-source://media_source/local/two-tone-chime.mp3
|
||||||
|
media_content_type: audio/mpeg
|
||||||
|
metadata:
|
||||||
|
title: two-tone-chime.mp3
|
||||||
|
thumbnail:
|
||||||
|
media_class: music
|
||||||
|
children_media_class:
|
||||||
|
navigateIds:
|
||||||
|
- {}
|
||||||
|
- media_content_type: app
|
||||||
|
media_content_id: media-source://media_source
|
||||||
|
|
||||||
|
- service: media_player.play_media
|
||||||
|
target:
|
||||||
|
entity_id: media_player.alrum
|
||||||
|
data:
|
||||||
|
media_content_id: media-source://tts/google_translate?message=der+er+nogen+der+ringer+p%C3%A5%0A
|
||||||
|
media_content_type: provider
|
||||||
|
metadata:
|
||||||
|
title: 'der er nogen der ringer på
|
||||||
|
|
||||||
|
'
|
||||||
|
thumbnail: https://brands.home-assistant.io/_/google_translate/logo.png
|
||||||
|
media_class: app
|
||||||
|
children_media_class:
|
||||||
|
navigateIds:
|
||||||
|
- {}
|
||||||
|
- media_content_type: app
|
||||||
|
media_content_id: media-source://tts
|
||||||
|
- media_content_type: provider
|
||||||
|
media_content_id: media-source://tts/google_translate?message=der+er+nogen+der+ringer+p%C3%A5%0A
|
||||||
|
|
||||||
|
mode: single
|
||||||
|
trigger_variables:
|
||||||
|
button_id: 98CDAC1E5F42
|
||||||
@@ -0,0 +1,390 @@
|
|||||||
|
# logik
|
||||||
|
# hvis om dagen, så høj lydstyrke. Gem sonos-config. udkoble alle. Ding-dong i lille bad og hund der gør i alrum. Blink med lamperne.
|
||||||
|
# send push besked til telefoner
|
||||||
|
|
||||||
|
|
||||||
|
- id: '1672567487970'
|
||||||
|
alias: Ringklokke fordør
|
||||||
|
description: Når det ringer på fordør, send besked, lav lyd og blink
|
||||||
|
trigger:
|
||||||
|
- platform: mqtt
|
||||||
|
topic: '{{''shellies/shellybutton1-'' ~ button_id ~ ''/input_event/0''}}'
|
||||||
|
condition: []
|
||||||
|
action:
|
||||||
|
- choose:
|
||||||
|
- conditions:
|
||||||
|
- condition: template
|
||||||
|
value_template: '{{ trigger.payload_json.event == "S" }}'
|
||||||
|
sequence:
|
||||||
|
- service: notify.mobile_app_clausiphone
|
||||||
|
data:
|
||||||
|
message: Det ringer på fordøren
|
||||||
|
- service: notify.mobile_app_annes_iphone_xs
|
||||||
|
data:
|
||||||
|
message: Det ringer på fordøren
|
||||||
|
- choose:
|
||||||
|
- conditions:
|
||||||
|
- condition: time
|
||||||
|
after: '20:00:00'
|
||||||
|
before: 06:00:00
|
||||||
|
weekday:
|
||||||
|
- mon
|
||||||
|
- tue
|
||||||
|
- wed
|
||||||
|
- thu
|
||||||
|
- fri
|
||||||
|
- sat
|
||||||
|
- sun
|
||||||
|
sequence:
|
||||||
|
- service: media_player.volume_set
|
||||||
|
data:
|
||||||
|
volume_level: 0.5
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
- service: media_player.play_media
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
data:
|
||||||
|
media_content_id: media-source://media_source/local/doorbell-shortened-100308.mp3
|
||||||
|
media_content_type: audio/mpeg
|
||||||
|
metadata:
|
||||||
|
title: doorbell-shortened-100308.mp3
|
||||||
|
thumbnail:
|
||||||
|
media_class: music
|
||||||
|
children_media_class:
|
||||||
|
navigateIds:
|
||||||
|
- {}
|
||||||
|
- media_content_type: app
|
||||||
|
media_content_id: media-source://media_source
|
||||||
|
- service: scene.create
|
||||||
|
data:
|
||||||
|
scene_id: before
|
||||||
|
snapshot_entities:
|
||||||
|
- light.pendle1
|
||||||
|
- service: light.turn_on
|
||||||
|
data:
|
||||||
|
entity_id: light.pendle1
|
||||||
|
brightness: 255
|
||||||
|
rgb_color: [255, 0, 0]
|
||||||
|
flash: long
|
||||||
|
- delay: 2
|
||||||
|
- service: scene.turn_on
|
||||||
|
entity_id: scene.before
|
||||||
|
|
||||||
|
default:
|
||||||
|
- service: media_player.volume_set
|
||||||
|
data:
|
||||||
|
volume_level: 0.8
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
- service: media_player.play_media
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
data:
|
||||||
|
media_content_id: media-source://media_source/local/doorbell.mp3
|
||||||
|
media_content_type: audio/mpeg
|
||||||
|
metadata:
|
||||||
|
title: doorbell.mp3
|
||||||
|
thumbnail:
|
||||||
|
media_class: music
|
||||||
|
children_media_class:
|
||||||
|
navigateIds:
|
||||||
|
- {}
|
||||||
|
- media_content_type: app
|
||||||
|
media_content_id: media-source://media_source
|
||||||
|
|
||||||
|
- service: media_player.play_media
|
||||||
|
target:
|
||||||
|
entity_id: media_player.alrum
|
||||||
|
data:
|
||||||
|
media_content_id: media-source://tts/google_translate?message=der+er+nogen+der+ringer+p%C3%A5%0A
|
||||||
|
media_content_type: provider
|
||||||
|
metadata:
|
||||||
|
title: 'der er nogen der ringer på
|
||||||
|
|
||||||
|
'
|
||||||
|
thumbnail: https://brands.home-assistant.io/_/google_translate/logo.png
|
||||||
|
media_class: app
|
||||||
|
children_media_class:
|
||||||
|
navigateIds:
|
||||||
|
- {}
|
||||||
|
- media_content_type: app
|
||||||
|
media_content_id: media-source://tts
|
||||||
|
- media_content_type: provider
|
||||||
|
media_content_id: media-source://tts/google_translate?message=der+er+nogen+der+ringer+p%C3%A5%0A
|
||||||
|
- service: scene.create
|
||||||
|
data:
|
||||||
|
scene_id: before
|
||||||
|
snapshot_entities:
|
||||||
|
- light.pendle1
|
||||||
|
- service: light.turn_on
|
||||||
|
data:
|
||||||
|
entity_id: light.pendle1
|
||||||
|
brightness: 255
|
||||||
|
rgb_color: [255, 0, 0]
|
||||||
|
flash: long
|
||||||
|
- delay: 2
|
||||||
|
- service: scene.turn_on
|
||||||
|
entity_id: scene.before
|
||||||
|
|
||||||
|
- conditions:
|
||||||
|
- condition: template
|
||||||
|
value_template: '{{ trigger.payload_json.event == "SS" }}'
|
||||||
|
sequence:
|
||||||
|
- service: notify.mobile_app_clausiphone
|
||||||
|
data:
|
||||||
|
message: Det ringer på fordøren - doublepress
|
||||||
|
- service: notify.mobile_app_annes_iphone_xs
|
||||||
|
data:
|
||||||
|
message: Det ringer på fordøren - doublepress
|
||||||
|
- choose:
|
||||||
|
- conditions:
|
||||||
|
- condition: time
|
||||||
|
after: '20:00:00'
|
||||||
|
before: 06:00:00
|
||||||
|
weekday:
|
||||||
|
- mon
|
||||||
|
- tue
|
||||||
|
- wed
|
||||||
|
- thu
|
||||||
|
- fri
|
||||||
|
- sat
|
||||||
|
- sun
|
||||||
|
sequence:
|
||||||
|
- service: media_player.volume_set
|
||||||
|
data:
|
||||||
|
volume_level: 0.5
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
- service: media_player.play_media
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
data:
|
||||||
|
media_content_id: media-source://media_source/local/german-shephard.mp3
|
||||||
|
media_content_type: audio/mpeg
|
||||||
|
metadata:
|
||||||
|
title: german-shephard.mp3
|
||||||
|
thumbnail:
|
||||||
|
media_class: music
|
||||||
|
children_media_class:
|
||||||
|
navigateIds:
|
||||||
|
- {}
|
||||||
|
- media_content_type: app
|
||||||
|
media_content_id: media-source://media_source
|
||||||
|
default:
|
||||||
|
- service: media_player.volume_set
|
||||||
|
data:
|
||||||
|
volume_level: 0.8
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
- service: media_player.play_media
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
data:
|
||||||
|
media_content_id: media-source://media_source/local/german-shephard.mp3
|
||||||
|
media_content_type: audio/mpeg
|
||||||
|
metadata:
|
||||||
|
title: german-shephard.mp3
|
||||||
|
thumbnail:
|
||||||
|
media_class: music
|
||||||
|
children_media_class:
|
||||||
|
navigateIds:
|
||||||
|
- {}
|
||||||
|
- media_content_type: app
|
||||||
|
media_content_id: media-source://media_source
|
||||||
|
|
||||||
|
- service: media_player.play_media
|
||||||
|
target:
|
||||||
|
entity_id: media_player.alrum
|
||||||
|
data:
|
||||||
|
media_content_id: media-source://tts/google_translate?message=der+er+nogen+der+ringer+p%C3%A5%0A
|
||||||
|
media_content_type: provider
|
||||||
|
metadata:
|
||||||
|
title: 'der er nogen der ringer på
|
||||||
|
|
||||||
|
'
|
||||||
|
thumbnail: https://brands.home-assistant.io/_/google_translate/logo.png
|
||||||
|
media_class: app
|
||||||
|
children_media_class:
|
||||||
|
navigateIds:
|
||||||
|
- {}
|
||||||
|
- media_content_type: app
|
||||||
|
media_content_id: media-source://tts
|
||||||
|
- media_content_type: provider
|
||||||
|
media_content_id: media-source://tts/google_translate?message=der+er+nogen+der+ringer+p%C3%A5%0A
|
||||||
|
|
||||||
|
- conditions:
|
||||||
|
- condition: template
|
||||||
|
value_template: '{{ trigger.payload_json.event == "SSS" }}'
|
||||||
|
sequence:
|
||||||
|
- service: notify.mobile_app_clausiphone
|
||||||
|
data:
|
||||||
|
message: Det ringer på fordøren - triple-press
|
||||||
|
- service: notify.mobile_app_annes_iphone_xs
|
||||||
|
data:
|
||||||
|
message: Det ringer på fordøren - triple-press
|
||||||
|
- choose:
|
||||||
|
- conditions:
|
||||||
|
- condition: time
|
||||||
|
after: '20:00:00'
|
||||||
|
before: 06:00:00
|
||||||
|
weekday:
|
||||||
|
- mon
|
||||||
|
- tue
|
||||||
|
- wed
|
||||||
|
- thu
|
||||||
|
- fri
|
||||||
|
- sat
|
||||||
|
- sun
|
||||||
|
sequence:
|
||||||
|
- service: media_player.volume_set
|
||||||
|
data:
|
||||||
|
volume_level: 0.5
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
- service: media_player.play_media
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
data:
|
||||||
|
media_content_id: media-source://media_source/local/dog-barking-2-bullmastiff.mp3
|
||||||
|
media_content_type: audio/mpeg
|
||||||
|
metadata:
|
||||||
|
title: dog-barking-2-bullmastiff.mp3
|
||||||
|
thumbnail:
|
||||||
|
media_class: music
|
||||||
|
children_media_class:
|
||||||
|
navigateIds:
|
||||||
|
- {}
|
||||||
|
- media_content_type: app
|
||||||
|
media_content_id: media-source://media_source
|
||||||
|
default:
|
||||||
|
- service: media_player.volume_set
|
||||||
|
data:
|
||||||
|
volume_level: 0.8
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
- service: media_player.play_media
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
data:
|
||||||
|
media_content_id: media-source://media_source/local/dog-barking-2-bullmastiff.mp3
|
||||||
|
media_content_type: audio/mpeg
|
||||||
|
metadata:
|
||||||
|
title: dog-barking-2-bullmastiff.mp3
|
||||||
|
thumbnail:
|
||||||
|
media_class: music
|
||||||
|
children_media_class:
|
||||||
|
navigateIds:
|
||||||
|
- {}
|
||||||
|
- media_content_type: app
|
||||||
|
media_content_id: media-source://media_source
|
||||||
|
|
||||||
|
- service: media_player.play_media
|
||||||
|
target:
|
||||||
|
entity_id: media_player.alrum
|
||||||
|
data:
|
||||||
|
media_content_id: media-source://tts/google_translate?message=der+er+nogen+der+ringer+p%C3%A5%0A
|
||||||
|
media_content_type: provider
|
||||||
|
metadata:
|
||||||
|
title: 'der er nogen der ringer på
|
||||||
|
|
||||||
|
'
|
||||||
|
thumbnail: https://brands.home-assistant.io/_/google_translate/logo.png
|
||||||
|
media_class: app
|
||||||
|
children_media_class:
|
||||||
|
navigateIds:
|
||||||
|
- {}
|
||||||
|
- media_content_type: app
|
||||||
|
media_content_id: media-source://tts
|
||||||
|
- media_content_type: provider
|
||||||
|
media_content_id: media-source://tts/google_translate?message=der+er+nogen+der+ringer+p%C3%A5%0A
|
||||||
|
|
||||||
|
- conditions:
|
||||||
|
- condition: template
|
||||||
|
value_template: '{{ trigger.payload_json.event == "L" }}'
|
||||||
|
sequence:
|
||||||
|
- service: notify.mobile_app_clausiphone
|
||||||
|
data:
|
||||||
|
message: Det ringer på fordøren - long-press
|
||||||
|
- service: notify.mobile_app_annes_iphone_xs
|
||||||
|
data:
|
||||||
|
message: Det ringer på fordøren - long-press
|
||||||
|
- choose:
|
||||||
|
- conditions:
|
||||||
|
- condition: time
|
||||||
|
after: '20:00:00'
|
||||||
|
before: 06:00:00
|
||||||
|
weekday:
|
||||||
|
- mon
|
||||||
|
- tue
|
||||||
|
- wed
|
||||||
|
- thu
|
||||||
|
- fri
|
||||||
|
- sat
|
||||||
|
- sun
|
||||||
|
sequence:
|
||||||
|
- service: media_player.volume_set
|
||||||
|
data:
|
||||||
|
volume_level: 0.5
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
- service: media_player.play_media
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
data:
|
||||||
|
media_content_id: media-source://media_source/local/two-tone-chime.mp3
|
||||||
|
media_content_type: audio/mpeg
|
||||||
|
metadata:
|
||||||
|
title: two-tone-chime.mp3
|
||||||
|
thumbnail:
|
||||||
|
media_class: music
|
||||||
|
children_media_class:
|
||||||
|
navigateIds:
|
||||||
|
- {}
|
||||||
|
- media_content_type: app
|
||||||
|
media_content_id: media-source://media_source
|
||||||
|
default:
|
||||||
|
- service: media_player.volume_set
|
||||||
|
data:
|
||||||
|
volume_level: 0.8
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
- service: media_player.play_media
|
||||||
|
target:
|
||||||
|
entity_id: media_player.lille_badevaerelse
|
||||||
|
data:
|
||||||
|
media_content_id: media-source://media_source/local/two-tone-chime.mp3
|
||||||
|
media_content_type: audio/mpeg
|
||||||
|
metadata:
|
||||||
|
title: two-tone-chime.mp3
|
||||||
|
thumbnail:
|
||||||
|
media_class: music
|
||||||
|
children_media_class:
|
||||||
|
navigateIds:
|
||||||
|
- {}
|
||||||
|
- media_content_type: app
|
||||||
|
media_content_id: media-source://media_source
|
||||||
|
|
||||||
|
- service: media_player.play_media
|
||||||
|
target:
|
||||||
|
entity_id: media_player.alrum
|
||||||
|
data:
|
||||||
|
media_content_id: media-source://tts/google_translate?message=der+er+nogen+der+ringer+p%C3%A5%0A
|
||||||
|
media_content_type: provider
|
||||||
|
metadata:
|
||||||
|
title: 'der er nogen der ringer på
|
||||||
|
|
||||||
|
'
|
||||||
|
thumbnail: https://brands.home-assistant.io/_/google_translate/logo.png
|
||||||
|
media_class: app
|
||||||
|
children_media_class:
|
||||||
|
navigateIds:
|
||||||
|
- {}
|
||||||
|
- media_content_type: app
|
||||||
|
media_content_id: media-source://tts
|
||||||
|
- media_content_type: provider
|
||||||
|
media_content_id: media-source://tts/google_translate?message=der+er+nogen+der+ringer+p%C3%A5%0A
|
||||||
|
|
||||||
|
mode: single
|
||||||
|
trigger_variables:
|
||||||
|
button_id: C45BBE6A5696
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
- alias: 'Ventilator tænd hvis høj temperatur'
|
||||||
|
trigger:
|
||||||
|
platform: numeric_state
|
||||||
|
entity_id: sensor.dethlefsen_average_disk_temp
|
||||||
|
above: 30
|
||||||
|
condition:
|
||||||
|
- condition: time
|
||||||
|
after: '06:30:00'
|
||||||
|
before: '18:00:00'
|
||||||
|
action:
|
||||||
|
- service: homeassistant.turn_on
|
||||||
|
entity_id:
|
||||||
|
- light.sonoff_1000a70ca0
|
||||||
|
|
||||||
|
- alias: 'Ventilator sluk hvis ok temperatur'
|
||||||
|
trigger:
|
||||||
|
platform: numeric_state
|
||||||
|
entity_id: sensor.dethlefsen_average_disk_temp
|
||||||
|
below: 28
|
||||||
|
action:
|
||||||
|
- service: homeassistant.turn_off
|
||||||
|
entity_id:
|
||||||
|
- light.sonoff_1000a70ca0
|
||||||
|
|
||||||
|
- alias: 'Ventilator sluk kl 18.01'
|
||||||
|
trigger:
|
||||||
|
platform: time
|
||||||
|
at: '18:01:00'
|
||||||
|
action:
|
||||||
|
- service: homeassistant.turn_off
|
||||||
|
entity_id:
|
||||||
|
- light.sonoff_1000a70ca0
|
||||||
|
|
||||||
|
|
||||||
@@ -0,0 +1,94 @@
|
|||||||
|
# - alias: 'Lys Andreas dag - arbejdsdag - sunrise'
|
||||||
|
# trigger:
|
||||||
|
# platform: time
|
||||||
|
# at: '06:00:00'
|
||||||
|
# condition:
|
||||||
|
# - condition: state
|
||||||
|
# entity_id: binary_sensor.arbejdsdag
|
||||||
|
# state: 'on'
|
||||||
|
# action:
|
||||||
|
# - service: script.sunrise
|
||||||
|
|
||||||
|
|
||||||
|
- alias: 'Lys Andreas dag - arbejdsdag'
|
||||||
|
trigger:
|
||||||
|
platform: state
|
||||||
|
entity_id: binary_sensor.hue_motion_sensor_2_motion_2
|
||||||
|
to: 'on'
|
||||||
|
condition:
|
||||||
|
- condition: numeric_state
|
||||||
|
entity_id: sensor.hue_motion_sensor_2_illuminance_2
|
||||||
|
below: 90
|
||||||
|
- condition: state
|
||||||
|
entity_id: binary_sensor.arbejdsdag
|
||||||
|
state: 'on'
|
||||||
|
- condition: time
|
||||||
|
after: '06:30:00'
|
||||||
|
before: '19:30:00'
|
||||||
|
action:
|
||||||
|
- service: homeassistant.turn_on
|
||||||
|
target:
|
||||||
|
entity_id: light.andreas_vaerelse
|
||||||
|
data:
|
||||||
|
brightness_pct: 100
|
||||||
|
|
||||||
|
- alias: 'Lys Andreas dag - ikke arbejdsdag'
|
||||||
|
trigger:
|
||||||
|
platform: state
|
||||||
|
entity_id: binary_sensor.hue_motion_sensor_2_motion_2
|
||||||
|
to: 'on'
|
||||||
|
condition:
|
||||||
|
- condition: numeric_state
|
||||||
|
entity_id: sensor.hue_motion_sensor_2_illuminance_2
|
||||||
|
below: 90
|
||||||
|
- condition: state
|
||||||
|
entity_id: binary_sensor.arbejdsdag
|
||||||
|
state: 'off'
|
||||||
|
- condition: time
|
||||||
|
after: '10:00:00'
|
||||||
|
before: '20:30:00'
|
||||||
|
action:
|
||||||
|
- service: homeassistant.turn_on
|
||||||
|
target:
|
||||||
|
entity_id: light.andreas_vaerelse
|
||||||
|
data:
|
||||||
|
brightness_pct: 100
|
||||||
|
|
||||||
|
# - alias: 'Lys Andreas aften'
|
||||||
|
# trigger:
|
||||||
|
# platform: state
|
||||||
|
# entity_id: binary_sensor.hue_motion_sensor_2_motion_2
|
||||||
|
# to: 'on'
|
||||||
|
# condition:
|
||||||
|
# - condition: numeric_state
|
||||||
|
# entity_id: sensor.hue_motion_sensor_2_illuminance_2
|
||||||
|
# below: 90
|
||||||
|
# - condition: time
|
||||||
|
# after: '20:00:01'
|
||||||
|
# before: '21:00:00'
|
||||||
|
# action:
|
||||||
|
# - service: homeassistant.turn_on
|
||||||
|
# target:
|
||||||
|
# entity_id: light.andreas_vaerelse
|
||||||
|
# data:
|
||||||
|
# brightness_pct: 50
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
- alias: 'Sluk lys i Andreas'
|
||||||
|
trigger:
|
||||||
|
platform: state
|
||||||
|
entity_id: binary_sensor.hue_motion_sensor_2_motion_2
|
||||||
|
to: 'off'
|
||||||
|
for:
|
||||||
|
minutes: 15
|
||||||
|
condition:
|
||||||
|
- condition: time
|
||||||
|
after: '06:30:00'
|
||||||
|
before: '20:00:00'
|
||||||
|
action:
|
||||||
|
- service: homeassistant.turn_off
|
||||||
|
data:
|
||||||
|
entity_id:
|
||||||
|
- light.andreas_vaerelse
|
||||||
|
|
||||||
@@ -0,0 +1,94 @@
|
|||||||
|
# - alias: 'Lys Daniel dag - arbejdsdag - sunrise'
|
||||||
|
# trigger:
|
||||||
|
# platform: time
|
||||||
|
# at: '06:00:00'
|
||||||
|
# condition:
|
||||||
|
# - condition: state
|
||||||
|
# entity_id: binary_sensor.arbejdsdag
|
||||||
|
# state: 'on'
|
||||||
|
# action:
|
||||||
|
# - service: script.sunrise
|
||||||
|
|
||||||
|
|
||||||
|
- alias: 'Lys Daniel dag - arbejdsdag'
|
||||||
|
trigger:
|
||||||
|
platform: state
|
||||||
|
entity_id: binary_sensor.hue_motion_sensor_2_motion
|
||||||
|
to: 'on'
|
||||||
|
condition:
|
||||||
|
- condition: numeric_state
|
||||||
|
entity_id: sensor.hue_motion_sensor_2_illuminance
|
||||||
|
below: 90
|
||||||
|
- condition: state
|
||||||
|
entity_id: binary_sensor.arbejdsdag
|
||||||
|
state: 'on'
|
||||||
|
- condition: time
|
||||||
|
after: '06:30:00'
|
||||||
|
before: '19:30:00'
|
||||||
|
action:
|
||||||
|
- service: homeassistant.turn_on
|
||||||
|
target:
|
||||||
|
entity_id: light.daniels_vaerelse
|
||||||
|
data:
|
||||||
|
brightness_pct: 100
|
||||||
|
|
||||||
|
- alias: 'Lys Daniel dag - ikke arbejdsdag'
|
||||||
|
trigger:
|
||||||
|
platform: state
|
||||||
|
entity_id: binary_sensor.hue_motion_sensor_2_motion
|
||||||
|
to: 'on'
|
||||||
|
condition:
|
||||||
|
- condition: numeric_state
|
||||||
|
entity_id: sensor.hue_motion_sensor_2_illuminance
|
||||||
|
below: 90
|
||||||
|
- condition: state
|
||||||
|
entity_id: binary_sensor.arbejdsdag
|
||||||
|
state: 'off'
|
||||||
|
- condition: time
|
||||||
|
after: '10:00:00'
|
||||||
|
before: '20:30:00'
|
||||||
|
action:
|
||||||
|
- service: homeassistant.turn_on
|
||||||
|
target:
|
||||||
|
entity_id: light.daniels_vaerelse
|
||||||
|
data:
|
||||||
|
brightness_pct: 100
|
||||||
|
|
||||||
|
# - alias: 'Lys Daniel aften'
|
||||||
|
# trigger:
|
||||||
|
# platform: state
|
||||||
|
# entity_id: binary_sensor.hue_motion_sensor_2_motion
|
||||||
|
# to: 'on'
|
||||||
|
# condition:
|
||||||
|
# - condition: numeric_state
|
||||||
|
# entity_id: sensor.hue_motion_sensor_2_illuminance
|
||||||
|
# below: 90
|
||||||
|
# - condition: time
|
||||||
|
# after: '20:00:01'
|
||||||
|
# before: '21:00:00'
|
||||||
|
# action:
|
||||||
|
# - service: homeassistant.turn_on
|
||||||
|
# target:
|
||||||
|
# entity_id: light.daniels_vaerelse
|
||||||
|
# data:
|
||||||
|
# brightness_pct: 50
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
- alias: 'Sluk lys i Daniel'
|
||||||
|
trigger:
|
||||||
|
platform: state
|
||||||
|
entity_id: binary_sensor.hue_motion_sensor_2_motion
|
||||||
|
to: 'off'
|
||||||
|
for:
|
||||||
|
minutes: 15
|
||||||
|
condition:
|
||||||
|
- condition: time
|
||||||
|
after: '06:30:00'
|
||||||
|
before: '20:00:00'
|
||||||
|
action:
|
||||||
|
- service: homeassistant.turn_off
|
||||||
|
data:
|
||||||
|
entity_id:
|
||||||
|
- light.daniels_vaerelse
|
||||||
|
|
||||||
@@ -0,0 +1,77 @@
|
|||||||
|
|
||||||
|
- alias: 'Lys sauna dag - arbejdsdag'
|
||||||
|
trigger:
|
||||||
|
platform: state
|
||||||
|
entity_id: binary_sensor.sauna_motion_motion
|
||||||
|
to: 'on'
|
||||||
|
condition:
|
||||||
|
- condition: numeric_state
|
||||||
|
entity_id: sensor.sauna_motion_illuminance
|
||||||
|
below: 90
|
||||||
|
- condition: state
|
||||||
|
entity_id: binary_sensor.arbejdsdag
|
||||||
|
state: 'on'
|
||||||
|
- condition: time
|
||||||
|
before: '22:30:00'
|
||||||
|
- condition: time
|
||||||
|
after: '06:00:00'
|
||||||
|
action:
|
||||||
|
- service: scene.turn_on
|
||||||
|
data:
|
||||||
|
entity_id: scene.sauna_klar
|
||||||
|
|
||||||
|
- alias: 'Lys sauna dag - ikke arbejdsdag'
|
||||||
|
trigger:
|
||||||
|
platform: state
|
||||||
|
entity_id: binary_sensor.sauna_motion_motion
|
||||||
|
to: 'on'
|
||||||
|
condition:
|
||||||
|
- condition: numeric_state
|
||||||
|
entity_id: sensor.sauna_motion_illuminance
|
||||||
|
below: 90
|
||||||
|
- condition: state
|
||||||
|
entity_id: binary_sensor.arbejdsdag
|
||||||
|
state: 'off'
|
||||||
|
- condition: time
|
||||||
|
before: '22:30:00'
|
||||||
|
- condition: time
|
||||||
|
after: '06:00:00'
|
||||||
|
action:
|
||||||
|
- service: scene.turn_on
|
||||||
|
data:
|
||||||
|
entity_id: scene.sauna_klar
|
||||||
|
|
||||||
|
|
||||||
|
- alias: 'Lys i sauna - nat'
|
||||||
|
trigger:
|
||||||
|
platform: state
|
||||||
|
entity_id: binary_sensor.sauna_motion_motion
|
||||||
|
to: 'on'
|
||||||
|
condition:
|
||||||
|
- condition: numeric_state
|
||||||
|
entity_id: sensor.sauna_motion_illuminance
|
||||||
|
below: '70'
|
||||||
|
- condition: time
|
||||||
|
after: '22:30:00'
|
||||||
|
- condition: time
|
||||||
|
before: '06:00:00'
|
||||||
|
action:
|
||||||
|
- service: scene.turn_on
|
||||||
|
data:
|
||||||
|
entity_id: scene.sauna_daempet
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
- alias: 'Sluk lys i sauna'
|
||||||
|
trigger:
|
||||||
|
platform: state
|
||||||
|
entity_id: binary_sensor.sauna_motion_motion
|
||||||
|
to: 'off'
|
||||||
|
for:
|
||||||
|
minutes: 2
|
||||||
|
action:
|
||||||
|
- service: homeassistant.turn_off
|
||||||
|
data:
|
||||||
|
entity_id:
|
||||||
|
- light.sauna
|
||||||
|
|
||||||
@@ -0,0 +1,169 @@
|
|||||||
|
- alias: 'Lys soveværelse dag - arbejdsdag - sunrise'
|
||||||
|
trigger:
|
||||||
|
platform: time
|
||||||
|
at: '06:00:00'
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: binary_sensor.arbejdsdag
|
||||||
|
state: 'on'
|
||||||
|
action:
|
||||||
|
- service: script.sunrise
|
||||||
|
|
||||||
|
|
||||||
|
- alias: 'Lys soveværelse dag - arbejdsdag'
|
||||||
|
trigger:
|
||||||
|
platform: state
|
||||||
|
entity_id: binary_sensor.hue_motion_sensor_1_motion_2
|
||||||
|
to: 'on'
|
||||||
|
condition:
|
||||||
|
- condition: numeric_state
|
||||||
|
entity_id: sensor.hue_motion_sensor_1_illuminance_2
|
||||||
|
below: 90
|
||||||
|
- condition: state
|
||||||
|
entity_id: binary_sensor.arbejdsdag
|
||||||
|
state: 'on'
|
||||||
|
- condition: time
|
||||||
|
after: '06:30:00'
|
||||||
|
before: '20:00:00'
|
||||||
|
action:
|
||||||
|
- service: homeassistant.turn_on
|
||||||
|
target:
|
||||||
|
entity_id: light.sovevaerelse_2
|
||||||
|
data:
|
||||||
|
brightness_pct: 100
|
||||||
|
|
||||||
|
- alias: 'Lys soveværelse dag - ikke arbejdsdag'
|
||||||
|
trigger:
|
||||||
|
platform: state
|
||||||
|
entity_id: binary_sensor.hue_motion_sensor_1_motion_2
|
||||||
|
to: 'on'
|
||||||
|
condition:
|
||||||
|
- condition: numeric_state
|
||||||
|
entity_id: sensor.hue_motion_sensor_1_illuminance_2
|
||||||
|
below: 90
|
||||||
|
- condition: state
|
||||||
|
entity_id: binary_sensor.arbejdsdag
|
||||||
|
state: 'off'
|
||||||
|
- condition: time
|
||||||
|
after: '10:00:00'
|
||||||
|
before: '20:00:00'
|
||||||
|
action:
|
||||||
|
- service: homeassistant.turn_on
|
||||||
|
target:
|
||||||
|
entity_id: light.sovevaerelse_2
|
||||||
|
data:
|
||||||
|
brightness_pct: 100
|
||||||
|
|
||||||
|
- alias: 'Lys soveværelse aften'
|
||||||
|
trigger:
|
||||||
|
platform: state
|
||||||
|
entity_id: binary_sensor.hue_motion_sensor_1_motion_2
|
||||||
|
to: 'on'
|
||||||
|
condition:
|
||||||
|
- condition: numeric_state
|
||||||
|
entity_id: sensor.hue_motion_sensor_1_illuminance_2
|
||||||
|
below: 90
|
||||||
|
- condition: time
|
||||||
|
after: '20:00:01'
|
||||||
|
before: '21:00:00'
|
||||||
|
action:
|
||||||
|
- service: homeassistant.turn_on
|
||||||
|
target:
|
||||||
|
entity_id: light.sovevaerelse_2
|
||||||
|
data:
|
||||||
|
brightness_pct: 50
|
||||||
|
|
||||||
|
- alias: 'Lys soveværelse godnat'
|
||||||
|
trigger:
|
||||||
|
platform: state
|
||||||
|
entity_id: binary_sensor.hue_motion_sensor_1_motion_2
|
||||||
|
to: 'on'
|
||||||
|
condition:
|
||||||
|
- condition: numeric_state
|
||||||
|
entity_id: sensor.hue_motion_sensor_1_illuminance_2
|
||||||
|
below: 90
|
||||||
|
- condition: time
|
||||||
|
after: '21:00:01'
|
||||||
|
before: '22:00:00'
|
||||||
|
action:
|
||||||
|
- service: scene.apply
|
||||||
|
data:
|
||||||
|
entities:
|
||||||
|
light.sov_dor:
|
||||||
|
state: "on"
|
||||||
|
brightness_pct: 30
|
||||||
|
rgb_color: [255, 7, 129]
|
||||||
|
light.sov_midt:
|
||||||
|
state: "on"
|
||||||
|
brightness_pct: 30
|
||||||
|
rgb_color: [255, 7, 129]
|
||||||
|
light.sov_vindue:
|
||||||
|
state: "on"
|
||||||
|
brightness_pct: 30
|
||||||
|
rgb_color: [255, 7, 129]
|
||||||
|
|
||||||
|
- alias: 'Lys soveværelse godnat 2'
|
||||||
|
trigger:
|
||||||
|
platform: state
|
||||||
|
entity_id: binary_sensor.hue_motion_sensor_1_motion_2
|
||||||
|
to: 'on'
|
||||||
|
condition:
|
||||||
|
- condition: numeric_state
|
||||||
|
entity_id: sensor.hue_motion_sensor_1_illuminance_2
|
||||||
|
below: 90
|
||||||
|
- condition: time
|
||||||
|
after: '22:00:01'
|
||||||
|
before: '23:00:00'
|
||||||
|
action:
|
||||||
|
- service: scene.apply
|
||||||
|
data:
|
||||||
|
entities:
|
||||||
|
light.sov_dor:
|
||||||
|
state: "on"
|
||||||
|
brightness_pct: 25
|
||||||
|
rgb_color: [255, 7, 129]
|
||||||
|
light.sov_vindue:
|
||||||
|
state: "on"
|
||||||
|
brightness_pct: 25
|
||||||
|
rgb_color: [255, 7, 129]
|
||||||
|
|
||||||
|
- alias: 'Lys soveværelse godnat 3'
|
||||||
|
trigger:
|
||||||
|
platform: state
|
||||||
|
entity_id: binary_sensor.hue_motion_sensor_1_motion_2
|
||||||
|
to: 'on'
|
||||||
|
condition:
|
||||||
|
- condition: numeric_state
|
||||||
|
entity_id: sensor.hue_motion_sensor_1_illuminance_2
|
||||||
|
below: 90
|
||||||
|
- condition: time
|
||||||
|
after: '23:00:01'
|
||||||
|
before: '23:30:00'
|
||||||
|
action:
|
||||||
|
- service: scene.apply
|
||||||
|
data:
|
||||||
|
entities:
|
||||||
|
light.sov_midt:
|
||||||
|
state: "on"
|
||||||
|
brightness_pct: 1
|
||||||
|
color_temp: 500
|
||||||
|
rgb_color: [255, 7, 129]
|
||||||
|
|
||||||
|
|
||||||
|
- alias: 'Sluk lys i soveværelse'
|
||||||
|
trigger:
|
||||||
|
platform: state
|
||||||
|
entity_id: binary_sensor.hue_motion_sensor_1_motion_2
|
||||||
|
to: 'off'
|
||||||
|
for:
|
||||||
|
minutes: 1
|
||||||
|
condition:
|
||||||
|
- condition: time
|
||||||
|
after: '06:30:00'
|
||||||
|
before: '20:00:00'
|
||||||
|
action:
|
||||||
|
- service: homeassistant.turn_off
|
||||||
|
data:
|
||||||
|
entity_id:
|
||||||
|
- light.sovevaerelse_2
|
||||||
|
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
### Set temperature to 24 in heat mode
|
||||||
|
- alias: "Tænd varme i kontor"
|
||||||
|
trigger:
|
||||||
|
platform: time
|
||||||
|
at: "19:30:00"
|
||||||
|
action:
|
||||||
|
- service: climate.set_temperature
|
||||||
|
target:
|
||||||
|
entity_id: climate.kontor
|
||||||
|
data:
|
||||||
|
temperature: 24
|
||||||
|
hvac_mode: heat
|
||||||
@@ -12,3 +12,18 @@
|
|||||||
- '2022-12-30'
|
- '2022-12-30'
|
||||||
- '2022-12-31'
|
- '2022-12-31'
|
||||||
- '2023-01-01'
|
- '2023-01-01'
|
||||||
|
- platform: workday
|
||||||
|
name: ArbejdsdagImorgen
|
||||||
|
days_offset: 1
|
||||||
|
country: DK
|
||||||
|
add_holidays:
|
||||||
|
- '2022-12-23'
|
||||||
|
- '2022-12-24'
|
||||||
|
- '2022-12-25'
|
||||||
|
- '2022-12-26'
|
||||||
|
- '2022-12-27'
|
||||||
|
- '2022-12-28'
|
||||||
|
- '2022-12-29'
|
||||||
|
- '2022-12-30'
|
||||||
|
- '2022-12-31'
|
||||||
|
- '2023-01-01'
|
||||||
|
|||||||
@@ -0,0 +1,20 @@
|
|||||||
|
colorloopgang:
|
||||||
|
alias: Color Loop
|
||||||
|
use_blueprint:
|
||||||
|
path: mdolnik/color_loop.yaml
|
||||||
|
input:
|
||||||
|
light: light.gang_3
|
||||||
|
color_1:
|
||||||
|
- 255
|
||||||
|
- 38
|
||||||
|
- 0
|
||||||
|
color_2:
|
||||||
|
- 0
|
||||||
|
- 249
|
||||||
|
- 0
|
||||||
|
color_3:
|
||||||
|
- 4
|
||||||
|
- 51
|
||||||
|
- 255
|
||||||
|
icon: mdi:balloon
|
||||||
|
mode: single
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
colorloopdaniel:
|
||||||
|
alias: Color Loop Daniel
|
||||||
|
use_blueprint:
|
||||||
|
path: mdolnik/color_loop.yaml
|
||||||
|
input:
|
||||||
|
light: light.daniels_vaerelse
|
||||||
|
color_1:
|
||||||
|
- 255
|
||||||
|
- 38
|
||||||
|
- 0
|
||||||
|
color_2:
|
||||||
|
- 0
|
||||||
|
- 249
|
||||||
|
- 0
|
||||||
|
color_3:
|
||||||
|
- 4
|
||||||
|
- 51
|
||||||
|
- 255
|
||||||
|
icon: mdi:balloon
|
||||||
|
mode: single
|
||||||
Reference in New Issue
Block a user