automations.yaml
This commit is contained in:
+81
-22
@@ -3657,46 +3657,77 @@
|
||||
mode: single
|
||||
- id: '1787723383610'
|
||||
alias: 3D Printer Lights Control - Scroll Wheel
|
||||
description: Controls the SparkX i7 on/off light and the bedroom lamp from the 3D
|
||||
printer scroll wheel. Right-scroll turns lights on; left-scroll turns them off.
|
||||
description: Controls the SparkX i7 light, local 3D printer light, and bedroom lamp
|
||||
from the 3D printer scroll wheel. Right-scroll turns lights on; left-scroll turns
|
||||
them off.
|
||||
use_blueprint:
|
||||
input:
|
||||
click_action_ch1:
|
||||
- action: light.toggle
|
||||
data: {}
|
||||
metadata: {}
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: light.sparkx_i7_light
|
||||
state: 'on'
|
||||
sequence:
|
||||
- action: light.turn_off
|
||||
target:
|
||||
entity_id: light.sparkx_i7_light
|
||||
- action: light.turn_off
|
||||
continue_on_error: true
|
||||
target:
|
||||
entity_id: light.3d_printer_lights_local
|
||||
default:
|
||||
- action: light.turn_on
|
||||
target:
|
||||
entity_id: light.sparkx_i7_light
|
||||
- action: light.turn_on
|
||||
continue_on_error: true
|
||||
target:
|
||||
entity_id: light.3d_printer_lights_local
|
||||
click_action_ch2:
|
||||
- else:
|
||||
- action: light.turn_on
|
||||
data: {}
|
||||
target:
|
||||
entity_id:
|
||||
- light.sparkx_i7_light
|
||||
- light.bedroom_lamp_2
|
||||
entity_id: light.sparkx_i7_light
|
||||
- action: light.turn_on
|
||||
continue_on_error: true
|
||||
target:
|
||||
entity_id: light.3d_printer_lights_local
|
||||
- action: light.turn_on
|
||||
target:
|
||||
entity_id: light.bedroom_lamp_2
|
||||
if:
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: light.sparkx_i7_light
|
||||
state: 'on'
|
||||
- condition: state
|
||||
entity_id: light.3d_printer_lights_local
|
||||
state: 'on'
|
||||
- condition: state
|
||||
entity_id: light.bedroom_lamp_2
|
||||
state: 'on'
|
||||
then:
|
||||
- action: light.turn_off
|
||||
target:
|
||||
entity_id:
|
||||
- light.sparkx_i7_light
|
||||
- light.bedroom_lamp_2
|
||||
entity_id: light.sparkx_i7_light
|
||||
- action: light.turn_off
|
||||
continue_on_error: true
|
||||
target:
|
||||
entity_id: light.3d_printer_lights_local
|
||||
- action: light.turn_off
|
||||
target:
|
||||
entity_id: light.bedroom_lamp_2
|
||||
click_action_ch3: []
|
||||
double_click_action_ch1:
|
||||
- action: light.turn_on
|
||||
data: {}
|
||||
metadata: {}
|
||||
target:
|
||||
entity_id: light.sparkx_i7_light
|
||||
- action: light.turn_on
|
||||
continue_on_error: true
|
||||
target:
|
||||
entity_id: light.3d_printer_lights_local
|
||||
double_click_action_ch2: []
|
||||
long_click_action_ch1: []
|
||||
long_click_action_ch2: []
|
||||
@@ -3720,6 +3751,10 @@
|
||||
- action: light.turn_on
|
||||
target:
|
||||
entity_id: light.sparkx_i7_light
|
||||
- action: light.turn_on
|
||||
continue_on_error: true
|
||||
target:
|
||||
entity_id: light.3d_printer_lights_local
|
||||
- conditions:
|
||||
- condition: template
|
||||
value_template: '{{ scroll_direction == ''left'' }}'
|
||||
@@ -3727,6 +3762,10 @@
|
||||
- action: light.turn_off
|
||||
target:
|
||||
entity_id: light.sparkx_i7_light
|
||||
- action: light.turn_off
|
||||
continue_on_error: true
|
||||
target:
|
||||
entity_id: light.3d_printer_lights_local
|
||||
scroll_wheel_user_action_ch2:
|
||||
- choose:
|
||||
- conditions:
|
||||
@@ -3735,18 +3774,28 @@
|
||||
sequence:
|
||||
- action: light.turn_on
|
||||
target:
|
||||
entity_id:
|
||||
- light.sparkx_i7_light
|
||||
- light.bedroom_lamp_2
|
||||
entity_id: light.sparkx_i7_light
|
||||
- action: light.turn_on
|
||||
continue_on_error: true
|
||||
target:
|
||||
entity_id: light.3d_printer_lights_local
|
||||
- action: light.turn_on
|
||||
target:
|
||||
entity_id: light.bedroom_lamp_2
|
||||
- conditions:
|
||||
- condition: template
|
||||
value_template: '{{ scroll_direction == ''left'' }}'
|
||||
sequence:
|
||||
- action: light.turn_off
|
||||
target:
|
||||
entity_id:
|
||||
- light.sparkx_i7_light
|
||||
- light.bedroom_lamp_2
|
||||
entity_id: light.sparkx_i7_light
|
||||
- action: light.turn_off
|
||||
continue_on_error: true
|
||||
target:
|
||||
entity_id: light.3d_printer_lights_local
|
||||
- action: light.turn_off
|
||||
target:
|
||||
entity_id: light.bedroom_lamp_2
|
||||
path: jhol-byte/Ikea_bilresa_scroll_wheel.yaml
|
||||
- id: '1787723814939'
|
||||
alias: 3D Printer Lights - Toggle from Boolean
|
||||
@@ -3852,8 +3901,8 @@
|
||||
- id: '1789399923492'
|
||||
alias: 3D Printer Running - Reconcile on HA Start
|
||||
description: When Home Assistant starts during an active SparkX i7 print, re-apply
|
||||
the print-started light, bedroom, basement heat, and filter actions after devices
|
||||
settle.
|
||||
the print-started actions for both printer lights, the bedroom, basement heat,
|
||||
and filter after devices settle.
|
||||
triggers:
|
||||
- event: start
|
||||
trigger: homeassistant
|
||||
@@ -3870,6 +3919,16 @@
|
||||
- action: light.turn_on
|
||||
target:
|
||||
entity_id: light.sparkx_i7_light
|
||||
- action: light.turn_on
|
||||
continue_on_error: true
|
||||
data:
|
||||
brightness_pct: 100
|
||||
rgb_color:
|
||||
- 255
|
||||
- 255
|
||||
- 255
|
||||
target:
|
||||
entity_id: light.3d_printer_lights_local
|
||||
- action: light.turn_on
|
||||
data:
|
||||
brightness_pct: 100
|
||||
|
||||
Reference in New Issue
Block a user