Skip to content

Commit

Permalink
Add services and characteristics used by Home Keys (#454)
Browse files Browse the repository at this point in the history
  • Loading branch information
kormax authored Oct 4, 2023
1 parent d85fd98 commit d9243b6
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
31 changes: 31 additions & 0 deletions pyhap/resources/characteristics.json
Original file line number Diff line number Diff line change
Expand Up @@ -1664,5 +1664,36 @@
"maxValue": 100,
"minValue": 0,
"unit": "percentage"
},
"HardwareFinish": {
"Format": "tlv8",
"Permissions": [
"pr"
],
"UUID": "0000026C-0000-1000-8000-0026BB765291"
},
"ConfigurationState": {
"Format": "uint16",
"Permissions": [
"pr",
"ev"
],
"UUID": "00000263-0000-1000-8000-0026BB765291"
},
"NFCAccessControlPoint": {
"Format": "tlv8",
"Permissions": [
"pr",
"pw",
"wr"
],
"UUID": "00000264-0000-1000-8000-0026BB765291"
},
"NFCAccessSupportedConfiguration": {
"Format": "tlv8",
"Permissions": [
"pr"
],
"UUID": "00000265-0000-1000-8000-0026BB765291"
}
}
12 changes: 11 additions & 1 deletion pyhap/resources/services.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"AccessoryInformation": {
"OptionalCharacteristics": [
"HardwareRevision",
"AccessoryFlags"
"AccessoryFlags",
"HardwareFinish"
],
"RequiredCharacteristics": [
"Identify",
Expand Down Expand Up @@ -576,5 +577,14 @@
"PositionState"
],
"UUID": "0000008C-0000-1000-8000-0026BB765291"
},
"NFCAccess": {
"OptionalCharacteristics": [],
"RequiredCharacteristics": [
"ConfigurationState",
"NFCAccessControlPoint",
"NFCAccessSupportedConfiguration"
],
"UUID": "00000266-0000-1000-8000-0026BB765291"
}
}

0 comments on commit d9243b6

Please sign in to comment.