Compare commits
5 Commits
2ec8ddf70e
...
77e6c4b901
Author | SHA1 | Date | |
---|---|---|---|
77e6c4b901 | |||
426697fc23 | |||
fbcd2be7bf | |||
48edc10df4 | |||
ba929d37ee |
@ -97,3 +97,35 @@
|
|||||||
- switch.3d_printer_enclosure_fan_on_off
|
- switch.3d_printer_enclosure_fan_on_off
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
entity_id: light.3d_printer_light
|
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
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
action:
|
action:
|
||||||
- service: script.arrive_home
|
- service: script.arrive_home
|
||||||
|
|
||||||
- id: alarm-disarm-andrzej
|
- id: alarm-arm-andrzej
|
||||||
alias: "[Alarm][Vacation] Disarm Andrzej arrive"
|
alias: "[Alarm][Vacation] Arm Andrzej arrive"
|
||||||
mode: single
|
mode: single
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
|
@ -15,8 +15,8 @@
|
|||||||
- device_id: 0d584dbfe721e00880b38c4dfc1c108e
|
- device_id: 0d584dbfe721e00880b38c4dfc1c108e
|
||||||
domain: zha
|
domain: zha
|
||||||
platform: device
|
platform: device
|
||||||
type: remote_button_short_press
|
type: remote_button_long_press
|
||||||
subtype: turn_on
|
subtype: dim_up
|
||||||
condition:
|
condition:
|
||||||
- condition: not
|
- condition: not
|
||||||
conditions:
|
conditions:
|
||||||
|
@ -13,27 +13,11 @@
|
|||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_select.home_mode
|
entity_id: input_select.home_mode
|
||||||
state: Day
|
state: Day
|
||||||
|
- condition: state
|
||||||
|
entity_id: media_player.bedroom_tv
|
||||||
|
state: 'off'
|
||||||
action:
|
action:
|
||||||
- choose:
|
- service: script.bedroom_lights_on
|
||||||
- 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:
|
|
||||||
- service: script.bedroom_lights_on
|
|
||||||
|
|
||||||
- id: bedroom-motion-off
|
- id: bedroom-motion-off
|
||||||
alias: '[Bedroom] Motion Off'
|
alias: '[Bedroom] Motion Off'
|
||||||
|
8
configuration/automations/bedroom-tv.yaml
Normal file
8
configuration/automations/bedroom-tv.yaml
Normal 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
|
@ -26,20 +26,6 @@
|
|||||||
title: "UPS Alert"
|
title: "UPS Alert"
|
||||||
message: UPS is charging
|
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
|
- id: ups-power-back
|
||||||
alias: '[UPS] Power back'
|
alias: '[UPS] Power back'
|
||||||
mode: single
|
mode: single
|
||||||
@ -55,7 +41,7 @@
|
|||||||
message: UPS power is back
|
message: UPS power is back
|
||||||
|
|
||||||
- id: ups-battery-under-100
|
- id: ups-battery-under-100
|
||||||
alias: '[UPS] Power back'
|
alias: '[UPS] Battery Under 100%'
|
||||||
mode: single
|
mode: single
|
||||||
trigger:
|
trigger:
|
||||||
- platform: numeric_state
|
- platform: numeric_state
|
||||||
@ -69,7 +55,7 @@
|
|||||||
message: UPS battery is below 100%, estimated time on battery 25 min
|
message: UPS battery is below 100%, estimated time on battery 25 min
|
||||||
|
|
||||||
- id: ups-battery-under-50
|
- id: ups-battery-under-50
|
||||||
alias: '[UPS] Power back'
|
alias: '[UPS] Battery Under 50%'
|
||||||
mode: single
|
mode: single
|
||||||
trigger:
|
trigger:
|
||||||
- platform: numeric_state
|
- platform: numeric_state
|
||||||
@ -83,7 +69,7 @@
|
|||||||
message: UPS battery is below 50%, estimated time on battery 12 min
|
message: UPS battery is below 50%, estimated time on battery 12 min
|
||||||
|
|
||||||
- id: ups-battery-under-10
|
- id: ups-battery-under-10
|
||||||
alias: '[UPS] Power back'
|
alias: '[UPS] Battery Under 10%'
|
||||||
mode: single
|
mode: single
|
||||||
trigger:
|
trigger:
|
||||||
- platform: numeric_state
|
- platform: numeric_state
|
||||||
|
@ -74,7 +74,7 @@ tv_atv:
|
|||||||
data:
|
data:
|
||||||
mode: video
|
mode: video
|
||||||
tv_f1tv:
|
tv_f1tv:
|
||||||
alias: tv F1
|
alias: F1TV
|
||||||
icon: mdi:android
|
icon: mdi:android
|
||||||
sequence:
|
sequence:
|
||||||
- choose:
|
- choose:
|
||||||
@ -91,26 +91,26 @@ tv_f1tv:
|
|||||||
target:
|
target:
|
||||||
entity_id: media_player.living_room
|
entity_id: media_player.living_room
|
||||||
- delay: 5
|
- delay: 5
|
||||||
- service: androidtv.adb_command
|
- service: androidtv.adb_command
|
||||||
data:
|
data:
|
||||||
command: HOME
|
command: HOME
|
||||||
entity_id: media_player.nvidia_shield
|
entity_id: media_player.nvidia_shield
|
||||||
- delay: 5
|
- delay: 5
|
||||||
- service: media_player.select_source
|
- service: media_player.select_source
|
||||||
data:
|
data:
|
||||||
source: com.formulaone.production
|
source: com.formulaone.production
|
||||||
target:
|
target:
|
||||||
entity_id: media_player.nvidia_shield
|
entity_id: media_player.nvidia_shield
|
||||||
- delay: 5
|
- delay: 5
|
||||||
- service: androidtv.adb_command
|
- service: androidtv.adb_command
|
||||||
data:
|
data:
|
||||||
command: CENTER
|
command: CENTER
|
||||||
entity_id: media_player.nvidia_shield
|
entity_id: media_player.nvidia_shield
|
||||||
- service: huesyncbox.set_sync_mode
|
- service: huesyncbox.set_sync_mode
|
||||||
target:
|
target:
|
||||||
entity_id: media_player.sync_box
|
entity_id: media_player.sync_box
|
||||||
data:
|
data:
|
||||||
mode: video
|
mode: video
|
||||||
tv_off:
|
tv_off:
|
||||||
alias: 'TV Off'
|
alias: 'TV Off'
|
||||||
icon: mdi:power
|
icon: mdi:power
|
||||||
|
@ -94,6 +94,21 @@ bedroom_bed_lamp_on:
|
|||||||
brightness_pct: 30
|
brightness_pct: 30
|
||||||
kelvin: 3200
|
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:
|
bedroom_bed_lamp_off:
|
||||||
alias: '[Bedroom] Bed lamps off'
|
alias: '[Bedroom] Bed lamps off'
|
||||||
sequence:
|
sequence:
|
||||||
|
Loading…
Reference in New Issue
Block a user