Hello.
I use a ZLinky to track my power usage in my home as well as several zigbee power meters.
All of them connected to my ZTubes Zigbee dongle managed by Z2M.
I do get a sensor.linky_papp
that gives me the instantaneous power consumption of my whole house, but sadly it is not working with the statistics card.
I checked my recorder settings in configuration.yaml
:
recorder:
purge_keep_days: 180
exclude:
domains:
#- automation
- updater
entity_globs:
- sensor.weather_*
entities:
- sun.sun # Don't record sun data
- sensor.last_boot # Comes from 'systemmonitor' sensor platform
- sensor.date
event_types:
- call_service # Don't record service calls
That does not seem to exclude my liny sensor.
I am even able to create my own statistics sensors that work :
sensor:
- platform: statistics
name: "Linky max power over last 24 hours"
unique_id: sensor.linky_max_power_over_last_24_hours
entity_id: sensor.linky_papp
state_characteristic: value_max
The statistics card works well with my power meters :
type: statistic
period:
calendar:
period: week
stat_type: max
name: Clim Haut hebdo max
entity: sensor.disjoncteur_clim_haut_power
But the same with entity: sensor.linky_papp
only show the unit (VA) but no value at all
And the custom sensor is’nt very helpful as it is not on the same timeframe, the statistics card lets me choose “today” instead of “last 24 hours” which I like very much more and anyway having 2 different timespans makes values not comparable between my individual power meters and the general linky value…
The fun thing is that I can now make statistics card of the custom statistics counter, so maybe I’ll take my custom statistics sensor down to 1 minute timeframe and use the statistics card to get daily/weekly stats…
I’m not sure what I could do to get it working without the custom statistics sensor, any help is really appreciated.
I also realized it might be linked to my use of the energy module, so here is my .storage/energy
file :
{
"version": 1,
"minor_version": 1,
"key": "energy",
"data": {
"energy_sources": [
{
"type": "grid",
"flow_from": [
{
"stat_energy_from": "sensor.linky_base",
"stat_cost": null,
"entity_energy_price": null,
"number_energy_price": 0.174
},
{
"stat_energy_from": "sensor.dc_ups_energy",
"stat_cost": null,
"entity_energy_price": null,
"number_energy_price": 0.174
},
{
"stat_energy_from": "sensor.bureau_ups_energy",
"stat_cost": null,
"entity_energy_price": null,
"number_energy_price": 0.174
},
{
"stat_energy_from": "sensor.salon_prise_tv_energy",
"stat_cost": null,
"entity_energy_price": null,
"number_energy_price": 0.174
},
{
"stat_energy_from": "sensor.disjoncteur_clim_haut_energy",
"stat_cost": null,
"entity_energy_price": null,
"number_energy_price": 0.174
},
{
"stat_energy_from": "sensor.disjoncteur_clim_bas_energy",
"stat_cost": null,
"entity_energy_price": null,
"number_energy_price": 0.174
}
],
"flow_to": [],
"cost_adjustment_day": 0.0
}
],
"device_consumption": []
}
}