-
Notifications
You must be signed in to change notification settings - Fork 41
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
Home assistant integration #130
Comments
Despite the title, #92 seems to be working in this same direction -- you may want to see about coordinating efforts. |
I would also be ninteressted in a HA integration. |
Please work on this# |
Hi - I've been working on a Home Assistant integration that seems to have now reached a usable stage, which is available here: https://github.com/sondregronas/ankermake-hass-component and can be installed via hacs. Note: I've only tested with ankerctl in the v1.1 branch, and I'm not sure how stable it is yet as finding errors or debugging takes a lot of time I'm also open to moving said integration over to the Ankermgmt organization if it's of any interest. (Ankermgmt/ankermgmt-hassio-addons#5) |
Hey, But where to find ankerctl for HA? Am I blind? Thanks — Addon found 👍🏻 |
You just need an instance of ankerctl running, yes. Once you've installed via HACS / imported to |
Thanks! Thanks. |
Is the current way to install home assistant addon. |
You need ankerctl running, I use this fork in docker for the time being: https://github.com/sondregronas/ankermake-m5-protocol/tree/patch-exiles-1.1-auto-restart-on-failure, but I presume the home assistant version should work. The integration only needs the URL of an ankerctl instance, it doesn't matter if its running via home assistant or not. EDIT: This services:
ankerctl:
container_name: ankerctl
restart: unless-stopped
build:
context: https://github.com/sondregronas/ankermake-m5-protocol.git#patch-exiles-1.1-auto-restart-on-failure
privileged: true
# host-mode networking is required for pppp communication with the
# printer, since it is an asymmetrical udp protocol.
network_mode: host
environment:
- FLASK_HOST=0.0.0.0
- FLASK_PORT=4470
volumes:
- ankerctl_vol:/root/.config/ankerctl
- ./ankermake-m5-protocol/web/:/app/web
# This container will restart the ankerctl container every 2 hours
# as a temporary workaround for some socket issues.
ankerctl_restarter:
image: docker
volumes: ["/var/run/docker.sock:/var/run/docker.sock"]
# 2 hours = 7200 seconds
command: ["/bin/sh", "-c", "while true; do sleep 7200; docker restart ankerctl; done"]
restart: unless-stopped
volumes:
ankerctl_vol: |
Sure, but i do not want to run something in parallel. |
https://github.com/sondregronas/ankermgmt-hassio-addons - try replacing the main addon with this (remove the old repo from AddOn repos & replace with the new one - works for me 😄 ( This is the same Dockerfile as in my fork - which has the same changes as the fork/pr you linked, though it is not a long term solution. Once merged I'll most likely remove it.. (or just update it to the main repo's latest release) I'd recommend creating an automation to restart the AddOn every 2 hours, if you want a reliable videostream. |
Thanks! Edit: Do I miss somerhing in addition? |
I'll have a fix out in a couple minutes - good catch, this must've been an oversight in one of the other PRs :) Go to AddOns and hit Check for Updates then rebuild the container in ~30 minutes |
Hey, will try it tomorrow! Thanks! |
Should be working now in a couple minutes (requires a rebuild of the addon) - I'm not 100% certain the M5C is supported, from what I can tell it should? EDIT: I've tried to log off and log back in again via the addon - everything seems to be working fine on the M5 at least 😄 If there's any issues with the component please move the convo over here: https://github.com/sondregronas/ankermake-hass-component/issues - I won't be able to work on this again until a couple weeks from now, but as far as I can tell we're stable-ish. |
Thanks! |
Login worked, will install the plugin. |
Your issue may already be reported! Please search on the issue tracker before creating one.
Describe the solution you'd like
Excellent work. I'm really interested in getting status monitoring of the Ankermake M5 into home assistant so I can monitor from afar and auto shutdown. Probably only needs a few status parameters such as printing, job completed, bed/nozzle temps. start/stop printing. The icing on the cake would be a camera feed for sure. keep up the good work.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: