Skip to content

Commit

Permalink
Uptime minutes sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
sameeraman committed May 8, 2024
1 parent b30a7e1 commit 5defa28
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sensor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,11 @@
friendly_name: 'Water Usage Liters'
value_template: "{{ states('counter.water_meter_count') | int }}"

uptime_minutes:
friendly_name: UpTime Minutes
value_template: >
{{ (as_timestamp(now()) - as_timestamp(states('sensor.uptime'))) // 60| round (0) }}
# Time sensor
- platform: time_date
display_options:
Expand Down

0 comments on commit 5defa28

Please sign in to comment.