diff --git a/.ha_mcp/logs/mcp_usage.jsonl b/.ha_mcp/logs/mcp_usage.jsonl index 9c5bbf26..d7557177 100644 --- a/.ha_mcp/logs/mcp_usage.jsonl +++ b/.ha_mcp/logs/mcp_usage.jsonl @@ -4760,3 +4760,5 @@ {"timestamp": "2026-10-16T20:09:42.596500+00:00", "tool_name": "ha_search", "parameters": {"query": "grafana", "domain_filter": null, "area_filter": null, "search_types": null, "limit": 20, "offset": 0, "exact_match": true, "include_hidden": true, "include_config": false, "group_by_domain": false, "per_domain_limit": null, "state_filter": null, "result_fields": ["entity_id", "friendly_name", "domain", "state"], "fields": null, "config_time_budget": null, "ctx": "Context(_STATE_TTL_SECONDS=86400)"}, "execution_time_ms": 159.06977653503418, "success": true, "error_message": null, "response_size_bytes": 495, "user_context": null} {"timestamp": "2026-10-16T20:09:43.020054+00:00", "tool_name": "ha_config_get_automation", "parameters": {"identifier": "grafana_colour_sync_5min"}, "execution_time_ms": 587.2225761413574, "success": false, "error_message": "{\n \"success\": false,\n \"error\": {\n \"code\": \"RESOURCE_NOT_FOUND\",\n \"message\": \"Automation not found: grafana_colour_sync_5min\",\n \"suggestion\": \"Use ha_search(domain_filter='automation') to find existing automations\"\n },\n \"automation_id\": \"grafana_colour_sync_5min\",\n \"available_automation_ids\": [\n \"automation.tablet_dim_screen_at_night\",\n \"automation.tablet_restore_screen_in_morning\",\n \"automation.reload_hilo_integrations_on_reboot\",\n \"automation.notify_when_ring_console_battery_low\",\n \"automation.notify_when_front_door_sensor_battery_low\",\n \"automation.alert_fridge_or_freezer_power_outage\",\n \"automation.kitchen_coffee_maker_active_notification\",\n \"automation.office_turn_on_lights_on_motion\",\n \"automation.office_turn_off_lights_on_exit\",\n \"automation.water_leak_detected\"\n ]\n}", "response_size_bytes": null, "user_context": null} {"timestamp": "2026-10-16T20:09:43.067654+00:00", "tool_name": "ha_get_logs", "parameters": {"source": "error_log", "limit": 40, "search": "automation", "order": "newest", "hours_back": 1, "entity_id": null, "end_time": null, "offset": 0, "compact": true, "level": null, "structured": false, "top_n": null, "slug": null}, "execution_time_ms": 630.9888362884521, "success": true, "error_message": null, "response_size_bytes": 3427, "user_context": null} +{"timestamp": "2026-10-16T20:10:29.108781+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": {"id": "grafana_colour_sync_5min", "alias": "Grafana colour sync (CFS Lite slots)", "description": "Keeps the four CFS Lite bar colours in the Grafana 'Filament - Spools & Forecast' dashboard in sync with the Spoolman location of each slot. HA renders the slot -> colour mapping and passes it to /config/colour-sync.py, which calls the Grafana API. Needs no Home Assistant API access.", "triggers": [{"trigger": "time_pattern", "minutes": "/5"}], "actions": [{"action": "shell_command.grafana_colour_sync"}], "mode": "single"}, "identifier": "grafana_colour_sync_5min", "python_transform": null, "config_hash": null, "take_control_of_blueprint": false, "category": null, "wait": true, "enabled": null, "run_actions": false, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 942.6050186157227, "success": true, "error_message": null, "response_size_bytes": 226, "user_context": null} +{"timestamp": "2026-10-16T20:10:33.138871+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": "automation.grafana_colour_sync_cfs_lite_slots", "fields": ["state", "attributes"], "attribute_keys": ["id", "last_triggered", "mode", "current"]}, "execution_time_ms": 4.908084869384766, "success": true, "error_message": null, "response_size_bytes": 472, "user_context": null} diff --git a/automations.yaml b/automations.yaml index c5c3fbe5..40cdd3f8 100644 --- a/automations.yaml +++ b/automations.yaml @@ -5054,3 +5054,15 @@ data: value: '{{ bands }}' mode: single +- id: grafana_colour_sync_5min + alias: Grafana colour sync (CFS Lite slots) + description: Keeps the four CFS Lite bar colours in the Grafana 'Filament - Spools + & Forecast' dashboard in sync with the Spoolman location of each slot. HA renders + the slot -> colour mapping and passes it to /config/colour-sync.py, which calls + the Grafana API. Needs no Home Assistant API access. + triggers: + - trigger: time_pattern + minutes: /5 + actions: + - action: shell_command.grafana_colour_sync + mode: single