2025.1 disabled my illuminance sensor entities

Hi,

I have a ton of Aqara motion sensors that can track illuminance / light level. I also have a few dedicated Aqara light sensors. All coming in via Zigbee2MQTT into HA.

After updating to 2025.1 yesterday for whatever reason all my illuminance sensor entities got disabled. Not the entire devices just the illuminance entities. I just noticed as I got a bunch of repair notices for automations that use these entities.

I was able to re-activate them but still a very strange issue.

Anyone else have the same issue?

2 Likes

Hi, I have not yet updated. But did you also update Z2M? Asking because I saw they have a breaking change wrt illuminance:

Renamed illuminance_lux to illuminance , this breaks in two ways: illuminance_lux has been removed and the value of illuminance changes

yes, this happened to me.

I quick search on the z2m website and looking at my HA entities, I can see there is a new sensor (for my Hue motion sensors, at least) that needs to be enabled (and the old one deleted).

The difference for my Hue sensors is this;
old: sensor.<name>_illuminance_lux
new: sensor.<name>_illuminance

…i.e. remove _lux from the end
Was an easy fix once I worked this out

edit: if you go to your Z2M web frontend, you can also easily see the name of the new sensor. Here is mine:

edit: Here is the Z2M breaking changes announcement where illuminance_lux to illuminance is documented.

edit: here is the specific part:
Screenshot 2025-01-04 at 11.20.30

(sorry for all the edits)

Last one (I promise). This was a big update for Z2m from 1.x to 2.x - hence all the breaking changes.

1 Like

Ahhhh ok now it makes sense. Yes I had in fact also updated Z2M and not thought about that.

Maybe i should also read the breaking changes there :wink:

1 Like

Ok that was it in fact.

However for me I did not need to delete anything. It was just the illuminance sensor was deactivated and just activating it again solved it.

1 Like

@hesspoint How did you activated it? For me it is grayed out.

UPDATE: Never mind. I found it.

What I did, was simply temporarily renaming all my motion sensors in zb2mqtt (with entity update selected). You can rename them back again later.

Zigbee2MQTT

Fixed for me:
Home assistant > setting > Devices & services > MQTT > devices > Aqara Motion sensor > Illuminance > Setting Icon (:gear:) > Enable

Then replace anywhere in dashboard you use entity id :
sensor.xxxx_sensor_illuminance_lux
With:
sensor.xxxx_sensor_illuminance