mirror of
https://github.com/michivonah/esphome-eink-dashboard.git
synced 2025-12-22 21:16:28 +01:00
Added sensor for last screen refresh and total display refreshs
This commit is contained in:
parent
6b25b5e3cc
commit
e2181c2e3f
1 changed files with 15 additions and 1 deletions
|
|
@ -54,6 +54,10 @@ globals:
|
|||
type: bool
|
||||
restore_value: no
|
||||
initial_value: 'false'
|
||||
- id: recorded_display_refresh
|
||||
type: int
|
||||
restore_value: yes
|
||||
initial_value: '0'
|
||||
|
||||
|
||||
|
||||
|
|
@ -184,8 +188,18 @@ binary_sensor:
|
|||
id: motion_detected
|
||||
|
||||
|
||||
# Call Subway and Weather sensors from HA.
|
||||
|
||||
sensor:
|
||||
- platform: template
|
||||
name: "weatherman: Display Last Update"
|
||||
device_class: timestamp
|
||||
id: display_last_update
|
||||
|
||||
- platform: template
|
||||
name: "weatherman: Recorded Display Refresh"
|
||||
lambda: 'return id(recorded_display_refresh);'
|
||||
|
||||
# Call Subway and Weather sensors from HA.
|
||||
- platform: homeassistant
|
||||
entity_id: sensor.gtfs_mta_subway_manhattan
|
||||
id: train_manhattan_due_in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue