.ha_mcp/logs/mcp_usage.jsonl, automations.yaml

This commit is contained in:
Home Assistant Version Control
2026-08-02 17:24:44 +00:00
parent 864565c6e0
commit 28edec793a
2 changed files with 35 additions and 0 deletions
+33
View File
@@ -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: ''