.ha_mcp/logs/mcp_usage.jsonl, automations.yaml
This commit is contained in:
@@ -3134,3 +3134,36 @@
|
||||
target:
|
||||
entity_id: light.living_room_living_room_home_living_room
|
||||
data: {}
|
||||
button2_single:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: template
|
||||
value_template: '{{ states(''input_text.living_room_previous_brightness'')
|
||||
== '''' }}'
|
||||
sequence:
|
||||
- action: light.turn_on
|
||||
target:
|
||||
entity_id: light.living_room_living_room_home_living_room
|
||||
- action: input_text.set_value
|
||||
target:
|
||||
entity_id: input_text.living_room_previous_brightness
|
||||
data:
|
||||
value: '{{ state_attr(''light.living_room_living_room_home_living_room'',
|
||||
''brightness'') }}'
|
||||
- action: light.turn_on
|
||||
target:
|
||||
entity_id: light.living_room_living_room_home_living_room
|
||||
data:
|
||||
brightness_pct: 50
|
||||
default:
|
||||
- action: light.turn_on
|
||||
target:
|
||||
entity_id: light.living_room_living_room_home_living_room
|
||||
data:
|
||||
brightness: '{{ states(''input_text.living_room_previous_brightness'')
|
||||
| int }}'
|
||||
- action: input_text.set_value
|
||||
target:
|
||||
entity_id: input_text.living_room_previous_brightness
|
||||
data:
|
||||
value: ''
|
||||
|
||||
Reference in New Issue
Block a user