From 42722bd3db7f25a3ca7861b1b5f97b906cded498 Mon Sep 17 00:00:00 2001 From: Madelena Mak Date: Wed, 4 Jan 2023 14:42:32 -0500 Subject: [PATCH] Clean up sensor code --- weatherman.yaml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/weatherman.yaml b/weatherman.yaml index 6f9a0d4..6898c1c 100644 --- a/weatherman.yaml +++ b/weatherman.yaml @@ -189,8 +189,8 @@ binary_sensor: id: motion_detected - sensor: + # Create sensors for monitoring Weatherman remotely. - platform: template name: "Weatherman - Display Last Update" device_class: timestamp @@ -200,11 +200,18 @@ sensor: - platform: template name: "Weatherman - Recorded Display Refresh" accuracy_decimals: 0 - unit_of_measurement: "Refreshs" + unit_of_measurement: "Refreshes" state_class: "total_increasing" entity_category: "diagnostic" lambda: 'return id(recorded_display_refresh);' + - platform: wifi_signal + name: "Weatherman - WiFi Signal Strength" + id: wifisignal + unit_of_measurement: "dBm" + entity_category: "diagnostic" + update_interval: 60s + # Call Subway and Weather sensors from HA. - platform: homeassistant entity_id: sensor.gtfs_mta_subway_manhattan @@ -276,12 +283,6 @@ sensor: then: - lambda: 'id(data_updated) = true;' - - platform: wifi_signal - name: "WiFi Signal Sensor" - id: wifisignal - entity_category: "diagnostic" - update_interval: 60s - text_sensor: - platform: homeassistant