.ha_mcp/logs/mcp_usage.jsonl, automations.yaml
This commit is contained in:
@@ -3127,3 +3127,5 @@
|
||||
{"timestamp": "2026-08-28T18:25:36.967911+00:00", "tool_name": "ha_call_service", "parameters": {"domain": "switch", "service": "turn_off", "entity_id": "switch.zigbee2mqtt_bridge_permit_join", "data": null, "return_response": false, "wait": true, "verbose": false, "result_fields": null, "result_attribute_keys": null, "ws_command": null}, "execution_time_ms": 265.18726348876953, "success": true, "error_message": null, "response_size_bytes": 225, "user_context": null}
|
||||
{"timestamp": "2026-08-28T18:25:48.378513+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": "sensor.0xffffb40e060893d8_linkquality", "fields": ["state", "attributes"], "attribute_keys": ["friendly_name"]}, "execution_time_ms": 14.730453491210938, "success": true, "error_message": null, "response_size_bytes": 422, "user_context": null}
|
||||
{"timestamp": "2026-08-28T18:27:32.087593+00:00", "tool_name": "ha_list_services", "parameters": {"domain": "notify", "query": null, "limit": 50, "offset": 0, "detail_level": "summary", "service_fields": null, "fields": null}, "execution_time_ms": 108.99090766906738, "success": true, "error_message": null, "response_size_bytes": 1583, "user_context": null}
|
||||
{"timestamp": "2026-08-28T18:28:50.347680+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": {"alias": "Filter plug health alert", "description": "Notify (mobile push + persistent notification) when the Filter plug goes unavailable for 2+ minutes, or its Zigbee linkquality stays below 60 for 5+ minutes.", "mode": "single", "triggers": [{"trigger": "state", "entity_id": "switch.filter", "to": "unavailable", "for": {"minutes": 2}, "id": "offline"}, {"trigger": "numeric_state", "entity_id": "sensor.0xffffb40e060893d8_linkquality", "below": 60, "for": {"minutes": 5}, "id": "weak"}], "actions": [{"choose": [{"conditions": ["[REDACTED]"], "sequence": ["[REDACTED]", "[REDACTED]"]}, {"conditions": ["[REDACTED]"], "sequence": ["[REDACTED]", "[REDACTED]"]}]}]}, "identifier": null, "python_transform": null, "config_hash": null, "category": null, "wait": true, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 932.4324131011963, "success": true, "error_message": null, "response_size_bytes": 195, "user_context": null}
|
||||
{"timestamp": "2026-08-28T18:28:52.344626+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": "automation.filter_plug_health_alert", "fields": ["state", "attributes"], "attribute_keys": ["last_triggered", "id", "source"]}, "execution_time_ms": 22.286176681518555, "success": true, "error_message": null, "response_size_bytes": 429, "user_context": null}
|
||||
|
||||
@@ -3742,3 +3742,48 @@
|
||||
title: Z2M Error
|
||||
message: '{{ trigger.payload_json.message }}'
|
||||
mode: single
|
||||
- id: '1787941729593'
|
||||
alias: Filter plug health alert
|
||||
description: Notify (mobile push + persistent notification) when the Filter plug
|
||||
goes unavailable for 2+ minutes, or its Zigbee linkquality stays below 60 for
|
||||
5+ minutes.
|
||||
triggers:
|
||||
- trigger: state
|
||||
entity_id: switch.filter
|
||||
to: unavailable
|
||||
for:
|
||||
minutes: 2
|
||||
id: offline
|
||||
- trigger: numeric_state
|
||||
entity_id: sensor.0xffffb40e060893d8_linkquality
|
||||
below: 60
|
||||
for:
|
||||
minutes: 5
|
||||
id: weak
|
||||
actions:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: offline
|
||||
sequence:
|
||||
- action: notify.notify
|
||||
data:
|
||||
title: Filter plug offline
|
||||
message: Filter plug offline - unavailable for 2+ minutes. Check the plug.
|
||||
- action: notify.persistent_notification
|
||||
data:
|
||||
title: Filter plug offline
|
||||
message: Filter plug offline - unavailable for 2+ minutes. Check the plug.
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: weak
|
||||
sequence:
|
||||
- action: notify.notify
|
||||
data:
|
||||
title: Filter plug weak signal
|
||||
message: Filter plug weak signal - linkquality below 60 for 5+ minutes.
|
||||
- action: notify.persistent_notification
|
||||
data:
|
||||
title: Filter plug weak signal
|
||||
message: Filter plug weak signal - linkquality below 60 for 5+ minutes.
|
||||
mode: single
|
||||
|
||||
Reference in New Issue
Block a user