-
Notifications
You must be signed in to change notification settings - Fork 3
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
Support for HomeAssistant core #3
Comments
Yes, this is the custom component for home assistant core: https://github.com/kevdliu/hacs-anylist |
I read that: This integration requires Home Assistant Addon For Anylist. so seems not for core. |
Oh are you referring to the "Home Assistant Core" installation method (https://www.home-assistant.io/installation/) where you're running home assistant in a python virtual environment? |
Yes, Home Assistant Core ;-) |
Any news on that topic ? |
Hmm so the addon itself only runs on HassOS I believe but all it contains is a nodejs server that serves requests for the anylist custom integration and that can technically run anywhere. If you download the index.js file from the repo you can modify the email, password, and port constants to your own and run the node server wherever you like. |
Just an update, I’m currently working on packaging the nodejs server in the addon into a standalone executable that the integration can execute so hopefully in the future the addon won’t be needed anymore. |
That would be amazing! |
I just released a new version of the integration that adds support for binary servers. Instead of installing the addon, you can download the precompiled binary from here https://github.com/kevdliu/hassio-addon-anylist/releases (make sure to choose the right binary based on your OS and architecture). During installation of the integration, you can choose between using the addon server or the binary server. If you select the binary server option, you just have to enter the file path of the server binary file and your anylist email and password. The integration will then handle starting the server and passing it your anylist credentials. The binary builds are also reproducible so you can verify its integrity by running the build command here https://github.com/kevdliu/hassio-addon-anylist/blob/main/anylist/build-anylist.txt and comparing the checksum of the resulting binary. |
It's pretty experimental so let me know if you run into any issues |
Hi @kevdliu sorry not reacting before but for some reason I was not notified of new activity on this issue. I would suggest an improvement on the installation method: why not asking the arch if the user select binary server and download the bits as part of the process ? |
|
index-linuxstatic-x64 is not working here:
Using Core docker container, that shows:
|
@chemelli74 could you tried the new binary I uploaded (https://github.com/kevdliu/hassio-addon-anylist/releases/download/v1.7.0b/index-linux-x64)? I only have an ARM linux computer so cannot test x86_64 linux myself. |
Yeah I plan on eventually updating the setup wizard to include downloading the binaries as well. This is just a MVP to test how feasible the binary server installation method is. |
Will do asap. |
I installed this index-linuxstatic-x64 and this is the result at each integration reload:
|
@chemelli74 @kevdliu Did you guys manage to get this working? I too am using HA in Docker with the same arch that chemeli74 posted above. |
Hi @dinki , I did a step forward but still not working for me. Did you try on you side ? |
@chemelli74 I did give it a go but unfortunately this is what I see in the logs:
Side note, it sure would be nice if HA addons would be generic enough to move to Docker. Seems like we can make any device we want work with HA but the addons are not so easy to push to Docker. Kind of ironic I think. I've built some Docker containers before but never created my own Docker file. I think this might not be too difficult to create but I just don't have enough time to devote to trying :( |
Been busy for a while and hasn't gotten a chance to look at this. I'm working on creating a generic docker image that should work with normal docker installations.
That error makes it look like there are multiple instances of the integration configured, which is currently not supported. Did you remove the integration before adding it back?
Are you using host or bridged networking for the HA container? |
Nope, I didn't. |
I'm using host. |
I've created a generic docker image for this addon. Check out docker-compose.yaml in the repo, or use the docker run command inside run-docker.txt |
Yes, but seems not always |
Thank you for taking the time to do this! I'm happy to report it is working great. I do have a quick fix bug report for you though, the docker compose you have has an error. You should be using:
right now it is set to:
Which doesn't work as the repository is missing. Again, many thanks! |
Good catch! Just updated the file. |
Are you able to test the docker image? Could you see if the same error occurs when setting up the integration with docker instead? |
I was able to make it working in the end! Please allow the ability to remove the "AnyList" description in front of all lists. |
Just pushed a new version that removes the prefix. You should be able to rename the list entity within home assistant. |
Thank you !!! |
@chemelli74 Out of curiosity are you using the binary server installation method or docker? |
Binary server so far. |
Any a new version / release in sight ? |
Hi,
is core supported somehow ?
Thank you in advance
The text was updated successfully, but these errors were encountered: