3 files
This commit is contained in:
@@ -4313,3 +4313,7 @@
|
||||
{"timestamp": "2026-10-10T06:40:34.946422+00:00", "tool_name": "ha_config_set_helper", "parameters": {"helper_type": "input_text", "name": "Total Jobs", "helper_id": null, "entry_id": null, "subentry_type": null, "subentry_id": null, "show_advanced_options": false, "icon": "mdi:counter", "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": null, "wait": true, "action": null, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 86.17663383483887, "success": true, "error_message": null, "response_size_bytes": 275, "user_context": null}
|
||||
{"timestamp": "2026-10-10T06:40:34.953143+00:00", "tool_name": "ha_config_set_helper", "parameters": {"helper_type": "input_text", "name": "Job Filament", "helper_id": null, "entry_id": null, "subentry_type": null, "subentry_id": null, "show_advanced_options": false, "icon": "mdi:tape-measure", "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": null, "wait": true, "action": null, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 91.30001068115234, "success": true, "error_message": null, "response_size_bytes": 288, "user_context": null}
|
||||
{"timestamp": "2026-10-10T06:40:39.332538+00:00", "tool_name": "ha_set_entity", "parameters": {"entity_id": "input_text.total_filament_used", "area_id": null, "name": null, "icon": null, "device_class": null, "options": null, "enabled": null, "hidden": null, "aliases": null, "use_entity_name_alias": null, "categories": null, "labels": null, "label_operation": "set", "expose_to": null, "new_entity_id": "input_text.total_filament", "new_device_name": null}, "execution_time_ms": 8.72349739074707, "success": true, "error_message": null, "response_size_bytes": 687, "user_context": null}
|
||||
{"timestamp": "2026-10-10T06:42:31.929846+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": ["number.sparkx_moonraker_extruder_target", "sensor.sparkx_moonraker_extruder_target", "sensor.sparkx_moonraker_bed_target", "number.sparkx_moonraker_bed_target"], "fields": ["entity_id", "state"], "attribute_keys": null}, "execution_time_ms": 11.793375015258789, "success": true, "error_message": null, "response_size_bytes": 1695, "user_context": null}
|
||||
{"timestamp": "2026-10-10T06:42:35.118372+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": {"alias": "Set printer variables on start up.", "description": "Populate total filament, jobs and print time helpers when the printer starts or finishes a print.", "triggers": [{"trigger": "state", "entity_id": "sensor.sparkx_moonraker_printer_state", "to": "ready", "for": {"hours": 0, "minutes": 1, "seconds": 0}}, {"trigger": "state", "entity_id": "sensor.sparkx_moonraker_current_print_state", "from": "printing", "for": {"hours": 0, "minutes": 1, "seconds": 0}}], "conditions": [], "actions": [{"action": "input_text.set_value", "target": {"entity_id": "input_text.total_filament"}, "data": {"value": "{{ states.sensor.sparkx_moonraker_totals_filament_used.state_with_unit }}"}}, {"action": "input_text.set_value", "target": {"entity_id": "input_text.total_jobs"}, "data": {"value": "{{ states.sensor.sparkx_moonraker_totals_jobs.state_with_unit }}"}}, {"action": "input_text.set_value", "target": {"entity_id": "input_text.total_time"}, "data": {"value": "{{ states.sensor.sparkx_moonraker_totals_print_time.state_with_unit }}"}}], "mode": "single"}, "identifier": null, "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": 3226.1927127838135, "success": true, "error_message": null, "response_size_bytes": 213, "user_context": null}
|
||||
{"timestamp": "2026-10-10T06:42:35.562263+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": {"alias": "Reload Printer data", "description": "Reloads the Moonraker integration config entry when the printer comes back online or finishes a print.", "triggers": [{"trigger": "state", "entity_id": "sensor.sparkx_moonraker_printer_state", "from": "unavailable"}, {"trigger": "state", "entity_id": "sensor.sparkx_moonraker_current_print_state", "from": "printing"}], "conditions": [], "actions": [{"action": "homeassistant.reload_config_entry", "target": {"device_id": "25c093d2f351247a4f5a15b41e9f8078"}}], "mode": "single"}, "identifier": null, "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": 3643.616199493408, "success": true, "error_message": null, "response_size_bytes": 185, "user_context": null}
|
||||
{"timestamp": "2026-10-10T06:42:35.588189+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": {"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": "🖨 Printer finished", "message": "Printer job has finished", "data": {}}}], "mode": "single"}, "identifier": null, "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": 3668.663263320923, "success": true, "error_message": null, "response_size_bytes": 447, "user_context": null}
|
||||
|
||||
@@ -4663,3 +4663,86 @@
|
||||
value: '{{ new_slot }}'
|
||||
mode: queued
|
||||
max: 10
|
||||
- id: '1791614551915'
|
||||
alias: Set printer variables on start up.
|
||||
description: Populate total filament, jobs and print time helpers when the printer
|
||||
starts or finishes a print.
|
||||
triggers:
|
||||
- trigger: state
|
||||
entity_id: sensor.sparkx_moonraker_printer_state
|
||||
to: ready
|
||||
for:
|
||||
hours: 0
|
||||
minutes: 1
|
||||
seconds: 0
|
||||
- trigger: state
|
||||
entity_id: sensor.sparkx_moonraker_current_print_state
|
||||
from: printing
|
||||
for:
|
||||
hours: 0
|
||||
minutes: 1
|
||||
seconds: 0
|
||||
conditions: []
|
||||
actions:
|
||||
- action: input_text.set_value
|
||||
target:
|
||||
entity_id: input_text.total_filament
|
||||
data:
|
||||
value: '{{ states.sensor.sparkx_moonraker_totals_filament_used.state_with_unit
|
||||
}}'
|
||||
- action: input_text.set_value
|
||||
target:
|
||||
entity_id: input_text.total_jobs
|
||||
data:
|
||||
value: '{{ states.sensor.sparkx_moonraker_totals_jobs.state_with_unit }}'
|
||||
- action: input_text.set_value
|
||||
target:
|
||||
entity_id: input_text.total_time
|
||||
data:
|
||||
value: '{{ states.sensor.sparkx_moonraker_totals_print_time.state_with_unit
|
||||
}}'
|
||||
mode: single
|
||||
- id: '1791614551936'
|
||||
alias: Reload Printer data
|
||||
description: Reloads the Moonraker integration config entry when the printer comes
|
||||
back online or finishes a print.
|
||||
triggers:
|
||||
- trigger: state
|
||||
entity_id: sensor.sparkx_moonraker_printer_state
|
||||
from: unavailable
|
||||
- trigger: state
|
||||
entity_id: sensor.sparkx_moonraker_current_print_state
|
||||
from: printing
|
||||
conditions: []
|
||||
actions:
|
||||
- action: homeassistant.reload_config_entry
|
||||
target:
|
||||
device_id: 25c093d2f351247a4f5a15b41e9f8078
|
||||
mode: single
|
||||
- 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
|
||||
|
||||
+16
-16
@@ -4,7 +4,7 @@
|
||||
"state": "ON",
|
||||
"led_brightness": 100,
|
||||
"countdown_to_turn_off": 0,
|
||||
"voltage": 121.7,
|
||||
"voltage": 121.5,
|
||||
"countdown_to_turn_on": 0,
|
||||
"ac_frequency": 60,
|
||||
"power_factor": 0.13,
|
||||
@@ -27,7 +27,7 @@
|
||||
"led_brightness": 100,
|
||||
"countdown_to_turn_off": 0,
|
||||
"countdown_to_turn_on": 0,
|
||||
"power": 2.5,
|
||||
"power": 2,
|
||||
"current": 0.1,
|
||||
"energy": 54.37,
|
||||
"power_factor": 0.18,
|
||||
@@ -45,9 +45,9 @@
|
||||
"state": "ON",
|
||||
"led_brightness": 100,
|
||||
"countdown_to_turn_off": 0,
|
||||
"voltage": 119.2,
|
||||
"voltage": 120.4,
|
||||
"countdown_to_turn_on": 0,
|
||||
"energy": 105.04,
|
||||
"energy": 105.05,
|
||||
"power_factor": 0.89,
|
||||
"ac_frequency": 60,
|
||||
"update": {
|
||||
@@ -58,8 +58,8 @@
|
||||
"latest_release_notes": null
|
||||
},
|
||||
"linkquality": 145,
|
||||
"power": 88.4,
|
||||
"current": 0.85,
|
||||
"power": 86.6,
|
||||
"current": 0.8,
|
||||
"power_on_behavior": "on"
|
||||
},
|
||||
"0xb40e060fffe031e3": {
|
||||
@@ -74,12 +74,12 @@
|
||||
"led_brightness": 100,
|
||||
"countdown_to_turn_off": 0,
|
||||
"countdown_to_turn_on": 0,
|
||||
"voltage": 119.7,
|
||||
"voltage": 120.2,
|
||||
"state": "ON",
|
||||
"ac_frequency": 60,
|
||||
"energy": 213.2,
|
||||
"power": 99,
|
||||
"current": 0.87,
|
||||
"energy": 213.21,
|
||||
"power": 103.7,
|
||||
"current": 0.92,
|
||||
"power_factor": 0.95,
|
||||
"update": {
|
||||
"state": "idle",
|
||||
@@ -95,13 +95,13 @@
|
||||
"led_brightness": 100,
|
||||
"countdown_to_turn_off": 0,
|
||||
"countdown_to_turn_on": 0,
|
||||
"voltage": 121.2,
|
||||
"energy": 101.22,
|
||||
"voltage": 121.3,
|
||||
"energy": 101.23,
|
||||
"state": "ON",
|
||||
"power": 11.9,
|
||||
"power": 12.8,
|
||||
"current": 0.41,
|
||||
"ac_frequency": 60,
|
||||
"power_factor": 0.54,
|
||||
"power_factor": 0.47,
|
||||
"update": {
|
||||
"state": "idle",
|
||||
"installed_version": 268513381,
|
||||
@@ -114,7 +114,7 @@
|
||||
},
|
||||
"0xffffb40e060895b3": {
|
||||
"state": "ON",
|
||||
"voltage": 121.8,
|
||||
"voltage": 121.3,
|
||||
"ac_frequency": 60,
|
||||
"energy": 14.61,
|
||||
"current": 0.02,
|
||||
@@ -136,7 +136,7 @@
|
||||
"0xffffb40e0608864e": {
|
||||
"led_brightness": 100,
|
||||
"countdown_to_turn_off": 0,
|
||||
"voltage": 121.6,
|
||||
"voltage": 121.2,
|
||||
"energy": 35.63,
|
||||
"countdown_to_turn_on": 0,
|
||||
"state": "ON",
|
||||
|
||||
Reference in New Issue
Block a user