elPaulio
(Paul)
1
I have an existing sensor in entities (sensor.myenergi_zappi_REDACTED_energy_used_today)
I want to get it as an additional device in the energy dash
I have this in my configuration.yaml file, but the new entity doesnt allow me to select it
The entity exists with the correct value under the entities and I can add it to a regular card
- name: Zappi Daily consumption
unit_of_measurement: 'W'
device_class: energy
state_class: total_increasing
state: '{{ states("sensor.myenergi_zappi_REDACTED_energy_used_today") }}'
Any ideas why I cant select it under energy dash pls??
Or, is there a better way to do this?
Thanks in advance!
tom_l
2
The unit of measurement for energy is kWh or Wh. Not W, that’s power.
elPaulio
(Paul)
3
thanks
changed it, but made no difference, still cannot see that entity in the ‘add device’ dropdown
tom_l
4
Show your sensor config.
Did you restart Home Assistant?
elPaulio
(Paul)
5
below is full sensor config
its all default, added by config from the UI, so its empty
This is the entire configuration.yaml. I havent added anything to the !include files either
# Loads default set of integrations. Do not remove.
default_config:
# Text to speech
tts:
- platform: google_translate
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
template:
sensor:
- name: Zappi Daily consumption
unit_of_measurement: 'Wh'
device_class: energy
state_class: total_increasing
state: '{{ states("sensor.myenergi_zappi_REDACTED_energy_used_today") }}'
I did restart (and validated the yaml) from the Developer Toools → Yaml tab each time I made any changes