1
0

Compare commits

..

No commits in common. "a388534a9555e39a03dd627dd02b528aaf878830" and "03c6da9921bb7fddadffccb46264617ac98c29df" have entirely different histories.

9 changed files with 99 additions and 108 deletions

View File

@ -1,10 +1,9 @@
- id: alarm-clock-automation
alias: '[Alarm-Clock] Wakeup automation'
trigger:
- platform: calendar
event: start
offset: '-0:30:0'
- platform: state
entity_id: calendar.automations_wakeup
to: 'on'
action:
- service: automation.turn_off
target:
@ -39,14 +38,9 @@
seconds: 180
- choose:
- conditions:
- condition: or
conditions:
- condition: state
entity_id: alarm_control_panel.home_alarm
state: armed_home
- condition: state
entity_id: alarm_control_panel.home_alarm
state: disarmed
- condition: state
entity_id: alarm_control_panel.home_alarm
state: disarmed
sequence:
- service: media_player.volume_set
data:

View File

@ -9,8 +9,8 @@
action:
- service: script.bedroom_bed_lamp_toggle
- id: bedroom-bed-sleep-morning
alias: '[Bedroom] Bed Sleep/Morning'
- id: bedroom-bed-sleep
alias: '[Bedroom] Bed Sleep'
trigger:
- device_id: 0d584dbfe721e00880b38c4dfc1c108e
domain: zha
@ -24,17 +24,4 @@
entity_id: input_select.home_mode
state: Away
action:
- choose:
- conditions:
- condition: state
entity_id: input_select.home_mode
state: Day
sequence:
- service: script.good_night
- conditions:
- condition: state
entity_id: input_select.home_mode
state: Night
sequence:
- service: script.good_morning
- service: script.good_night

View File

@ -1,7 +1,6 @@
# Single click
- id: bedroom-button-turn-on
alias: '[Bedroom] Button Turn On'
mode: single
trigger:
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
domain: zha
@ -10,10 +9,10 @@
subtype: turn_on
action:
- service: script.bedroom_lights_on
mode: single
- id: bedroom-button-turn-off
alias: '[Bedroom] Button Turn Off'
mode: single
trigger:
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
domain: zha
@ -22,10 +21,10 @@
subtype: turn_off
action:
- service: script.bedroom_all_lights_off
mode: single
- id: bedroom-button-dim-up
alias: '[Bedroom] Button Dim Up'
mode: single
trigger:
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
domain: zha
@ -37,10 +36,10 @@
data:
brightness_step_pct: 10
entity_id: light.bedroom_lights
mode: single
- id: bedroom-button-dim-down
alias: '[Bedroom] Button Dim Down'
mode: single
trigger:
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
domain: zha
@ -52,11 +51,11 @@
data:
brightness_step_pct: -10
entity_id: light.bedroom_lights
mode: single
# Double click
- id: bedroom-button-dim-up-double
alias: '[Bedroom] Button Dim Up Double'
mode: single
trigger:
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
domain: zha
@ -69,10 +68,10 @@
brightness_pct: 90
kelvin: 3200
entity_id: light.bedroom_lights
mode: single
- id: bedroom-button-dim-down-double
alias: '[Bedroom] Button Dim Up'
mode: single
trigger:
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
domain: zha
@ -85,30 +84,4 @@
brightness_pct: 10
kelvin: 2000
entity_id: light.bedroom_lights
# Held
- id: bedroom-button-turn-on-held
alias: '[Bedroom] Button Blinds up'
mode: single
trigger:
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
domain: zha
platform: device
type: remote_button_long_press
subtype: turn_on
action:
- service: cover.open_cover
entity_id: cover.bedroom_blinds
- id: bedroom-button-turn-off-held
alias: '[Bedroom] Button Blinds down'
mode: single
trigger:
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
domain: zha
platform: device
type: remote_button_long_press
subtype: turn_off
action:
- service: cover.close_cover
entity_id: cover.bedroom_blinds

View File

