.ha_mcp/logs/mcp_usage.jsonl, automations.yaml
This commit is contained in:
@@ -2141,3 +2141,6 @@
|
||||
{"timestamp": "2026-08-26T04:31:19.420574+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.office_teams_webhook_busy_ligh", "python_transform": "config['actions'][0]['choose'][0]['sequence'][0]['target']['entity_id'] = 'light.night_light_2'; config['actions'][0]['choose'][1]['sequence'][0]['target']['entity_id'] = 'light.night_light_2'", "config_hash": "09b42740ea112d26", "category": null, "wait": true, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 691.199541091919, "success": true, "error_message": null, "response_size_bytes": 60380, "user_context": null}
|
||||
{"timestamp": "2026-08-26T04:31:21.356628+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.office_manual_meeting_status_busy_ligh", "python_transform": "config['triggers'][1]['entity_id'] = 'binary_sensor.night_light_occupancy_2'; config['triggers'][2]['entity_id'] = 'binary_sensor.night_light_occupancy_2'; config['actions'][0]['choose'][0]['sequence'][0]['target']['entity_id'] = 'light.night_light_2'; config['actions'][0]['choose'][1]['sequence'][0]['target']['entity_id'] = 'light.night_light_2'; config['actions'][0]['choose'][2]['sequence'][0]['target']['entity_id'] = 'light.night_light_2'; config['actions'][0]['choose'][3]['sequence'][0]['target']['entity_id'] = 'light.night_light_2'", "config_hash": "9df44eab3a8eedb5", "category": null, "wait": true, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 619.4148063659668, "success": true, "error_message": null, "response_size_bytes": 60297, "user_context": null}
|
||||
{"timestamp": "2026-08-26T04:31:27.582043+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.office_manual_meeting_status_busy_light_working_hours", "python_transform": "config['triggers'][2]['entity_id'] = 'binary_sensor.night_light_occupancy_2'; config['triggers'][3]['entity_id'] = 'binary_sensor.night_light_occupancy_2'; config['actions'][0]['variables']['is_dark'] = config['actions'][0]['variables']['is_dark'].replace('sensor.night_light_illuminance','sensor.night_light_illuminance_2'); config['actions'][1]['choose'][0]['sequence'][0]['choose'][0]['sequence'][0]['target']['entity_id'] = 'light.night_light_2'; config['actions'][1]['choose'][0]['sequence'][0]['choose'][1]['sequence'][0]['target']['entity_id'] = 'light.night_light_2'; config['actions'][1]['choose'][1]['sequence'][0]['target']['entity_id'] = 'light.night_light_2'; config['actions'][1]['choose'][2]['sequence'][0]['target']['entity_id'] = 'light.night_light_2'; config['actions'][1]['choose'][3]['sequence'][1]['target']['entity_id'] = 'light.night_light_2'; config['actions'][1]['choose'][4]['sequence'][0]['target']['entity_id'] = 'light.night_light_2'; config['actions'][1]['choose'][5]['sequence'][0]['target']['entity_id'] = 'light.night_light_2'", "config_hash": "92a53d9976cc3182", "category": null, "wait": true, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 1255.3043365478516, "success": true, "error_message": null, "response_size_bytes": 61647, "user_context": null}
|
||||
{"timestamp": "2026-08-26T04:31:28.975404+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.office_test_meeting_status_light", "python_transform": "config['actions'][0]['choose'][0]['sequence'][0]['target']['entity_id'] = 'light.night_light_2'; config['actions'][0]['choose'][1]['sequence'][0]['target']['entity_id'] = 'light.night_light_2'", "config_hash": "e248161a8b4445ed", "category": null, "wait": true, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 1563.951015472412, "success": true, "error_message": null, "response_size_bytes": 59935, "user_context": null}
|
||||
{"timestamp": "2026-08-26T04:31:30.597680+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.office_lamp_and_lights_control", "python_transform": "inp = config['use_blueprint']['input']; inp['click_action_ch2'][0]['target']['entity_id'] = 'light.office_lamp_2'; inp['scroll_wheel_target_ch2'] = ['light.office_lamp_2']; inp['on_hold_action_ch2'][0]['target']['entity_id'] = 'light.office_lamp_2'; inp['triple_click_action_ch2'][0]['target']['entity_id'] = 'light.office_lamp_2'; inp['click_action_ch3'][0]['target']['entity_id'] = 'light.bedroom_lamp_2'; inp['scroll_wheel_target_ch3'] = ['light.bedroom_lamp_2']", "config_hash": "96c25121db475c01", "category": null, "wait": true, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 897.6747989654541, "success": true, "error_message": null, "response_size_bytes": 60204, "user_context": null}
|
||||
{"timestamp": "2026-08-26T04:31:32.702309+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.ikea_bilresa_e2489_dual_button_matter", "python_transform": "inp = config['use_blueprint']['input']; b2d = inp['button2_double'][0]; b2d['choose'][0]['sequence'][0]['target']['entity_id'] = 'light.office_lamp_2'; b2d['choose'][0]['sequence'][1]['data']['value'] = b2d['choose'][0]['sequence'][1]['data']['value'].replace('light.office_lamp','light.office_lamp_2'); b2d['choose'][0]['sequence'][2]['target']['entity_id'] = 'light.office_lamp_2'; b2d['default'][0]['target']['entity_id'] = 'light.office_lamp_2'", "config_hash": "b555305cee4669b9", "category": null, "wait": true, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 1546.9965934753418, "success": true, "error_message": null, "response_size_bytes": 60201, "user_context": null}
|
||||
|
||||
+10
-10
@@ -2042,16 +2042,16 @@
|
||||
sequence:
|
||||
- action: light.turn_on
|
||||
target:
|
||||
entity_id: light.office_lamp
|
||||
entity_id: light.office_lamp_2
|
||||
- action: input_text.set_value
|
||||
target:
|
||||
entity_id: input_text.office_lamp_previous_color
|
||||
data:
|
||||
value: '{{ state_attr(''light.office_lamp'', ''rgb_color'') | join('','')
|
||||
value: '{{ state_attr(''light.office_lamp_2'', ''rgb_color'') | join('','')
|
||||
}}'
|
||||
- action: light.turn_on
|
||||
target:
|
||||
entity_id: light.office_lamp
|
||||
entity_id: light.office_lamp_2
|
||||
data:
|
||||
rgb_color:
|
||||
- 135
|
||||
@@ -2060,7 +2060,7 @@
|
||||
default:
|
||||
- action: light.turn_on
|
||||
target:
|
||||
entity_id: light.office_lamp
|
||||
entity_id: light.office_lamp_2
|
||||
data:
|
||||
rgb_color: '{{ states(''input_text.office_lamp_previous_color'').split('','')
|
||||
| map(''int'') | list }}'
|
||||
@@ -2157,11 +2157,11 @@
|
||||
- action: light.toggle
|
||||
metadata: {}
|
||||
target:
|
||||
entity_id: light.office_lamp
|
||||
entity_id: light.office_lamp_2
|
||||
data:
|
||||
color_temp_kelvin: 5564
|
||||
scroll_wheel_target_ch2:
|
||||
- light.office_lamp
|
||||
- light.office_lamp_2
|
||||
scroll_wheel_mode_ext_ch2: instant
|
||||
double_click_action_ch2: []
|
||||
scroll_wheel_mode_ch2: 'lights: dim'
|
||||
@@ -2169,24 +2169,24 @@
|
||||
- action: light.turn_on
|
||||
metadata: {}
|
||||
target:
|
||||
entity_id: light.office_lamp
|
||||
entity_id: light.office_lamp_2
|
||||
data:
|
||||
color_temp_kelvin: 5765
|
||||
triple_click_action_ch2:
|
||||
- action: light.turn_on
|
||||
metadata: {}
|
||||
target:
|
||||
entity_id: light.office_lamp
|
||||
entity_id: light.office_lamp_2
|
||||
data:
|
||||
color_temp_kelvin: 2348
|
||||
click_action_ch3:
|
||||
- action: light.toggle
|
||||
metadata: {}
|
||||
target:
|
||||
entity_id: light.bedroom_lamp
|
||||
entity_id: light.bedroom_lamp_2
|
||||
data: {}
|
||||
scroll_wheel_target_ch3:
|
||||
- light.bedroom_lamp
|
||||
- light.bedroom_lamp_2
|
||||
scroll_wheel_mode_ext_ch3: instant
|
||||
on_hold_action_ch1:
|
||||
- action: light.turn_on
|
||||
|
||||
Reference in New Issue
Block a user