Open foocode opened 10 months ago
Hi! I've not tested it extensively, but you should be able to run the addon container as standalone on the same PC/server where you run your HA docker. You won't be able to access the UI via HomeAssistant, but you could always access it directly by exposing the management port.
I might invest some time to document the entire process. For now, here's what you can try.
docker build --build-arg BUILD_ARCH="amd64" --build-arg BUILD_FROM="ghcr.io/home-assistant/amd64-base-debian:buster" -t local/meross_local_broker "meross_local_broker"
docker run --name meross_local_broker --rm --privileged -p 2001:2001/tcp -p 2003:2003/tcp -p 10001:10001/tcp --env expose_admin_api=true --env advertise=false --env debug_mode=true --env debug_port=10001 --mount type=bind,source=$PWD/meross_local_broker/rootfs/opt/custom_broker,target=/opt/custom_broker -v $PWD/.local_debug/data:/data local/meross_local_broker
The mDNS advertisement might not work, so you will probably need to input the IP of container manually when you setup the HA integration. Apart from that, it should work. Let me know!
Thank you @albertogeniola, I will give that a go - though it may take some time to report back as building an image will be new learnings for me! Thanks for your response & thank you for your efforts in this space.
How do you build it - your command above is missing. Normal docker build fails.
Hi! I've update the message and now the build command is shown. Sorry about that.
Hi,
I am trying to achieve cloudless Meross device control in my HA install. I run HA via the official docker image. In the Local Broker .md it mentions; "This addon has been tested on Homeassistant Docker environment..."
Yet I understand installation is not possible via the provided link as HA docker environments do not support the store/addons. Clicking the following results in the message "This redirect is not supported by your Home Assistant installation. It needs either the Home Assistant Operating System or Home Assistant Supervised installation method. For more information, see the documentation.".
https://my.home-assistant.io/redirect/supervisor_add_addon_repository/?repository_url=https%3A%2F%2Fgithub.com%2Falbertogeniola%2Fha-meross-local-broker
Is there another way to use or install with HA docker?
Thanks!