Improved display sensors

This commit is contained in:
Paul-Vincent Roll 2022-11-27 23:59:47 +01:00 committed by GitHub
parent e2181c2e3f
commit 3671a83dca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -193,10 +193,15 @@ sensor:
- platform: template - platform: template
name: "weatherman: Display Last Update" name: "weatherman: Display Last Update"
device_class: timestamp device_class: timestamp
entity_category: "diagnostic"
id: display_last_update id: display_last_update
- platform: template - platform: template
name: "weatherman: Recorded Display Refresh" name: "weatherman: Recorded Display Refresh"
accuracy_decimals: 0
unit_of_measurement: "Refreshs"
state_class: "total_increasing"
entity_category: "diagnostic"
lambda: 'return id(recorded_display_refresh);' lambda: 'return id(recorded_display_refresh);'
# Call Subway and Weather sensors from HA. # Call Subway and Weather sensors from HA.