Open dekela opened 1 year ago
Hey this is my setup that works with the energy dashboard
This is the raw switch
sensor.yaml `
platform: template sensors: arlec_2_consumption: unique_id: "arlec_2_consumption" friendly_name: "Arlec 2 Consumption" unit_of_measurement: "W" value_template: '{{ state_attr("switch.arlec_2", "current_consumption") | float(0) }}' device_class: power
platform: integration unique_id: arlec_2_consum_kWh source: sensor.arlec_2_consumption name: arlec 2 consumption kWh unit_prefix: k round: 2 method: left ` then I have this added to the dashboard.
Although Current,Voltage and Current_Consumption is being displayed in the attributes and I created sensors following the readme guide enteties are not dispplayed in the energy dashboard to be added to individual power consumpption.
Based on: https://www.home-assistant.io/more-info/statistics/
This is a problem with the integration not providing long term statistics: https://developers.home-assistant.io/docs/core/entity/sensor/#long-term-statistics
Can it be done? Am I doing something wrong?
Thanks Dekel