diff --git a/.ha_mcp/backups/automation.automation.printer_finished.20261010_064542.yaml b/.ha_mcp/backups/automation.automation.printer_finished.20261010_064542.yaml new file mode 100644 index 00000000..e7076e03 --- /dev/null +++ b/.ha_mcp/backups/automation.automation.printer_finished.20261010_064542.yaml @@ -0,0 +1,34 @@ +# ha_mcp_backup +schema_version: 1 +domain: automation +entity_id: automation.printer_finished +captured: '2026-10-10T06:45:42.166180+00:00' +tool: ha_config_set_automation +config: + id: '1791614551939' + alias: Printer finished + description: Sets the job filament helper and notifies when the print reaches 98% + completion. + triggers: + - trigger: state + entity_id: sensor.sparkx_moonraker_progress + to: '98' + conditions: [] + actions: + - action: input_text.set_value + target: + entity_id: input_text.job_filament + data: + value: '{{ states.sensor.sparkx_moonraker_filament_used.state_with_unit }}' + - action: notify.franco + data: + message: TTS + title: Printing complete + data: + tts_text: Print job is complete + - action: notify.franco + data: + title: "\U0001F5A8 Printer finished" + message: Printer job has finished + data: {} + mode: single diff --git a/.ha_mcp/logs/mcp_usage.jsonl b/.ha_mcp/logs/mcp_usage.jsonl index 0927efe4..de741ce7 100644 --- a/.ha_mcp/logs/mcp_usage.jsonl +++ b/.ha_mcp/logs/mcp_usage.jsonl @@ -4326,3 +4326,4 @@ {"timestamp": "2026-10-10T06:43:46.935891+00:00", "tool_name": "ha_config_list_helpers", "parameters": {"helper_type": "person", "limit": 50, "offset": 0}, "execution_time_ms": 10.815143585205078, "success": true, "error_message": null, "response_size_bytes": 526, "user_context": null} {"timestamp": "2026-10-10T06:43:56.725396+00:00", "tool_name": "ha_list_services", "parameters": {"domain": null, "query": "send_message", "limit": 50, "offset": 0, "detail_level": "full", "service_fields": ["service", "fields"], "fields": null}, "execution_time_ms": 113.23738098144531, "success": true, "error_message": null, "response_size_bytes": 5860, "user_context": null} {"timestamp": "2026-10-10T06:44:51.452086+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": ["device_tracker.sm_f956w", "device_tracker.sm_t387w", "device_tracker.motorola_one_vision", "device_tracker.francos_ipad"], "fields": ["entity_id", "state", "attributes", "last_updated"], "attribute_keys": ["friendly_name", "source"]}, "execution_time_ms": 8.842706680297852, "success": true, "error_message": null, "response_size_bytes": 1172, "user_context": null} +{"timestamp": "2026-10-10T06:45:43.501332+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": {"alias": "Printer finished", "description": "Sets the job filament helper and notifies Franco via Telegram when the print reaches 98% completion.", "triggers": [{"trigger": "state", "entity_id": "sensor.sparkx_moonraker_progress", "to": "98"}], "conditions": [], "actions": [{"action": "input_text.set_value", "target": {"entity_id": "input_text.job_filament"}, "data": {"value": "{{ states.sensor.sparkx_moonraker_filament_used.state_with_unit }}"}}, {"action": "telegram_bot.send_message", "data": {"title": "🖨 Printing complete", "message": "Print job has finished", "parse_mode": "plain_text"}, "target": {"entity_id": "notify.franco"}}], "mode": "single"}, "identifier": "automation.printer_finished", "python_transform": null, "config_hash": "", "take_control_of_blueprint": false, "category": null, "wait": true, "enabled": null, "run_actions": false, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 1331.4282894134521, "success": true, "error_message": null, "response_size_bytes": 179, "user_context": null} diff --git a/automations.yaml b/automations.yaml index b4a82bec..422b548d 100644 --- a/automations.yaml +++ b/automations.yaml @@ -4721,8 +4721,8 @@ mode: single - id: '1791614551939' alias: Printer finished - description: Sets the job filament helper and notifies when the print reaches 98% - completion. + description: Sets the job filament helper and notifies Franco via Telegram when + the print reaches 98% completion. triggers: - trigger: state entity_id: sensor.sparkx_moonraker_progress @@ -4734,15 +4734,11 @@ entity_id: input_text.job_filament data: value: '{{ states.sensor.sparkx_moonraker_filament_used.state_with_unit }}' - - action: notify.franco + - action: telegram_bot.send_message data: - message: TTS - title: Printing complete - data: - tts_text: Print job is complete - - action: notify.franco - data: - title: "\U0001F5A8 Printer finished" - message: Printer job has finished - data: {} + title: "\U0001F5A8 Printing complete" + message: Print job has finished + parse_mode: plain_text + target: + entity_id: notify.franco mode: single