-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Current layer value changes automation not working #775
Comments
Home assistant is telling you that the automation you are creating requires an above or below value to be configured. This is unrelated to this integration. |
EDIT: I think I have now just realised these triggers are not at all from the integration, I am sorry about that. I don't know where they are from, but perhaps a layer change trigger will be available in the future? EDIT 2: I just read the message on It seems that it is expecting there to be a value for above / below for the "current layer change" but there is no input to set this. For the print length distance change, the inputs do appear. Regardless, is there a way to trigger an event when the layer changes? I ask because I want to program the gcode to move the head out of the way (at the start of the layer), and eventually to get a different camera to take a snapshot so I can create a timelapse. Right now I just tried to get it to send a notification to my phone but I cannot even get it to do that. Please let me know if this trigger is possible with this integration, thanks. |
The integration must be indirectly influencing how home assistant is categorizing the sensor type. I’ll take a look. |
Thanks, sorry if it's a bit different to what I initially posted but it'll be good if it's fixed. I hope that I haven't confused things. |
You can definitely do an automation triggered by layer change. I often forget to put a pause at the layers in which i want to insert hex nuts. You can't add a pause to the gcode after sending off the print, so i have an automation that pauses the print when the layer changes to the one i want to pause (before), and sends a notification to my phone. This is the automation in yaml format, it has saved me a few times already :) alias: 3d-printer:pause-at-layer
description: ""
triggers:
- trigger: numeric_state
entity_id:
- sensor.a1mini_01020c010203f_current_layer
# remove this and change the trigger to 'state' to trigger on every layer change
above: 27
conditions: []
actions:
- action: button.press
metadata: {}
data: {}
target:
entity_id: button.a1mini_01020c010203f_pause_printing
- action: notify.mobile_app_my_phone
metadata: {}
data:
message: Print paused
mode: single |
But presumably you had to craft the automation in yaml since HA doesn't have the above file in the UI? |
No, i created it using the UI, you can either select the entity directly in a trigger for a numeric state (what i did) or first select the device and then choose the Layer Change event. It's all in the UI. I just pasted the yaml output here because you can copy-paste it better. |
What version of home assistant / integration? I see the same as OP - no UI for above/below and an error when saving. I had to make a code change to set the unit type to a space character to get the UI to appear as it does for other measurement sensors. |
I am running HA I did have some connection problems with newer firmware versions with Bambu Studio, so I downgraded my A1 Mini firmware to the one it came with. It was two versions older than the current one, I don't know where to look it up (during a print). Is the firmware version relevant here? Note: Added screenshots of the UI to the comment above |
Home Assistant Version
2024.11.3
Bambu Lab Integration Version
v2.0.38
Describe the bug
On creating an automation for current layer change, I am receiving an error message saying "Message malformed: must contain at least one of below, above:
To Reproduce
Expected Behaviour
I expect the automation to save. Ideally whenever the layer number goes up, it triggers an event, without needing an above / below value.
config_entry-bambu_lab-01JDBB762Y7GMWCJ8JKY843MP8.json
What device are you using?
A1 Mini
Diagnostic Output
Log Extracts
No response
Other Information
No response
The text was updated successfully, but these errors were encountered: