Using smappee entities for the energy dashboard

I am trying to use the Smappee entities in the energy dashboard for both electricity grid and solar panels.

In the smappee app, all data looks fine. So the Smappee installation and configuration is ok.

Apparantly there are 2 methods to use Smappee:

Local
There are 2 enitites available:

  • sensor.smappee_total_consumption_active_power
  • sensor.smappee_total_production_active_power

But these sensors do not show up in the energy dashboard.
According to the documentation the sensors are in the wrong format. device_class should be ‘energy’ but it is ‘power’ and the state_class should be ‘total’ or ‘total_increasing’ but it is ‘measurement’.

Should I change this? Should I create a template sensor based on the original sensors?

Cloud

If I configure Smappee as a cloud connection a lot more entities are visible. The appliciances Smappee has discovered are even visible. But no solar production entities exist. Is there a way to get solor production entities?

I was able to create 2 helper sensors based on the 2 active power sensors from Smappee (local connection). I used the Rieman sum integration for that. The helper sensors are visible in the energy dashboard, so now I see my data correctly.

If anyone knows why the production sensors are not present via the cloud connection, please let me know.

How exactly did you configure the Rieman?
I tried aswell, but gives me funny figures :slight_smile:

I have 2 sensors from Smappee:

  • energy_smappee_active_consumption
  • energy_smappee_active_production

Then I created 3 sensors of this:

  • grid consumption power

Unit of measurement: W
Device class: Power
State class: Measurement

{% set x = states('sensor.energy_smappee_active_consumption') | int - states('sensor.energy_smappee_active_production') | int %}
{% if x > 0 %}
  {{ x }}
{% else %}
  {{ 0 }}
{% endif %}
  • return to grid power

Unit of measurement: W
Device class: Power
State class: Measurement

{% set x = states('sensor.energy_smappee_active_production') | int - states('sensor.energy_smappee_active_consumption') | int %}
{% if x > 0 %}
  {{ x }}
{% else %}
  {{ 0 }}
{% endif %}
  • solar production power

Unit of measurement: W
Device class: Power
State class: Measurement

{{ states('sensor.energy_smappee_active_production') }}

And finally 3 more sensors with the Riemann sum integral function:
Didn’t do anything special as far as I still remember.

  • energy_grid_consumption_total
  • energy_return_to_grid_total
  • energy_solar_production_total

These are all

Unit of measurement: kW
Precision: 2
state_class: total → necessary for the energy dashboard I think
device_class: energy → necessary for the energy dashboard I think

Last 2 values can be found here: Developper tools, States

Hope this helps.

1 Like