diff --git a/.ha_mcp/logs/mcp_usage.jsonl b/.ha_mcp/logs/mcp_usage.jsonl index da84a0f..b6d1193 100644 --- a/.ha_mcp/logs/mcp_usage.jsonl +++ b/.ha_mcp/logs/mcp_usage.jsonl @@ -181,3 +181,4 @@ {"timestamp": "2026-07-28T19:44:03.925638+00:00", "tool_name": "ha_call_service", "parameters": {"domain": "shell_command", "service": "reload", "entity_id": null, "data": null, "return_response": false, "wait": true, "verbose": false, "result_fields": null, "result_attribute_keys": null, "ws_command": null}, "execution_time_ms": 100.52847862243652, "success": true, "error_message": null, "response_size_bytes": 175, "user_context": null} {"timestamp": "2026-07-28T19:44:11.144641+00:00", "tool_name": "ha_call_service", "parameters": {"domain": "shell_command", "service": "test_supervisor", "entity_id": null, "data": null, "return_response": false, "wait": true, "verbose": false, "result_fields": null, "result_attribute_keys": null, "ws_command": null}, "execution_time_ms": 52.65474319458008, "success": true, "error_message": null, "response_size_bytes": 193, "user_context": null} {"timestamp": "2026-07-28T19:44:20.856665+00:00", "tool_name": "ha_get_logs", "parameters": {"source": "system", "limit": null, "search": "shell_command", "order": "newest", "hours_back": 1, "entity_id": null, "end_time": null, "offset": 0, "compact": true, "level": "ERROR", "slug": null}, "execution_time_ms": 7.845401763916016, "success": true, "error_message": null, "response_size_bytes": 1343, "user_context": null} +{"timestamp": "2026-07-28T19:44:40.300478+00:00", "tool_name": "ha_call_service", "parameters": {"domain": "shell_command", "service": "reload", "entity_id": null, "data": null, "return_response": false, "wait": true, "verbose": false, "result_fields": null, "result_attribute_keys": null, "ws_command": null}, "execution_time_ms": 80.6727409362793, "success": true, "error_message": null, "response_size_bytes": 175, "user_context": null} diff --git a/configuration.yaml b/configuration.yaml index 28b215e..868d7a1 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -6,7 +6,7 @@ utility_meter: # Shell Commands shell_command: - test_supervisor: 'env | grep SUPERVISOR > /media/test_env.txt 2>&1 && curl -s -o /media/test_supervisor.png "http://supervisor/core/api/camera_proxy/camera.hallway_hallway_camera" -H "Authorization: Bearer $SUPERVISOR_TOKEN"; echo "exit: $?" >> /media/test_env.txt' + test_supervisor: 'echo "token_set: $( [ -n \"$SUPERVISOR_TOKEN\" ] && echo yes || echo no )" > /media/test_env.txt && echo "token_len: ${#SUPERVISOR_TOKEN}" >> /media/test_env.txt && curl -v -o /media/test_supervisor.png "http://supervisor/core/api/camera_proxy/camera.hallway_hallway_camera" -H "Authorization: Bearer $SUPERVISOR_TOKEN" >> /media/test_env.txt 2>&1; echo "exit: $?" >> /media/test_env.txt' download_camera_image: 'curl -s -o {{ media_path }} "http://supervisor/core/api/camera_proxy/camera.hallway_hallway_camera" -H "Authorization: Bearer $SUPERVISOR_TOKEN" && cp {{ media_path }} {{ www_path }}' cleanup_blink_snapshots: "find /media /config/www -name 'blink_*.jpg' -mmin +360 -delete"