automations.yaml
This commit is contained in:
+70
-41
@@ -3635,43 +3635,29 @@
|
|||||||
mode: single
|
mode: single
|
||||||
- id: '1787723383610'
|
- id: '1787723383610'
|
||||||
alias: 3D Printer Lights Control - Scroll Wheel
|
alias: 3D Printer Lights Control - Scroll Wheel
|
||||||
description: ''
|
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.
|
||||||
use_blueprint:
|
use_blueprint:
|
||||||
path: jhol-byte/Ikea_bilresa_scroll_wheel.yaml
|
|
||||||
input:
|
input:
|
||||||
remote: eb34748c324b33255fb839f867f7a5d9
|
|
||||||
click_action_ch1:
|
click_action_ch1:
|
||||||
- action: light.toggle
|
- action: light.toggle
|
||||||
|
data: {}
|
||||||
metadata: {}
|
metadata: {}
|
||||||
target:
|
target:
|
||||||
entity_id: light.3d_printer_lights_local
|
entity_id: light.sparkx_i7_light
|
||||||
data:
|
|
||||||
rgb_color:
|
|
||||||
- 255
|
|
||||||
- 255
|
|
||||||
- 255
|
|
||||||
brightness_pct: 100
|
|
||||||
scroll_wheel_target_ch1:
|
|
||||||
- light.3d_printer_lights_local
|
|
||||||
scroll_wheel_mode_ext_ch1: instant
|
|
||||||
long_click_action_ch1: []
|
|
||||||
double_click_action_ch1:
|
|
||||||
- action: light.turn_on
|
|
||||||
metadata: {}
|
|
||||||
target:
|
|
||||||
entity_id: light.3d_printer_lights_local
|
|
||||||
data:
|
|
||||||
rgb_color:
|
|
||||||
- 10
|
|
||||||
- 127
|
|
||||||
- 230
|
|
||||||
dim_turns_lights_on: true
|
|
||||||
click_action_ch2:
|
click_action_ch2:
|
||||||
- if:
|
- else:
|
||||||
|
- action: light.turn_on
|
||||||
|
data: {}
|
||||||
|
target:
|
||||||
|
entity_id:
|
||||||
|
- light.sparkx_i7_light
|
||||||
|
- light.bedroom_lamp_2
|
||||||
|
if:
|
||||||
- condition: or
|
- condition: or
|
||||||
conditions:
|
conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: light.3d_printer_lights_local
|
entity_id: light.sparkx_i7_light
|
||||||
state: 'on'
|
state: 'on'
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: light.bedroom_lamp_2
|
entity_id: light.bedroom_lamp_2
|
||||||
@@ -3680,23 +3666,66 @@
|
|||||||
- action: light.turn_off
|
- action: light.turn_off
|
||||||
target:
|
target:
|
||||||
entity_id:
|
entity_id:
|
||||||
- light.3d_printer_lights_local
|
- light.sparkx_i7_light
|
||||||
- light.bedroom_lamp_2
|
- light.bedroom_lamp_2
|
||||||
else:
|
|
||||||
- action: light.turn_on
|
|
||||||
target:
|
|
||||||
entity_id:
|
|
||||||
- light.3d_printer_lights_local
|
|
||||||
- light.bedroom_lamp_2
|
|
||||||
data:
|
|
||||||
brightness_pct: 100
|
|
||||||
scroll_wheel_target_ch2:
|
|
||||||
- light.3d_printer_lights_local
|
|
||||||
- light.bedroom_lamp_2
|
|
||||||
scroll_wheel_mode_ext_ch2: instant
|
|
||||||
click_action_ch3: []
|
click_action_ch3: []
|
||||||
scroll_wheel_target_ch3: []
|
double_click_action_ch1:
|
||||||
|
- action: light.turn_on
|
||||||
|
data: {}
|
||||||
|
metadata: {}
|
||||||
|
target:
|
||||||
|
entity_id: light.sparkx_i7_light
|
||||||
|
double_click_action_ch2: []
|
||||||
|
long_click_action_ch1: []
|
||||||
|
long_click_action_ch2: []
|
||||||
|
on_hold_action_ch1: []
|
||||||
|
on_hold_action_ch2: []
|
||||||
|
remote: eb34748c324b33255fb839f867f7a5d9
|
||||||
|
scroll_wheel_mode_ch1: user defined
|
||||||
|
scroll_wheel_mode_ch2: user defined
|
||||||
|
scroll_wheel_mode_ext_ch1: instant
|
||||||
|
scroll_wheel_mode_ext_ch2: instant
|
||||||
scroll_wheel_mode_ext_ch3: instant
|
scroll_wheel_mode_ext_ch3: instant
|
||||||
|
scroll_wheel_target_ch1: []
|
||||||
|
scroll_wheel_target_ch2: []
|
||||||
|
scroll_wheel_target_ch3: []
|
||||||
|
scroll_wheel_user_action_ch1:
|
||||||
|
- choose:
|
||||||
|
- conditions:
|
||||||
|
- condition: template
|
||||||
|
value_template: '{{ scroll_direction == ''right'' }}'
|
||||||
|
sequence:
|
||||||
|
- action: light.turn_on
|
||||||
|
target:
|
||||||
|
entity_id: light.sparkx_i7_light
|
||||||
|
- conditions:
|
||||||
|
- condition: template
|
||||||
|
value_template: '{{ scroll_direction == ''left'' }}'
|
||||||
|
sequence:
|
||||||
|
- action: light.turn_off
|
||||||
|
target:
|
||||||
|
entity_id: light.sparkx_i7_light
|
||||||
|
scroll_wheel_user_action_ch2:
|
||||||
|
- choose:
|
||||||
|
- conditions:
|
||||||
|
- condition: template
|
||||||
|
value_template: '{{ scroll_direction == ''right'' }}'
|
||||||
|
sequence:
|
||||||
|
- action: light.turn_on
|
||||||
|
target:
|
||||||
|
entity_id:
|
||||||
|
- light.sparkx_i7_light
|
||||||
|
- 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
|
||||||
|
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
|
||||||
description: Turns 3D printer light on/off when input_boolean.3d_printer_light is
|
description: Turns 3D printer light on/off when input_boolean.3d_printer_light is
|
||||||
|
|||||||
Reference in New Issue
Block a user