1
0

Compare commits

...

5 Commits

Author SHA1 Message Date
77e6c4b901 UPS automations cleanup 2022-08-07 00:52:51 +02:00
426697fc23 3D Printer auto enable/disable enclosure fan 2022-08-07 00:40:27 +02:00
fbcd2be7bf Disable F1TV when TV is on 2022-08-07 00:27:53 +02:00
48edc10df4 Bedroom automation changes
Change sleep/wakeup automation button to be held
Disable bedroom light when tv is on
Add bedroom bet tv scene
2022-08-06 23:41:47 +02:00
ba929d37ee Fix id colisions 2022-08-06 23:39:34 +02:00
8 changed files with 87 additions and 62 deletions

View File

@ -97,3 +97,35 @@
- switch.3d_printer_enclosure_fan_on_off
- service: light.turn_off
entity_id: light.3d_printer_light
- id: 3dprinter-fan-on
alias: '[3D Printer] Fan on'
mode: single
trigger:
- platform: state
entity_id:
- binary_sensor.octoprint_printing
condition:
- condition: numeric_state
entity_id: sensor.octoprint_target_bed_temp
below: '100'
action:
- service: switch.turn_on
target:
entity_id: switch.3d_printer_enclosure_fan_on_off
- id: 3dprinter-fan-off
alias: '[3D Printer] Fan off'
mode: single
trigger:
- platform: state
entity_id:
- binary_sensor.octoprint_printing
condition:
- condition: numeric_state
entity_id: sensor.octoprint_target_bed_temp
above: '99'
action:
- service: switch.turn_off
target:
entity_id: switch.3d_printer_enclosure_fan_on_off

View File

@ -10,8 +10,8 @@
action:
- service: script.arrive_home
- id: alarm-disarm-andrzej
alias: "[Alarm][Vacation] Disarm Andrzej arrive"
- id: alarm-arm-andrzej
alias: "[Alarm][Vacation] Arm Andrzej arrive"
mode: single
trigger:
- platform: state

View File

@ -15,8 +15,8 @@
- device_id: 0d584dbfe721e00880b38c4dfc1c108e
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_on
type: remote_button_long_press
subtype: dim_up
condition:
- condition: not
conditions:

View File

@ -13,26 +13,10 @@
- condition: state
entity_id: input_select.home_mode
state: Day
action:
- choose:
- conditions:
- condition: state
entity_id: media_player.bedroom_tv
state: 'on'
sequence:
- choose:
- conditions:
- condition: state
entity_id: sensor.bedroom_tv_media_input_source
state: HDMI2
- condition: not
conditions:
- condition: state
entity_id: media_player.bedroom_atv
state: playing
sequence:
- service: script.bedroom_lights_on
default:
state: 'off'
action:
- service: script.bedroom_lights_on
- id: bedroom-motion-off

View File

@ -0,0 +1,8 @@
- id: bedroom-tv-on
alias: '[Bedroom] TV ON'
trigger:
- platform: state
entity_id: media_player.bedroom_tv
to: 'on'
action:
- service: script.bedroom_tv_scene

View File

@ -26,20 +26,6 @@
title: "UPS Alert"
message: UPS is charging
- id: ups-lost-power
alias: '[UPS] Lost power'
mode: single
trigger:
- platform: state
entity_id: sensor.myups_input_voltage
to: '0'
condition: [ ]
action:
- service: notify.mobile_app_iphone_pg
data:
title: "UPS Alert"
message: UPS lost power
- id: ups-power-back
alias: '[UPS] Power back'
mode: single
@ -55,7 +41,7 @@
message: UPS power is back
- id: ups-battery-under-100
alias: '[UPS] Power back'
alias: '[UPS] Battery Under 100%'
mode: single
trigger:
- platform: numeric_state
@ -69,7 +55,7 @@
message: UPS battery is below 100%, estimated time on battery 25 min
- id: ups-battery-under-50
alias: '[UPS] Power back'
alias: '[UPS] Battery Under 50%'
mode: single
trigger:
- platform: numeric_state
@ -83,7 +69,7 @@
message: UPS battery is below 50%, estimated time on battery 12 min
- id: ups-battery-under-10
alias: '[UPS] Power back'
alias: '[UPS] Battery Under 10%'
mode: single
trigger:
- platform: numeric_state

View File

@ -74,7 +74,7 @@ tv_atv:
data:
mode: video
tv_f1tv:
alias: tv F1
alias: F1TV
icon: mdi:android
sequence:
- choose:

View File

@ -94,6 +94,21 @@ bedroom_bed_lamp_on:
brightness_pct: 30
kelvin: 3200
bedroom_tv_scene:
alias: '[Bedroom] TV Scene'
sequence:
- service: light.turn_on
entity_id: light.bed_lamps
data:
brightness_pct: 10
kelvin: 2000
- service: light.turn_off
entity_id: light.bedroom_lights
- service: light.turn_off
entity_id: light.bed_lightstrip
- service: light.turn_off
entity_id: light.bed_lamps
bedroom_bed_lamp_off:
alias: '[Bedroom] Bed lamps off'
sequence: