Events were fired twice

Since a few weeks ago i noticed my doorbell events where fired twice on my alexas. As you can see here, has event bus receives two identical events with a different event id:

2022-03-18 13:24:37 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [547680970784] Sending {"id":47,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"binary_sensor.spa01_doorbell","old_state":{"entity_id":"binary_sensor.spa01_doorbell","state":"off","attributes":{"icon":"mdi:doorbell-video","friendly_name":"T\u00fcrklingel"},"last_changed":"2022-03-18T12:24:26.921396+00:00","last_updated":"2022-03-18T12:24:26.921396+00:00","context":{"id":"d2e53a5f89a9425f8e3f3dcb07900306","parent_id":null,"user_id":null}},"new_state":{"entity_id":"binary_sensor.spa01_doorbell","state":"on","attributes":{"icon":"mdi:doorbell-video","friendly_name":"T\u00fcrklingel"},"last_changed":"2022-03-18T12:24:37.123677+00:00","last_updated":"2022-03-18T12:24:37.123677+00:00","context":{"id":"ea3570af87a9244b55be28ab858b52b6","parent_id":null,"user_id":"d564508426b34cd5acbf774c06fd409c"}}},"origin":"LOCAL","time_fired":"2022-03-18T12:24:37.123677+00:00","context":{"id":"ea3570af87a9244b55be28ab858b52b6","parent_id":null,"user_id":"d564508426b34cd5acbf774c06fd409c"}}}
2022-03-18 13:24:37 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [547455800368] Sending {"id":13,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"binary_sensor.spa01_doorbell","old_state":{"entity_id":"binary_sensor.spa01_doorbell","state":"off","attributes":{"icon":"mdi:doorbell-video","friendly_name":"T\u00fcrklingel"},"last_changed":"2022-03-18T12:24:26.921396+00:00","last_updated":"2022-03-18T12:24:26.921396+00:00","context":{"id":"d2e53a5f89a9425f8e3f3dcb07900306","parent_id":null,"user_id":null}},"new_state":{"entity_id":"binary_sensor.spa01_doorbell","state":"on","attributes":{"icon":"mdi:doorbell-video","friendly_name":"T\u00fcrklingel"},"last_changed":"2022-03-18T12:24:37.123677+00:00","last_updated":"2022-03-18T12:24:37.123677+00:00","context":{"id":"ea3570af87a9244b55be28ab858b52b6","parent_id":null,"user_id":"d564508426b34cd5acbf774c06fd409c"}}},"origin":"LOCAL","time_fired":"2022-03-18T12:24:37.123677+00:00","context":{"id":"ea3570af87a9244b55be28ab858b52b6","parent_id":null,"user_id":"d564508426b34cd5acbf774c06fd409c"}}}

At the same time there where also to alexa events fired:

2022-03-18 13:24:37 DEBUG (MainThread) [homeassistant.components.alexa.state_report] Sent: {"event": {"header": {"namespace": "Alexa.DoorbellEventSource", "name": "DoorbellPress", "messageId": "4383081e-2005-4a35-89e2-7f6439b9eafe", "payloadVersion": "3"}, "payload": {"cause": {"type": "PHYSICAL_INTERACTION"}, "timestamp": "2022-03-18T12:24:37.0Z"}, "endpoint": {"scope": {"type": "BearerToken", "token": "xxx"}, "endpointId": "binary_sensor#spa01_doorbell"}}}
2022-03-18 13:24:37 DEBUG (MainThread) [homeassistant.components.alexa.state_report] Sent: {"event": {"header": {"namespace": "Alexa.DoorbellEventSource", "name": "DoorbellPress", "messageId": "8a5e8ece-bbd3-42fb-8182-c5693bf1f216", "payloadVersion": "3"}, "payload": {"cause": {"type": "PHYSICAL_INTERACTION"}, "timestamp": "2022-03-18T12:24:37.0Z"}, "endpoint": {"scope": {"type": "BearerToken", "token": "xxx"}, "endpointId": "binary_sensor#spa01_doorbell"}}}

Additionaly I noticed this happens for other events as well. Here are the log entries when a rest sensor gets updated:

2022-03-18 13:14:34 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [547680970784] Sending {"id":47,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"sensor.ehz01_month","old_state":{"entity_id":"sensor.ehz01_month","state":"169.6886 42.09974166","attributes":{"friendly_name":"ehz01_month"},"last_changed":"2022-03-18T12:13:34.133137+00:00","last_updated":"2022-03-18T12:13:34.133137+00:00","context":{"id":"83beede0c481365d889255a5444d6581","parent_id":null,"user_id":null}},"new_state":{"entity_id":"sensor.ehz01_month","state":"169.6959 42.10155279","attributes":{"friendly_name":"ehz01_month"},"last_changed":"2022-03-18T12:14:34.134275+00:00","last_updated":"2022-03-18T12:14:34.134275+00:00","context":{"id":"22c2ce6beeba18e27635d3524c462c18","parent_id":null,"user_id":null}}},"origin":"LOCAL","time_fired":"2022-03-18T12:14:34.134275+00:00","context":{"id":"22c2ce6beeba18e27635d3524c462c18","parent_id":null,"user_id":null}}}
2022-03-18 13:14:34 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [547475507760] Sending {"id":2,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"sensor.ehz01_month","old_state":{"entity_id":"sensor.ehz01_month","state":"169.6886 42.09974166","attributes":{"friendly_name":"ehz01_month"},"last_changed":"2022-03-18T12:13:34.133137+00:00","last_updated":"2022-03-18T12:13:34.133137+00:00","context":{"id":"83beede0c481365d889255a5444d6581","parent_id":null,"user_id":null}},"new_state":{"entity_id":"sensor.ehz01_month","state":"169.6959 42.10155279","attributes":{"friendly_name":"ehz01_month"},"last_changed":"2022-03-18T12:14:34.134275+00:00","last_updated":"2022-03-18T12:14:34.134275+00:00","context":{"id":"22c2ce6beeba18e27635d3524c462c18","parent_id":null,"user_id":null}}},"origin":"LOCAL","time_fired":"2022-03-18T12:14:34.134275+00:00","context":{"id":"22c2ce6beeba18e27635d3524c462c18","parent_id":null,"user_id":null}}}

Is this behaviour normal, that two events where logged every time a entitiy receives a new value?

Thank you for your help!

Oliver

Normal behaviour apparently? I have this too.