How to manually set state/value of sensor?

Unfortunately, this trigger based sensor stopped working around 2024-10-19 once I reloaded template entities manually.

Since that time it stays off and HA log gives

Logger: homeassistant.components.binary_sensor
Quelle: helpers/entity_platform.py:744
Integration: Binärsensor (Dokumentation, Probleme)
Erstmals aufgetreten: 24. Dezember 2024 um 17:46:07 (13 Vorkommnisse)
Zuletzt protokolliert: 16:56:35

Platform template does not generate unique IDs. ID 9b66d7b5-608b-43f1-b838-edcce4e11130 already exists - ignoring binary_sensor.name

I copied the sensor definition and created a identical “binary_sensor.name_test” sensor with another unique_id. It worked once after reloading template entities. After another reload, this sensor is now also part of the HA log entry. I have two other binary sensors and one other regular sensor affected by this currently - so it is not limited to trigger based template sensors.

Maybe this is a HA Core issue and I need to update it anyway. Still bothering me a lot as this was working without any issues for months…