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
|
||||
alias: '[Alarm-Clock] Wakeup automation'
|
||||
trigger:
|
||||
- platform: state
|
||||
- platform: calendar
|
||||
event: start
|
||||
offset: '-0:30:0'
|
||||
entity_id: calendar.automations_wakeup
|
||||
to: 'on'
|
||||
action:
|
||||
- service: automation.turn_off
|
||||
target:
|
||||
@ -38,9 +39,14 @@
|
||||
seconds: 180
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: alarm_control_panel.home_alarm
|
||||
state: disarmed
|
||||
- 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
|
||||
sequence:
|
||||
- service: media_player.volume_set
|
||||
data:
|
||||
|
@ -9,8 +9,8 @@
|
||||
action:
|
||||
- service: script.bedroom_bed_lamp_toggle
|
||||
|
||||
- id: bedroom-bed-sleep
|
||||
alias: '[Bedroom] Bed Sleep'
|
||||
- id: bedroom-bed-sleep-morning
|
||||
alias: '[Bedroom] Bed Sleep/Morning'
|
||||
trigger:
|
||||
- device_id: 0d584dbfe721e00880b38c4dfc1c108e
|
||||
domain: zha
|
||||
@ -24,4 +24,17 @@
|
||||
entity_id: input_select.home_mode
|
||||
state: Away
|
||||
action:
|
||||
- service: script.good_night
|
||||
- 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
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Single click
|
||||
- id: bedroom-button-turn-on
|
||||
alias: '[Bedroom] Button Turn On'
|
||||
mode: single
|
||||
trigger:
|
||||
- device_id: 15b083b6b5e2acb5d37fbbfbfc76281f
|
||||
domain: zha
|
||||
@ -9,10 +10,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
|
||||
@ -21,10 +22,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
|
||||
@ -36,10 +37,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
|
||||
@ -51,11 +52,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
|
||||
@ -68,10 +69,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
|
||||
@ -84,4 +85,30 @@
|
||||
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
|
||||
|
@ -1,19 +1,16 @@
|
||||
- id: goto_sleep
|
||||
alias: '[Behaviour] Go to sleep'
|
||||
description: ''
|
||||
mode: single
|
||||
trigger:
|
||||
- platform: time
|
||||
at: '23:25'
|
||||
- platform: time
|
||||
at: '23:55'
|
||||
- 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
|
||||
condition:
|
||||
- condition: time
|
||||
weekday:
|
||||
- mon
|
||||
- tue
|
||||
- wed
|
||||
- thu
|
||||
- sun
|
||||
- condition: state
|
||||
entity_id: binary_sensor.hulk_ping
|
||||
state: 'on'
|
||||
@ -53,22 +50,16 @@
|
||||
- service: light.turn_off
|
||||
target:
|
||||
entity_id: light.office_light_up
|
||||
mode: single
|
||||
|
||||
- id: goto_sleep-2
|
||||
alias: '[Behaviour] Go to sleep 2 (next day)'
|
||||
description: ''
|
||||
- id: goto_sleep_2
|
||||
alias: '[Behaviour] Go to sleep (hard cutoff)'
|
||||
mode: single
|
||||
trigger:
|
||||
- platform: time
|
||||
at: '0:25'
|
||||
- platform: calendar
|
||||
event: start
|
||||
offset: '-8:35:0'
|
||||
entity_id: calendar.automations_wakeup
|
||||
condition:
|
||||
- condition: time
|
||||
weekday:
|
||||
- mon
|
||||
- tue
|
||||
- wed
|
||||
- thu
|
||||
- fri
|
||||
- condition: state
|
||||
entity_id: binary_sensor.hulk_ping
|
||||
state: 'on'
|
||||
@ -82,61 +73,14 @@
|
||||
- 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_light_up
|
||||
entity_id: light.office
|
||||
- delay: '0:05:00'
|
||||
- service: shell_command.pc_poweroff
|
||||
- service: input_boolean.turn_off
|
||||
@ -149,4 +93,3 @@
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.computer_outlet
|
||||
mode: single
|
||||
|
@ -2,12 +2,12 @@
|
||||
alias: "[Calendar] Coffee machine"
|
||||
mode: single
|
||||
trigger:
|
||||
- platform: state
|
||||
- platform: calendar
|
||||
event: start
|
||||
entity_id: calendar.automations_caffeine_free_time
|
||||
to: 'on'
|
||||
- platform: state
|
||||
- platform: calendar
|
||||
event: start
|
||||
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: state
|
||||
- platform: calendar
|
||||
event: end
|
||||
entity_id: calendar.automations_caffeine_free_time
|
||||
to: 'off'
|
||||
- platform: state
|
||||
- platform: calendar
|
||||
event: end
|
||||
entity_id: calendar.automations_sleep
|
||||
to: 'off'
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: calendar.automations_caffeine_free_time
|
||||
|
@ -2,9 +2,10 @@
|
||||
alias: '[F1] Automation'
|
||||
mode: single
|
||||
trigger:
|
||||
- platform: state
|
||||
- platform: calendar
|
||||
event: start
|
||||
offset: '-0:05:0'
|
||||
entity_id: calendar.2021_fia_formula_one_world_championship_race_calendar
|
||||
to: 'on'
|
||||
condition:
|
||||
- condition: state
|
||||
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
|
||||
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
|
||||
|
||||
|
@ -18,6 +18,8 @@ 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
|
||||
@ -29,7 +31,7 @@ vacuum_goto_bin:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: valetudo/ValetudoS5/GoToLocationCapability/go/set
|
||||
payload: 55609b09-2d32-4f52-b939-94363172256d
|
||||
payload: '{"coordinates":{"x":2473,"y":2780}}'
|
||||
|
||||
vacuum_clean_segments:
|
||||
alias: Vacuum clean segments
|
||||
|
Loading…
Reference in New Issue
Block a user