Thanks @Troon for mucking in, I’m really at a loss here
The problem is not the trigger but the service call to the timer, when enabled I’m losing the states on the door sensor ! How that happens I just do not know
For example here is the difference between the service call enabled and disabled
The event bus sees all transactions correctly, and the automation is triggered correctly
2024-03-14 08:20:31.129 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=binary_sensor.lumi_lumi_sensor_magnet_aq2_opening, old_state=<state binary_sensor.lumi_lumi_sensor_magnet_aq2_opening=off; device_class=opening, friendly_name=Front Door @ 2024-03-14T00:49:42.838462+00:00>, new_state=<state binary_sensor.lumi_lumi_sensor_magnet_aq2_opening=on; device_class=opening, friendly_name=Front Door @ 2024-03-14T08:20:31.129684+00:00>>
2024-03-14 08:20:39.943 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=binary_sensor.lumi_lumi_sensor_magnet_aq2_opening, old_state=<state binary_sensor.lumi_lumi_sensor_magnet_aq2_opening=on; device_class=opening, friendly_name=Front Door @ 2024-03-14T08:20:31.129684+00:00>, new_state=<state binary_sensor.lumi_lumi_sensor_magnet_aq2_opening=off; device_class=opening, friendly_name=Front Door @ 2024-03-14T08:20:39.943535+00:00>>
2024-03-14 08:20:49.036 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=binary_sensor.lumi_lumi_sensor_magnet_aq2_opening, old_state=<state binary_sensor.lumi_lumi_sensor_magnet_aq2_opening=off; device_class=opening, friendly_name=Front Door @ 2024-03-14T08:20:39.943535+00:00>, new_state=<state binary_sensor.lumi_lumi_sensor_magnet_aq2_opening=on; device_class=opening, friendly_name=Front Door @ 2024-03-14T08:20:49.035987+00:00>>
2024-03-14 08:20:55.121 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=binary_sensor.lumi_lumi_sensor_magnet_aq2_opening, old_state=<state binary_sensor.lumi_lumi_sensor_magnet_aq2_opening=on; device_class=opening, friendly_name=Front Door @ 2024-03-14T08:20:49.035987+00:00>, new_state=<state binary_sensor.lumi_lumi_sensor_magnet_aq2_opening=off; device_class=opening, friendly_name=Front Door @ 2024-03-14T08:20:55.121138+00:00>>
2024-03-14 08:26:02.580 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=binary_sensor.lumi_lumi_sensor_magnet_aq2_opening, old_state=<state binary_sensor.lumi_lumi_sensor_magnet_aq2_opening=off; device_class=opening, friendly_name=Front Door @ 2024-03-14T08:20:55.121138+00:00>, new_state=<state binary_sensor.lumi_lumi_sensor_magnet_aq2_opening=on; device_class=opening, friendly_name=Front Door @ 2024-03-14T08:26:02.580725+00:00>>
2024-03-14 08:26:10.354 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=binary_sensor.lumi_lumi_sensor_magnet_aq2_opening, old_state=<state binary_sensor.lumi_lumi_sensor_magnet_aq2_opening=on; device_class=opening, friendly_name=Front Door @ 2024-03-14T08:26:02.580725+00:00>, new_state=<state binary_sensor.lumi_lumi_sensor_magnet_aq2_opening=off; device_class=opening, friendly_name=Front Door @ 2024-03-14T08:26:10.354496+00:00>>
2024-03-14 08:50:32.622 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=binary_sensor.lumi_lumi_sensor_magnet_aq2_opening, old_state=<state binary_sensor.lumi_lumi_sensor_magnet_aq2_opening=off; device_class=opening, friendly_name=Front Door @ 2024-03-14T08:26:10.354496+00:00>, new_state=<state binary_sensor.lumi_lumi_sensor_magnet_aq2_opening=on; device_class=opening, friendly_name=Front Door @ 2024-03-14T08:50:32.622735+00:00>>
2024-03-14 08:50:39.073 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=binary_sensor.lumi_lumi_sensor_magnet_aq2_opening, old_state=<state binary_sensor.lumi_lumi_sensor_magnet_aq2_opening=on; device_class=opening, friendly_name=Front Door @ 2024-03-14T08:50:32.622735+00:00>, new_state=<state binary_sensor.lumi_lumi_sensor_magnet_aq2_opening=off; device_class=opening, friendly_name=Front Door @ 2024-03-14T08:50:39.072950+00:00>>
2024-03-14 10:06:46.186 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=binary_sensor.lumi_lumi_sensor_magnet_aq2_opening, old_state=<state binary_sensor.lumi_lumi_sensor_magnet_aq2_opening=off; device_class=opening, friendly_name=Front Door @ 2024-03-14T08:50:39.072950+00:00>, new_state=<state binary_sensor.lumi_lumi_sensor_magnet_aq2_opening=on; device_class=opening, friendly_name=Front Door @ 2024-03-14T10:06:46.186483+00:00>>
2024-03-14 10:06:49.194 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=binary_sensor.lumi_lumi_sensor_magnet_aq2_opening, old_state=<state binary_sensor.lumi_lumi_sensor_magnet_aq2_opening=on; device_class=opening, friendly_name=Front Door @ 2024-03-14T10:06:46.186483+00:00>, new_state=<state binary_sensor.lumi_lumi_sensor_magnet_aq2_opening=off; device_class=opening, friendly_name=Front Door @ 2024-03-14T10:06:49.194476+00:00>>
2024-03-14 10:27:56.292 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=binary_sensor.lumi_lumi_sensor_magnet_aq2_opening, old_state=<state binary_sensor.lumi_lumi_sensor_magnet_aq2_opening=off; device_class=opening, friendly_name=Front Door @ 2024-03-14T10:06:49.194476+00:00>, new_state=<state binary_sensor.lumi_lumi_sensor_magnet_aq2_opening=on; device_class=opening, friendly_name=Front Door @ 2024-03-14T10:27:56.292871+00:00>>
2024-03-14 10:27:58.488 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=binary_sensor.lumi_lumi_sensor_magnet_aq2_opening, old_state=<state binary_sensor.lumi_lumi_sensor_magnet_aq2_opening=on; device_class=opening, friendly_name=Front Door @ 2024-03-14T10:27:56.292871+00:00>, new_state=<state binary_sensor.lumi_lumi_sensor_magnet_aq2_opening=off; device_class=opening, friendly_name=Front Door @ 2024-03-14T10:27:58.488435+00:00>>
2024-03-14 10:28:00.899 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=binary_sensor.lumi_lumi_sensor_magnet_aq2_opening, old_state=<state binary_sensor.lumi_lumi_sensor_magnet_aq2_opening=off; device_class=opening, friendly_name=Front Door @ 2024-03-14T10:27:58.488435+00:00>, new_state=<state binary_sensor.lumi_lumi_sensor_magnet_aq2_opening=on; device_class=opening, friendly_name=Front Door @ 2024-03-14T10:28:00.899295+00:00>>
2024-03-14 10:28:03.381 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=binary_sensor.lumi_lumi_sensor_magnet_aq2_opening, old_state=<state binary_sensor.lumi_lumi_sensor_magnet_aq2_opening=on; device_class=opening, friendly_name=Front Door @ 2024-03-14T10:28:00.899295+00:00>, new_state=<state binary_sensor.lumi_lumi_sensor_magnet_aq2_opening=off; device_class=opening, friendly_name=Front Door @ 2024-03-14T10:28:03.381792+00:00>>
2024-03-14 10:28:06.154 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=binary_sensor.lumi_lumi_sensor_magnet_aq2_opening, old_state=<state binary_sensor.lumi_lumi_sensor_magnet_aq2_opening=off; device_class=opening, friendly_name=Front Door @ 2024-03-14T10:28:03.381792+00:00>, new_state=<state binary_sensor.lumi_lumi_sensor_magnet_aq2_opening=on; device_class=opening, friendly_name=Front Door @ 2024-03-14T10:28:06.154678+00:00>>
2024-03-14 10:28:08.113 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=binary_sensor.lumi_lumi_sensor_magnet_aq2_opening, old_state=<state binary_sensor.lumi_lumi_sensor_magnet_aq2_opening=on; device_class=opening, friendly_name=Front Door @ 2024-03-14T10:28:06.154678+00:00>, new_state=<state binary_sensor.lumi_lumi_sensor_magnet_aq2_opening=off; device_class=opening, friendly_name=Front Door @ 2024-03-14T10:28:08.112831+00:00>>