From e2181c2e3facd6aa22f1ef9a00d85078a2d45d43 Mon Sep 17 00:00:00 2001 From: Paul-Vincent Roll Date: Fri, 18 Nov 2022 21:47:16 +0100 Subject: [PATCH] Added sensor for last screen refresh and total display refreshs --- weatherman.yaml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/weatherman.yaml b/weatherman.yaml index 5bc54b7..6416caa 100644 --- a/weatherman.yaml +++ b/weatherman.yaml @@ -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