Missing events

I developed a custom integration cyberq and am now trying to write a blueprint for notifications. One of my sensors is a state change from the device which is represented as a SensorDeviceClass.ENUM.

I am not having any luck getting notifications from the blueprint, so I went to Developer Tools → Events and watched for state_changed events on the bus. I am seeing state change events for the climate sensors, but not for this state sensor. History for this entity shows the state change and the changes are reflected in a timely manner on the device page. The sensor data also looks correct on the STATES page:

As far as I can tell, I’m not doing anything different handling the co-ordinator updates for this sensor platform code.

Any help would be appreciated.

Thanks.

Jeff

Obvious question: Did the state value actually changed?

Yes, here is a history download:

entity_id,state,last_changed
sensor.cyberq_0c43_pit_status,ok,2024-12-29T19:50:04.879Z
sensor.cyberq_0c43_pit_status,unavailable,2024-12-29T19:52:00.931Z
sensor.cyberq_0c43_pit_status,ok,2024-12-29T19:52:26.099Z
sensor.cyberq_0c43_pit_status,unavailable,2024-12-29T20:39:34.386Z
sensor.cyberq_0c43_pit_status,ok,2024-12-29T20:39:35.521Z
sensor.cyberq_0c43_pit_status,high,2024-12-29T20:39:42.911Z
sensor.cyberq_0c43_pit_status,ok,2024-12-29T21:11:09.520Z
sensor.cyberq_0c43_pit_status,high,2024-12-29T21:14:18.261Z
sensor.cyberq_0c43_pit_status,ok,2024-12-29T21:15:04.906Z
sensor.cyberq_0c43_pit_status,high,2024-12-29T21:30:24.270Z
sensor.cyberq_0c43_pit_status,error,2024-12-29T21:32:27.643Z
sensor.cyberq_0c43_pit_status,high,2024-12-29T21:35:27.635Z

Then I guess the issue is in your code.
If a state is changed, an event is triggered, that’s in HA core, not in the components.

How so? My code seems to be changing the state according to the history. Developer tools -> EVENTS does not show theses state changes.

Thanks.

Jeff

Well, show your code…