-
Notifications
You must be signed in to change notification settings - Fork 13
/
waterMeterPresentation.json
89 lines (89 loc) · 2.63 KB
/
waterMeterPresentation.json
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{
"dashboard": {
"states": [
{
"label": "{{lastHour.value}} {{lastHour.unit}}"
},
{
"label": "{{lastTwentyFourHours.value}} {{lastTwentyFourHours.unit}}"
},
{
"label": "{{lastSevenDays.value}} {{lastSevenDays.unit}}"
}
],
"actions": [],
"panelItems": []
},
"detailView": [
{
"label": "{{i18n.attributes.lastHour.label}}",
"displayType": "state",
"state": {
"label": "{{lastHour.value}}",
"unit": "lastHour.unit"
}
},
{
"label": "{{i18n.attributes.lastTwentyFourHours.label}}",
"displayType": "state",
"state": {
"label": "{{lastTwentyFourHours.value}}",
"unit": "lastTwentyFourHours.unit"
}
},
{
"label": "{{i18n.attributes.lastSevenDays.label}}",
"displayType": "state",
"state": {
"label": "{{lastSevenDays.value}}",
"unit": "lastSevenDays.unit"
}
}
],
"automation": {
"conditions": [
{
"label": "{{i18n.attributes.lastHour.label}}",
"displayType": "numberField",
"numberField": {
"value": "lastHour.value",
"valueType": "number",
"unit": "lastHour.unit",
"range": [
0,
100000
]
}
},
{
"label": "{{i18n.attributes.lastTwentyFourHours.label}}",
"displayType": "numberField",
"numberField": {
"value": "lastTwentyFourHours.value",
"valueType": "number",
"unit": "lastTwentyFourHours.unit",
"range": [
0,
100000
]
}
},
{
"label": "{{i18n.attributes.lastSevenDays.label}}",
"displayType": "numberField",
"numberField": {
"value": "lastSevenDays.value",
"valueType": "number",
"unit": "lastSevenDays.unit",
"range": [
0,
100000
]
}
}
],
"actions": []
},
"id": "waterMeter",
"version": 1
}