Compare commits
10 Commits
03c6da9921
...
a388534a95
Author | SHA1 | Date | |
---|---|---|---|
a388534a95 | |||
94203d5f21 | |||
cac9abe05f | |||
81473d9eec | |||
e0be246707 | |||
81410a4348 | |||
d64899439d | |||
92ea344429 | |||
c85021e033 | |||
7771176cde |
@ -1,9 +1,10 @@
|
|||||||
- id: alarm-clock-automation
|
- id: alarm-clock-automation
|
||||||
alias: '[Alarm-Clock] Wakeup automation'
|
alias: '[Alarm-Clock] Wakeup automation'
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: calendar
|
||||||
|
event: start
|
||||||
|
offset: '-0:30:0'
|
||||||
entity_id: calendar.automations_wakeup
|
entity_id: calendar.automations_wakeup
|
||||||
to: 'on'
|
|
||||||
action:
|
action:
|
||||||
- service: automation.turn_off
|
- service: automation.turn_off
|
||||||
target:
|
target:
|
||||||
@ -38,6 +39,11 @@
|
|||||||
seconds: 180
|
seconds: 180
|
||||||
- choose:
|
- choose:
|
||||||
- conditions:
|
- conditions:
|
||||||
|
- condition: or
|
||||||
|
conditions:
|
||||||
|
- condition: state
|
||||||
|
entity_id: alarm_control_panel.home_alarm
|
||||||
|
state: armed_home
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: alarm_control_panel.home_alarm
|
entity_id: alarm_control_panel.home_alarm
|
||||||
state: disarmed
|
state: disarmed
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
action:
|
action:
|
||||||
- service: script.bedroom_bed_lamp_toggle
|
- service: script.bedroom_bed_lamp_toggle
|
||||||
|
|
||||||
- id: bedroom-bed-sleep
|
- id: bedroom-bed-sleep-morning
|
||||||
alias: '[Bedroom] Bed Sleep'
|
alias: '[Bedroom] Bed Sleep/Morning'
|
||||||
trigger:
|
trigger:
|
||||||
- device_id: 0d584dbfe721e00880b38c4dfc1c108e
|
- device_id: 0d584dbfe721e00880b38c4dfc1c108e
|
||||||
domain: zha
|
domain: zha
|
||||||
@ -24,4 +24,17 @@
|
|||||||
entity_id: input_select.home_mode
|
entity_id: input_select.home_mode
|
||||||
state: Away
|
state: Away
|
||||||
action:
|
action:
|
||||||
|
- choose:
|
||||||
|
- conditions:
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_select.home_mode
|
||||||
|
state: Day
|
||||||
|
sequence:
|
||||||
- service: script.good_night
|
- service: script.good_night
|
||||||
|
- conditions:
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_select.home_mode
|
||||||
|
state: Night
|
||||||
|
sequence:
|
||||||
|
- service: script.good_morning
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
# Single click
|
# Single click
|
||||||
- id: bedroom-button-turn-on
|
- id: bedroom-button-turn-on
|
||||||
alias: '[Bedroom] Button Turn On'
|
alias: '[Bedroom] Button Turn On'
|
||||||
|
mode: single
|
||||||
trigger:
|
trigger:
|
||||||
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
|
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
|
||||||
domain: zha
|
domain: zha
|
||||||
@ -9,10 +10,10 @@
|
|||||||
subtype: turn_on
|
subtype: turn_on
|
||||||
action:
|
action:
|
||||||
- service: script.bedroom_lights_on
|
- service: script.bedroom_lights_on
|
||||||
mode: single
|
|
||||||
|
|
||||||
- id: bedroom-button-turn-off
|
- id: bedroom-button-turn-off
|
||||||
alias: '[Bedroom] Button Turn Off'
|
alias: '[Bedroom] Button Turn Off'
|
||||||
|
mode: single
|
||||||
trigger:
|
trigger:
|
||||||
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
|
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
|
||||||
domain: zha
|
domain: zha
|
||||||
@ -21,10 +22,10 @@
|
|||||||
subtype: turn_off
|
subtype: turn_off
|
||||||
action:
|
action:
|
||||||
- service: script.bedroom_all_lights_off
|
- service: script.bedroom_all_lights_off
|
||||||
mode: single
|
|
||||||
|
|
||||||
- id: bedroom-button-dim-up
|
- id: bedroom-button-dim-up
|
||||||
alias: '[Bedroom] Button Dim Up'
|
alias: '[Bedroom] Button Dim Up'
|
||||||
|
mode: single
|
||||||
trigger:
|
trigger:
|
||||||
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
|
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
|
||||||
domain: zha
|
domain: zha
|
||||||
@ -36,10 +37,10 @@
|
|||||||
data:
|
data:
|
||||||
brightness_step_pct: 10
|
brightness_step_pct: 10
|
||||||
entity_id: light.bedroom_lights
|
entity_id: light.bedroom_lights
|
||||||
mode: single
|
|
||||||
|
|
||||||
- id: bedroom-button-dim-down
|
- id: bedroom-button-dim-down
|
||||||
alias: '[Bedroom] Button Dim Down'
|
alias: '[Bedroom] Button Dim Down'
|
||||||
|
mode: single
|
||||||
trigger:
|
trigger:
|
||||||
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
|
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
|
||||||
domain: zha
|
domain: zha
|
||||||
@ -51,11 +52,11 @@
|
|||||||
data:
|
data:
|
||||||
brightness_step_pct: -10
|
brightness_step_pct: -10
|
||||||
entity_id: light.bedroom_lights
|
entity_id: light.bedroom_lights
|
||||||
mode: single
|
|
||||||
|
|
||||||
# Double click
|
# Double click
|
||||||
- id: bedroom-button-dim-up-double
|
- id: bedroom-button-dim-up-double
|
||||||
alias: '[Bedroom] Button Dim Up Double'
|
alias: '[Bedroom] Button Dim Up Double'
|
||||||
|
mode: single
|
||||||
trigger:
|
trigger:
|
||||||
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
|
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
|
||||||
domain: zha
|
domain: zha
|
||||||
@ -68,10 +69,10 @@
|
|||||||
brightness_pct: 90
|
brightness_pct: 90
|
||||||
kelvin: 3200
|
kelvin: 3200
|
||||||
entity_id: light.bedroom_lights
|
entity_id: light.bedroom_lights
|
||||||
mode: single
|
|
||||||
|
|
||||||
- id: bedroom-button-dim-down-double
|
- id: bedroom-button-dim-down-double
|
||||||
alias: '[Bedroom] Button Dim Up'
|
alias: '[Bedroom] Button Dim Up'
|
||||||
|
mode: single
|
||||||
trigger:
|
trigger:
|
||||||
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
|
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
|
||||||
domain: zha
|
domain: zha
|
||||||
@ -84,4 +85,30 @@
|
|||||||
brightness_pct: 10
|
brightness_pct: 10
|
||||||
kelvin: 2000
|
kelvin: 2000
|
||||||
entity_id: light.bedroom_lights
|
entity_id: light.bedroom_lights
|
||||||
|
|
||||||
|
# Held
|
||||||
|
- id: bedroom-button-turn-on-held
|
||||||
|
alias: '[Bedroom] Button Blinds up'
|
||||||
mode: single
|
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
|
||||||
|
@ -1,19 +1,16 @@
|
|||||||
- id: goto_sleep
|
- id: goto_sleep
|
||||||
alias: '[Behaviour] Go to sleep'
|
alias: '[Behaviour] Go to sleep'
|
||||||
description: ''
|
mode: single
|
||||||
trigger:
|
trigger:
|
||||||
- platform: time
|
- platform: calendar
|
||||||
at: '23:25'
|
event: start
|
||||||
- platform: time
|
offset: '-9:35:0'
|
||||||
at: '23:55'
|
entity_id: calendar.automations_wakeup
|
||||||
|
- platform: calendar
|
||||||
|
event: start
|
||||||
|
offset: '-9:05:0'
|
||||||
|
entity_id: calendar.automations_wakeup
|
||||||
condition:
|
condition:
|
||||||
- condition: time
|
|
||||||
weekday:
|
|
||||||
- mon
|
|
||||||
- tue
|
|
||||||
- wed
|
|
||||||
- thu
|
|
||||||
- sun
|
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.hulk_ping
|
entity_id: binary_sensor.hulk_ping
|
||||||
state: 'on'
|
state: 'on'
|
||||||
@ -53,22 +50,16 @@
|
|||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
target:
|
target:
|
||||||
entity_id: light.office_light_up
|
entity_id: light.office_light_up
|
||||||
mode: single
|
|
||||||
|
|
||||||
- id: goto_sleep-2
|
- id: goto_sleep_2
|
||||||
alias: '[Behaviour] Go to sleep 2 (next day)'
|
alias: '[Behaviour] Go to sleep (hard cutoff)'
|
||||||
description: ''
|
mode: single
|
||||||
trigger:
|
trigger:
|
||||||
- platform: time
|
- platform: calendar
|
||||||
at: '0:25'
|
event: start
|
||||||
|
offset: '-8:35:0'
|
||||||
|
entity_id: calendar.automations_wakeup
|
||||||
condition:
|
condition:
|
||||||
- condition: time
|
|
||||||
weekday:
|
|
||||||
- mon
|
|
||||||
- tue
|
|
||||||
- wed
|
|
||||||
- thu
|
|
||||||
- fri
|
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.hulk_ping
|
entity_id: binary_sensor.hulk_ping
|
||||||
state: 'on'
|
state: 'on'
|
||||||
@ -82,61 +73,14 @@
|
|||||||
- 0
|
- 0
|
||||||
target:
|
target:
|
||||||
entity_id: light.office_light_up
|
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
|
- service: light.turn_on
|
||||||
data:
|
data:
|
||||||
flash: long
|
|
||||||
rgb_color:
|
rgb_color:
|
||||||
- 255
|
- 255
|
||||||
- 0
|
- 0
|
||||||
- 0
|
- 0
|
||||||
target:
|
target:
|
||||||
entity_id: light.office_light_up
|
entity_id: light.office
|
||||||
- delay: '0:05:00'
|
- delay: '0:05:00'
|
||||||
- service: shell_command.pc_poweroff
|
- service: shell_command.pc_poweroff
|
||||||
- service: input_boolean.turn_off
|
- service: input_boolean.turn_off
|
||||||
@ -149,4 +93,3 @@
|
|||||||
- service: switch.turn_off
|
- service: switch.turn_off
|
||||||
target:
|
target:
|
||||||
entity_id: switch.computer_outlet
|
entity_id: switch.computer_outlet
|
||||||
mode: single
|
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
alias: "[Calendar] Coffee machine"
|
alias: "[Calendar] Coffee machine"
|
||||||
mode: single
|
mode: single
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: calendar
|
||||||
|
event: start
|
||||||
entity_id: calendar.automations_caffeine_free_time
|
entity_id: calendar.automations_caffeine_free_time
|
||||||
to: 'on'
|
- platform: calendar
|
||||||
- platform: state
|
event: start
|
||||||
entity_id: calendar.automations_sleep
|
entity_id: calendar.automations_sleep
|
||||||
to: 'on'
|
|
||||||
action:
|
action:
|
||||||
- service: switch.turn_off
|
- service: switch.turn_off
|
||||||
target:
|
target:
|
||||||
@ -17,12 +17,12 @@
|
|||||||
alias: "[Calendar] Coffee machine"
|
alias: "[Calendar] Coffee machine"
|
||||||
mode: single
|
mode: single
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: calendar
|
||||||
|
event: end
|
||||||
entity_id: calendar.automations_caffeine_free_time
|
entity_id: calendar.automations_caffeine_free_time
|
||||||
to: 'off'
|
- platform: calendar
|
||||||
- platform: state
|
event: end
|
||||||
entity_id: calendar.automations_sleep
|
entity_id: calendar.automations_sleep
|
||||||
to: 'off'
|
|
||||||
condition:
|
condition:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: calendar.automations_caffeine_free_time
|
entity_id: calendar.automations_caffeine_free_time
|
||||||
|
@ -2,9 +2,10 @@
|
|||||||
alias: '[F1] Automation'
|
alias: '[F1] Automation'
|
||||||
mode: single
|
mode: single
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: calendar
|
||||||
|
event: start
|
||||||
|
offset: '-0:05:0'
|
||||||
entity_id: calendar.2021_fia_formula_one_world_championship_race_calendar
|
entity_id: calendar.2021_fia_formula_one_world_championship_race_calendar
|
||||||
to: 'on'
|
|
||||||
condition:
|
condition:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_select.home_mode
|
entity_id: input_select.home_mode
|
||||||
|
15
configuration/automations/notify-slow-internet.yaml
Normal file
15
configuration/automations/notify-slow-internet.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
- 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
|
@ -41,6 +41,8 @@
|
|||||||
entity_id: alarm_control_panel.home_alarm
|
entity_id: alarm_control_panel.home_alarm
|
||||||
state: 'armed_home'
|
state: 'armed_home'
|
||||||
sequence:
|
sequence:
|
||||||
|
- service: alarm_control_panel.alarm_disarm
|
||||||
|
entity_id: alarm_control_panel.home_alarm
|
||||||
- service: alarm_control_panel.alarm_arm_away
|
- service: alarm_control_panel.alarm_arm_away
|
||||||
entity_id: alarm_control_panel.home_alarm
|
entity_id: alarm_control_panel.home_alarm
|
||||||
|
|
||||||
|
@ -18,6 +18,8 @@ vacuum_today:
|
|||||||
entity_id: alarm_control_panel.home_alarm
|
entity_id: alarm_control_panel.home_alarm
|
||||||
state: 'arming'
|
state: 'arming'
|
||||||
sequence:
|
sequence:
|
||||||
|
- service: alarm_control_panel.alarm_disarm
|
||||||
|
entity_id: alarm_control_panel.home_alarm
|
||||||
- service: alarm_control_panel.alarm_arm_home
|
- service: alarm_control_panel.alarm_arm_home
|
||||||
entity_id: alarm_control_panel.home_alarm
|
entity_id: alarm_control_panel.home_alarm
|
||||||
- service: vacuum.start
|
- service: vacuum.start
|
||||||
@ -29,7 +31,7 @@ vacuum_goto_bin:
|
|||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
data:
|
data:
|
||||||
topic: valetudo/ValetudoS5/GoToLocationCapability/go/set
|
topic: valetudo/ValetudoS5/GoToLocationCapability/go/set
|
||||||
payload: 55609b09-2d32-4f52-b939-94363172256d
|
payload: '{"coordinates":{"x":2473,"y":2780}}'
|
||||||
|
|
||||||
vacuum_clean_segments:
|
vacuum_clean_segments:
|
||||||
alias: Vacuum clean segments
|
alias: Vacuum clean segments
|
||||||
|
Loading…
Reference in New Issue
Block a user