mirror of
https://github.com/michivonah/esphome-eink-dashboard.git
synced 2025-12-22 21:16:28 +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
|
id: motion_detected
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
|
# Create sensors for monitoring Weatherman remotely.
|
||||||
- platform: template
|
- platform: template
|
||||||
name: "Weatherman - Display Last Update"
|
name: "Weatherman - Display Last Update"
|
||||||
device_class: timestamp
|
device_class: timestamp
|
||||||
|
|
@ -200,11 +200,18 @@ sensor:
|
||||||
- platform: template
|
- platform: template
|
||||||
name: "Weatherman - Recorded Display Refresh"
|
name: "Weatherman - Recorded Display Refresh"
|
||||||
accuracy_decimals: 0
|
accuracy_decimals: 0
|
||||||
unit_of_measurement: "Refreshs"
|
unit_of_measurement: "Refreshes"
|
||||||
state_class: "total_increasing"
|
state_class: "total_increasing"
|
||||||
entity_category: "diagnostic"
|
entity_category: "diagnostic"
|
||||||
lambda: 'return id(recorded_display_refresh);'
|
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.
|
# Call Subway and Weather sensors from HA.
|
||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
entity_id: sensor.gtfs_mta_subway_manhattan
|
entity_id: sensor.gtfs_mta_subway_manhattan
|
||||||
|
|
@ -276,12 +283,6 @@ sensor:
|
||||||
then:
|
then:
|
||||||
- lambda: 'id(data_updated) = true;'
|
- lambda: 'id(data_updated) = true;'
|
||||||
|
|
||||||
- platform: wifi_signal
|
|
||||||
name: "WiFi Signal Sensor"
|
|
||||||
id: wifisignal
|
|
||||||
entity_category: "diagnostic"
|
|
||||||
update_interval: 60s
|
|
||||||
|
|
||||||
|
|
||||||
text_sensor:
|
text_sensor:
|
||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue