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