Skip to content

Commit a6dc7a4

Browse files
authored
chore(testdata): add TRV testdata (#509)
* add trv test data * add device.power.battery
1 parent d09225d commit a6dc7a4

File tree

2 files changed

+138
-0
lines changed

2 files changed

+138
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
{
2+
"data": [
3+
{
4+
"apiVersion": 1,
5+
"commands": {},
6+
"deviceId": "zigbee-048727fffeb429ae",
7+
"feature": "device.messages.errors.raw",
8+
"gatewayId": "################",
9+
"isEnabled": true,
10+
"isReady": true,
11+
"properties": {
12+
"entries": {
13+
"type": "array",
14+
"value": [
15+
{
16+
"accessLevel": "customer",
17+
"audiences": [],
18+
"errorCode": "F.731",
19+
"priority": "criticalError"
20+
}
21+
]
22+
}
23+
},
24+
"timestamp": "2025-02-03T02:30:52.129Z",
25+
"uri": "https://api.viessmann.com/iot/v1/features/installations/#######/gateways/################/devices/zigbee-048727fffeb429ae/features/device.messages.errors.raw"
26+
},
27+
{
28+
"apiVersion": 1,
29+
"commands": {
30+
"setName": {
31+
"isExecutable": true,
32+
"name": "setName",
33+
"params": {
34+
"name": {
35+
"constraints": {
36+
"maxLength": 40,
37+
"minLength": 1,
38+
"regEx": "^[\\p{L}0-9]+( [\\p{L}0-9]+)*$"
39+
},
40+
"required": true,
41+
"type": "string"
42+
}
43+
},
44+
"uri": "https://api.viessmann.com/iot/v1/features/installations/#######/gateways/################/devices/zigbee-048727fffeb429ae/features/device.name/commands/setName"
45+
}
46+
},
47+
"deviceId": "zigbee-048727fffeb429ae",
48+
"feature": "device.name",
49+
"gatewayId": "################",
50+
"isEnabled": true,
51+
"isReady": true,
52+
"properties": {
53+
"name": {
54+
"type": "string",
55+
"value": "Wohnung"
56+
}
57+
},
58+
"timestamp": "2025-02-03T02:30:52.129Z",
59+
"uri": "https://api.viessmann.com/iot/v1/features/installations/#######/gateways/################/devices/zigbee-048727fffeb429ae/features/device.name"
60+
},
61+
{
62+
"apiVersion": 1,
63+
"commands": {},
64+
"deviceId": "zigbee-048727fffeb429ae",
65+
"feature": "device.power.battery",
66+
"gatewayId": "################",
67+
"isEnabled": true,
68+
"isReady": true,
69+
"properties": {
70+
"level": {
71+
"type": "number",
72+
"unit": "percent",
73+
"value": 66
74+
}
75+
},
76+
"timestamp": "2025-02-03T02:30:52.129Z",
77+
"uri": "https://api.viessmann.com/iot/v1/features/installations/#######/gateways/################/devices/zigbee-048727fffeb429ae/features/device.power.battery"
78+
},
79+
{
80+
"apiVersion": 1,
81+
"commands": {},
82+
"deviceId": "zigbee-048727fffeb429ae",
83+
"feature": "device.sensors.temperature",
84+
"gatewayId": "################",
85+
"isEnabled": true,
86+
"isReady": true,
87+
"properties": {
88+
"status": {
89+
"type": "string",
90+
"value": "connected"
91+
},
92+
"value": {
93+
"type": "number",
94+
"unit": "celsius",
95+
"value": 16.5
96+
}
97+
},
98+
"timestamp": "2025-02-03T14:14:15.095Z",
99+
"uri": "https://api.viessmann.com/iot/v1/features/installations/#######/gateways/################/devices/zigbee-048727fffeb429ae/features/device.sensors.temperature"
100+
},
101+
{
102+
"apiVersion": 1,
103+
"commands": {
104+
"setTargetTemperature": {
105+
"isExecutable": true,
106+
"name": "setTargetTemperature",
107+
"params": {
108+
"temperature": {
109+
"constraints": {
110+
"max": 30,
111+
"min": 8,
112+
"stepping": 0.5
113+
},
114+
"required": true,
115+
"type": "number"
116+
}
117+
},
118+
"uri": "https://api.viessmann.com/iot/v1/features/installations/#######/gateways/################/devices/zigbee-048727fffeb429ae/features/trv.temperature/commands/setTargetTemperature"
119+
}
120+
},
121+
"deviceId": "zigbee-048727fffeb429ae",
122+
"feature": "trv.temperature",
123+
"gatewayId": "################",
124+
"isEnabled": true,
125+
"isReady": true,
126+
"properties": {
127+
"value": {
128+
"type": "number",
129+
"unit": "celsius",
130+
"value": 8
131+
}
132+
},
133+
"timestamp": "2025-02-03T13:57:19.872Z",
134+
"uri": "https://api.viessmann.com/iot/v1/features/installations/#######/gateways/################/devices/zigbee-048727fffeb429ae/features/trv.temperature"
135+
}
136+
]
137+
}

tests/test_TestForMissingProperties.py

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ def test_missingProperties(self):
6666
# Ignored for now as they are not documented in https://documentation.viessmann.com/static/iot/data-points
6767
'device.messages.errors.raw',
6868
'device.name',
69+
'device.power.battery',
6970
'device.productIdentification',
7071
'device.productMatrix',
7172
'heating.device.variant',

0 commit comments

Comments
 (0)