I use vzlogger to grab my energy-meter readings from a german “smart”-meter. This works very well. vzlogger provides a simple json output (shortened, there are more uuids in data):
- platform: rest
resource: http://192.168.178.202:8084/
value_template: >
{% for i in value_json.data %}
{% if i.uuid == "198c1340-3014-11eb-84e0-6f5816942e51" %}
{{ '%.2f'%(i.tuples[0][1]) | float }}
{% endif %}
{% endfor %}
method: GET
name: "P_L3"
unit_of_measurement: W
device_class: power
Wich works nice:
But I would really like to integrate one of these values into the “Energy” area, so I can see my distribution. But as it happens, I am not shure how to set up my consumption, as the entity does not show. I do of cause also monitor the increasing total in kWh (not shown in picture).
Could you please help me to understand, how I can add my grid-consumption?
Let us know how the energy entity is created and defined ? This is the most important thing to be shown in the energy monitor dashboard. Entities expressed in Watts are “consumption” values, you only display energy in the dashboard (expressed in kWh).
Does nobody has a suggestion? Do I need to create a full custom integration to be able to add my data to the Energy-area and if this is so, why is a simple sensor not enougth?
Wich does at least turn up so I can add it. But I still don’t get, why my first sensor with rest is unavailable?! I would really like to use the data provided by my energy meter directly instead of re-calculating it.