Skip to content

Commit 615e0df

Browse files
Alternative way of testing against HA instance (#714)
1 parent 1e24387 commit 615e0df

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

CONTRIBUTING.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,18 @@ When you want to check the impact of developing work, e.g. adjusting devices in
2828
1. head to `Settings` > section *Hidden Containers* and remove `io.hass.type`: `addon`
2929
2. go to `Containers`, `addon_[…]_zigbee2mqtt`, `Console`, `Connect`
3030
5. ℹ️ the location of zigbee-herdsman-converters for example is `/app/node_modules/zigbee-herdsman-converters`
31-
6. make your adjustments by copying or `vi`'ing
31+
6. make your adjustments by copying or `vi`'ing
3232
7. Still in portainer, go back to the add-on's container and `Restart`
3333

34+
## Alternative (without portainer)
35+
36+
1. Install and setup `Advanced SSH & Web Terminal` with disabled safe mode
37+
2. run `docker ps` and see which container name is the zigbee2mqtt one. (eg. `addon_45df7312_zigbee2mqtt`)
38+
3. build your whole application with `npm run build`
39+
4. upload the resulting build to your HA instance (eg. vscode server via drag n drop)
40+
5. execute `docker cp` (eg. `docker cp <the location of your build>/. <container_name>:/app/node_modules/zigbee-herdsman-converters`)
41+
6. execute `docker restart <container name>`
42+
3443
⚠️ Note that restarting the add-on via Supervisor or further down the stack will revert the file changes.
3544

3645
After work is done, don't forget to clean up and reintroduce the safety measures:

0 commit comments

Comments
 (0)