Hi friends, I have energy sensors, when I restart it gives me these errors. How can I do. Thank you
Sensor sensor.prodotta_potenza_a has device class None, state class None and unit W thus indicating it has a numeric value; however, it has the non-numeric value: unknown (<class ‘str’>); Please update your configuration if your entity is manually configured, otherwise create a bug report.
template:
- sensor:
# SONDA A (PRELEVATA)
- name: 'Prelevata Tensione'
icon: mdi:power-plug
unit_of_measurement: 'V'
state: "{{ states('sensor.iammeter_voltage_a') }}"
#availability: "{{ is_number(states('sensor.prelevata_tensione')) }}"
- name: 'Prelevata Corrente'
icon: mdi:power-plug-outline
unit_of_measurement: 'A'
state: "{{ states('sensor.iammeter_current_a') }}"
#availability: "{{ is_number(states('sensor.prelevata_corrente')) }}"
- name: 'Prelevata Potenza A'
icon: mdi:home-lightning-bolt-outline
unit_of_measurement: 'W'
state: "{{ states('sensor.iammeter_power_a') }}"
#availability: "{{ is_number(states('sensor.prelevata_potenza_a')) }}"
- name: 'Prelevata Importata A'
icon: mdi:transmission-tower-import
unit_of_measurement: 'kWh'
state: "{{ states('sensor.iammeter_importenergy_a') }}"
#availability: "{{ is_number(states('sensor.prelevata_importata_a')) }}"
- name: 'Prelevata Esportata A'
icon: mdi:transmission-tower-export
unit_of_measurement: 'kWh'
state: "{{ states('sensor.iammeter_exportgrid_a') }}"
#availability: "{{ is_number(states('sensor.prelevata_esportata_a')) }}"
- name: 'Prelevata Reattiva A'
icon: mdi:chart-ppf
unit_of_measurement: 'VAR'
state: "{{ states('sensor.iammeter_pf_a') }}"
#availability: "{{ is_number(states('sensor.prelevata_reattiva_a')) }}"