Confermo anche io con aggiornamento 2025.9 non c’è verso di farla funzionare. Grazie
I’m running 2025.9.1 and have not luck either. Debug logging is enabled, no messages appear in the log.
The integration reports “failed setup”:
Any idea on how to get more diagnostic info?
I released version v0.4.2-beta.1 for 2025.9.x compatibility.
Update through HACS. Discussion in this issue.
hi, I’m using your project now after years of using the official site script, and I thank you. Can this script be integrated directly into the project?:
sensor:
- platform: template
sensors:
distacco:
friendly_name: "Avviso distacco"
value_template: >
{% if (states('sensor.data_evento') | int ) > 4294967294 %} Nessun avviso
{% else %} {{ (states('sensor.data_evento') | int + (states('sensor.tempo_residuo_distacco') | int)) | timestamp_local }}
{% endif %}
This makes it work again, thanks!
yesterday after configuring 1 device, today the second one appears (it’s the same device) with new entities and the one created yesterday is abandoned,
I don’t understand what you did. You added Alfa for the first time yesterday and the day after a second one appeared? Or you already had Alfa configured and the second day another device appeared?
Provide more details…
I set up an alpha, and a day later, a second one appeared. After deleting it, it appeared again the next day. The only difference I noticed is the different serial number; one is made up of letters and numbers, while the other is the IP address without dots (it’s all one string).
I can always delete it, but when I turn Home Assistant off and on again it always creates a second device.
I think I know the cause: since Alpha doesn’t provide a serial#, I had to come up with something unique to the device, and I thought about the MAC address. So I’m using a library that gets the mac address of the alpha.
This is needed to create a unique_id in HA. The reason why you see a second device can only be because the mac address fails to be retrieved so it falls back to the ip address. then the second time it gets the mac so it creates a new device, etc.
The root cause is that the mac address discovery in your specific case is not consistent. But it’s strange because you’re the first user to report this issue.
Can you please open an issue on the GH repo, enable the debug on the integration, and provide logs when configuring the first time and when it creates a new device? I want to see what’s going on exactly.
Thanks.
@ilMartiniano as suspected, see row 178 of the log:
2025-09-12 22:35:00.373 DEBUG (MainThread) [custom_components.sinapsi_alfa.api] MAC address found on attempt 1: B48A0A4EBA78
and row 489:
2025-09-12 22:39:30.986 DEBUG (MainThread) [custom_components.sinapsi_alfa.api] MAC address not found after all attempts
The problem is understanding why the MAC is not discovered sometimes. Can you describe your LAN, if you use VLAN segregation for devices, etc.
no vlan, single subnet, no dhcp but fixed ip, mounted under the wifi router
Test this:
- api.py, change line 165 from:
hostname=self._host, network_request=False
to:
hostname=self._host, network_request=True
Let me know if it makes any difference…
I sent the debug. It seems to be solved.
Let’s wait tomorrow before determining the issue is solved.
Thanks for the help…
thanks for your support
No problem. Next time, open an issue on the GH repo, I monitor it more frequently.
Buongiorno, grazie per il tuo progetto su Alfa che davvero è fatto molto bene, dopo avere aggiornato HA supervisor ho un problema che non mi sente più il dispositivo, prima dell’aggiornamento di ieri mi dava Error Unknow , invece da oggi (post aggiornamento mi dice “Connection to device failed (S/N not retreived”)
Ovviamente ho contralloto l’ip ed è corretto, cosa posso controllare?
Grazie
Che versione dell’integrazione stai usando?
Ciao Alex, intanto grazie mille, hai reso il mio dispositivo Alfa utilizzabile! Davvero grazie. Volevo chiederti se c’è un modo per leggere il consumo istantaneo in modo preciso come fa l’app Alfa (ad esempio 197w) lì dove il sensore su HA riporta il valore arrotondato (es. 190w 200w 210w). Grazie e scusa se magari la domanda è sciocca, sono un neofita di HA.
Ciao. L’integrazione non fa nessuna manipolazione del dato che legge dall’Alfa. Quindi se leggi 190W è l’Alfa che gli ha passato il dato di 190.


