From 74706651f12a1b11ea06a0919455a130ca17f66c Mon Sep 17 00:00:00 2001 From: Home Assistant Version Control Date: Fri, 2 Oct 2026 20:48:45 +0000 Subject: [PATCH] 3 files --- ..._1_desiccant_pack_due.20261002_204840.yaml | 34 +++++++++++++++++++ .ha_mcp/logs/mcp_usage.jsonl | 1 + automations.yaml | 3 +- 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 .ha_mcp/backups/automation.automation.cfs_box_1_desiccant_pack_due.20261002_204840.yaml diff --git a/.ha_mcp/backups/automation.automation.cfs_box_1_desiccant_pack_due.20261002_204840.yaml b/.ha_mcp/backups/automation.automation.cfs_box_1_desiccant_pack_due.20261002_204840.yaml new file mode 100644 index 00000000..c05e724e --- /dev/null +++ b/.ha_mcp/backups/automation.automation.cfs_box_1_desiccant_pack_due.20261002_204840.yaml @@ -0,0 +1,34 @@ +# ha_mcp_backup +schema_version: 1 +domain: automation +entity_id: automation.cfs_box_1_desiccant_pack_due +captured: '2026-10-02T20:48:40.265891+00:00' +tool: ha_config_set_automation +config: + id: '1790973987624' + alias: CFS Box 1 - Desiccant Pack Due + description: 'Notify when the SparkX i7 CFS box 1 humidity stays at or above 34% + + for 60 minutes, meaning the desiccant pack needs replacing. The short spikes + + that happen when the box is opened to swap a filament never last that long.' + triggers: + - above: 33.9 + entity_id: sensor.sparkx_i7_cfs_box_1_humidity + for: + minutes: 60 + trigger: numeric_state + actions: + - action: notify.notify + data: + message: CFS box 1 humidity has been {{ reading }}% or higher for 60 minutes + (threshold 34%). Time to replace the desiccant pack. + title: 'CFS Box 1: replace desiccant pack' + - action: notify.persistent_notification + data: + message: CFS box 1 humidity has been {{ reading }}% or higher for 60 minutes + (threshold 34%). Time to replace the desiccant pack. + title: 'CFS Box 1: replace desiccant pack' + mode: single + variables: + reading: '{{ trigger.to_state.state | float | round(0) | int }}' diff --git a/.ha_mcp/logs/mcp_usage.jsonl b/.ha_mcp/logs/mcp_usage.jsonl index eddfe497..86ec9f25 100644 --- a/.ha_mcp/logs/mcp_usage.jsonl +++ b/.ha_mcp/logs/mcp_usage.jsonl @@ -3822,3 +3822,4 @@ {"timestamp": "2026-10-02T20:47:47.611081+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.cfs_box_1_desiccant_pack_due", "python_transform": null, "config_hash": null, "take_control_of_blueprint": false, "category": null, "wait": true, "enabled": null, "run_actions": true, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 231.62484169006348, "success": true, "error_message": null, "response_size_bytes": 78189, "user_context": null} {"timestamp": "2026-10-02T20:47:56.254689+00:00", "tool_name": "ha_get_automation_traces", "parameters": {"automation_id": "automation.cfs_box_1_desiccant_pack_due", "run_id": null, "limit": 3, "deduplicate": true, "detailed": false, "sections": "trigger,actions,error", "offset": 0, "order": "newest", "ctx": {"_STATE_TTL_SECONDS": 86400}}, "execution_time_ms": 5.267620086669922, "success": true, "error_message": null, "response_size_bytes": 514, "user_context": null} {"timestamp": "2026-10-02T20:48:06.920680+00:00", "tool_name": "ha_get_logs", "parameters": {"source": "system", "limit": 15, "search": "desiccant", "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": 34.28173065185547, "success": true, "error_message": null, "response_size_bytes": 518, "user_context": null} +{"timestamp": "2026-10-02T20:48:40.744584+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.cfs_box_1_desiccant_pack_due", "python_transform": "config['variables']['reading'] = \"{{ states('sensor.sparkx_i7_cfs_box_1_humidity') | float | round(0) | int }}\"", "config_hash": "711b362f355dcee3", "take_control_of_blueprint": false, "category": null, "wait": true, "enabled": null, "run_actions": false, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 473.0255603790283, "success": true, "error_message": null, "response_size_bytes": 78564, "user_context": null} diff --git a/automations.yaml b/automations.yaml index adee55cc..a0386d3b 100644 --- a/automations.yaml +++ b/automations.yaml @@ -4340,4 +4340,5 @@ title: 'CFS Box 1: replace desiccant pack' mode: single variables: - reading: '{{ trigger.to_state.state | float | round(0) | int }}' + reading: '{{ states(''sensor.sparkx_i7_cfs_box_1_humidity'') | float | round(0) + | int }}'