Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
11.73k stars 1.64k forks source link

Error in Watchdog Documentation #23264

Open ScumbagSteve opened 2 months ago

ScumbagSteve commented 2 months ago

What happened?

There is an error in the Watchdog documentation: https://www.zigbee2mqtt.io/guide/installation/15_watchdog.html

It is mentioned to set the ENV variable like that: Z2M_WATCHDOG=0.5,3,6,15 npm start

But it only works like described in the issue here Z2M_WATCHDOG=1,2,3

I am using docker environment.

What did you expect to happen?

No response

How to reproduce it (minimal and precise)

No response

Zigbee2MQTT version

1.39.0

Adapter firmware version

/

Adapter

SLZB 06M

Setup

Docker

Debug log

No response

Koenkk commented 2 months ago

Z2M_WATCHDOG=0.5,3,6,15 npm start should work, what doesn't work and could you provide the STDOUT when starting z2m?

ScumbagSteve commented 1 month ago

It might have to do with the UNRAID way to run the docker and that it sets it in high-commas. But it definitely didn't boot the other way for me. I tried at least half an hour, until I found this solution.

docker run
  -d
  --name='zigbee2mqtt'
  --net='br0'
  --ip='192.168.1.230'
  -e TZ="Europe/Berlin"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="UNRAID"
  -e HOST_CONTAINERNAME="zigbee2mqtt"
  -e 'TCP_PORT_9442'='9442'
  -e 'Z2M_WATCHDOG'='0.5,3,6,15'
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.webui='http://192.168.1.230:9442/'
  -l net.unraid.docker.icon='https://raw.githubusercontent.com/digiblur/unraid-docker-templates/master/images/zigbee2mqtt.png'
  -v '/mnt/user/appdata/zigbee2mqtt':'/app/data':'rw'
  --restart=unless-stopped
  --mac-address 02:42:c0:a8:01:e6 'koenkk/zigbee2mqtt'