#How do I test my changes locally?
1 messages · Page 1 of 1 (latest)
https://developers.home-assistant.io/docs/add-ons/tutorial/
The dev docs show how to use local add-ons.
Basically storing them in /addons and then check for updates in the add-on store.
ok, let me try that I was scratching my head looking for that directory
/addonsis not a subdirectory of the config directory.
It is on the same filesystem level.
ok, I did what you ask me but I cloned the repository inside the addons ... after refresh the addon ui I do not see local ... should I restart HA?
Did you select "Check for updates" from the
menu of the add-on store?
I did not, should I?
Yes. And if it still doesn't show up, refresh the webpage.
I do not know if the repository has the required structure, I just fork-it from the original repo and add my changes
If you need help with the development, go to id:customize and select "I want top contribute dev skills to Home Assistant". You will get the Developer role and access to the support channels for devs.
well while I am a developer I am not a Python dev so this contrib is minimal ... ok, I see it now but I am unable to install it:
The command '/bin/sh -c set -eux; apk update; apk add --no-cache --virtual .build-deps tar=1.34-r0 curl=7.83.1-r2 ; APKARCH="$(apk --print-arch)"; case "${APKARCH}" in x86_64) BINARCH='amd64' ;; armhf) BINARCH='arm' ;; armv7) BINARCH='arm' ;; aarch64) BINARCH='arm64' ;; *) echo >&2 "error: unsupported architecture (${APKARCH})"; exit 1 ;; esac; curl -J -L -o /tmp/rtlamr.tar.gz "https://github.com/bemasher/rtlamr/releases/download/v${RTLAMR_VERSION}/rtlamr_linux_${BINARCH}.tar.gz"; tar -xf /tmp/rtlamr.tar.gz -C /usr/bin; chmod a+x /usr/bin/rtlamr; rm /tmp/rtlamr.tar.gz;' returned a non-zero code: 3
Don't be scared away by the "I want to contribute...". It is just the option in the self-service area to get access to the dev support.
@inland sand can you help?
Pinging people not in the conversation is frowned upon.
The packages are more than likely out of date, especially as you are pulling latest, if you want to do that I would suggest you remove the pinning.
I would also suggest you run the build outside of HA, so you can get the full logs
how does it work with the original add-on?
that has been my question heh