.ha_mcp/logs/mcp_usage.jsonl, scripts.yaml
This commit is contained in:
@@ -1330,3 +1330,5 @@
|
||||
{"timestamp": "2026-08-15T21:57:06.159975+00:00", "tool_name": "ha_search", "parameters": {"query": "octoprint", "domain_filter": "sensor", "area_filter": null, "search_types": null, "limit": 30, "offset": 0, "exact_match": true, "include_hidden": true, "include_config": false, "group_by_domain": false, "per_domain_limit": null, "state_filter": null, "result_fields": null, "fields": null, "config_time_budget": null, "ctx": {"_STATE_TTL_SECONDS": 86400}}, "execution_time_ms": 794.1229343414307, "success": true, "error_message": null, "response_size_bytes": 6173, "user_context": null}
|
||||
{"timestamp": "2026-08-15T21:57:10.450557+00:00", "tool_name": "ha_search", "parameters": {"query": "tool", "domain_filter": "sensor", "area_filter": null, "search_types": null, "limit": 15, "offset": 0, "exact_match": true, "include_hidden": true, "include_config": false, "group_by_domain": false, "per_domain_limit": null, "state_filter": null, "result_fields": null, "fields": null, "config_time_budget": null, "ctx": {"_STATE_TTL_SECONDS": 86400}}, "execution_time_ms": 523.3206748962402, "success": true, "error_message": null, "response_size_bytes": 1116, "user_context": null}
|
||||
{"timestamp": "2026-08-15T21:59:52.365409+00:00", "tool_name": "ha_search", "parameters": {"query": "octoprint", "domain_filter": "button", "area_filter": null, "search_types": null, "limit": 10, "offset": 0, "exact_match": true, "include_hidden": true, "include_config": false, "group_by_domain": false, "per_domain_limit": null, "state_filter": null, "result_fields": null, "fields": null, "config_time_budget": null, "ctx": {"_STATE_TTL_SECONDS": 86400}}, "execution_time_ms": 330.25074005126953, "success": true, "error_message": null, "response_size_bytes": 1670, "user_context": null}
|
||||
{"timestamp": "2026-08-15T22:04:55.010754+00:00", "tool_name": "ha_config_set_script", "parameters": {"script_id": "octoprint_extrude_10", "config": {"alias": "OctoPrint Extrude 10mm", "description": "Heats the nozzle to 220C, waits until it reaches 215C, then extrudes 10mm of filament. Refuses to run while a print is active.", "icon": "mdi:printer-3d-nozzle-outline", "sequence": [{"if": [{"condition": "state", "entity_id": "binary_sensor.octoprint_printing", "state": "off"}], "then": [{"action": "rest_command.octoprint_set_tool_target"}, {"wait_for_trigger": {"trigger": "[REDACTED]", "entity_id": "[REDACTED]", "above": "[REDACTED]"}, "timeout": {"minutes": "[REDACTED]"}, "continue_on_timeout": false}, {"action": "rest_command.octoprint_extrude_10"}]}]}, "python_transform": null, "config_hash": null, "category": null, "wait": true, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 325.3974914550781, "success": true, "error_message": null, "response_size_bytes": 425, "user_context": null}
|
||||
{"timestamp": "2026-08-15T22:04:59.925371+00:00", "tool_name": "ha_config_set_helper", "parameters": {"helper_type": "template", "name": "OctoPrint Extrude 10mm", "helper_id": null, "entry_id": null, "subentry_type": null, "subentry_id": null, "show_advanced_options": false, "icon": null, "area_id": null, "labels": null, "min_value": null, "max_value": null, "step": null, "unit_of_measurement": null, "options": null, "initial": null, "mode": null, "has_date": null, "has_time": null, "restore": null, "duration": null, "monday": null, "tuesday": null, "wednesday": null, "thursday": null, "friday": null, "saturday": null, "sunday": null, "latitude": null, "longitude": null, "radius": null, "passive": null, "user_id": null, "device_trackers": null, "picture": null, "tag_id": null, "description": null, "category": null, "config": {"next_step_id": "button", "name": "OctoPrint Extrude 10mm", "icon": "mdi:printer-3d-nozzle-outline", "press": [{"action": "script.octoprint_extrude_10"}]}, "wait": true, "action": null, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 245.3923225402832, "success": true, "error_message": null, "response_size_bytes": 443, "user_context": null}
|
||||
|
||||
@@ -240,3 +240,23 @@ light_color_temp_helper:
|
||||
name: Mode
|
||||
description: Select switch mode
|
||||
description: "Switch color temperature of light in steps \nVersion: 2026-03-22"
|
||||
octoprint_extrude_10:
|
||||
alias: OctoPrint Extrude 10mm
|
||||
description: Heats the nozzle to 220C, waits until it reaches 215C, then extrudes
|
||||
10mm of filament. Refuses to run while a print is active.
|
||||
icon: mdi:printer-3d-nozzle-outline
|
||||
sequence:
|
||||
- if:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.octoprint_printing
|
||||
state: 'off'
|
||||
then:
|
||||
- action: rest_command.octoprint_set_tool_target
|
||||
- wait_for_trigger:
|
||||
trigger: numeric_state
|
||||
entity_id: sensor.octoprint_tool_0_temperature
|
||||
above: 215
|
||||
timeout:
|
||||
minutes: 10
|
||||
continue_on_timeout: false
|
||||
- action: rest_command.octoprint_extrude_10
|
||||
|
||||
Reference in New Issue
Block a user