Zigbee2MQTT Device specific configuration doesn't work

I have 3 Xiaomi RTCGQ11LM
and i wanted to lower the occupancy_timeout
So i did the mod from the site:

But custom configuration in HA doesn’t apear to change anything.
I even changed the temperature calibration to +20 and after few weeks no change

Heres my devices.yaml file:

'0x00158d0006f78480':
  friendly_name: Aqara PIR sensor1
  temperature_calibration: -5
  temperature_precision: 2
  occupancy_timeout: 60
'0x00158d0006f78330':
  friendly_name: Aqara PIR sensor2
  temperature_calibration: -5
  temperature_precision: 2
  occupancy_timeout: 60
'0x00158d0006a15867':
  friendly_name: Aqara PIR sensor3
  temperature_calibration: 20
  temperature_precision: 2
  occupancy_timeout: 10

Can anyone help me? is this confing wrong, am I missing something?

did you set the occupany_timeout in the configuration.yaml of your zigbee2mqtt as stated in the zigbee2mqtt docs?

Xiaomi RTCGQ11LM control via MQTT | zigbee2mqtt.io(in,modification%20is%20needed.

I did this in file:
/config/zigbee2mqtt/devices.yaml

which is referenced in the zigbee config file:
/config/zigbee2mqtt/configuration.yaml

{
  "external_converters": [],
  "devices": [
    "devices.yaml"
  ],
...

I just added

  temperature_calibration: -4

to one of my aqara pir sensors, restarted Zigbee2MQTT, 15 minutes later the temperature was adjusted.

1 Like

That’s how its suposed to work!
Sadly mine doesnt, thats why im writing here

@francisp

OK You helped. Thanks!

I needed to restart Zigbee2MQTT. Weirdly restarting HA did nothing. After changing the configuration I restarted HA more than 5 times.
It would be nice to add this info to instructions
because there is nothing about this.

1 Like

z2m and ha works in own docker contaiers. Restarting HA doesn’t restart z2m.