@ -1,16 +1,19 @@
- id: goto_sleep
alias: '[Behaviour] Go to sleep'
mode: single
description: ''
trigger:
- platform: calendar
event: start
offset: '-9:35:0'
entity_id: calendar.automations_wakeup
- platform: calendar
event: start
offset: '-9:05:0'
entity_id: calendar.automations_wakeup
- platform: time
at: '23:25'
- platform: time
at: '23:55'
condition:
- condition: time
weekday:
- mon
- tue
- wed
- thu
- sun
- condition: state
entity_id: binary_sensor.hulk_ping
state: 'on'
@ -50,16 +53,22 @@
- service: light.turn_off
target:
entity_id: light.office_light_up
- id: goto_sleep_2
alias: '[Behaviour] Go to sleep (hard cutoff)'
mode: single
- id: goto_sleep-2
alias: '[Behaviour] Go to sleep 2 (next day)'
description: ''
trigger:
- platform: calendar
event: start
offset: '-8:35:0'
entity_id: calendar.automations_wakeup
- platform: time
at: '0:25'
condition:
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
- condition: state
entity_id: binary_sensor.hulk_ping
state: 'on'
@ -73,14 +82,61 @@
- 0
target:
entity_id: light.office_light_up
- delay: '0:05:00'
- choose:
- conditions:
- condition: state
entity_id: binary_sensor.hulk_ping
state: 'on'
- condition: state
entity_id: input_boolean.pc_caffeine
state: 'off'
sequence:
- service: shell_command.pc_poweroff
- choose:
- conditions:
- condition: state
entity_id: binary_sensor.hulk_ping
state: 'on'
- condition: state
entity_id: input_boolean.pc_caffeine
state: 'on'
sequence:
- service: input_boolean.turn_off
target:
entity_id: input_boolean.pc_caffeine
- service: light.turn_off
target:
entity_id: light.office_light_up
mode: single
- id: goto_sleep-
alias: '[Behaviour] Go to sleep 3 (hard cutoff)'
description: ''
trigger:
- platform: time
at: '0:55'
condition:
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
- condition: state
entity_id: binary_sensor.hulk_ping
state: 'on'
action:
- service: light.turn_on
data:
flash: long
rgb_color:
- 255
- 0
- 0
target:
entity_id: light.office
entity_id: light.office_light_up
- delay: '0:05:00'
- service: shell_command.pc_poweroff
- service: input_boolean.turn_off
@ -93,3 +149,4 @@
- service: switch.turn_off
target:
entity_id: switch.computer_outlet
mode: single

View File

@ -2,12 +2,12 @@
alias: "[Calendar] Coffee machine"
mode: single
trigger:
- platform: calendar
event: start
- platform: state
entity_id: calendar.automations_caffeine_free_time
- platform: calendar
event: start
to: 'on'
- platform: state
entity_id: calendar.automations_sleep
to: 'on'
action:
- service: switch.turn_off
target:
@ -17,12 +17,12 @@
alias: "[Calendar] Coffee machine"
mode: single
trigger:
- platform: calendar
event: end
- platform: state
entity_id: calendar.automations_caffeine_free_time
- platform: calendar
event: end
to: 'off'
- platform: state
entity_id: calendar.automations_sleep
to: 'off'
condition:
- condition: state
entity_id: calendar.automations_caffeine_free_time

View File

@ -2,10 +2,9 @@
alias: '[F1] Automation'
mode: single
trigger:
- platform: calendar
event: start
offset: '-0:05:0'
- platform: state
entity_id: calendar.2021_fia_formula_one_world_championship_race_calendar
to: 'on'
condition:
- condition: state
entity_id: input_select.home_mode

View File

@ -1,15 +0,0 @@
- id: notify-slow-internet
alias: '[Notify] Slow internet'
mode: single
trigger:
- platform: numeric_state
entity_id: sensor.speedtest_download
for:
hours: 0
minutes: 15
seconds: 0
below: '110'
action:
- service: notify.mobile_app_iphone_pg
data:
message: Internet speed fell down to 100 Mbit

View File

@ -41,8 +41,6 @@
entity_id: alarm_control_panel.home_alarm
state: 'armed_home'
sequence:
- service: alarm_control_panel.alarm_disarm
entity_id: alarm_control_panel.home_alarm
- service: alarm_control_panel.alarm_arm_away
entity_id: alarm_control_panel.home_alarm

View File

@ -18,8 +18,6 @@ vacuum_today:
entity_id: alarm_control_panel.home_alarm
state: 'arming'
sequence:
- service: alarm_control_panel.alarm_disarm
entity_id: alarm_control_panel.home_alarm
- service: alarm_control_panel.alarm_arm_home
entity_id: alarm_control_panel.home_alarm
- service: vacuum.start
@ -31,7 +29,7 @@ vacuum_goto_bin:
- service: mqtt.publish
data:
topic: valetudo/ValetudoS5/GoToLocationCapability/go/set
payload: '{"coordinates":{"x":2473,"y":2780}}'
payload: 55609b09-2d32-4f52-b939-94363172256d
vacuum_clean_segments:
alias: Vacuum clean segments