Custom Integration: Alfa by Sinapsi data integration

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)

Is this correct ? or i must put only the sensor Energia Prelevata and not all the imported energy divided by tariff/hour?
Thanks for your reply…

You just need the total (Energia Consumata): the dashboard needs a sensor that tells it the total kWh consumed.

Ok, thanks, but why all the imported energy costs divided by time of the day are unavailable in your integration? How to set F1 F2 and F3 costs?

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.

Here’s how it should be configured:

And here’s the detail of the “Solar Panels” section when you edit it:

Ok, but as i don’t have any produced energy, i can have PRELEVATA the same… Or not?

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”.

1 Like

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?

No, i was wrong… the sensors are there F1 and F2 at zero, while F3 has the value of the previous day (sunday).

I don’t know wh

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”

You can only have one Alfa per monitored meter. Do you need to monitor multiple houses?

Open a Feature Request in GitHub repository explaining the use case.

I have an additional Alfa monitoring a second house. Its network is connected via a VPN.

Open the FR on the repo.

v1.2.11 has been released.

Hi,

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.

Any ideas?

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.

This is my dashboard config:

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

  • Core 2026.4.2
  • Supervisor 2026.04.0
  • Operating System 17.2
  • Frontend 20260325.7



This is the “Configure Grid Connection” I have, you can see Energy import, Energy export and Power Import sensors configured:


This is the “Configure solar panels” section, you can see Energy Produced and Power Produced sensors configured:

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:

1 Like

Hi @alexdelprete, thank you for this integration!!

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?