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

This commit is contained in:
Home Assistant Version Control committed 2026-08-26 17:55:28 +00:00
1 parent c989f9ad66
commit 922a92094d
2 files changed
+61

No files matched your search

+59
View File
@@ -2299,6 +2299,9 @@
- id: work_day_ended
trigger: time
at: '18:00:00'
- trigger: homeassistant
event: start
id: ha_started
conditions: []
actions:
- variables:
@@ -2307,6 +2310,62 @@
is_away: '{{ is_state(''input_boolean.away_mode'', ''on'') }}'
is_dark: '{{ states(''sensor.night_light_illuminance'') | float(0) < 15 }}'
- choose:
- alias: '--- HA RESTART: SET INITIAL LIGHT STATE ---'
conditions:
- condition: template
value_template: '{{ trigger.id == ''ha_started'' }}'
sequence:
- choose:
- alias: 'Work hours, not away, in meeting: Red'
conditions:
- condition: template
value_template: '{{ is_work_hours and not is_away and is_state(''input_boolean.in_a_meeting'',
''on'') }}'
sequence:
- action: light.turn_on
target:
entity_id: light.night_light
data:
brightness_pct: 100
rgb_color:
- 255
- 0
- 0
- alias: 'Work hours, not away, not in meeting: Green'
conditions:
- condition: template
value_template: '{{ is_work_hours and not is_away and is_state(''input_boolean.in_a_meeting'',
''off'') }}'
sequence:
- action: light.turn_on
target:
entity_id: light.night_light
data:
brightness_pct: 30
rgb_color:
- 5
- 245
- 45
- alias: 'After hours or away, motion on and dark: Warm light'
conditions:
- condition: template
value_template: '{{ (not is_work_hours or is_away) and is_dark and is_state(''binary_sensor.night_light_occupancy'',
''on'') }}'
sequence:
- action: light.turn_on
target:
entity_id: light.night_light
data:
brightness_pct: 40
color_temp_kelvin: 2700
- alias: 'After hours or away, no motion or not dark: Light off'
conditions:
- condition: template
value_template: '{{ not is_work_hours or is_away }}'
sequence:
- action: light.turn_off
target:
entity_id: light.night_light
- alias: '--- WORKING HOURS MODE ---'
conditions:
- condition: template