Skip to content

Commit fe2a336

Browse files
authored
Update zhacheck.py
Added back Friendly name Added back Icon Fixed time typo on 60
1 parent dbbd502 commit fe2a336

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

apps/zhacheck.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ def ZHAdump (self):
5454
last_seen[str(device["user_given_name"])] = last_dat3
5555
count = count + 1
5656

57-
# last_seen['friendly_name'] = 'Last Seen ZHA'
58-
# last_seen['icon'] = 'mdi:message-alert-outline'
57+
last_seen['friendly_name'] = 'Last Seen ZHA'
58+
last_seen['icon'] = 'mdi:message-alert-outline'
5959
self.set_state('sensor.zha_last_seen', replace=True, state=count, attributes=last_seen)
60-
#this will create a sensor called sensor.last_seen_zha with a list of attributes containing the name and last_seen time of each sensor not reporting for more then 90 minutes.
60+
#this will create a sensor called sensor.last_seen_zha with a list of attributes containing the name and last_seen time of each sensor not reporting for more then 120 minutes.
6161
#I then have an automation that emails me an alert when this sensor is greater than 0

0 commit comments

Comments
 (0)