hello
My sensor configuration is
utility_meter:
daily_energy:
source: sensor.licznik_pompy
name: Dzienne Zużycie
cycle: daily
how to display value sensor.licznik_pompy divided by 2000 and with “kWh” at the end of value
hello
My sensor configuration is
utility_meter:
daily_energy:
source: sensor.licznik_pompy
name: Dzienne Zużycie
cycle: daily
how to display value sensor.licznik_pompy divided by 2000 and with “kWh” at the end of value
Create a Template Sensor.
For example:
template:
- sensor:
- name: Example
unit_of_measurement: "kWh"
device_class: energy
state: "{{ states('sensor.licznik_pompy') | float(0) / 2000 }}"
Thx. It working fine.
How can i reset or set my own value of this sensor ( Example)? I need to set correct begin of yearly value.
You’re welcome!
Please consider marking my post above with the Solution tag. It will automatically place a check-mark next to the topic’s title which signals to other users that this topic has been resolved. This helps users find answers to similar questions.
For more information about the Solution tag, refer to guideline 21 in the FAQ.
The Utility Meter integration provides services to reset or set a value.