Closed rmeekers closed 2 years ago
You can setup a long-term statistics sensor like this:
template:
- sensor:
- name: Today Total C1 Z1
state_class: total_increasing
icon: mdi:sprinkler
unit_of_measurement: s
state: >
{{ state_attr('binary_sensor.irrigation_unlimited_c1_z1', 'today_total') | float(0) }}
ok thanks. I'll try that. Is there a reason why you don't include it by default?
On Tue, Mar 29, 2022 at 11:41 PM Robert Cook @.***> wrote:
You can setup a long-term statistics sensor like this:
template:
- sensor:
- name: Today Total C1 Z1 state_class: total_increasing icon: mdi:sprinkler unit_of_measurement: s state: > {{ state_attr('binary_sensor.irrigation_unlimited_c1_z1', 'today_total') | float(0) }}
— Reply to this email directly, view it on GitHub https://github.com/rgc99/irrigation_unlimited/issues/52#issuecomment-1082400077, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABL5DLEVV5BI4UDGIWFQYN3VCN2KHANCNFSM5R2QXTSA . You are receiving this because you authored the thread.Message ID: @.***>
I had only fleeting acquaintance with LTS when setting up my solar. Did a deep dive on the link you sent and created that sensor yesterday. Let me know how it goes and I will certainly include it in the documentation.
Now documented. Closing issue.
Is your feature request related to a problem? Please describe. I'd like to display the watering time per day. The mini graph card isn't sufficient and doesn't display all data correctly when using multiple zones at once.
Describe the solution you'd like Support for https://developers.home-assistant.io/docs/core/entity/sensor/#long-term-statistics