mirror of
https://github.com/michivonah/esphome-eink-dashboard.git
synced 2025-12-22 13:16:27 +01:00
Clean up sensor code
This commit is contained in:
parent
a2717048e5
commit
42722bd3db
1 changed files with 9 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue