Acabo de volver a sacar mis sensores de apertura Sonoff que compré hace mucho tiempo en Domadoo.
He podido instalarlos en Gladys.
He creado un panel de sensores de apertura (gracias @lmilcent por el truco) pero en mi habitación también hay bombillas Hue y tengo un botón de encendido/apagado que se activa. Y sin embargo no he añadido las Hue.
En las habitaciones sin bombillas Hue no hay problema.
Pequeño problema de visualización en móvil
Esta mañana, ya no hay Gladys, pero un bonito código de error.
He tenido que reiniciar la Raspberry Pi.
Y es imposible volver a poner en marcha la integración zigbee2mqtt.
{« status »:500,« code »:« SERVER_ERROR »,« error »:{« errno »:-5,« code »:« EIO »,« syscall »:« read »,« expose »:false,« statusCode »:500,« status »:500}}
VonOx
17 Febrero, 2022 09:35
2
Hay un problema con el switch
ouvert 09:06AM - 04 Sep 21 UTC
fermé 01:22PM - 25 Mar 22 UTC


Para tu segundo problema, intenta reiniciar el contenedor manualmente:
docker restart gladys-z2m-zigbee2mqtt
vale, voy a probar eso.
Gracias por tu respuesta.
He probado el comando en ssh pero es lo mismo.
También he reiniciado Gladys sin éxito en la integración.
VonOx
17 Febrero, 2022 21:48
5
En ese caso, necesitamos logs para investigar
Bueno, he podido hacer una captura de pantalla de los registros para la integración zigbee2mqtt
VonOx
18 Febrero, 2022 21:33
7
¡Todo está roto!
En resumen, hay que hacer esto
ouvert 08:16PM - 29 Jan 22 UTC
fermé 12:02AM - 20 Mar 22 UTC
problem
stale
### What happened?
After a restart of server for something not related to z2m, … the container didn't start anymore with this error :
SyntaxError: Unexpected end of JSON input
I try restart, remove key ... then take a look at issues. I found that one :
https://github.com/Koenkk/zigbee2mqtt/issues/7907
And it helps me point out that yes my coordinator backup was empty, so I insert a backup I have, restart container and all was ok.
### What did you expect to happen?
The previous issue was closed by owner, but will be nice if some error message enhancement could be done like pointing to the file that cannot be parsed.
### How to reproduce it (minimal and precise)
delete content of coordinator backup json
### Zigbee2MQTT version
1.22.2
### Adapter firmware version
20210218
### Adapter
ZigStar Stick v4
### Debug log
_No response_
ouvert 07:30AM - 30 Jun 21 UTC
fermé 12:42PM - 01 Jul 21 UTC
problem
## What happened
I am running zigbee2mqtt in docker.
Today i recognized zigbee… 2mqtt isnt working anymore beecause the container isnt able to start anymore.
As far as i can tell the last update was almost 3 weeks ago and it was running till now.
I updated the FW of my zzh coordinator (CC2652R - FW "CC2652R_coordinator_20210120").This didnt fix the problem.
Also I was trying some restarts - didnt help.
I am a little confused because from my point of view there is no change in the system that could be the reasn for zigbee2mqtt to stop working.
Log from container:
>Using '/app/data' as data directory
Zigbee2MQTT:info 2021-06-30 09:19:30: Logging to console and directory: '/app/data/log/2021-06-30.09-19-28' filename: log.txt
Zigbee2MQTT:info 2021-06-30 09:19:30: Starting Zigbee2MQTT version 1.19.1 (commit #9bd4693)
Zigbee2MQTT:info 2021-06-30 09:19:30: Starting zigbee-herdsman (0.13.111)
Zigbee2MQTT:error 2021-06-30 09:19:32: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2021-06-30 09:19:32: Failed to start zigbee
Zigbee2MQTT:error 2021-06-30 09:19:32: Check https://www.zigbee2mqtt.io/information/FAQ.html#help-zigbee2mqtt-fails-to-start for possible solutions
Zigbee2MQTT:error 2021-06-30 09:19:32: Exiting...
Zigbee2MQTT:error 2021-06-30 09:19:32: SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at AdapterBackup.<anonymous> (/app/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/adapter-backup.js:67:31)
at Generator.next (<anonymous>)
at fulfilled (/app/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/adapter-backup.js:24:58)
## What did you expect to happen
I am expecting the container to start as usual.
## How to reproduce it (minimal and precise)
Every restartof the container.
## Debug info
Zigbee2MQTT version: 1.19.1
Adapter hardware: CC2652R
Adapter firmware version: CC2652R_coordinator_20210120
Haré una guía paso a paso si la necesitas
¿Qué ha pasado para llegar a esto?
Voy a ver si logro entender algo.
VonOx
19 Febrero, 2022 15:53
9
Mierda, mi archivo backup.json está corrupto, impidiendo el arranque (problema zigbee2mqtt)
Me ha pasado una vez
¿De dónde viene esto? ¿Una manipulación incorrecta?
Si lo he entendido bien, hay que eliminar el archivo json.
Pero no conozco los comandos para restablecerlo.
¿Puedes ayudarme?
@pierre-gilles ¿tienes alguna idea de qué causa este error?
VonOx
21 Febrero, 2022 15:59
12
Es un error de zigbee2mqtt, no hay nada que podamos hacer por nuestra parte
Efectivamente, es un error del lado del proyecto Zigbee2mqtt
¿Podría confirmarme el comando antes de que rompa más?
docker rm gladys-z2m-zigbee2mqtt-backup.json
VonOx
21 Febrero, 2022 17:07
15
sudo rm /var/lib/gladysassistant/zigbee2mqtt/z2m/coordinator_backup.json
Luego reinicia zigbee2mqtt
docker restart gladys-z2m-zigbee2mqtt
Bueno, no es concluyente.
Los registros son idénticos. Incluso después del reinicio.
El único cambio que he visto es que ya no hay una cruz roja en la integración.
VonOx
22 Febrero, 2022 06:16
17
Vale, pero por ahora no es Gladys lo que nos interesa.
¿Tienes el mismo error? ¿Estás segura de que se ejecutó el comando de eliminación?
VonOx:
¿Tienes el mismo error?
Creo que sí
Sí, ya no se encuentra el archivo
VonOx
22 Febrero, 2022 07:38
19
eso es raro
¿Puedes listar el contenido de la carpeta, por favor?
ls /var/lib/gladysassistant/zigbee2mqtt/z2m