Closed disaster123 closed 1 year ago
I can help with testing. I also use an it4wifi.
I can fix this issue by manually assigning type number with min / max 0 / 1 to position-hold - but this gets overidden by homekit-controller after restarting instance.
I ned to check WHERE i need to fix that
If i can help or check anything please give me a note.
Ikea accessories have the same problem. Homekit-Controller detects device option as number but device received Boolean.
{ "type": "state", "common": { "name": "", "read": true, "write": false, "min": 0, "max": 1, "step": 1, "type": "number", "role": "indicator.lowbat", "custom": { "history.0": { "enabled": true, "aliasId": "", "debounceTime": 0, "blockTime": 0, "changesOnly": true, "changesRelogInterval": 0, "changesMinDelta": 0, "ignoreBelowNumber": "", "disableSkippedValueLogging": true, "retention": 31536000, "customRetentionDuration": 365, "maxLength": 960, "enableDebugLogs": false, "debounce": 1000 } } }, "native": { "iid": 227, "type": "00000079-0000-1000-8000-0026BB765291", "format": "uint8", "perms": [ "pr", "ev" ], "ev": false, "enc": false, "minValue": 0, "maxValue": 1, "minStep": 1, "aid": "808958426756566785", "serviceUuid": "00000096-0000-1000-8000-0026BB765291" }, "_id": "homekit-controller.0.IP-1A:49:24:D2:FB:3A.808958426756566785.battery-224.status-lo-batt", "acl": { "object": 1636, "state": 1636, "owner": "system.user.admin", "ownerGroup": "system.group.administrator" }, "from": "system.adapter.homekit-controller.0", "user": "system.user.admin", "ts": 1691657023724 }
State value to set for "homekit-controller.0.IP-1A:49:24:D2:FB:3A.2370808173038947585.battery-224.status-lo-batt" has to be type "number" but received type "boolean"
Please try GitHub version
@Apollon77 great - position hold is now working!! Thanks a lot!
Describe the bug
Homekit-Controller detects device option as bool but device expects 0 / 1 as number values.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Value should be accepted by device.
Screenshots & Logfiles
Not sure which logfiles are needed.
position-hold "iid":14 should be write only and bool as 0 / 1 values instead of true and false. This works also fine with homekit implementation of apple itself. As i don't expect that apple implemented a workaround for this device i think this must be a bug in homelkit implementation or apple always sends 0 / 1 instead of true false.
Thanks a lot for your great work @Apollon77 !