Gladys Assistant 4.61.1: Fixes for Caldav, HomeKit, Netatmo & Zigbee2mqtt

Hello everyone,

This is probably the last release of the summer for Gladys. After that, I’ll work behind the scenes on some major topics that I’ll talk about when we return after the break, and I’ll of course take a well-deserved vacation to rest :slight_smile:

Fixes in this v4.61.1:

  • :mobile_phone: HomeKit: Handling of simple roller shutters Roller shutters in Gladys that don’t have percentage-based control but only a simple control are now correctly handled in the HomeKit integration. Thanks to @bertrandda for this contribution!
  • :locked_with_key: CalDAV: Option to ignore SSL certificate verification For users of self-hosted CalDAV servers (self-signed), it is now possible to disable SSL certificate verification. Thanks to @bertrandda for the development.
  • :thermometer: Netatmo: Support for min, max and average temperature values Netatmo sensors now distinguish between minimum, maximum and average values so as not to pollute the « Room temperature » widget. Thanks to @Terdious for this improvement!
  • Zigbee2MQTT: Fixed the « Allow pairing » button that stopped working after the upgrade to 2.4.0. Thanks to @Yoann_PUREN for reporting this bug :slight_smile:

Have a great summer everyone!

8 Likes

Hi @pierre-gilles I don’t know why the update is causing my Zigbee2MQTT to crash
I checked the configuration.yaml and mosquitto.conf settings against my backup, everything is identical.
I need to recreate the Docker manually for it to work again.

sudo docker run \
   --name gladys-z2m-zigbee2mqtt \
   --restart=unless-stopped \
   --network=host \
   --device=/dev/serial/by-id/usb-1a86_TubesZB_971207DO-if00-port0 \
   -v /var/lib/gladysassistant/zigbee2mqtt/z2m:/app/data \
   -v /run/udev:/run/udev:ro \
   -e TZ=Europe/Paris \
   ghcr.io/koenkk/zigbee2mqtt:2.4.0 

Crash log:

[2025-07-11 17:18:51] info: 	z2m: Logging to console, file (filename: log.log)
[2025-07-11 17:18:51] info: 	z2m: Starting Zigbee2MQTT version 2.4.0 (commit #bdb94da46e0461337f4a61b4f2a6bfa5172f608f
)
[2025-07-11 17:18:51] info: 	z2m: Starting zigbee-herdsman (4.1.0)
[2025-07-11 17:18:51] info: 	zh:zstack:znp: Opening SerialPort with {"path":"/dev/serial/by-id/usb-1a86_TubesZB_971207DO-if00-port0","baudRate":115200,"rtscts":false,"autoOpen":false}
[2025-07-11 17:18:51] error: 	z2m: Error while starting zigbee-herdsman
[2025-07-11 17:18:51] error: 	z2m: Failed to start zigbee-herdsman
[2025-07-11 17:18:51] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start_crashes-runtime.html for possible solutions
[2025-07-11 17:18:51] error: 	z2m: Exiting...
[2025-07-11 17:18:51] error: 	z2m: Error: Error: No such file or directory, cannot open /dev/serial/by-id/usb-1a86_TubesZB_971207DO-if00-port0

Log after manual reinstallation:

