-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Proper M5C support #12
Comments
Is the gcode image not the default placeholder, and the percentage not 0? And do they show up correctly on the ankerctl dashboard? The sensors only populate once an MQTT connection has been established (and turned green on the ankerctl dashboard). The AddOn or Home Assistant logs should reflect this (or so I thought). I don't own an M5C myself but as far as I know is that if ankerctl works as expected, then the component should too. From what I could tell it should be working, at least judging from this Ankermgmt/ankermake-m5-protocol#130 (comment) |
Thats weird. Are you using my addon, or the ankermgmt one? My version includes changes from this PR (Ankermgmt/ankermake-m5-protocol#160) I'm afraid I'm not sure how to proceed in troubleshooting this, as all the communication is handled by ankerctl. The home assistant component only listens for the messages sent by ankerctl. Is there anything in the home assistant logs? These are the relevant lines for the home assistant component, all it does is read the websocket of ankerctl. There's nothing I can do with the home assistant component, it would have to be resolved upstream. I'm not so familiar with the ankerctl codebase, nor do I have access to an M5C, but afaik the command types should be shared between M5 and M5C. This issue might be relevant Ankermgmt/ankermake-m5-protocol#137, and the command types and values in the comments of the issue are identical to the ones being read from this component. |
Thats very strange. The state of MQTT is not determined by Home Assistant, but by ankerctl / anker. I'm afraid I'm not sure why it's happening to you, but it is beyond my control. (https://github.com/sondregronas/ankermake-m5-protocol/blob/de707c2ca85452af2fadb34e37fc3b6ffa7debf6/web/__init__.py#L449-L456) Try restarting the AddOn and the printer, mine auto restarts every 2hrs to circumvent a strange issue where ankerctl loses stability. If that doesn't work I cannot do more than guess what the issue could be; network instability? That specific home assistant sensor works by visiting the ankerctl instance at the following url: http://<ip-address>:4470/api/ankerctl/status. Try to refresh it and see if you notice something odd. There should be a field for state in {
"eu": "make-mqtt-eu.ankermake.com",
"us": "make-mqtt.ankermake.com",
} |
I still have the issue, still couldn’t figure out why it’s happening. Also just noted that the sensors values does work when the print finishes 🤷🏽♂️ ( it shows the temps and that the state is finished ), really strange. I hope someone more tech savvy than me can solve it someday. Thank you for your work 🙏🏽. |
I installed the add-on and integration. Installation went well and the add-on web ui is working and showing all the info. However, when i use the integration and add my M5C printer the value are all unknown or not showing the correct state (printing and temps) the only sensors that are properly working are the gcode image and the progress percentage
The text was updated successfully, but these errors were encountered: