Support for reading Dutch Smart Meter (electricity/gas) (P1 port)

HA has a recorder module which stores metrics to a database which can later be viewed in HA again when history is also enabled (https://home-assistant.io/components/recorder/). There are also external metric databases that cannot be read by HA again but provide better integration with other tools, I would look at influxdb+grafana which is a really nice combination.

@DatBassie I don’t know about the P4 port, but I don’t think it is accessible for consumers. Otherwise if we can we should add support to the dsmr_parser project which in turn allows this component to use it.

Having solar power reduces the usefulness of the DSMR consumption metric. What is possible is if you also measure your solar output with HA to calculate the power usage using a template sensor, for example:

sensor:
  - platform: template
    sensors:
      netto_verbruik:
        friendly_name: Energie verbruik
        value_template: >
          {%  if states.sensor.zonenergie_verbruik.state and states.sensor.zonenergie_verbruik.state != "unknown" %}
          {{ states.sensor.power_consumption.state | float + states.sensor.zonenergie_verbruik.state | float }}
          {% else %}
          "unknown"
          {% endif %}
        unit_of_measurement: 'kW'
      zonenergie_verbruik:
        friendly_name: Zon energie verbruik
        value_template: >
          {%  if states.sensor.power_output.state and states.sensor.power_output.state != "unknown" %}
          {{ (states.sensor.power_output.state | float / 1000) - states.sensor.power_production.state | float }}
          {% else %}
          "unknown"
          {% endif %}
        unit_of_measurement: 'kW'

The snippet above produces two values, one for the amount of power from the solar panels that is used by devices in the house and one for the total power (solar + net) that is used by devices in the house (netto_verbruik). The last one would be the value of power used like if you had no solar panels, only net.