forked from michalmo/zha-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
script_Thermometer_setReporting.yaml
46 lines (46 loc) · 1.37 KB
/
script_Thermometer_setReporting.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
alias: Zigbee Thermometer Configure Reporting
fields:
entity_name:
name: entity_name
description: A Zigbee Entity (all entities of the device resolve to the same address)
required: true
selector:
entity:
integration: zha
sequence:
- alias:
Configure the temperature cluster of the device so that it reports every
0.2°C every 19 seconds at most, or sends a report at least every 5 minutes
service: zha_toolkit.conf_report
data:
ieee: "{{ entity_name }}"
cluster: 1026
attribute: 0
tries: 100
event_done: zha_done
reportable_change: 20
max_interval: 300
min_interval: 19
- alias:
Read back the report configuration so that it can be verified in the zha_done
event data
service: zha_toolkit.conf_report_read
data:
ieee: "{{ entity_name }}"
cluster: 1026
attribute: 0
tries: 100
event_done: zha_done
- alias: Ensure that the cluster is bound to the coordinator
service: zha_toolkit.bind_ieee
data:
ieee: 0 # 0 or false selects the coordinator in zha-toolkit
cluster: 1026
tries: 100
event_done: zha_done
mode: restart
icon: mdi:thermometer-check
description: >-
This script configures the selected Zigbee Thermometer to report its
temperature at least every 5 minutes or every 0.2°C whichever occurs first.