Hi Alex, i am having big doubts about how to configure my energy dashboard using your integration.
Actually i have set these energy sources in the dashboard putting as cost the same tariff based on the time of the day (i have only one tariff/day)
Sorry, I corrected the post, you need “Energia Consumata” not “Prelevata”. Consumed is the total energy consumed (import + production). “Prelevata” is just the one coming from the provider.
I have them (it’s always F3 but don’t know why, probably because I have a flat fee with my provider, it’s always the same cost.).
The integration simply reads from Alfa, it doesn’t do data transformation for time periods. So you need to check with Sinapsi if you have them at zero. Show me your sensors from the device page to check what values you have. Did you also check on the Alfa app?
I don’t understand the question: if the Energy dashboard asks you to input “Consumo di rete” you need to feed it the “Energia Consumata” sensor. It’s not an option you choose. You need to set what it needs.
If you don’t have a PV system, so no production, then imported energy = consumed energy, but it’s more appropriate to configure the consumed energy when it asks you for “Consumi”.
Hmmm, so what is the difference between PRELEVATA e CONSUMATA if i don’t have any device which produces energy (solar panels for example) and both have the same value?
I never checked them because I don’t need them, so I don’t know when Alfa updates them. If you need them, you should check Alfa documentation or contact Sinapsi support to understand how they work, how/when they are updated. They should always be updated like the totals.
I am trying to add a second device. The doc. says: “To monitor multiple devices, add the integration multiple times.” But I don’t seem to be able to add the integration a second time - I see “Alfa by Sinapsi supports only one configuration. Adding additional ones is not needed”
I just got a new Alfa and installed your integration.
Both devices are working just fine, I can see all the data both on the Alfa app as well as on your integration, but I have a problem with homeassistant.
When I go to the energy tab, I cannot choose any of the Alfa sensors.
Both Grid consumption and Grid power don’t have any Alfa sensors and I cannot add them manually.
In the Energy dashboard, you need to choose the energy sensors, not power sensors: so for Grid connections it’s Alfa Energy Imported, for Solar Panels it’s Alfa Energy Produced.
If Alfa sensors don’t appear, go into developer tools and check the two sensors’ details, specifically the device_class and state_class attributes. They have to be like these, otherwise you won’t see them in the energy dashboard:
First of all, thank you.
Both for the addon and the help.
Seems to me that everything is as it should but I still don’t see the sensors in the energy tab.
I’m on Home Assitant OS with all the updates if it helps
One suggestion: maybe you have recorder disabled by default and you need to enable it explicitly? If the alfa entities are not recorded, they will not appear in the energy integration. Also, check in the statistics section of HA if they are listed. If they aren’t, it means they’re not recorded. It happened to another user in the past because he had a very weird recorder configuration.
Here’s the statistics section filtered for Alfa energy sensors, you can see the source Recorder indication:
I noticed that power values seem rounded/truncated to tens.
For example, if the Alfa app shows 332 W, Home Assistant shows 330 W with this integration.
Using the official YAML/Modbus method from Sinapsi, I get the exact same value as the app (332 W).
Is this expected, or could there be some scaling/rounding in the integration?