Skip to content

Commit

Permalink
chore(testdata): Add repeater data (#417)
Browse files Browse the repository at this point in the history
* Create zigbee_zk05390.json

* adjust test case

* Rename zigbee_zk05390.json to zigbee_zk05390_repeater.json
  • Loading branch information
CFenner authored Oct 2, 2024
1 parent 972ea75 commit 1d71359
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
55 changes: 55 additions & 0 deletions tests/response/zigbee_zk05390_repeater.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"data": [
{
"apiVersion": 1,
"commands": {},
"deviceId": "zigbee-142d41fffe8797bd",
"feature": "device.messages.errors.raw",
"gatewayId": "################",
"isEnabled": true,
"isReady": true,
"properties": {
"entries": {
"type": "array",
"value": []
}
},
"timestamp": "2024-10-01T00:31:25.951Z",
"uri": "https://api.viessmann.com/iot/v1/features/installations/#######/gateways/################/devices/zigbee-142d41fffe8797bd/features/device.messages.errors.raw"
},
{
"apiVersion": 1,
"commands": {
"setName": {
"isExecutable": true,
"name": "setName",
"params": {
"name": {
"constraints": {
"maxLength": 40,
"minLength": 1,
"regEx": "^[\\p{L}0-9]+( [\\p{L}0-9]+)*$"
},
"required": true,
"type": "string"
}
},
"uri": "https://api.viessmann.com/iot/v1/features/installations/#######/gateways/################/devices/zigbee-142d41fffe8797bd/features/device.name/commands/setName"
}
},
"deviceId": "zigbee-142d41fffe8797bd",
"feature": "device.name",
"gatewayId": "################",
"isEnabled": true,
"isReady": true,
"properties": {
"name": {
"type": "string",
"value": "Erdgeschoss"
}
},
"timestamp": "2024-10-01T00:31:25.951Z",
"uri": "https://api.viessmann.com/iot/v1/features/installations/#######/gateways/################/devices/zigbee-142d41fffe8797bd/features/device.name"
}
]
}
1 change: 1 addition & 0 deletions tests/test_TestForMissingProperties.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def test_missingProperties(self):

# Ignored for now as they are not documented in https://documentation.viessmann.com/static/iot/data-points
'device.messages.errors.raw',
'device.name',
'device.productIdentification',
'device.productMatrix',
'heating.device.variant',
Expand Down

0 comments on commit 1d71359

Please sign in to comment.