-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate device ID because of truncated Panel Server component serial number #27
Comments
Seems to be an oversight on Schneider's end, so I put a message on their forum. I can work around this though, but if I would do it in the codebase, everyone's entities would get duplicated, so I will propose a manual fix that's just for you:
Please let me know if that helps! |
I modified the entity_base.py, restarted HA, deleted the entry, restarted HA, reintegrated the entry. The result is the same with the exception that before I had 633 entities and now I have 810. Some are still mapped to the wrong device and not all devices are shown. Enclosed the core log file: |
Hi Breina, |
Yeah that's a bit annoying how HA does this. You got to remove the integration (remove any lingering entities if there are any), restart and then re-add the integration. I've added a config flag that applies this new unique_id on fresh setups, as per your suggestion. If you update the integration in HACS first, you no longer have to manually apply the fix. |
Hi Breina, |
Shit sorry, I did a typo. :( Please try 0.5.4. The flag is set for all new installations, If you don't see a warning |
I have a PAS600, and this does not work with 0.5.4, I get no data from the PAS600. |
Sorry Breina, Deleted, restarted, installed 1.5.4, restarted, added integration. Manual Panel Server. First went trough without error but also without creating entities. Core Log: |
Hi Breina, |
Breina, New development: I reinstalled version 0.5.3. All entities I need are present. They are not grouped under the right device (I still only have 10 instead of 13), but they are present and I can use them. I can live with this. Sorry to have put you on the false track. I should have observed this before. |
That's alright no worries. I didn't really know how to proceed with this, so I didn't update you on progress. I'll leave this open for when I get some inspiration and find your missing 3 entities. |
Hey Breina, |
Is it possible that you've been deleting the wrong devices? I can't reproduce them duplicating. |
Hey Breina, Sorry for my late reply.
I removed powertag completely and reinstalled 0.5.3 and now the gateway fails to setup: `Logger: homeassistant.config_entries Error setting up entry EcoStruxure Panel Server for powertag_gateway The above exception was the direct cause of the following exception: Traceback (most recent call last): I will now try to revert to my backup in the hope to restore everything to what it was before. |
Hi Breina, Would it be an option to use the Virtual server ID instead of the serial number? According to the Panel Server it is a unique number per device. It would limit the integration to a single Panel Server, but is it likely one would have multiple panel servers on a single Home Assistant instance? |
Describe the bug


Our PAS800L panel server has serial numbers with a length of 21 characters. When a device is created the integration turuncates the serial number to 20 characters. Devices that have a serial number with only the last character difference have a conflict.
I've been looking for a way to shorten the serial number in the panel server, but have not found.
Is it possible to increase the length of the device ID or to truncate the serial number at the front if it's to long?
Versions
Logs
extract:
2024-10-28 09:09:03.701 ERROR (MainThread) [homeassistant.components.binary_sensor] Platform powertag_gateway does not generate unique IDs. ID PowerTagRN-2023-W33-4-GH-010wireless communication valid already exists - ignoring binary_sensor.hal_1_1_wireless_communication_valid 2024-10-28 09:09:03.701 ERROR (MainThread) [homeassistant.components.binary_sensor] Platform powertag_gateway does not generate unique IDs. ID PowerTagRN-2023-W33-4-GH-010radio communication valid already exists - ignoring binary_sensor.hal_1_1_radio_communication_valid 2024-10-28 09:09:03.701 ERROR (MainThread) [homeassistant.components.binary_sensor] Platform powertag_gateway does not generate unique IDs. ID PowerTagRN-2023-W33-4-GH-010alarm info already exists - ignoring binary_sensor.hal_1_1_alarm_info 2024-10-28 09:09:03.706 ERROR (MainThread) [homeassistant.components.binary_sensor] Platform powertag_gateway does not generate unique IDs. ID PowerTagRN-2023-W33-4-GH-010wireless communication valid already exists - ignoring binary_sensor.hal_1_1_wireless_communication_valid 2024-10-28 09:09:03.706 ERROR (MainThread) [homeassistant.components.binary_sensor] Platform powertag_gateway does not generate unique IDs. ID PowerTagRN-2023-W33-4-GH-010radio communication valid already exists - ignoring binary_sensor.hal_1_1_radio_communication_valid 2024-10-28 09:09:03.706 ERROR (MainThread) [homeassistant.components.binary_sensor] Platform powertag_gateway does not generate unique IDs. ID PowerTagRN-2023-W33-4-GH-010alarm info already exists - ignoring binary_sensor.hal_1_1_alarm_info 2024-10-28 09:09:03.707 ERROR (MainThread) [homeassistant.components.binary_sensor] Platform powertag_gateway does not generate unique IDs. ID PowerTagRN-2023-W10-7-GH-004wireless communication valid already exists - ignoring binary_sensor.ontkoppelbord_zp_wireless_communication_valid 2024-10-28 09:09:03.708 ERROR (MainThread) [homeassistant.components.binary_sensor] Platform powertag_gateway does not generate unique IDs. ID PowerTagRN-2023-W10-7-GH-004radio communication valid already exists - ignoring binary_sensor.ontkoppelbord_zp_radio_communication_valid 2024-10-28 09:09:03.708 ERROR (MainThread) [homeassistant.components.binary_sensor] Platform powertag_gateway does not generate unique IDs. ID PowerTagRN-2023-W10-7-GH-004alarm info already exists - ignoring binary_sensor.ontkoppelbord_zp_alarm_info 2024-10-28 09:09:03.725 WARNING (MainThread) [homeassistant.helpers.frame] Detected code that calls async_forward_entry_setup for integration powertag_gateway with title: EcoStruxure Panel Server and entry_id: 01JAYV9GJ313NNXT9KT79W8SYF, during setup without awaiting async_forward_entry_setup, which can cause the setup lock to be released before the setup is done. This will stop working in Home Assistant 2025.1. Please report this issue.
The text was updated successfully, but these errors were encountered: