.ha_mcp/logs/mcp_usage.jsonl, automations.yaml
This commit is contained in:
+36
-1
@@ -2017,7 +2017,42 @@
|
||||
target:
|
||||
entity_id: input_boolean.away_mode
|
||||
data: {}
|
||||
button2_double: []
|
||||
button2_double:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: template
|
||||
value_template: '{{ states(''input_text.office_lamp_previous_color'')
|
||||
== '''' }}'
|
||||
sequence:
|
||||
- action: light.turn_on
|
||||
target:
|
||||
entity_id: light.office_lamp
|
||||
- action: input_text.set_value
|
||||
target:
|
||||
entity_id: input_text.office_lamp_previous_color
|
||||
data:
|
||||
value: '{{ state_attr(''light.office_lamp'', ''rgb_color'') | join('','')
|
||||
}}'
|
||||
- action: light.turn_on
|
||||
target:
|
||||
entity_id: light.office_lamp
|
||||
data:
|
||||
rgb_color:
|
||||
- 135
|
||||
- 206
|
||||
- 250
|
||||
default:
|
||||
- action: light.turn_on
|
||||
target:
|
||||
entity_id: light.office_lamp
|
||||
data:
|
||||
rgb_color: '{{ states(''input_text.office_lamp_previous_color'').split('','')
|
||||
| map(''int'') | list }}'
|
||||
- action: input_text.set_value
|
||||
target:
|
||||
entity_id: input_text.office_lamp_previous_color
|
||||
data:
|
||||
value: ''
|
||||
button1_long_press: []
|
||||
button2_long_press: []
|
||||
- id: '1783972932942'
|
||||
|
||||
Reference in New Issue
Block a user