Home Assistant 2022.11.2
Have tried everything, but devices do not show in individual devices list. Have a device that measures in watts. Then tried converting using helpers with Riemann sum integral sensor and Trapezoidal rule. Have also tried left. State shows this : sensor.kettle_kwh
Kettle_kWh 379.01 state_class: total source: sensor.kettle_powerfix unit_of_measurement: kwh device_class: energy icon: mdi:chart-histogram friendly_name: Kettle_kWh
Name, value, and attributes, but does not show on the dropdown on the add individual devices in the energy dashboard setup.
Also tried adding yaml for different sensor. Main energy supply works, but drying cabinet does not show. Here the yaml I have
‘’’
Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
Text to speech
tts:
- platform: google_translate
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
sensor:
-
platform: integration
source: sensor.compteur_digital_electric_power
name: EDF_Electricity
unit_prefix: k
round: 2
unit_time: h
method: trapezoidal -
platform: integration
source: sensor.drying_cabinet_powerfix
name: Drying_Cabinet_Energy_kWh
unit_prefix: k
round: 2
unit_time: h
method: trapezoidal -
platform: template
sensors:
drying_cabinet_powerfix:
friendly_name: “Drying Cabinet Power Fix”
unit_of_measurement: “w”
value_template: “{{(states.sensor.drying_cabinet_power.state | float / 10 | round(1) )}}”
device_class: power
unique_id: drying_cabinet_powerfix
washing_machine_powerfix:
friendly_name: “Washing Machine Power Fix”
unit_of_measurement: “w”
value_template: “{{(states.sensor.smart_socket_8_power.state | float / 10 | round(1) )}}”
device_class: power
unique_id: washing_machine_powerfix
slow_cooker_powerfix:
friendly_name: “Slow Cooker Power Fix”
unit_of_measurement: “w”
value_template: “{{(states.sensor.smart_socket_9_power.state | float / 10 | round(1) )}}”
device_class: power
unique_id: slow_cooker_powerfix
tv_cabinet_powerfix:
friendly_name: “TV Cabinet Power Fix”
unit_of_measurement: “w”
value_template: “{{(states.sensor.tv_cabinet_power.state | float / 10 | round(1) )}}”
device_class: power
unique_id: tv_cabinet_powerfix
microwave_powerfix:
friendly_name: “Microwave Power Fix”
unit_of_measurement: “w”
value_template: “{{(states.sensor.microwave_power.state | float / 10 | round(1) )}}”
device_class: power
unique_id: microwave_powerfix
kettle_powerfix:
friendly_name: “Kettle Power Fix”
unit_of_measurement: “w”
value_template: “{{(states.sensor.kettle_power.state | float / 10 | round(1) )}}”
device_class: power
unique_id: kettle_powerfix
garage_powerfix:
friendly_name: “Garage Power Fix”
unit_of_measurement: “w”
value_template: “{{(states.sensor.front_garage_power.state | float / 10 | round(1) )}}”
device_class: power
unique_id: garage_powerfix
dishwasher_powerfix:
friendly_name: “Dishwasher Power Fix”
unit_of_measurement: “w”
value_template: “{{(states.sensor.dishwasher_power.state | float / 10 | round(1) )}}”
device_class: power
unique_id: dishwasher_powerfix
‘’’
The EDF Electricity integration works fine for grid consumption.
The Drying cabinet does not show for individual device addition list.
The rest below is just tuya devices that unfortunately send power values 10x what they should be, so are divided by 10.
Please can someone give me a step by step guide on getting these individual devices working, as I am loosing the will to live trying to get this working. It is probably something daft I am missing.
Thanks
Laurie