[2025-07-11 19:26:05] info: 	z2m: Logging to console, file (filename: log.log)
[2025-07-11 19:26:06] info: 	z2m: Starting Zigbee2MQTT version 2.4.0 (commit #bdb94da46e0461337f4a61b4f2a6bfa5172f608f
)
[2025-07-11 19:26:06] info: 	z2m: Starting zigbee-herdsman (4.1.0)
[2025-07-11 19:26:06] info: 	zh:zstack:znp: Opening SerialPort with {"path":"/dev/serial/by-id/usb-1a86_TubesZB_971207DO-if00-port0","baudRate":115200,"rtscts":false,"autoOpen":false}
[2025-07-11 19:26:06] info: 	zh:zstack:znp: Serialport opened
[2025-07-11 19:26:06] info: 	zh:zstack:znp: Writing CC2530/CC2531 skip bootloader payload
[2025-07-11 19:26:07] info: 	zh:zstack:znp: Skip bootloader for CC2652/CC1352
[2025-07-11 19:26:17] info: 	z2m: zigbee-herdsman started (resumed)
[2025-07-11 19:26:17] info: 	z2m: Coordinator firmware version: '{"meta":{"maintrel":1,"majorrel":2,"minorrel":7,"product":1,"revision":20220219,"transportrev":2},"type":"ZStack3x0"}'
[2025-07-11 19:26:17] info: 	z2m: Prise Xiaomi (0x00158d0001b8fe12): ZNCZ02LM - Xiaomi Mi smart plug (Router)
[2025-07-11 19:26:17] info: 	z2m: Bouton Xiaomi (0x00158d0001ae7bf7): WXKG01LM - Xiaomi Mi wireless switch (EndDevice)
[2025-07-11 19:26:17] info: 	z2m: Bouton Sonoff (0x00124b0023971d64): SNZB-01 - SONOFF Wireless button (EndDevice)
[2025-07-11 19:26:17] info: 	z2m: Commutateur porte SdB (0x00124b0024c239da): ZBMINI - SONOFF Zigbee two way smart switch (Router)
[2025-07-11 19:26:17] info: 	z2m: Overture Porte entrée Privé (0x00158d0001b1bf2b): MCCGQ01LM - Xiaomi Mi door and window sensor (EndDevice)
[2025-07-11 19:26:17] info: 	z2m: Détecteur mouvements Xiaomi (0x00158d0001abd7ba): RTCGQ01LM - Xiaomi Mi motion sensor (EndDevice)
[2025-07-11 19:26:17] info: 	z2m: Capteur Température Piscine (0x3c6a2cfffed15faa): THS317-ET - OWON Temperature sensor (EndDevice)
[2025-07-11 19:26:17] info: 	z2m: Prise Sonoff Z1 (0x00124b0024c05cf4): S26R2ZB - SONOFF Zigbee smart plug (Router)
[2025-07-11 19:26:17] info: 	z2m: Prise TV  (0x00124b00258a4aac): S26R2ZB - SONOFF Zigbee smart plug (Router)
[2025-07-11 19:26:17] info: 	z2m: Routeur Zigbee (0x00124b00216aca4a): CC2530.ROUTER - Custom devices (DiY) CC2530 router (Router)
[2025-07-11 19:26:17] info: 	z2m: Routeur Zigbee 2 (0x00124b0008b01e42): CC2530.ROUTER - Custom devices (DiY) CC2530 router (Router)
[2025-07-11 19:26:17] info: 	z2m: Routeur Zigbee 3 (0x00124b0005abe907): CC2530.ROUTER - Custom devices (DiY) CC2530 router (Router)

@bjm Since you’re halfway between a manual installation and an installation managed by Gladys, you’ll have cases like this at every Gladys restart :sweat_smile:

In my opinion, you need to make a choice:

  • Either you switch to a fully manual installation with an external Zigbee2mqtt (with a custom container name, not gladys-z2m-zigbee2mqtt)
  • Or you switch to a fully Gladys-managed installation, with Gladys launching the Zigbee2mqtt container

The problem here is that you’re not launching the container the same way Gladys would, and thus the Zigbee2mqtt configuration you made doesn’t match the information Gladys has to launch the container.

In Gladys, the container is launched like this:

The only thing that’s replaced is the PathOnHost, which becomes the path of the USB port you selected in the Gladys interface :slight_smile:

Actually, I want to go back to Zigbee2mqtt management by Gladys.

@bjm In that case, you need to stop and remove the Zigbee2mqtt container.

Then, edit the configuration.yaml file that you must have modified when switching to manual. For example, I have this configuration in the serial section for the USB port:

serial:
  port: /dev/ttyACM0
  adapter: zstack

For the port, I imagine you changed that configuration; you need to switch it back to /dev/ttyACM0.
For the adapter field, I don’t think you changed it.

Normally, if you restart Gladys, it should restart the container with the correct information; otherwise, in the Gladys integration interface, you can restart it.

For the USB port, of course make sure the correct one is selected in the interface :slight_smile:

Operation completed, it’s OK with me.
Thank you.

1 Like