matter-all-in-one-addon 2.3.1 → 2.3.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (457) hide show
  1. package/README.md +16 -8
  2. package/dist/camera/ai/camera-ai-detector.d.ts +0 -2
  3. package/dist/camera/ai/camera-ai-detector.js +52 -57
  4. package/dist/camera/ai/camera-ai-detector.js.map +1 -1
  5. package/dist/camera/browser-preview.d.ts +9 -0
  6. package/dist/camera/browser-preview.js +135 -0
  7. package/dist/camera/browser-preview.js.map +1 -0
  8. package/dist/camera/camera-source-resolver.js +5 -3
  9. package/dist/camera/camera-source-resolver.js.map +1 -1
  10. package/dist/camera/camera-types.d.ts +0 -2
  11. package/dist/camera/cameraui/cameraui-client.js +91 -30
  12. package/dist/camera/cameraui/cameraui-client.js.map +1 -1
  13. package/dist/camera/cameraui/cameraui-homekit-bridge.js +13 -4
  14. package/dist/camera/cameraui/cameraui-homekit-bridge.js.map +1 -1
  15. package/dist/camera/cameraui/cameraui-storage.js.map +1 -1
  16. package/dist/camera/cameraui/cameraui-types.d.ts +6 -2
  17. package/dist/camera/cameraui/ha-camera-entity.js +5 -2
  18. package/dist/camera/cameraui/ha-camera-entity.js.map +1 -1
  19. package/dist/camera/homekit/ffmpeg-helper.js +17 -35
  20. package/dist/camera/homekit/ffmpeg-helper.js.map +1 -1
  21. package/dist/camera/homekit/hevc/fmp4-hevc.js +3 -1
  22. package/dist/camera/homekit/hevc/fmp4-hevc.js.map +1 -1
  23. package/dist/camera/homekit/hevc/hevc-recording.d.ts +0 -2
  24. package/dist/camera/homekit/hevc/hevc-recording.js +28 -63
  25. package/dist/camera/homekit/hevc/hevc-recording.js.map +1 -1
  26. package/dist/camera/homekit/hevc/multi-tier-rtp.d.ts +1 -15
  27. package/dist/camera/homekit/hevc/multi-tier-rtp.js +70 -228
  28. package/dist/camera/homekit/hevc/multi-tier-rtp.js.map +1 -1
  29. package/dist/camera/homekit/hevc/sframe-rtp.d.ts +0 -2
  30. package/dist/camera/homekit/hevc/sframe-rtp.js +0 -25
  31. package/dist/camera/homekit/hevc/sframe-rtp.js.map +1 -1
  32. package/dist/camera/homekit/hevc/sframe.d.ts +1 -11
  33. package/dist/camera/homekit/hevc/sframe.js +18 -133
  34. package/dist/camera/homekit/hevc/sframe.js.map +1 -1
  35. package/dist/camera/homekit/hevc/types.js +81 -9
  36. package/dist/camera/homekit/hevc/types.js.map +1 -1
  37. package/dist/camera/homekit/hevc/webrtc-session.d.ts +3 -17
  38. package/dist/camera/homekit/hevc/webrtc-session.js +55 -229
  39. package/dist/camera/homekit/hevc/webrtc-session.js.map +1 -1
  40. package/dist/camera/homekit/homekit-camera-recording.delegate.d.ts +0 -1
  41. package/dist/camera/homekit/homekit-camera-recording.delegate.js +115 -43
  42. package/dist/camera/homekit/homekit-camera-recording.delegate.js.map +1 -1
  43. package/dist/camera/homekit/homekit-camera-stream.delegate.d.ts +4 -7
  44. package/dist/camera/homekit/homekit-camera-stream.delegate.js +388 -201
  45. package/dist/camera/homekit/homekit-camera-stream.delegate.js.map +1 -1
  46. package/dist/camera/homekit/homekit-camera.accessory.d.ts +7 -34
  47. package/dist/camera/homekit/homekit-camera.accessory.js +207 -169
  48. package/dist/camera/homekit/homekit-camera.accessory.js.map +1 -1
  49. package/dist/camera/homekit/live-view-telemetry.d.ts +0 -4
  50. package/dist/camera/homekit/live-view-telemetry.js.map +1 -1
  51. package/dist/camera/homekit/tuya-hap-talkback.d.ts +41 -0
  52. package/dist/camera/homekit/tuya-hap-talkback.js +326 -0
  53. package/dist/camera/homekit/tuya-hap-talkback.js.map +1 -0
  54. package/dist/camera/matter/camera-endpoint.builder.js +9 -7
  55. package/dist/camera/matter/camera-endpoint.builder.js.map +1 -1
  56. package/dist/camera/matter/camera-session-manager.d.ts +1 -0
  57. package/dist/camera/matter/camera-session-manager.js +2 -0
  58. package/dist/camera/matter/camera-session-manager.js.map +1 -1
  59. package/dist/camera/matter/camera-webrtc-adapter.js +32 -15
  60. package/dist/camera/matter/camera-webrtc-adapter.js.map +1 -1
  61. package/dist/camera/motion/ffmpeg-motion-detector.js +28 -14
  62. package/dist/camera/motion/ffmpeg-motion-detector.js.map +1 -1
  63. package/dist/camera/nest/nest-camera-adapter.js +9 -5
  64. package/dist/camera/nest/nest-camera-adapter.js.map +1 -1
  65. package/dist/camera/ptz/ptz-capabilities.js +3 -1
  66. package/dist/camera/ptz/ptz-capabilities.js.map +1 -1
  67. package/dist/camera/ptz/ptz-legacy-discovery.js.map +1 -1
  68. package/dist/camera/ptz/ptz-mqtt-publisher.js +50 -12
  69. package/dist/camera/ptz/ptz-mqtt-publisher.js.map +1 -1
  70. package/dist/camera/ptz/ptz-zones-manager.js +6 -1
  71. package/dist/camera/ptz/ptz-zones-manager.js.map +1 -1
  72. package/dist/camera/scrypted/scrypted-camera-card.js +3 -1
  73. package/dist/camera/scrypted/scrypted-camera-card.js.map +1 -1
  74. package/dist/camera/scrypted/scrypted-camera-discovery-adapter.js +7 -5
  75. package/dist/camera/scrypted/scrypted-camera-discovery-adapter.js.map +1 -1
  76. package/dist/camera/scrypted/scrypted-client-discovery-adapter.js.map +1 -1
  77. package/dist/camera/scrypted/scrypted-client.js +6 -5
  78. package/dist/camera/scrypted/scrypted-client.js.map +1 -1
  79. package/dist/camera/scrypted/scrypted-discovery-provider.js.map +1 -1
  80. package/dist/camera/scrypted/scrypted-homekit-bridge.js +6 -4
  81. package/dist/camera/scrypted/scrypted-homekit-bridge.js.map +1 -1
  82. package/dist/camera/scrypted/scrypted-reconnect-manager.js.map +1 -1
  83. package/dist/camera/scrypted/scrypted-runtime-facade.js +2 -2
  84. package/dist/camera/scrypted/scrypted-runtime-facade.js.map +1 -1
  85. package/dist/camera/scrypted/scrypted-runtime-ingest.js +3 -1
  86. package/dist/camera/scrypted/scrypted-runtime-ingest.js.map +1 -1
  87. package/dist/camera/scrypted/scrypted-storage.js +12 -6
  88. package/dist/camera/scrypted/scrypted-storage.js.map +1 -1
  89. package/dist/camera/scrypted/scrypted-stream-validator.js +25 -7
  90. package/dist/camera/scrypted/scrypted-stream-validator.js.map +1 -1
  91. package/dist/camera/tuya-webrtc-session.d.ts +53 -0
  92. package/dist/camera/tuya-webrtc-session.js +261 -0
  93. package/dist/camera/tuya-webrtc-session.js.map +1 -0
  94. package/dist/converters/sensor.converter.js +4 -1
  95. package/dist/converters/sensor.converter.js.map +1 -1
  96. package/dist/device-profiles.js +3 -1
  97. package/dist/device-profiles.js.map +1 -1
  98. package/dist/entities/air_quality.entity.js +3 -1
  99. package/dist/entities/air_quality.entity.js.map +1 -1
  100. package/dist/entities/base.entity.js +45 -17
  101. package/dist/entities/base.entity.js.map +1 -1
  102. package/dist/entities/camera.entity.d.ts +1 -0
  103. package/dist/entities/camera.entity.js +24 -2
  104. package/dist/entities/camera.entity.js.map +1 -1
  105. package/dist/entities/composite-device.entity.js +37 -13
  106. package/dist/entities/composite-device.entity.js.map +1 -1
  107. package/dist/entities/energy_tariff.entity.js.map +1 -1
  108. package/dist/entities/pet_feeder.entity.d.ts +1 -0
  109. package/dist/entities/pet_feeder.entity.js +12 -0
  110. package/dist/entities/pet_feeder.entity.js.map +1 -1
  111. package/dist/entities/vacuum.entity.js +16 -5
  112. package/dist/entities/vacuum.entity.js.map +1 -1
  113. package/dist/frontend/assets/index-1k-iTL-m.js +26 -0
  114. package/dist/frontend/assets/{index-NrzHqycm.css → index-CJdlkpIy.css} +1 -1
  115. package/dist/frontend/index.html +2 -2
  116. package/dist/hap/hap-generic-accessory.d.ts +4 -0
  117. package/dist/hap/hap-generic-accessory.js +512 -122
  118. package/dist/hap/hap-generic-accessory.js.map +1 -1
  119. package/dist/homeAssistant.d.ts +1 -0
  120. package/dist/homeAssistant.js +23 -5
  121. package/dist/homeAssistant.js.map +1 -1
  122. package/dist/index.js +3 -1
  123. package/dist/index.js.map +1 -1
  124. package/dist/mqtt/mqtt-client.js.map +1 -1
  125. package/dist/mqtt/mqtt.entity.js +41 -17
  126. package/dist/mqtt/mqtt.entity.js.map +1 -1
  127. package/dist/platform.d.ts +1 -0
  128. package/dist/platform.js +83 -13
  129. package/dist/platform.js.map +1 -1
  130. package/dist/utils/atomic-json-store.js +5 -1
  131. package/dist/utils/atomic-json-store.js.map +1 -1
  132. package/dist/utils/ha-state.js +3 -1
  133. package/dist/utils/ha-state.js.map +1 -1
  134. package/dist/utils/light-color.js +3 -5
  135. package/dist/utils/light-color.js.map +1 -1
  136. package/dist/utils/matter-command-response.js.map +1 -1
  137. package/dist/utils/matter-firmware.js +1 -2
  138. package/dist/utils/matter-firmware.js.map +1 -1
  139. package/dist/utils/matter-protocol.d.ts +1 -0
  140. package/dist/utils/matter-protocol.js +30 -0
  141. package/dist/utils/matter-protocol.js.map +1 -0
  142. package/package.json +27 -19
  143. package/dist/camera/camera-entity-control.d.ts +0 -12
  144. package/dist/camera/camera-entity-control.js +0 -24
  145. package/dist/camera/camera-entity-control.js.map +0 -1
  146. package/dist/camera/homekit/hevc/bootstrap.d.ts +0 -9
  147. package/dist/camera/homekit/hevc/bootstrap.js +0 -47
  148. package/dist/camera/homekit/hevc/bootstrap.js.map +0 -1
  149. package/dist/camera/homekit/hevc/recording-output.d.ts +0 -2
  150. package/dist/camera/homekit/hevc/recording-output.js +0 -33
  151. package/dist/camera/homekit/hevc/recording-output.js.map +0 -1
  152. package/dist/camera/homekit/media-policy.d.ts +0 -25
  153. package/dist/camera/homekit/media-policy.js +0 -102
  154. package/dist/camera/homekit/media-policy.js.map +0 -1
  155. package/dist/camera/homekit/route-address.d.ts +0 -2
  156. package/dist/camera/homekit/route-address.js +0 -27
  157. package/dist/camera/homekit/route-address.js.map +0 -1
  158. package/dist/camera/homekit/rtp-relay.d.ts +0 -21
  159. package/dist/camera/homekit/rtp-relay.js +0 -112
  160. package/dist/camera/homekit/rtp-relay.js.map +0 -1
  161. package/dist/camera/homekit/startup-timing.d.ts +0 -8
  162. package/dist/camera/homekit/startup-timing.js +0 -14
  163. package/dist/camera/homekit/startup-timing.js.map +0 -1
  164. package/dist/camera/source-adapter.d.ts +0 -132
  165. package/dist/camera/source-adapter.js +0 -282
  166. package/dist/camera/source-adapter.js.map +0 -1
  167. package/dist/frontend/assets/index-Bka3TVAQ.js +0 -21
  168. package/vendor/hap-nodejs/LICENSE +0 -176
  169. package/vendor/hap-nodejs/MIAO.md +0 -5
  170. package/vendor/hap-nodejs/PATCH.md +0 -37
  171. package/vendor/hap-nodejs/README.md +0 -86
  172. package/vendor/hap-nodejs/dist/accessories/AirConditioner_accessory.d.ts +0 -2
  173. package/vendor/hap-nodejs/dist/accessories/AirConditioner_accessory.d.ts.map +0 -1
  174. package/vendor/hap-nodejs/dist/accessories/AirConditioner_accessory.js +0 -128
  175. package/vendor/hap-nodejs/dist/accessories/AirConditioner_accessory.js.map +0 -1
  176. package/vendor/hap-nodejs/dist/accessories/AppleTVRemote_accessory.d.ts +0 -2
  177. package/vendor/hap-nodejs/dist/accessories/AppleTVRemote_accessory.d.ts.map +0 -1
  178. package/vendor/hap-nodejs/dist/accessories/AppleTVRemote_accessory.js +0 -159
  179. package/vendor/hap-nodejs/dist/accessories/AppleTVRemote_accessory.js.map +0 -1
  180. package/vendor/hap-nodejs/dist/accessories/Camera_accessory.d.ts +0 -2
  181. package/vendor/hap-nodejs/dist/accessories/Camera_accessory.d.ts.map +0 -1
  182. package/vendor/hap-nodejs/dist/accessories/Camera_accessory.js +0 -545
  183. package/vendor/hap-nodejs/dist/accessories/Camera_accessory.js.map +0 -1
  184. package/vendor/hap-nodejs/dist/accessories/Fan_accessory.d.ts +0 -2
  185. package/vendor/hap-nodejs/dist/accessories/Fan_accessory.d.ts.map +0 -1
  186. package/vendor/hap-nodejs/dist/accessories/Fan_accessory.js +0 -74
  187. package/vendor/hap-nodejs/dist/accessories/Fan_accessory.js.map +0 -1
  188. package/vendor/hap-nodejs/dist/accessories/GarageDoorOpener_accessory.d.ts +0 -2
  189. package/vendor/hap-nodejs/dist/accessories/GarageDoorOpener_accessory.d.ts.map +0 -1
  190. package/vendor/hap-nodejs/dist/accessories/GarageDoorOpener_accessory.js +0 -78
  191. package/vendor/hap-nodejs/dist/accessories/GarageDoorOpener_accessory.js.map +0 -1
  192. package/vendor/hap-nodejs/dist/accessories/Light-AdaptiveLighting_accessory.d.ts +0 -2
  193. package/vendor/hap-nodejs/dist/accessories/Light-AdaptiveLighting_accessory.d.ts.map +0 -1
  194. package/vendor/hap-nodejs/dist/accessories/Light-AdaptiveLighting_accessory.js +0 -106
  195. package/vendor/hap-nodejs/dist/accessories/Light-AdaptiveLighting_accessory.js.map +0 -1
  196. package/vendor/hap-nodejs/dist/accessories/Light_accessory.d.ts +0 -2
  197. package/vendor/hap-nodejs/dist/accessories/Light_accessory.d.ts.map +0 -1
  198. package/vendor/hap-nodejs/dist/accessories/Light_accessory.js +0 -145
  199. package/vendor/hap-nodejs/dist/accessories/Light_accessory.js.map +0 -1
  200. package/vendor/hap-nodejs/dist/accessories/Lock_accessory.d.ts +0 -2
  201. package/vendor/hap-nodejs/dist/accessories/Lock_accessory.d.ts.map +0 -1
  202. package/vendor/hap-nodejs/dist/accessories/Lock_accessory.js +0 -76
  203. package/vendor/hap-nodejs/dist/accessories/Lock_accessory.js.map +0 -1
  204. package/vendor/hap-nodejs/dist/accessories/MotionSensor_accessory.d.ts +0 -2
  205. package/vendor/hap-nodejs/dist/accessories/MotionSensor_accessory.d.ts.map +0 -1
  206. package/vendor/hap-nodejs/dist/accessories/MotionSensor_accessory.js +0 -45
  207. package/vendor/hap-nodejs/dist/accessories/MotionSensor_accessory.js.map +0 -1
  208. package/vendor/hap-nodejs/dist/accessories/Outlet_accessory.d.ts +0 -2
  209. package/vendor/hap-nodejs/dist/accessories/Outlet_accessory.d.ts.map +0 -1
  210. package/vendor/hap-nodejs/dist/accessories/Outlet_accessory.js +0 -79
  211. package/vendor/hap-nodejs/dist/accessories/Outlet_accessory.js.map +0 -1
  212. package/vendor/hap-nodejs/dist/accessories/SmartSpeaker_accessory.d.ts +0 -2
  213. package/vendor/hap-nodejs/dist/accessories/SmartSpeaker_accessory.d.ts.map +0 -1
  214. package/vendor/hap-nodejs/dist/accessories/SmartSpeaker_accessory.js +0 -44
  215. package/vendor/hap-nodejs/dist/accessories/SmartSpeaker_accessory.js.map +0 -1
  216. package/vendor/hap-nodejs/dist/accessories/Sprinkler_accessory.d.ts +0 -2
  217. package/vendor/hap-nodejs/dist/accessories/Sprinkler_accessory.d.ts.map +0 -1
  218. package/vendor/hap-nodejs/dist/accessories/Sprinkler_accessory.js +0 -128
  219. package/vendor/hap-nodejs/dist/accessories/Sprinkler_accessory.js.map +0 -1
  220. package/vendor/hap-nodejs/dist/accessories/TV_accessory.d.ts +0 -2
  221. package/vendor/hap-nodejs/dist/accessories/TV_accessory.d.ts.map +0 -1
  222. package/vendor/hap-nodejs/dist/accessories/TV_accessory.js +0 -101
  223. package/vendor/hap-nodejs/dist/accessories/TV_accessory.js.map +0 -1
  224. package/vendor/hap-nodejs/dist/accessories/TemperatureSensor_accessory.d.ts +0 -2
  225. package/vendor/hap-nodejs/dist/accessories/TemperatureSensor_accessory.d.ts.map +0 -1
  226. package/vendor/hap-nodejs/dist/accessories/TemperatureSensor_accessory.js +0 -44
  227. package/vendor/hap-nodejs/dist/accessories/TemperatureSensor_accessory.js.map +0 -1
  228. package/vendor/hap-nodejs/dist/accessories/Wi-FiRouter_accessory.d.ts +0 -3
  229. package/vendor/hap-nodejs/dist/accessories/Wi-FiRouter_accessory.d.ts.map +0 -1
  230. package/vendor/hap-nodejs/dist/accessories/Wi-FiRouter_accessory.js +0 -17
  231. package/vendor/hap-nodejs/dist/accessories/Wi-FiRouter_accessory.js.map +0 -1
  232. package/vendor/hap-nodejs/dist/accessories/Wi-FiSatellite_accessory.d.ts +0 -3
  233. package/vendor/hap-nodejs/dist/accessories/Wi-FiSatellite_accessory.d.ts.map +0 -1
  234. package/vendor/hap-nodejs/dist/accessories/Wi-FiSatellite_accessory.js +0 -19
  235. package/vendor/hap-nodejs/dist/accessories/Wi-FiSatellite_accessory.js.map +0 -1
  236. package/vendor/hap-nodejs/dist/accessories/gstreamer-audioProducer.d.ts +0 -25
  237. package/vendor/hap-nodejs/dist/accessories/gstreamer-audioProducer.d.ts.map +0 -1
  238. package/vendor/hap-nodejs/dist/accessories/gstreamer-audioProducer.js +0 -145
  239. package/vendor/hap-nodejs/dist/accessories/gstreamer-audioProducer.js.map +0 -1
  240. package/vendor/hap-nodejs/dist/accessories/types.d.ts +0 -78
  241. package/vendor/hap-nodejs/dist/accessories/types.d.ts.map +0 -1
  242. package/vendor/hap-nodejs/dist/accessories/types.js +0 -88
  243. package/vendor/hap-nodejs/dist/accessories/types.js.map +0 -1
  244. package/vendor/hap-nodejs/dist/index.d.ts +0 -50
  245. package/vendor/hap-nodejs/dist/index.d.ts.map +0 -1
  246. package/vendor/hap-nodejs/dist/index.js +0 -54
  247. package/vendor/hap-nodejs/dist/index.js.map +0 -1
  248. package/vendor/hap-nodejs/dist/internal-types.d.ts +0 -76
  249. package/vendor/hap-nodejs/dist/internal-types.d.ts.map +0 -1
  250. package/vendor/hap-nodejs/dist/internal-types.js +0 -80
  251. package/vendor/hap-nodejs/dist/internal-types.js.map +0 -1
  252. package/vendor/hap-nodejs/dist/lib/Accessory.d.ts +0 -521
  253. package/vendor/hap-nodejs/dist/lib/Accessory.d.ts.map +0 -1
  254. package/vendor/hap-nodejs/dist/lib/Accessory.js +0 -1762
  255. package/vendor/hap-nodejs/dist/lib/Accessory.js.map +0 -1
  256. package/vendor/hap-nodejs/dist/lib/Advertiser.d.ts +0 -190
  257. package/vendor/hap-nodejs/dist/lib/Advertiser.d.ts.map +0 -1
  258. package/vendor/hap-nodejs/dist/lib/Advertiser.js +0 -592
  259. package/vendor/hap-nodejs/dist/lib/Advertiser.js.map +0 -1
  260. package/vendor/hap-nodejs/dist/lib/Bridge.d.ts +0 -12
  261. package/vendor/hap-nodejs/dist/lib/Bridge.d.ts.map +0 -1
  262. package/vendor/hap-nodejs/dist/lib/Bridge.js +0 -19
  263. package/vendor/hap-nodejs/dist/lib/Bridge.js.map +0 -1
  264. package/vendor/hap-nodejs/dist/lib/Characteristic.d.ts +0 -1768
  265. package/vendor/hap-nodejs/dist/lib/Characteristic.d.ts.map +0 -1
  266. package/vendor/hap-nodejs/dist/lib/Characteristic.js +0 -2532
  267. package/vendor/hap-nodejs/dist/lib/Characteristic.js.map +0 -1
  268. package/vendor/hap-nodejs/dist/lib/HAPServer.d.ts +0 -299
  269. package/vendor/hap-nodejs/dist/lib/HAPServer.d.ts.map +0 -1
  270. package/vendor/hap-nodejs/dist/lib/HAPServer.js +0 -968
  271. package/vendor/hap-nodejs/dist/lib/HAPServer.js.map +0 -1
  272. package/vendor/hap-nodejs/dist/lib/Service.d.ts +0 -598
  273. package/vendor/hap-nodejs/dist/lib/Service.d.ts.map +0 -1
  274. package/vendor/hap-nodejs/dist/lib/Service.js +0 -797
  275. package/vendor/hap-nodejs/dist/lib/Service.js.map +0 -1
  276. package/vendor/hap-nodejs/dist/lib/camera/CMAFIngest.d.ts +0 -102
  277. package/vendor/hap-nodejs/dist/lib/camera/CMAFIngest.d.ts.map +0 -1
  278. package/vendor/hap-nodejs/dist/lib/camera/CMAFIngest.js +0 -317
  279. package/vendor/hap-nodejs/dist/lib/camera/CMAFIngest.js.map +0 -1
  280. package/vendor/hap-nodejs/dist/lib/camera/HDSSnapshotTransport.d.ts +0 -38
  281. package/vendor/hap-nodejs/dist/lib/camera/HDSSnapshotTransport.d.ts.map +0 -1
  282. package/vendor/hap-nodejs/dist/lib/camera/HDSSnapshotTransport.js +0 -174
  283. package/vendor/hap-nodejs/dist/lib/camera/HDSSnapshotTransport.js.map +0 -1
  284. package/vendor/hap-nodejs/dist/lib/camera/RTPProxy.d.ts +0 -59
  285. package/vendor/hap-nodejs/dist/lib/camera/RTPProxy.d.ts.map +0 -1
  286. package/vendor/hap-nodejs/dist/lib/camera/RTPProxy.js +0 -267
  287. package/vendor/hap-nodejs/dist/lib/camera/RTPProxy.js.map +0 -1
  288. package/vendor/hap-nodejs/dist/lib/camera/RTPStreamManagement.d.ts +0 -379
  289. package/vendor/hap-nodejs/dist/lib/camera/RTPStreamManagement.d.ts.map +0 -1
  290. package/vendor/hap-nodejs/dist/lib/camera/RTPStreamManagement.js +0 -1021
  291. package/vendor/hap-nodejs/dist/lib/camera/RTPStreamManagement.js.map +0 -1
  292. package/vendor/hap-nodejs/dist/lib/camera/RecordingManagement.d.ts +0 -325
  293. package/vendor/hap-nodejs/dist/lib/camera/RecordingManagement.d.ts.map +0 -1
  294. package/vendor/hap-nodejs/dist/lib/camera/RecordingManagement.js +0 -800
  295. package/vendor/hap-nodejs/dist/lib/camera/RecordingManagement.js.map +0 -1
  296. package/vendor/hap-nodejs/dist/lib/camera/SecureVideoCredentials.d.ts +0 -20
  297. package/vendor/hap-nodejs/dist/lib/camera/SecureVideoCredentials.d.ts.map +0 -1
  298. package/vendor/hap-nodejs/dist/lib/camera/SecureVideoCredentials.js +0 -48
  299. package/vendor/hap-nodejs/dist/lib/camera/SecureVideoCredentials.js.map +0 -1
  300. package/vendor/hap-nodejs/dist/lib/camera/SecureVideoTypes.d.ts +0 -618
  301. package/vendor/hap-nodejs/dist/lib/camera/SecureVideoTypes.d.ts.map +0 -1
  302. package/vendor/hap-nodejs/dist/lib/camera/SecureVideoTypes.js +0 -911
  303. package/vendor/hap-nodejs/dist/lib/camera/SecureVideoTypes.js.map +0 -1
  304. package/vendor/hap-nodejs/dist/lib/camera/index.d.ts +0 -8
  305. package/vendor/hap-nodejs/dist/lib/camera/index.d.ts.map +0 -1
  306. package/vendor/hap-nodejs/dist/lib/camera/index.js +0 -11
  307. package/vendor/hap-nodejs/dist/lib/camera/index.js.map +0 -1
  308. package/vendor/hap-nodejs/dist/lib/controller/AdaptiveLightingController.d.ts +0 -452
  309. package/vendor/hap-nodejs/dist/lib/controller/AdaptiveLightingController.d.ts.map +0 -1
  310. package/vendor/hap-nodejs/dist/lib/controller/AdaptiveLightingController.js +0 -868
  311. package/vendor/hap-nodejs/dist/lib/controller/AdaptiveLightingController.js.map +0 -1
  312. package/vendor/hap-nodejs/dist/lib/controller/CameraController.d.ts +0 -410
  313. package/vendor/hap-nodejs/dist/lib/controller/CameraController.d.ts.map +0 -1
  314. package/vendor/hap-nodejs/dist/lib/controller/CameraController.js +0 -658
  315. package/vendor/hap-nodejs/dist/lib/controller/CameraController.js.map +0 -1
  316. package/vendor/hap-nodejs/dist/lib/controller/Controller.d.ts +0 -197
  317. package/vendor/hap-nodejs/dist/lib/controller/Controller.d.ts.map +0 -1
  318. package/vendor/hap-nodejs/dist/lib/controller/Controller.js +0 -32
  319. package/vendor/hap-nodejs/dist/lib/controller/Controller.js.map +0 -1
  320. package/vendor/hap-nodejs/dist/lib/controller/DoorbellController.d.ts +0 -59
  321. package/vendor/hap-nodejs/dist/lib/controller/DoorbellController.d.ts.map +0 -1
  322. package/vendor/hap-nodejs/dist/lib/controller/DoorbellController.js +0 -102
  323. package/vendor/hap-nodejs/dist/lib/controller/DoorbellController.js.map +0 -1
  324. package/vendor/hap-nodejs/dist/lib/controller/RemoteController.d.ts +0 -434
  325. package/vendor/hap-nodejs/dist/lib/controller/RemoteController.d.ts.map +0 -1
  326. package/vendor/hap-nodejs/dist/lib/controller/RemoteController.js +0 -1178
  327. package/vendor/hap-nodejs/dist/lib/controller/RemoteController.js.map +0 -1
  328. package/vendor/hap-nodejs/dist/lib/controller/SecureVideoController.d.ts +0 -380
  329. package/vendor/hap-nodejs/dist/lib/controller/SecureVideoController.d.ts.map +0 -1
  330. package/vendor/hap-nodejs/dist/lib/controller/SecureVideoController.js +0 -947
  331. package/vendor/hap-nodejs/dist/lib/controller/SecureVideoController.js.map +0 -1
  332. package/vendor/hap-nodejs/dist/lib/controller/index.d.ts +0 -7
  333. package/vendor/hap-nodejs/dist/lib/controller/index.d.ts.map +0 -1
  334. package/vendor/hap-nodejs/dist/lib/controller/index.js +0 -10
  335. package/vendor/hap-nodejs/dist/lib/controller/index.js.map +0 -1
  336. package/vendor/hap-nodejs/dist/lib/datastream/DataStreamManagement.d.ts +0 -73
  337. package/vendor/hap-nodejs/dist/lib/datastream/DataStreamManagement.d.ts.map +0 -1
  338. package/vendor/hap-nodejs/dist/lib/datastream/DataStreamManagement.js +0 -205
  339. package/vendor/hap-nodejs/dist/lib/datastream/DataStreamManagement.js.map +0 -1
  340. package/vendor/hap-nodejs/dist/lib/datastream/DataStreamParser.d.ts +0 -186
  341. package/vendor/hap-nodejs/dist/lib/datastream/DataStreamParser.d.ts.map +0 -1
  342. package/vendor/hap-nodejs/dist/lib/datastream/DataStreamParser.js +0 -880
  343. package/vendor/hap-nodejs/dist/lib/datastream/DataStreamParser.js.map +0 -1
  344. package/vendor/hap-nodejs/dist/lib/datastream/DataStreamServer.d.ts +0 -351
  345. package/vendor/hap-nodejs/dist/lib/datastream/DataStreamServer.d.ts.map +0 -1
  346. package/vendor/hap-nodejs/dist/lib/datastream/DataStreamServer.js +0 -878
  347. package/vendor/hap-nodejs/dist/lib/datastream/DataStreamServer.js.map +0 -1
  348. package/vendor/hap-nodejs/dist/lib/datastream/index.d.ts +0 -4
  349. package/vendor/hap-nodejs/dist/lib/datastream/index.d.ts.map +0 -1
  350. package/vendor/hap-nodejs/dist/lib/datastream/index.js +0 -7
  351. package/vendor/hap-nodejs/dist/lib/datastream/index.js.map +0 -1
  352. package/vendor/hap-nodejs/dist/lib/definitions/CharacteristicDefinitions.d.ts +0 -2245
  353. package/vendor/hap-nodejs/dist/lib/definitions/CharacteristicDefinitions.d.ts.map +0 -1
  354. package/vendor/hap-nodejs/dist/lib/definitions/CharacteristicDefinitions.js +0 -4957
  355. package/vendor/hap-nodejs/dist/lib/definitions/CharacteristicDefinitions.js.map +0 -1
  356. package/vendor/hap-nodejs/dist/lib/definitions/ServiceDefinitions.d.ts +0 -584
  357. package/vendor/hap-nodejs/dist/lib/definitions/ServiceDefinitions.d.ts.map +0 -1
  358. package/vendor/hap-nodejs/dist/lib/definitions/ServiceDefinitions.js +0 -1518
  359. package/vendor/hap-nodejs/dist/lib/definitions/ServiceDefinitions.js.map +0 -1
  360. package/vendor/hap-nodejs/dist/lib/definitions/generate-definitions.d.ts +0 -34
  361. package/vendor/hap-nodejs/dist/lib/definitions/generate-definitions.d.ts.map +0 -1
  362. package/vendor/hap-nodejs/dist/lib/definitions/generate-definitions.js +0 -624
  363. package/vendor/hap-nodejs/dist/lib/definitions/generate-definitions.js.map +0 -1
  364. package/vendor/hap-nodejs/dist/lib/definitions/generator-configuration.d.ts +0 -22
  365. package/vendor/hap-nodejs/dist/lib/definitions/generator-configuration.d.ts.map +0 -1
  366. package/vendor/hap-nodejs/dist/lib/definitions/generator-configuration.js +0 -734
  367. package/vendor/hap-nodejs/dist/lib/definitions/generator-configuration.js.map +0 -1
  368. package/vendor/hap-nodejs/dist/lib/definitions/index.d.ts +0 -3
  369. package/vendor/hap-nodejs/dist/lib/definitions/index.d.ts.map +0 -1
  370. package/vendor/hap-nodejs/dist/lib/definitions/index.js +0 -6
  371. package/vendor/hap-nodejs/dist/lib/definitions/index.js.map +0 -1
  372. package/vendor/hap-nodejs/dist/lib/gen/HomeKit.d.ts +0 -8
  373. package/vendor/hap-nodejs/dist/lib/gen/HomeKit.d.ts.map +0 -1
  374. package/vendor/hap-nodejs/dist/lib/gen/HomeKit.js +0 -9
  375. package/vendor/hap-nodejs/dist/lib/gen/HomeKit.js.map +0 -1
  376. package/vendor/hap-nodejs/dist/lib/model/AccessoryInfo.d.ts +0 -91
  377. package/vendor/hap-nodejs/dist/lib/model/AccessoryInfo.d.ts.map +0 -1
  378. package/vendor/hap-nodejs/dist/lib/model/AccessoryInfo.js +0 -311
  379. package/vendor/hap-nodejs/dist/lib/model/AccessoryInfo.js.map +0 -1
  380. package/vendor/hap-nodejs/dist/lib/model/ControllerStorage.d.ts +0 -46
  381. package/vendor/hap-nodejs/dist/lib/model/ControllerStorage.d.ts.map +0 -1
  382. package/vendor/hap-nodejs/dist/lib/model/ControllerStorage.js +0 -277
  383. package/vendor/hap-nodejs/dist/lib/model/ControllerStorage.js.map +0 -1
  384. package/vendor/hap-nodejs/dist/lib/model/HAPFileStorage.d.ts +0 -75
  385. package/vendor/hap-nodejs/dist/lib/model/HAPFileStorage.d.ts.map +0 -1
  386. package/vendor/hap-nodejs/dist/lib/model/HAPFileStorage.js +0 -190
  387. package/vendor/hap-nodejs/dist/lib/model/HAPFileStorage.js.map +0 -1
  388. package/vendor/hap-nodejs/dist/lib/model/HAPStorage.d.ts +0 -26
  389. package/vendor/hap-nodejs/dist/lib/model/HAPStorage.d.ts.map +0 -1
  390. package/vendor/hap-nodejs/dist/lib/model/HAPStorage.js +0 -79
  391. package/vendor/hap-nodejs/dist/lib/model/HAPStorage.js.map +0 -1
  392. package/vendor/hap-nodejs/dist/lib/model/IdentifierCache.d.ts +0 -33
  393. package/vendor/hap-nodejs/dist/lib/model/IdentifierCache.d.ts.map +0 -1
  394. package/vendor/hap-nodejs/dist/lib/model/IdentifierCache.js +0 -114
  395. package/vendor/hap-nodejs/dist/lib/model/IdentifierCache.js.map +0 -1
  396. package/vendor/hap-nodejs/dist/lib/tv/AccessControlManagement.d.ts +0 -83
  397. package/vendor/hap-nodejs/dist/lib/tv/AccessControlManagement.d.ts.map +0 -1
  398. package/vendor/hap-nodejs/dist/lib/tv/AccessControlManagement.js +0 -127
  399. package/vendor/hap-nodejs/dist/lib/tv/AccessControlManagement.js.map +0 -1
  400. package/vendor/hap-nodejs/dist/lib/util/checkName.d.ts +0 -8
  401. package/vendor/hap-nodejs/dist/lib/util/checkName.d.ts.map +0 -1
  402. package/vendor/hap-nodejs/dist/lib/util/checkName.js +0 -28
  403. package/vendor/hap-nodejs/dist/lib/util/checkName.js.map +0 -1
  404. package/vendor/hap-nodejs/dist/lib/util/clone.d.ts +0 -7
  405. package/vendor/hap-nodejs/dist/lib/util/clone.d.ts.map +0 -1
  406. package/vendor/hap-nodejs/dist/lib/util/clone.js +0 -22
  407. package/vendor/hap-nodejs/dist/lib/util/clone.js.map +0 -1
  408. package/vendor/hap-nodejs/dist/lib/util/color-utils.d.ts +0 -18
  409. package/vendor/hap-nodejs/dist/lib/util/color-utils.d.ts.map +0 -1
  410. package/vendor/hap-nodejs/dist/lib/util/color-utils.js +0 -442
  411. package/vendor/hap-nodejs/dist/lib/util/color-utils.js.map +0 -1
  412. package/vendor/hap-nodejs/dist/lib/util/eventedhttp.d.ts +0 -251
  413. package/vendor/hap-nodejs/dist/lib/util/eventedhttp.d.ts.map +0 -1
  414. package/vendor/hap-nodejs/dist/lib/util/eventedhttp.js +0 -714
  415. package/vendor/hap-nodejs/dist/lib/util/eventedhttp.js.map +0 -1
  416. package/vendor/hap-nodejs/dist/lib/util/hapCrypto.d.ts +0 -50
  417. package/vendor/hap-nodejs/dist/lib/util/hapCrypto.d.ts.map +0 -1
  418. package/vendor/hap-nodejs/dist/lib/util/hapCrypto.js +0 -185
  419. package/vendor/hap-nodejs/dist/lib/util/hapCrypto.js.map +0 -1
  420. package/vendor/hap-nodejs/dist/lib/util/hapStatusError.d.ts +0 -16
  421. package/vendor/hap-nodejs/dist/lib/util/hapStatusError.d.ts.map +0 -1
  422. package/vendor/hap-nodejs/dist/lib/util/hapStatusError.js +0 -29
  423. package/vendor/hap-nodejs/dist/lib/util/hapStatusError.js.map +0 -1
  424. package/vendor/hap-nodejs/dist/lib/util/net-utils.d.ts +0 -21
  425. package/vendor/hap-nodejs/dist/lib/util/net-utils.d.ts.map +0 -1
  426. package/vendor/hap-nodejs/dist/lib/util/net-utils.js +0 -79
  427. package/vendor/hap-nodejs/dist/lib/util/net-utils.js.map +0 -1
  428. package/vendor/hap-nodejs/dist/lib/util/once.d.ts +0 -7
  429. package/vendor/hap-nodejs/dist/lib/util/once.d.ts.map +0 -1
  430. package/vendor/hap-nodejs/dist/lib/util/once.js +0 -22
  431. package/vendor/hap-nodejs/dist/lib/util/once.js.map +0 -1
  432. package/vendor/hap-nodejs/dist/lib/util/promise-utils.d.ts +0 -14
  433. package/vendor/hap-nodejs/dist/lib/util/promise-utils.d.ts.map +0 -1
  434. package/vendor/hap-nodejs/dist/lib/util/promise-utils.js +0 -29
  435. package/vendor/hap-nodejs/dist/lib/util/promise-utils.js.map +0 -1
  436. package/vendor/hap-nodejs/dist/lib/util/request-util.d.ts +0 -36
  437. package/vendor/hap-nodejs/dist/lib/util/request-util.d.ts.map +0 -1
  438. package/vendor/hap-nodejs/dist/lib/util/request-util.js +0 -108
  439. package/vendor/hap-nodejs/dist/lib/util/request-util.js.map +0 -1
  440. package/vendor/hap-nodejs/dist/lib/util/time.d.ts +0 -9
  441. package/vendor/hap-nodejs/dist/lib/util/time.d.ts.map +0 -1
  442. package/vendor/hap-nodejs/dist/lib/util/time.js +0 -23
  443. package/vendor/hap-nodejs/dist/lib/util/time.js.map +0 -1
  444. package/vendor/hap-nodejs/dist/lib/util/tlv.d.ts +0 -90
  445. package/vendor/hap-nodejs/dist/lib/util/tlv.d.ts.map +0 -1
  446. package/vendor/hap-nodejs/dist/lib/util/tlv.js +0 -318
  447. package/vendor/hap-nodejs/dist/lib/util/tlv.js.map +0 -1
  448. package/vendor/hap-nodejs/dist/lib/util/uuid.d.ts +0 -23
  449. package/vendor/hap-nodejs/dist/lib/util/uuid.d.ts.map +0 -1
  450. package/vendor/hap-nodejs/dist/lib/util/uuid.js +0 -78
  451. package/vendor/hap-nodejs/dist/lib/util/uuid.js.map +0 -1
  452. package/vendor/hap-nodejs/dist/types.d.ts +0 -276
  453. package/vendor/hap-nodejs/dist/types.d.ts.map +0 -1
  454. package/vendor/hap-nodejs/dist/types.js +0 -11
  455. package/vendor/hap-nodejs/dist/types.js.map +0 -1
  456. package/vendor/hap-nodejs/package.json +0 -53
  457. package/vendor/hap-nodejs/src/lib/util/hapCrypto.ts +0 -208
@@ -1,1768 +0,0 @@
1
- import { EventEmitter } from "events";
2
- import { CharacteristicJsonObject, CharacteristicValue, Nullable, PartialAllowingNull, VoidCallback } from "../types";
3
- import { CharacteristicWarningType } from "./Accessory";
4
- import type { AccessCodeControlPoint, AccessCodeSupportedConfiguration, AccessControlLevel, AccessoryFlags, AccessoryIdentifier, Active, ActiveIdentifier, ActivityInterval, AdministratorOnlyAccess, AirParticulateDensity, AirParticulateSize, AirPlayEnable, AirQuality, AppMatchingIdentifier, AssetUpdateReadiness, AudioFeedback, BatteryLevel, Brightness, BufferActivityCommand, BufferEventCommand, BufferEventSequenceNumber, BufferUploadCommand, ButtonEvent, CameraCapabilitiesConfiguration, CameraClientCertificate, CameraClientCertificateStatus, CameraClientCSR, CameraKey, CameraKeyID, CameraOperatingModeIndicator, CameraRecordingPublishingPoint, CameraZones, CarbonDioxideDetected, CarbonDioxideLevel, CarbonDioxidePeakLevel, CarbonMonoxideDetected, CarbonMonoxideLevel, CarbonMonoxidePeakLevel, CCAEnergyDetectThreshold, CCASignalDetectThreshold, CharacteristicValueActiveTransitionCount, CharacteristicValueTransitionControl, ChargingState, ClosedCaptions, ColorTemperature, ConfigurationState, ConfiguredName, ConnectionHealthMonitor, ContactSensorState, ContributingSensors, CoolingThresholdTemperature, CryptoHash, CurrentAirPurifierState, CurrentAmbientLightLevel, CurrentDoorState, CurrentFanState, CurrentHeaterCoolerState, CurrentHeatingCoolingState, CurrentHorizontalTiltAngle, CurrentHumidifierDehumidifierState, CurrentMediaState, CurrentPosition, CurrentRelativeHumidity, CurrentSlatState, CurrentTemperature, CurrentTiltAngle, CurrentTransport, CurrentVerticalTiltAngle, CurrentVisibilityState, DataStreamHAPTransport, DataStreamHAPTransportInterrupt, DiagonalFieldOfView, DigitalZoom, DisplayOrder, EventRetransmissionMaximum, EventSnapshotsActive, EventTransmissionCounters, FilterChangeIndication, FilterLifeLevel, FirmwareRevision, FirmwareUpdateProtocolList, FirmwareUpdateReadiness, FirmwareUpdateStatus, HardwareFinish, HardwareRevision, HeartBeat, HeatingThresholdTemperature, HoldPosition, HomeKitCameraActive, Hue, Identifier, Identify, ImageMirroring, ImageRotation, InputDeviceType, InputSourceType, InUse, IsConfigured, LeakDetected, ListPairings, LockControlPoint, LockCurrentState, LockLastKnownAction, LockManagementAutoSecurityTimeout, LockPhysicalControls, LockTargetState, Logs, MACRetransmissionMaximum, MACTransmissionCounters, ManagedNetworkEnable, ManuallyDisabled, Manufacturer, MatterFirmwareRevisionNumber, MatterFirmwareUpdateStatus, MaximumTransmitPower, MediaAccessControlLevel, MetricsBufferFullState, Model, MotionDetected, MotionEnabled, MultifunctionButton, Mute, Name, NetworkAccessViolationControl, NetworkClientProfileControl, NetworkClientStatusControl, NFCAccessControlPoint, NFCAccessSupportedConfiguration, NightVision, NitrogenDioxideDensity, ObstructionDetected, OccupancyDetected, On, OperatingStateResponse, OpticalZoom, OutletInUse, OzoneDensity, PairingFeatures, PairSetup, PairVerify, PasswordSetting, PeriodicSnapshotsActive, PictureMode, Ping, PM10Density, PM2_5Density, PositionState, PowerModeSelection, PreferredWiFiList, ProductData, ProgrammableSwitchEvent, ProgrammableSwitchOutputState, ProgramMode, ReceivedSignalStrengthIndication, ReceiverSensitivity, RecordingAudioActive, RelativeHumidityDehumidifierThreshold, RelativeHumidityHumidifierThreshold, RelayControlPoint, RelayEnabled, RelayState, RemainingDuration, RemoteKey, ResetFilterIndication, RotationDirection, RotationSpeed, RouterStatus, RTPStreamingControl, Saturation, SecuritySystemAlarmType, SecuritySystemCurrentState, SecuritySystemTargetState, SelectedAudioStreamConfiguration, SelectedCameraRecordingConfiguration, SelectedDiagnosticsModes, SelectedRTPStreamConfiguration, SelectedSessionKeepaliveConfigurationList, SelectedSleepConfiguration, SensorUUID, SerialNumber, ServiceLabelIndex, ServiceLabelNamespace, SetDuration, SetupDataStreamTransport, SetupEndpoints, SetupTransferTransport, SignalToNoiseRatio, SiriEnable, SiriEndpointSessionStatus, SiriEngineVersion, SiriInputType, SiriLightOnUse, SiriListening, SiriTouchToUse, SlatType, SleepDiscoveryMode, SleepInterval, SmokeDetected, SoftwareRevision, StagedFirmwareVersion, StatusActive, StatusFault, StatusJammed, StatusLowBattery, StatusTampered, StreamingEnabled, StreamingStatus, SulphurDioxideDensity, SupportedAssetTypes, SupportedAudioRecordingConfiguration, SupportedAudioStreamConfiguration, SupportedAudioStreamTiers, SupportedCameraRecordingConfiguration, SupportedCharacteristicValueTransitionConfiguration, SupportedDataStreamTransportConfiguration, SupportedDiagnosticsModes, SupportedDiagnosticsSnapshot, SupportedFirmwareUpdateConfiguration, SupportedMetrics, SupportedRouterConfiguration, SupportedRTPConfiguration, SupportedSessionKeepaliveConfigurationList, SupportedSleepConfiguration, SupportedTransferTransportConfiguration, SupportedVideoRecordingConfiguration, SupportedVideoStreamConfiguration, SupportedVideoStreamTiers, SwingMode, TapType, TargetAirPurifierState, TargetControlList, TargetControlSupportedConfiguration, TargetDoorState, TargetFanState, TargetHeaterCoolerState, TargetHeatingCoolingState, TargetHorizontalTiltAngle, TargetHumidifierDehumidifierState, TargetMediaState, TargetPosition, TargetRelativeHumidity, TargetTemperature, TargetTiltAngle, TargetVerticalTiltAngle, TargetVisibilityState, TemperatureDisplayUnits, ThirdPartyCameraActive, ThreadControlPoint, ThreadNodeCapabilities, ThreadOpenThreadVersion, ThreadStatus, Token, TransmitPower, TunnelConnectionTimeout, TunneledAccessoryAdvertising, TunneledAccessoryConnected, TunneledAccessoryStateNumber, ValveType, Version, VideoAnalysisActive, VOCDensity, Volume, VolumeControlType, VolumeSelector, WakeConfiguration, WANConfigurationList, WANStatusList, WaterLevel, WebRTCNumberOfActiveSessions, WebRTCProvideAnswer, WebRTCReoffer, WebRTCSolicitOffer, WebRTCStreamingControl, WebRTCSupportedAudioStreamTiers, WebRTCSupportedVideoStreamTiers, WebRTCUpdateSession, WiFiCapabilities, WiFiConfigurationControl, WiFiSatelliteStatus } from "./definitions";
5
- import { HAPStatus } from "./HAPServer";
6
- import { IdentifierCache } from "./model/IdentifierCache";
7
- import { HAPConnection } from "./util/eventedhttp";
8
- import { HapStatusError } from "./util/hapStatusError";
9
- /**
10
- * @group Characteristic
11
- */
12
- export declare const enum Formats {
13
- BOOL = "bool",
14
- /**
15
- * Signed 32-bit integer
16
- */
17
- INT = "int",// signed 32-bit int
18
- /**
19
- * Signed 64-bit floating point
20
- */
21
- FLOAT = "float",
22
- /**
23
- * String encoded in utf8
24
- */
25
- STRING = "string",
26
- /**
27
- * Unsigned 8-bit integer.
28
- */
29
- UINT8 = "uint8",
30
- /**
31
- * Unsigned 16-bit integer.
32
- */
33
- UINT16 = "uint16",
34
- /**
35
- * Unsigned 32-bit integer.
36
- */
37
- UINT32 = "uint32",
38
- /**
39
- * Unsigned 64-bit integer.
40
- */
41
- UINT64 = "uint64",
42
- /**
43
- * Data is base64 encoded string.
44
- */
45
- DATA = "data",
46
- /**
47
- * Base64 encoded tlv8 string.
48
- */
49
- TLV8 = "tlv8"
50
- }
51
- /**
52
- * @group Characteristic
53
- */
54
- export declare const enum Units {
55
- /**
56
- * Celsius is the only temperature unit in the HomeKit Accessory Protocol.
57
- * Unit conversion is always done on the client side e.g. on the iPhone in the Home App depending on
58
- * the configured unit on the device itself.
59
- */
60
- CELSIUS = "celsius",
61
- PERCENTAGE = "percentage",
62
- ARC_DEGREE = "arcdegrees",
63
- LUX = "lux",
64
- SECONDS = "seconds"
65
- }
66
- /**
67
- * @group Characteristic
68
- */
69
- export declare const enum Perms {
70
- PAIRED_READ = "pr",
71
- PAIRED_WRITE = "pw",
72
- NOTIFY = "ev",
73
- EVENTS = "ev",
74
- ADDITIONAL_AUTHORIZATION = "aa",
75
- TIMED_WRITE = "tw",
76
- HIDDEN = "hd",
77
- WRITE_RESPONSE = "wr"
78
- }
79
- /**
80
- * Checks that a value is a well-formed permissions array: a non-empty array in which every entry is one of the {@link Perms} wire values.
81
- *
82
- * HomeKit rejects an accessory whose characteristics carry anything else, so {@link Characteristic.setProps} reports a failing array through the
83
- * characteristic warning channel and the accessory database excludes bridged accessories that fail it.
84
- *
85
- * @param perms - the value to check.
86
- * @returns true if the value is a permissions array HomeKit accepts.
87
- *
88
- * @private
89
- */
90
- export declare function isValidPerms(perms: unknown): perms is Perms[];
91
- /**
92
- * Formats a permissions value for a diagnostic message without ever throwing. `JSON.stringify` is not total over unknown input (a bigint or a cyclic
93
- * entry raises a `TypeError`), and a diagnostic must never become the failure it reports, so anything the JSON form cannot render falls back to
94
- * `util.inspect`, which renders any value.
95
- *
96
- * @param perms - the value to format.
97
- * @returns a human-readable rendering of the value.
98
- *
99
- * @private
100
- */
101
- export declare function describePerms(perms: unknown): string;
102
- /**
103
- * @group Characteristic
104
- */
105
- export interface CharacteristicProps {
106
- format: Formats | string;
107
- perms: Perms[];
108
- unit?: Units | string;
109
- description?: string;
110
- /**
111
- * Defines the minimum value for a numeric characteristic
112
- */
113
- minValue?: number;
114
- /**
115
- * Defines the maximum value for a numeric characteristic
116
- */
117
- maxValue?: number;
118
- minStep?: number;
119
- /**
120
- * Maximum number of characters when format is {@link Formats.STRING}.
121
- * Default is 64 characters. Maximum allowed is 256 characters.
122
- */
123
- maxLen?: number;
124
- /**
125
- * Maximum number of characters when format is {@link Formats.DATA}.
126
- * Default is 2097152 characters.
127
- */
128
- maxDataLen?: number;
129
- /**
130
- * Defines an array of valid values to be used for the characteristic.
131
- */
132
- validValues?: number[];
133
- /**
134
- * Two element array where the first value specifies the lowest valid value and
135
- * the second element specifies the highest valid value.
136
- */
137
- validValueRanges?: [min: number, max: number];
138
- adminOnlyAccess?: Access[];
139
- }
140
- /**
141
- * Describes the abstract access to a {@link Characteristic}.
142
- * It abstracts the more granular access described by {@link Perms}.
143
- *
144
- * It is used in {@link CharacteristicProps.adminOnlyAccess}.
145
- *
146
- * @group Characteristic
147
- */
148
- export declare const enum Access {
149
- READ = 0,
150
- WRITE = 1,
151
- NOTIFY = 2
152
- }
153
- /**
154
- * @group Characteristic
155
- */
156
- export type CharacteristicChange = {
157
- originator?: HAPConnection;
158
- newValue: Nullable<CharacteristicValue>;
159
- oldValue: Nullable<CharacteristicValue>;
160
- reason: ChangeReason;
161
- context?: CharacteristicContext;
162
- };
163
- /**
164
- * @group Characteristic
165
- */
166
- export declare const enum ChangeReason {
167
- /**
168
- * Reason used when HomeKit writes a value or the API user calls {@link Characteristic.setValue}.
169
- */
170
- WRITE = "write",
171
- /**
172
- * Reason used when the API user calls the method {@link Characteristic.updateValue}.
173
- */
174
- UPDATE = "update",
175
- /**
176
- * Used when HomeKit reads a value or the API user calls the deprecated method `Characteristic.getValue`.
177
- */
178
- READ = "read",
179
- /**
180
- * Used when call to {@link Characteristic.sendEventNotification} was made.
181
- */
182
- EVENT = "event"
183
- }
184
- /**
185
- * This format for a context object can be used to pass to any characteristic write operation.
186
- * It can contain additional information used by the internal event handlers of hap-nodejs.
187
- * The context object can be combined with any custom data for own use.
188
- *
189
- * @group Characteristic
190
- */
191
- export interface CharacteristicOperationContext {
192
- /**
193
- * If set to true for any characteristic write operation
194
- * the Accessory won't send any event notifications to HomeKit controllers
195
- * for that particular change.
196
- */
197
- omitEventUpdate?: boolean;
198
- }
199
- /**
200
- * @group Characteristic
201
- */
202
- export interface SerializedCharacteristic {
203
- displayName: string;
204
- UUID: string;
205
- eventOnlyCharacteristic: boolean;
206
- constructorName?: string;
207
- value: Nullable<CharacteristicValue>;
208
- props: CharacteristicProps;
209
- }
210
- /**
211
- * @group Characteristic
212
- */
213
- export declare const enum CharacteristicEventTypes {
214
- /**
215
- * This event is thrown when a HomeKit controller wants to read the current value of the characteristic.
216
- * The event handler should call the supplied callback as fast as possible.
217
- *
218
- * HAP-NodeJS will complain about slow running get handlers after 3 seconds and terminate the request after 10 seconds.
219
- */
220
- GET = "get",
221
- /**
222
- * This event is thrown when a HomeKit controller wants to write a new value to the characteristic.
223
- * The event handler should call the supplied callback as fast as possible.
224
- *
225
- * HAP-NodeJS will complain about slow running set handlers after 3 seconds and terminate the request after 10 seconds.
226
- */
227
- SET = "set",
228
- /**
229
- * Emitted after a new value is set for the characteristic.
230
- * The new value can be set via a request by a HomeKit controller or via an API call.
231
- */
232
- CHANGE = "change",
233
- /**
234
- * @private
235
- */
236
- SUBSCRIBE = "subscribe",
237
- /**
238
- * @private
239
- */
240
- UNSUBSCRIBE = "unsubscribe",
241
- /**
242
- * @private
243
- */
244
- CHARACTERISTIC_WARNING = "characteristic-warning"
245
- }
246
- /**
247
- * @group Characteristic
248
- */
249
- export type CharacteristicContext = any;
250
- /**
251
- * @group Characteristic
252
- */
253
- export type CharacteristicGetCallback = (status?: HAPStatus | null | Error, value?: Nullable<CharacteristicValue>) => void;
254
- /**
255
- * @group Characteristic
256
- */
257
- export type CharacteristicSetCallback = (error?: HAPStatus | null | Error, writeResponse?: Nullable<CharacteristicValue>) => void;
258
- /**
259
- * @group Characteristic
260
- */
261
- export type CharacteristicGetHandler = (context: CharacteristicContext, connection?: HAPConnection) => Promise<Nullable<CharacteristicValue>> | Nullable<CharacteristicValue>;
262
- /**
263
- * @group Characteristic
264
- */
265
- export type CharacteristicSetHandler = (value: CharacteristicValue, context: CharacteristicContext, connection?: HAPConnection) => Promise<Nullable<CharacteristicValue> | void> | Nullable<CharacteristicValue> | void;
266
- /**
267
- * @group Characteristic
268
- */
269
- export type AdditionalAuthorizationHandler = (additionalAuthorizationData: string | undefined) => boolean;
270
- export declare interface Characteristic {
271
- on(event: "get", listener: (callback: CharacteristicGetCallback, context: CharacteristicContext, connection?: HAPConnection) => void): this;
272
- on(event: "set", listener: (value: CharacteristicValue, callback: CharacteristicSetCallback, context: CharacteristicContext, connection?: HAPConnection) => void): this;
273
- on(event: "change", listener: (change: CharacteristicChange) => void): this;
274
- /**
275
- * @private
276
- */
277
- on(event: "subscribe", listener: VoidCallback): this;
278
- /**
279
- * @private
280
- */
281
- on(event: "unsubscribe", listener: VoidCallback): this;
282
- /**
283
- * @private
284
- */
285
- on(event: "characteristic-warning", listener: (type: CharacteristicWarningType, message: string, stack?: string) => void): this;
286
- /**
287
- * @private
288
- */
289
- emit(event: "get", callback: CharacteristicGetCallback, context: CharacteristicContext, connection?: HAPConnection): boolean;
290
- /**
291
- * @private
292
- */
293
- emit(event: "set", value: CharacteristicValue, callback: CharacteristicSetCallback, context: CharacteristicContext, connection?: HAPConnection): boolean;
294
- /**
295
- * @private
296
- */
297
- emit(event: "change", change: CharacteristicChange): boolean;
298
- /**
299
- * @private
300
- */
301
- emit(event: "subscribe"): boolean;
302
- /**
303
- * @private
304
- */
305
- emit(event: "unsubscribe"): boolean;
306
- /**
307
- * @private
308
- */
309
- emit(event: "characteristic-warning", type: CharacteristicWarningType, message: string, stack?: string): boolean;
310
- }
311
- /**
312
- * Characteristic represents a particular typed variable that can be assigned to a Service. For instance, a
313
- * "Hue" Characteristic might store a 'float' value of type 'arcdegrees'. You could add the Hue Characteristic
314
- * to a {@link Service} in order to store that value. A particular Characteristic is distinguished from others by its
315
- * UUID. HomeKit provides a set of known Characteristic UUIDs defined in HomeKit.ts along with a
316
- * corresponding concrete subclass.
317
- *
318
- * You can also define custom Characteristics by providing your own UUID. Custom Characteristics can be added
319
- * to any native or custom Services, but Siri will likely not be able to work with these.
320
- *
321
- * @group Characteristic
322
- */
323
- export declare class Characteristic extends EventEmitter {
324
- /**
325
- * @group Characteristic Definitions
326
- */
327
- static AccessCodeControlPoint: typeof AccessCodeControlPoint;
328
- /**
329
- * @group Characteristic Definitions
330
- */
331
- static AccessCodeSupportedConfiguration: typeof AccessCodeSupportedConfiguration;
332
- /**
333
- * @group Characteristic Definitions
334
- */
335
- static AccessControlLevel: typeof AccessControlLevel;
336
- /**
337
- * @group Characteristic Definitions
338
- */
339
- static AccessoryFlags: typeof AccessoryFlags;
340
- /**
341
- * @group Characteristic Definitions
342
- */
343
- static AccessoryIdentifier: typeof AccessoryIdentifier;
344
- /**
345
- * @group Characteristic Definitions
346
- */
347
- static Active: typeof Active;
348
- /**
349
- * @group Characteristic Definitions
350
- */
351
- static ActiveIdentifier: typeof ActiveIdentifier;
352
- /**
353
- * @group Characteristic Definitions
354
- */
355
- static ActivityInterval: typeof ActivityInterval;
356
- /**
357
- * @group Characteristic Definitions
358
- */
359
- static AdministratorOnlyAccess: typeof AdministratorOnlyAccess;
360
- /**
361
- * @group Characteristic Definitions
362
- */
363
- static AirParticulateDensity: typeof AirParticulateDensity;
364
- /**
365
- * @group Characteristic Definitions
366
- */
367
- static AirParticulateSize: typeof AirParticulateSize;
368
- /**
369
- * @group Characteristic Definitions
370
- */
371
- static AirPlayEnable: typeof AirPlayEnable;
372
- /**
373
- * @group Characteristic Definitions
374
- */
375
- static AirQuality: typeof AirQuality;
376
- /**
377
- * @group Characteristic Definitions
378
- */
379
- static AppMatchingIdentifier: typeof AppMatchingIdentifier;
380
- /**
381
- * @group Characteristic Definitions
382
- */
383
- static AssetUpdateReadiness: typeof AssetUpdateReadiness;
384
- /**
385
- * @group Characteristic Definitions
386
- */
387
- static AudioFeedback: typeof AudioFeedback;
388
- /**
389
- * @group Characteristic Definitions
390
- */
391
- static BatteryLevel: typeof BatteryLevel;
392
- /**
393
- * @group Characteristic Definitions
394
- */
395
- static Brightness: typeof Brightness;
396
- /**
397
- * @group Characteristic Definitions
398
- */
399
- static BufferActivityCommand: typeof BufferActivityCommand;
400
- /**
401
- * @group Characteristic Definitions
402
- */
403
- static BufferEventCommand: typeof BufferEventCommand;
404
- /**
405
- * @group Characteristic Definitions
406
- */
407
- static BufferEventSequenceNumber: typeof BufferEventSequenceNumber;
408
- /**
409
- * @group Characteristic Definitions
410
- */
411
- static BufferUploadCommand: typeof BufferUploadCommand;
412
- /**
413
- * @group Characteristic Definitions
414
- */
415
- static ButtonEvent: typeof ButtonEvent;
416
- /**
417
- * @group Characteristic Definitions
418
- */
419
- static CameraCapabilitiesConfiguration: typeof CameraCapabilitiesConfiguration;
420
- /**
421
- * @group Characteristic Definitions
422
- */
423
- static CameraClientCertificate: typeof CameraClientCertificate;
424
- /**
425
- * @group Characteristic Definitions
426
- */
427
- static CameraClientCertificateStatus: typeof CameraClientCertificateStatus;
428
- /**
429
- * @group Characteristic Definitions
430
- */
431
- static CameraClientCSR: typeof CameraClientCSR;
432
- /**
433
- * @group Characteristic Definitions
434
- */
435
- static CameraKey: typeof CameraKey;
436
- /**
437
- * @group Characteristic Definitions
438
- */
439
- static CameraKeyID: typeof CameraKeyID;
440
- /**
441
- * @group Characteristic Definitions
442
- */
443
- static CameraOperatingModeIndicator: typeof CameraOperatingModeIndicator;
444
- /**
445
- * @group Characteristic Definitions
446
- */
447
- static CameraRecordingPublishingPoint: typeof CameraRecordingPublishingPoint;
448
- /**
449
- * @group Characteristic Definitions
450
- */
451
- static CameraZones: typeof CameraZones;
452
- /**
453
- * @group Characteristic Definitions
454
- */
455
- static CarbonDioxideDetected: typeof CarbonDioxideDetected;
456
- /**
457
- * @group Characteristic Definitions
458
- */
459
- static CarbonDioxideLevel: typeof CarbonDioxideLevel;
460
- /**
461
- * @group Characteristic Definitions
462
- */
463
- static CarbonDioxidePeakLevel: typeof CarbonDioxidePeakLevel;
464
- /**
465
- * @group Characteristic Definitions
466
- */
467
- static CarbonMonoxideDetected: typeof CarbonMonoxideDetected;
468
- /**
469
- * @group Characteristic Definitions
470
- */
471
- static CarbonMonoxideLevel: typeof CarbonMonoxideLevel;
472
- /**
473
- * @group Characteristic Definitions
474
- */
475
- static CarbonMonoxidePeakLevel: typeof CarbonMonoxidePeakLevel;
476
- /**
477
- * @group Characteristic Definitions
478
- */
479
- static CCAEnergyDetectThreshold: typeof CCAEnergyDetectThreshold;
480
- /**
481
- * @group Characteristic Definitions
482
- */
483
- static CCASignalDetectThreshold: typeof CCASignalDetectThreshold;
484
- /**
485
- * @group Characteristic Definitions
486
- */
487
- static CharacteristicValueActiveTransitionCount: typeof CharacteristicValueActiveTransitionCount;
488
- /**
489
- * @group Characteristic Definitions
490
- */
491
- static CharacteristicValueTransitionControl: typeof CharacteristicValueTransitionControl;
492
- /**
493
- * @group Characteristic Definitions
494
- */
495
- static ChargingState: typeof ChargingState;
496
- /**
497
- * @group Characteristic Definitions
498
- */
499
- static ClosedCaptions: typeof ClosedCaptions;
500
- /**
501
- * @group Characteristic Definitions
502
- */
503
- static ColorTemperature: typeof ColorTemperature;
504
- /**
505
- * @group Characteristic Definitions
506
- */
507
- static ConfigurationState: typeof ConfigurationState;
508
- /**
509
- * @group Characteristic Definitions
510
- */
511
- static ConfiguredName: typeof ConfiguredName;
512
- /**
513
- * @group Characteristic Definitions
514
- */
515
- static ConnectionHealthMonitor: typeof ConnectionHealthMonitor;
516
- /**
517
- * @group Characteristic Definitions
518
- */
519
- static ContactSensorState: typeof ContactSensorState;
520
- /**
521
- * @group Characteristic Definitions
522
- */
523
- static ContributingSensors: typeof ContributingSensors;
524
- /**
525
- * @group Characteristic Definitions
526
- */
527
- static CoolingThresholdTemperature: typeof CoolingThresholdTemperature;
528
- /**
529
- * @group Characteristic Definitions
530
- */
531
- static CryptoHash: typeof CryptoHash;
532
- /**
533
- * @group Characteristic Definitions
534
- */
535
- static CurrentAirPurifierState: typeof CurrentAirPurifierState;
536
- /**
537
- * @group Characteristic Definitions
538
- */
539
- static CurrentAmbientLightLevel: typeof CurrentAmbientLightLevel;
540
- /**
541
- * @group Characteristic Definitions
542
- */
543
- static CurrentDoorState: typeof CurrentDoorState;
544
- /**
545
- * @group Characteristic Definitions
546
- */
547
- static CurrentFanState: typeof CurrentFanState;
548
- /**
549
- * @group Characteristic Definitions
550
- */
551
- static CurrentHeaterCoolerState: typeof CurrentHeaterCoolerState;
552
- /**
553
- * @group Characteristic Definitions
554
- */
555
- static CurrentHeatingCoolingState: typeof CurrentHeatingCoolingState;
556
- /**
557
- * @group Characteristic Definitions
558
- */
559
- static CurrentHorizontalTiltAngle: typeof CurrentHorizontalTiltAngle;
560
- /**
561
- * @group Characteristic Definitions
562
- */
563
- static CurrentHumidifierDehumidifierState: typeof CurrentHumidifierDehumidifierState;
564
- /**
565
- * @group Characteristic Definitions
566
- */
567
- static CurrentMediaState: typeof CurrentMediaState;
568
- /**
569
- * @group Characteristic Definitions
570
- */
571
- static CurrentPosition: typeof CurrentPosition;
572
- /**
573
- * @group Characteristic Definitions
574
- */
575
- static CurrentRelativeHumidity: typeof CurrentRelativeHumidity;
576
- /**
577
- * @group Characteristic Definitions
578
- */
579
- static CurrentSlatState: typeof CurrentSlatState;
580
- /**
581
- * @group Characteristic Definitions
582
- */
583
- static CurrentTemperature: typeof CurrentTemperature;
584
- /**
585
- * @group Characteristic Definitions
586
- */
587
- static CurrentTiltAngle: typeof CurrentTiltAngle;
588
- /**
589
- * @group Characteristic Definitions
590
- */
591
- static CurrentTransport: typeof CurrentTransport;
592
- /**
593
- * @group Characteristic Definitions
594
- */
595
- static CurrentVerticalTiltAngle: typeof CurrentVerticalTiltAngle;
596
- /**
597
- * @group Characteristic Definitions
598
- */
599
- static CurrentVisibilityState: typeof CurrentVisibilityState;
600
- /**
601
- * @group Characteristic Definitions
602
- */
603
- static DataStreamHAPTransport: typeof DataStreamHAPTransport;
604
- /**
605
- * @group Characteristic Definitions
606
- */
607
- static DataStreamHAPTransportInterrupt: typeof DataStreamHAPTransportInterrupt;
608
- /**
609
- * @group Characteristic Definitions
610
- */
611
- static DiagonalFieldOfView: typeof DiagonalFieldOfView;
612
- /**
613
- * @group Characteristic Definitions
614
- */
615
- static DigitalZoom: typeof DigitalZoom;
616
- /**
617
- * @group Characteristic Definitions
618
- */
619
- static DisplayOrder: typeof DisplayOrder;
620
- /**
621
- * @group Characteristic Definitions
622
- */
623
- static EventRetransmissionMaximum: typeof EventRetransmissionMaximum;
624
- /**
625
- * @group Characteristic Definitions
626
- */
627
- static EventSnapshotsActive: typeof EventSnapshotsActive;
628
- /**
629
- * @group Characteristic Definitions
630
- */
631
- static EventTransmissionCounters: typeof EventTransmissionCounters;
632
- /**
633
- * @group Characteristic Definitions
634
- */
635
- static FilterChangeIndication: typeof FilterChangeIndication;
636
- /**
637
- * @group Characteristic Definitions
638
- */
639
- static FilterLifeLevel: typeof FilterLifeLevel;
640
- /**
641
- * @group Characteristic Definitions
642
- */
643
- static FirmwareRevision: typeof FirmwareRevision;
644
- /**
645
- * @group Characteristic Definitions
646
- */
647
- static FirmwareUpdateProtocolList: typeof FirmwareUpdateProtocolList;
648
- /**
649
- * @group Characteristic Definitions
650
- */
651
- static FirmwareUpdateReadiness: typeof FirmwareUpdateReadiness;
652
- /**
653
- * @group Characteristic Definitions
654
- */
655
- static FirmwareUpdateStatus: typeof FirmwareUpdateStatus;
656
- /**
657
- * @group Characteristic Definitions
658
- */
659
- static HardwareFinish: typeof HardwareFinish;
660
- /**
661
- * @group Characteristic Definitions
662
- */
663
- static HardwareRevision: typeof HardwareRevision;
664
- /**
665
- * @group Characteristic Definitions
666
- */
667
- static HeartBeat: typeof HeartBeat;
668
- /**
669
- * @group Characteristic Definitions
670
- */
671
- static HeatingThresholdTemperature: typeof HeatingThresholdTemperature;
672
- /**
673
- * @group Characteristic Definitions
674
- */
675
- static HoldPosition: typeof HoldPosition;
676
- /**
677
- * @group Characteristic Definitions
678
- */
679
- static HomeKitCameraActive: typeof HomeKitCameraActive;
680
- /**
681
- * @group Characteristic Definitions
682
- */
683
- static Hue: typeof Hue;
684
- /**
685
- * @group Characteristic Definitions
686
- */
687
- static Identifier: typeof Identifier;
688
- /**
689
- * @group Characteristic Definitions
690
- */
691
- static Identify: typeof Identify;
692
- /**
693
- * @group Characteristic Definitions
694
- */
695
- static ImageMirroring: typeof ImageMirroring;
696
- /**
697
- * @group Characteristic Definitions
698
- */
699
- static ImageRotation: typeof ImageRotation;
700
- /**
701
- * @group Characteristic Definitions
702
- */
703
- static InputDeviceType: typeof InputDeviceType;
704
- /**
705
- * @group Characteristic Definitions
706
- */
707
- static InputSourceType: typeof InputSourceType;
708
- /**
709
- * @group Characteristic Definitions
710
- */
711
- static InUse: typeof InUse;
712
- /**
713
- * @group Characteristic Definitions
714
- */
715
- static IsConfigured: typeof IsConfigured;
716
- /**
717
- * @group Characteristic Definitions
718
- */
719
- static LeakDetected: typeof LeakDetected;
720
- /**
721
- * @group Characteristic Definitions
722
- */
723
- static ListPairings: typeof ListPairings;
724
- /**
725
- * @group Characteristic Definitions
726
- */
727
- static LockControlPoint: typeof LockControlPoint;
728
- /**
729
- * @group Characteristic Definitions
730
- */
731
- static LockCurrentState: typeof LockCurrentState;
732
- /**
733
- * @group Characteristic Definitions
734
- */
735
- static LockLastKnownAction: typeof LockLastKnownAction;
736
- /**
737
- * @group Characteristic Definitions
738
- */
739
- static LockManagementAutoSecurityTimeout: typeof LockManagementAutoSecurityTimeout;
740
- /**
741
- * @group Characteristic Definitions
742
- */
743
- static LockPhysicalControls: typeof LockPhysicalControls;
744
- /**
745
- * @group Characteristic Definitions
746
- */
747
- static LockTargetState: typeof LockTargetState;
748
- /**
749
- * @group Characteristic Definitions
750
- */
751
- static Logs: typeof Logs;
752
- /**
753
- * @group Characteristic Definitions
754
- */
755
- static MACRetransmissionMaximum: typeof MACRetransmissionMaximum;
756
- /**
757
- * @group Characteristic Definitions
758
- */
759
- static MACTransmissionCounters: typeof MACTransmissionCounters;
760
- /**
761
- * @group Characteristic Definitions
762
- */
763
- static ManagedNetworkEnable: typeof ManagedNetworkEnable;
764
- /**
765
- * @group Characteristic Definitions
766
- */
767
- static ManuallyDisabled: typeof ManuallyDisabled;
768
- /**
769
- * @group Characteristic Definitions
770
- */
771
- static Manufacturer: typeof Manufacturer;
772
- /**
773
- * @group Characteristic Definitions
774
- */
775
- static MatterFirmwareRevisionNumber: typeof MatterFirmwareRevisionNumber;
776
- /**
777
- * @group Characteristic Definitions
778
- */
779
- static MatterFirmwareUpdateStatus: typeof MatterFirmwareUpdateStatus;
780
- /**
781
- * @group Characteristic Definitions
782
- */
783
- static MaximumTransmitPower: typeof MaximumTransmitPower;
784
- /**
785
- * @group Characteristic Definitions
786
- */
787
- static MediaAccessControlLevel: typeof MediaAccessControlLevel;
788
- /**
789
- * @group Characteristic Definitions
790
- */
791
- static MetricsBufferFullState: typeof MetricsBufferFullState;
792
- /**
793
- * @group Characteristic Definitions
794
- */
795
- static Model: typeof Model;
796
- /**
797
- * @group Characteristic Definitions
798
- */
799
- static MotionDetected: typeof MotionDetected;
800
- /**
801
- * @group Characteristic Definitions
802
- */
803
- static MotionEnabled: typeof MotionEnabled;
804
- /**
805
- * @group Characteristic Definitions
806
- */
807
- static MultifunctionButton: typeof MultifunctionButton;
808
- /**
809
- * @group Characteristic Definitions
810
- */
811
- static Mute: typeof Mute;
812
- /**
813
- * @group Characteristic Definitions
814
- */
815
- static Name: typeof Name;
816
- /**
817
- * @group Characteristic Definitions
818
- */
819
- static NetworkAccessViolationControl: typeof NetworkAccessViolationControl;
820
- /**
821
- * @group Characteristic Definitions
822
- */
823
- static NetworkClientProfileControl: typeof NetworkClientProfileControl;
824
- /**
825
- * @group Characteristic Definitions
826
- */
827
- static NetworkClientStatusControl: typeof NetworkClientStatusControl;
828
- /**
829
- * @group Characteristic Definitions
830
- */
831
- static NFCAccessControlPoint: typeof NFCAccessControlPoint;
832
- /**
833
- * @group Characteristic Definitions
834
- */
835
- static NFCAccessSupportedConfiguration: typeof NFCAccessSupportedConfiguration;
836
- /**
837
- * @group Characteristic Definitions
838
- */
839
- static NightVision: typeof NightVision;
840
- /**
841
- * @group Characteristic Definitions
842
- */
843
- static NitrogenDioxideDensity: typeof NitrogenDioxideDensity;
844
- /**
845
- * @group Characteristic Definitions
846
- */
847
- static ObstructionDetected: typeof ObstructionDetected;
848
- /**
849
- * @group Characteristic Definitions
850
- */
851
- static OccupancyDetected: typeof OccupancyDetected;
852
- /**
853
- * @group Characteristic Definitions
854
- */
855
- static On: typeof On;
856
- /**
857
- * @group Characteristic Definitions
858
- */
859
- static OperatingStateResponse: typeof OperatingStateResponse;
860
- /**
861
- * @group Characteristic Definitions
862
- */
863
- static OpticalZoom: typeof OpticalZoom;
864
- /**
865
- * @group Characteristic Definitions
866
- */
867
- static OutletInUse: typeof OutletInUse;
868
- /**
869
- * @group Characteristic Definitions
870
- */
871
- static OzoneDensity: typeof OzoneDensity;
872
- /**
873
- * @group Characteristic Definitions
874
- */
875
- static PairingFeatures: typeof PairingFeatures;
876
- /**
877
- * @group Characteristic Definitions
878
- */
879
- static PairSetup: typeof PairSetup;
880
- /**
881
- * @group Characteristic Definitions
882
- */
883
- static PairVerify: typeof PairVerify;
884
- /**
885
- * @group Characteristic Definitions
886
- */
887
- static PasswordSetting: typeof PasswordSetting;
888
- /**
889
- * @group Characteristic Definitions
890
- */
891
- static PeriodicSnapshotsActive: typeof PeriodicSnapshotsActive;
892
- /**
893
- * @group Characteristic Definitions
894
- */
895
- static PictureMode: typeof PictureMode;
896
- /**
897
- * @group Characteristic Definitions
898
- */
899
- static Ping: typeof Ping;
900
- /**
901
- * @group Characteristic Definitions
902
- */
903
- static PM10Density: typeof PM10Density;
904
- /**
905
- * @group Characteristic Definitions
906
- */
907
- static PM2_5Density: typeof PM2_5Density;
908
- /**
909
- * @group Characteristic Definitions
910
- */
911
- static PositionState: typeof PositionState;
912
- /**
913
- * @group Characteristic Definitions
914
- */
915
- static PowerModeSelection: typeof PowerModeSelection;
916
- /**
917
- * @group Characteristic Definitions
918
- */
919
- static PreferredWiFiList: typeof PreferredWiFiList;
920
- /**
921
- * @group Characteristic Definitions
922
- */
923
- static ProductData: typeof ProductData;
924
- /**
925
- * @group Characteristic Definitions
926
- */
927
- static ProgrammableSwitchEvent: typeof ProgrammableSwitchEvent;
928
- /**
929
- * @group Characteristic Definitions
930
- */
931
- static ProgrammableSwitchOutputState: typeof ProgrammableSwitchOutputState;
932
- /**
933
- * @group Characteristic Definitions
934
- */
935
- static ProgramMode: typeof ProgramMode;
936
- /**
937
- * @group Characteristic Definitions
938
- */
939
- static ReceivedSignalStrengthIndication: typeof ReceivedSignalStrengthIndication;
940
- /**
941
- * @group Characteristic Definitions
942
- */
943
- static ReceiverSensitivity: typeof ReceiverSensitivity;
944
- /**
945
- * @group Characteristic Definitions
946
- */
947
- static RecordingAudioActive: typeof RecordingAudioActive;
948
- /**
949
- * @group Characteristic Definitions
950
- */
951
- static RelativeHumidityDehumidifierThreshold: typeof RelativeHumidityDehumidifierThreshold;
952
- /**
953
- * @group Characteristic Definitions
954
- */
955
- static RelativeHumidityHumidifierThreshold: typeof RelativeHumidityHumidifierThreshold;
956
- /**
957
- * @group Characteristic Definitions
958
- * @deprecated Removed
959
- */
960
- static RelayControlPoint: typeof RelayControlPoint;
961
- /**
962
- * @group Characteristic Definitions
963
- * @deprecated Removed
964
- */
965
- static RelayEnabled: typeof RelayEnabled;
966
- /**
967
- * @group Characteristic Definitions
968
- * @deprecated Removed
969
- */
970
- static RelayState: typeof RelayState;
971
- /**
972
- * @group Characteristic Definitions
973
- */
974
- static RemainingDuration: typeof RemainingDuration;
975
- /**
976
- * @group Characteristic Definitions
977
- */
978
- static RemoteKey: typeof RemoteKey;
979
- /**
980
- * @group Characteristic Definitions
981
- */
982
- static ResetFilterIndication: typeof ResetFilterIndication;
983
- /**
984
- * @group Characteristic Definitions
985
- */
986
- static RotationDirection: typeof RotationDirection;
987
- /**
988
- * @group Characteristic Definitions
989
- */
990
- static RotationSpeed: typeof RotationSpeed;
991
- /**
992
- * @group Characteristic Definitions
993
- */
994
- static RouterStatus: typeof RouterStatus;
995
- /**
996
- * @group Characteristic Definitions
997
- */
998
- static RTPStreamingControl: typeof RTPStreamingControl;
999
- /**
1000
- * @group Characteristic Definitions
1001
- */
1002
- static Saturation: typeof Saturation;
1003
- /**
1004
- * @group Characteristic Definitions
1005
- */
1006
- static SecuritySystemAlarmType: typeof SecuritySystemAlarmType;
1007
- /**
1008
- * @group Characteristic Definitions
1009
- */
1010
- static SecuritySystemCurrentState: typeof SecuritySystemCurrentState;
1011
- /**
1012
- * @group Characteristic Definitions
1013
- */
1014
- static SecuritySystemTargetState: typeof SecuritySystemTargetState;
1015
- /**
1016
- * @group Characteristic Definitions
1017
- */
1018
- static SelectedAudioStreamConfiguration: typeof SelectedAudioStreamConfiguration;
1019
- /**
1020
- * @group Characteristic Definitions
1021
- */
1022
- static SelectedCameraRecordingConfiguration: typeof SelectedCameraRecordingConfiguration;
1023
- /**
1024
- * @group Characteristic Definitions
1025
- */
1026
- static SelectedDiagnosticsModes: typeof SelectedDiagnosticsModes;
1027
- /**
1028
- * @group Characteristic Definitions
1029
- */
1030
- static SelectedRTPStreamConfiguration: typeof SelectedRTPStreamConfiguration;
1031
- /**
1032
- * @group Characteristic Definitions
1033
- */
1034
- static SelectedSessionKeepaliveConfigurationList: typeof SelectedSessionKeepaliveConfigurationList;
1035
- /**
1036
- * @group Characteristic Definitions
1037
- */
1038
- static SelectedSleepConfiguration: typeof SelectedSleepConfiguration;
1039
- /**
1040
- * @group Characteristic Definitions
1041
- */
1042
- static SensorUUID: typeof SensorUUID;
1043
- /**
1044
- * @group Characteristic Definitions
1045
- */
1046
- static SerialNumber: typeof SerialNumber;
1047
- /**
1048
- * @group Characteristic Definitions
1049
- */
1050
- static ServiceLabelIndex: typeof ServiceLabelIndex;
1051
- /**
1052
- * @group Characteristic Definitions
1053
- */
1054
- static ServiceLabelNamespace: typeof ServiceLabelNamespace;
1055
- /**
1056
- * @group Characteristic Definitions
1057
- */
1058
- static SetDuration: typeof SetDuration;
1059
- /**
1060
- * @group Characteristic Definitions
1061
- */
1062
- static SetupDataStreamTransport: typeof SetupDataStreamTransport;
1063
- /**
1064
- * @group Characteristic Definitions
1065
- */
1066
- static SetupEndpoints: typeof SetupEndpoints;
1067
- /**
1068
- * @group Characteristic Definitions
1069
- */
1070
- static SetupTransferTransport: typeof SetupTransferTransport;
1071
- /**
1072
- * @group Characteristic Definitions
1073
- */
1074
- static SignalToNoiseRatio: typeof SignalToNoiseRatio;
1075
- /**
1076
- * @group Characteristic Definitions
1077
- */
1078
- static SiriEnable: typeof SiriEnable;
1079
- /**
1080
- * @group Characteristic Definitions
1081
- */
1082
- static SiriEndpointSessionStatus: typeof SiriEndpointSessionStatus;
1083
- /**
1084
- * @group Characteristic Definitions
1085
- */
1086
- static SiriEngineVersion: typeof SiriEngineVersion;
1087
- /**
1088
- * @group Characteristic Definitions
1089
- */
1090
- static SiriInputType: typeof SiriInputType;
1091
- /**
1092
- * @group Characteristic Definitions
1093
- */
1094
- static SiriLightOnUse: typeof SiriLightOnUse;
1095
- /**
1096
- * @group Characteristic Definitions
1097
- */
1098
- static SiriListening: typeof SiriListening;
1099
- /**
1100
- * @group Characteristic Definitions
1101
- */
1102
- static SiriTouchToUse: typeof SiriTouchToUse;
1103
- /**
1104
- * @group Characteristic Definitions
1105
- */
1106
- static SlatType: typeof SlatType;
1107
- /**
1108
- * @group Characteristic Definitions
1109
- */
1110
- static SleepDiscoveryMode: typeof SleepDiscoveryMode;
1111
- /**
1112
- * @group Characteristic Definitions
1113
- */
1114
- static SleepInterval: typeof SleepInterval;
1115
- /**
1116
- * @group Characteristic Definitions
1117
- */
1118
- static SmokeDetected: typeof SmokeDetected;
1119
- /**
1120
- * @group Characteristic Definitions
1121
- */
1122
- static SoftwareRevision: typeof SoftwareRevision;
1123
- /**
1124
- * @group Characteristic Definitions
1125
- */
1126
- static StagedFirmwareVersion: typeof StagedFirmwareVersion;
1127
- /**
1128
- * @group Characteristic Definitions
1129
- */
1130
- static StatusActive: typeof StatusActive;
1131
- /**
1132
- * @group Characteristic Definitions
1133
- */
1134
- static StatusFault: typeof StatusFault;
1135
- /**
1136
- * @group Characteristic Definitions
1137
- */
1138
- static StatusJammed: typeof StatusJammed;
1139
- /**
1140
- * @group Characteristic Definitions
1141
- */
1142
- static StatusLowBattery: typeof StatusLowBattery;
1143
- /**
1144
- * @group Characteristic Definitions
1145
- */
1146
- static StatusTampered: typeof StatusTampered;
1147
- /**
1148
- * @group Characteristic Definitions
1149
- */
1150
- static StreamingEnabled: typeof StreamingEnabled;
1151
- /**
1152
- * @group Characteristic Definitions
1153
- */
1154
- static StreamingStatus: typeof StreamingStatus;
1155
- /**
1156
- * @group Characteristic Definitions
1157
- */
1158
- static SulphurDioxideDensity: typeof SulphurDioxideDensity;
1159
- /**
1160
- * @group Characteristic Definitions
1161
- */
1162
- static SupportedAssetTypes: typeof SupportedAssetTypes;
1163
- /**
1164
- * @group Characteristic Definitions
1165
- */
1166
- static SupportedAudioRecordingConfiguration: typeof SupportedAudioRecordingConfiguration;
1167
- /**
1168
- * @group Characteristic Definitions
1169
- */
1170
- static SupportedAudioStreamConfiguration: typeof SupportedAudioStreamConfiguration;
1171
- /**
1172
- * @group Characteristic Definitions
1173
- */
1174
- static SupportedAudioStreamTiers: typeof SupportedAudioStreamTiers;
1175
- /**
1176
- * @group Characteristic Definitions
1177
- */
1178
- static SupportedCameraRecordingConfiguration: typeof SupportedCameraRecordingConfiguration;
1179
- /**
1180
- * @group Characteristic Definitions
1181
- */
1182
- static SupportedCharacteristicValueTransitionConfiguration: typeof SupportedCharacteristicValueTransitionConfiguration;
1183
- /**
1184
- * @group Characteristic Definitions
1185
- */
1186
- static SupportedDataStreamTransportConfiguration: typeof SupportedDataStreamTransportConfiguration;
1187
- /**
1188
- * @group Characteristic Definitions
1189
- */
1190
- static SupportedDiagnosticsModes: typeof SupportedDiagnosticsModes;
1191
- /**
1192
- * @group Characteristic Definitions
1193
- */
1194
- static SupportedDiagnosticsSnapshot: typeof SupportedDiagnosticsSnapshot;
1195
- /**
1196
- * @group Characteristic Definitions
1197
- */
1198
- static SupportedFirmwareUpdateConfiguration: typeof SupportedFirmwareUpdateConfiguration;
1199
- /**
1200
- * @group Characteristic Definitions
1201
- */
1202
- static SupportedMetrics: typeof SupportedMetrics;
1203
- /**
1204
- * @group Characteristic Definitions
1205
- */
1206
- static SupportedRouterConfiguration: typeof SupportedRouterConfiguration;
1207
- /**
1208
- * @group Characteristic Definitions
1209
- */
1210
- static SupportedRTPConfiguration: typeof SupportedRTPConfiguration;
1211
- /**
1212
- * @group Characteristic Definitions
1213
- */
1214
- static SupportedSessionKeepaliveConfigurationList: typeof SupportedSessionKeepaliveConfigurationList;
1215
- /**
1216
- * @group Characteristic Definitions
1217
- */
1218
- static SupportedSleepConfiguration: typeof SupportedSleepConfiguration;
1219
- /**
1220
- * @group Characteristic Definitions
1221
- */
1222
- static SupportedTransferTransportConfiguration: typeof SupportedTransferTransportConfiguration;
1223
- /**
1224
- * @group Characteristic Definitions
1225
- */
1226
- static SupportedVideoRecordingConfiguration: typeof SupportedVideoRecordingConfiguration;
1227
- /**
1228
- * @group Characteristic Definitions
1229
- */
1230
- static SupportedVideoStreamConfiguration: typeof SupportedVideoStreamConfiguration;
1231
- /**
1232
- * @group Characteristic Definitions
1233
- */
1234
- static SupportedVideoStreamTiers: typeof SupportedVideoStreamTiers;
1235
- /**
1236
- * @group Characteristic Definitions
1237
- */
1238
- static SwingMode: typeof SwingMode;
1239
- /**
1240
- * @group Characteristic Definitions
1241
- * @deprecated Removed
1242
- */
1243
- static TapType: typeof TapType;
1244
- /**
1245
- * @group Characteristic Definitions
1246
- */
1247
- static TargetAirPurifierState: typeof TargetAirPurifierState;
1248
- /**
1249
- * @group Characteristic Definitions
1250
- */
1251
- static TargetControlList: typeof TargetControlList;
1252
- /**
1253
- * @group Characteristic Definitions
1254
- */
1255
- static TargetControlSupportedConfiguration: typeof TargetControlSupportedConfiguration;
1256
- /**
1257
- * @group Characteristic Definitions
1258
- */
1259
- static TargetDoorState: typeof TargetDoorState;
1260
- /**
1261
- * @group Characteristic Definitions
1262
- */
1263
- static TargetFanState: typeof TargetFanState;
1264
- /**
1265
- * @group Characteristic Definitions
1266
- */
1267
- static TargetHeaterCoolerState: typeof TargetHeaterCoolerState;
1268
- /**
1269
- * @group Characteristic Definitions
1270
- */
1271
- static TargetHeatingCoolingState: typeof TargetHeatingCoolingState;
1272
- /**
1273
- * @group Characteristic Definitions
1274
- */
1275
- static TargetHorizontalTiltAngle: typeof TargetHorizontalTiltAngle;
1276
- /**
1277
- * @group Characteristic Definitions
1278
- */
1279
- static TargetHumidifierDehumidifierState: typeof TargetHumidifierDehumidifierState;
1280
- /**
1281
- * @group Characteristic Definitions
1282
- */
1283
- static TargetMediaState: typeof TargetMediaState;
1284
- /**
1285
- * @group Characteristic Definitions
1286
- */
1287
- static TargetPosition: typeof TargetPosition;
1288
- /**
1289
- * @group Characteristic Definitions
1290
- */
1291
- static TargetRelativeHumidity: typeof TargetRelativeHumidity;
1292
- /**
1293
- * @group Characteristic Definitions
1294
- */
1295
- static TargetTemperature: typeof TargetTemperature;
1296
- /**
1297
- * @group Characteristic Definitions
1298
- */
1299
- static TargetTiltAngle: typeof TargetTiltAngle;
1300
- /**
1301
- * @group Characteristic Definitions
1302
- */
1303
- static TargetVerticalTiltAngle: typeof TargetVerticalTiltAngle;
1304
- /**
1305
- * @group Characteristic Definitions
1306
- */
1307
- static TargetVisibilityState: typeof TargetVisibilityState;
1308
- /**
1309
- * @group Characteristic Definitions
1310
- */
1311
- static TemperatureDisplayUnits: typeof TemperatureDisplayUnits;
1312
- /**
1313
- * @group Characteristic Definitions
1314
- */
1315
- static ThirdPartyCameraActive: typeof ThirdPartyCameraActive;
1316
- /**
1317
- * @group Characteristic Definitions
1318
- */
1319
- static ThreadControlPoint: typeof ThreadControlPoint;
1320
- /**
1321
- * @group Characteristic Definitions
1322
- */
1323
- static ThreadNodeCapabilities: typeof ThreadNodeCapabilities;
1324
- /**
1325
- * @group Characteristic Definitions
1326
- */
1327
- static ThreadOpenThreadVersion: typeof ThreadOpenThreadVersion;
1328
- /**
1329
- * @group Characteristic Definitions
1330
- */
1331
- static ThreadStatus: typeof ThreadStatus;
1332
- /**
1333
- * @group Characteristic Definitions
1334
- * @deprecated Removed
1335
- */
1336
- static Token: typeof Token;
1337
- /**
1338
- * @group Characteristic Definitions
1339
- */
1340
- static TransmitPower: typeof TransmitPower;
1341
- /**
1342
- * @group Characteristic Definitions
1343
- * @deprecated Removed
1344
- */
1345
- static TunnelConnectionTimeout: typeof TunnelConnectionTimeout;
1346
- /**
1347
- * @group Characteristic Definitions
1348
- * @deprecated Removed
1349
- */
1350
- static TunneledAccessoryAdvertising: typeof TunneledAccessoryAdvertising;
1351
- /**
1352
- * @group Characteristic Definitions
1353
- * @deprecated Removed
1354
- */
1355
- static TunneledAccessoryConnected: typeof TunneledAccessoryConnected;
1356
- /**
1357
- * @group Characteristic Definitions
1358
- * @deprecated Removed
1359
- */
1360
- static TunneledAccessoryStateNumber: typeof TunneledAccessoryStateNumber;
1361
- /**
1362
- * @group Characteristic Definitions
1363
- */
1364
- static ValveType: typeof ValveType;
1365
- /**
1366
- * @group Characteristic Definitions
1367
- */
1368
- static Version: typeof Version;
1369
- /**
1370
- * @group Characteristic Definitions
1371
- */
1372
- static VideoAnalysisActive: typeof VideoAnalysisActive;
1373
- /**
1374
- * @group Characteristic Definitions
1375
- */
1376
- static VOCDensity: typeof VOCDensity;
1377
- /**
1378
- * @group Characteristic Definitions
1379
- */
1380
- static Volume: typeof Volume;
1381
- /**
1382
- * @group Characteristic Definitions
1383
- */
1384
- static VolumeControlType: typeof VolumeControlType;
1385
- /**
1386
- * @group Characteristic Definitions
1387
- */
1388
- static VolumeSelector: typeof VolumeSelector;
1389
- /**
1390
- * @group Characteristic Definitions
1391
- */
1392
- static WakeConfiguration: typeof WakeConfiguration;
1393
- /**
1394
- * @group Characteristic Definitions
1395
- */
1396
- static WANConfigurationList: typeof WANConfigurationList;
1397
- /**
1398
- * @group Characteristic Definitions
1399
- */
1400
- static WANStatusList: typeof WANStatusList;
1401
- /**
1402
- * @group Characteristic Definitions
1403
- */
1404
- static WaterLevel: typeof WaterLevel;
1405
- /**
1406
- * @group Characteristic Definitions
1407
- */
1408
- static WebRTCNumberOfActiveSessions: typeof WebRTCNumberOfActiveSessions;
1409
- /**
1410
- * @group Characteristic Definitions
1411
- */
1412
- static WebRTCProvideAnswer: typeof WebRTCProvideAnswer;
1413
- /**
1414
- * @group Characteristic Definitions
1415
- */
1416
- static WebRTCReoffer: typeof WebRTCReoffer;
1417
- /**
1418
- * @group Characteristic Definitions
1419
- */
1420
- static WebRTCSolicitOffer: typeof WebRTCSolicitOffer;
1421
- /**
1422
- * @group Characteristic Definitions
1423
- */
1424
- static WebRTCStreamingControl: typeof WebRTCStreamingControl;
1425
- /**
1426
- * @group Characteristic Definitions
1427
- */
1428
- static WebRTCSupportedAudioStreamTiers: typeof WebRTCSupportedAudioStreamTiers;
1429
- /**
1430
- * @group Characteristic Definitions
1431
- */
1432
- static WebRTCSupportedVideoStreamTiers: typeof WebRTCSupportedVideoStreamTiers;
1433
- /**
1434
- * @group Characteristic Definitions
1435
- */
1436
- static WebRTCUpdateSession: typeof WebRTCUpdateSession;
1437
- /**
1438
- * @group Characteristic Definitions
1439
- */
1440
- static WiFiCapabilities: typeof WiFiCapabilities;
1441
- /**
1442
- * @group Characteristic Definitions
1443
- */
1444
- static WiFiConfigurationControl: typeof WiFiConfigurationControl;
1445
- /**
1446
- * @group Characteristic Definitions
1447
- */
1448
- static WiFiSatelliteStatus: typeof WiFiSatelliteStatus;
1449
- displayName: string;
1450
- UUID: string;
1451
- iid: Nullable<number>;
1452
- value: Nullable<CharacteristicValue>;
1453
- /**
1454
- * @private
1455
- */
1456
- statusCode: HAPStatus;
1457
- props: CharacteristicProps;
1458
- /**
1459
- * The {@link Characteristic.onGet} handler
1460
- */
1461
- private getHandler?;
1462
- /**
1463
- * The {@link Characteristic.onSet} handler
1464
- */
1465
- private setHandler?;
1466
- private subscriptions;
1467
- /**
1468
- * @private
1469
- */
1470
- additionalAuthorizationHandler?: AdditionalAuthorizationHandler;
1471
- constructor(displayName: string, UUID: string, props: CharacteristicProps);
1472
- /**
1473
- * Accepts a function that will be called to retrieve the current value of a Characteristic.
1474
- * The function must return a valid Characteristic value for the Characteristic type.
1475
- * May optionally return a promise.
1476
- *
1477
- * @example
1478
- * ```ts
1479
- * Characteristic.onGet(async () => {
1480
- * return true;
1481
- * });
1482
- * ```
1483
- * @param handler
1484
- */
1485
- onGet(handler: CharacteristicGetHandler): Characteristic;
1486
- /**
1487
- * Removes the {@link CharacteristicGetHandler} handler which was configured using {@link onGet}.
1488
- */
1489
- removeOnGet(): Characteristic;
1490
- /**
1491
- * Accepts a function that will be called when setting the value of a Characteristic.
1492
- * If the characteristic supports {@link Perms.WRITE_RESPONSE} and the request requests a write-response value,
1493
- * the returned value will be used.
1494
- * May optionally return a promise.
1495
- *
1496
- * @example
1497
- * ```ts
1498
- * Characteristic.onSet(async (value: CharacteristicValue) => {
1499
- * console.log(value);
1500
- * });
1501
- * ```
1502
- * @param handler
1503
- */
1504
- onSet(handler: CharacteristicSetHandler): Characteristic;
1505
- /**
1506
- * Removes the {@link CharacteristicSetHandler} which was configured using {@link onSet}.
1507
- */
1508
- removeOnSet(): Characteristic;
1509
- /**
1510
- * Updates the properties of this characteristic.
1511
- * Properties passed via the parameter will be set. Any parameter set to null will be deleted.
1512
- * See {@link CharacteristicProps}.
1513
- *
1514
- * @param props - Partial properties object with the desired updates.
1515
- */
1516
- setProps(props: PartialAllowingNull<CharacteristicProps>): Characteristic;
1517
- /**
1518
- * This method can be used to gain an Iterator to loop over all valid values defined for this characteristic.
1519
- *
1520
- * The range of valid values can be defined using three different ways via the {@link CharacteristicProps} object
1521
- * (set via the {@link setProps} method):
1522
- * * First method is to specifically list every valid value inside {@link CharacteristicProps.validValues}
1523
- * * Second you can specify a range via {@link CharacteristicProps.minValue} and {@link CharacteristicProps.maxValue} (with optionally defining
1524
- * {@link CharacteristicProps.minStep})
1525
- * * And lastly you can specify a range via {@link CharacteristicProps.validValueRanges}
1526
- * * Implicitly a valid value range is predefined for characteristics with Format {@link Formats.UINT8}, {@link Formats.UINT16},
1527
- * {@link Formats.UINT32} and {@link Formats.UINT64}: starting by zero to their respective maximum number
1528
- *
1529
- * The method will automatically detect which type of valid values definition is used and provide
1530
- * the correct Iterator for that case.
1531
- *
1532
- * Note: This method is (obviously) only valid for numeric characteristics.
1533
- *
1534
- * @example
1535
- * ```ts
1536
- * // use the iterator to loop over every valid value...
1537
- * for (const value of characteristic.validValuesIterator()) {
1538
- * // Insert logic to run for every
1539
- * }
1540
- *
1541
- * // ... or collect them in an array for storage or manipulation
1542
- * const validValues = Array.from(characteristic.validValuesIterator());
1543
- * ```
1544
- */
1545
- validValuesIterator(): Iterable<number>;
1546
- /**
1547
- * This method can be used to set up additional authorization for a characteristic.
1548
- * For one, it adds the {@link Perms.ADDITIONAL_AUTHORIZATION} permission to the characteristic
1549
- * (if it wasn't already) to signal support for additional authorization to HomeKit.
1550
- * Additionally, an {@link AdditionalAuthorizationHandler} is set up which is called
1551
- * before a write request is performed.
1552
- *
1553
- * Additional Authorization Data can be added to SET request via a custom iOS App.
1554
- * Before hap-nodejs executes a write request it will call the {@link AdditionalAuthorizationHandler}
1555
- * with 'authData' supplied in the write request. The 'authData' is a base64 encoded string
1556
- * (or undefined if no authData was supplied).
1557
- * The {@link AdditionalAuthorizationHandler} must then return true or false to indicate if the write request
1558
- * is authorized and should be accepted.
1559
- *
1560
- * @param handler - Handler called to check additional authorization data.
1561
- */
1562
- setupAdditionalAuthorization(handler: AdditionalAuthorizationHandler): void;
1563
- /**
1564
- * This updates the value by calling the {@link CharacteristicEventTypes.SET} event handler associated with the characteristic.
1565
- * This acts the same way as when a HomeKit controller sends a `/characteristics` request to update the characteristic.
1566
- * An event notification will be sent to all connected HomeKit controllers which are registered
1567
- * to receive event notifications for this characteristic.
1568
- *
1569
- * This method behaves like a {@link updateValue} call with the addition that the own {@link CharacteristicEventTypes.SET}
1570
- * event handler is called.
1571
- *
1572
- * @param value - The new value.
1573
- *
1574
- * Note: If you don't want the {@link CharacteristicEventTypes.SET} to be called, refer to {@link updateValue}.
1575
- */
1576
- setValue(value: CharacteristicValue): Characteristic;
1577
- /**
1578
- * Sets the state of the characteristic to an errored state.
1579
- *
1580
- * If a {@link onGet} or {@link CharacteristicEventTypes.GET} handler is set up,
1581
- * the errored state will be ignored and the characteristic will always query the latest state by calling the provided handler.
1582
- *
1583
- * If a generic error object is supplied, the characteristic tries to extract a {@link HAPStatus} code
1584
- * from the error message string. If not possible a generic {@link HAPStatus.SERVICE_COMMUNICATION_FAILURE} will be used.
1585
- * If the supplied error object is an instance of {@link HapStatusError} the corresponding status will be used.
1586
- *
1587
- * This doesn't call any registered {@link onSet} or {@link CharacteristicEventTypes.SET} handlers.
1588
- *
1589
- * Have a look at the
1590
- * {@link https://github.com/homebridge/HAP-NodeJS/wiki/Presenting-Erroneous-Accessory-State-to-the-User Presenting Erroneous Accessory State to the User}
1591
- * guide for more information on how to present erroneous state to the user.
1592
- *
1593
- * @param error - The error object
1594
- *
1595
- * Note: Erroneous state is never **pushed** to the client side. Only, if the HomeKit client requests the current
1596
- * state of the Characteristic, the corresponding {@link HapStatusError} is returned. As described above,
1597
- * any {@link onGet} or {@link CharacteristicEventTypes.GET} handlers have precedence.
1598
- */
1599
- setValue(error: HapStatusError | Error): Characteristic;
1600
- /**
1601
- * This updates the value by calling the {@link CharacteristicEventTypes.SET} event handler associated with the characteristic.
1602
- * This acts the same way as when a HomeKit controller sends a `/characteristics` request to update the characteristic.
1603
- * An event notification will be sent to all connected HomeKit controllers which are registered
1604
- * to receive event notifications for this characteristic.
1605
- *
1606
- * This method behaves like a {@link updateValue} call with the addition that the own {@link CharacteristicEventTypes.SET}
1607
- * event handler is called.
1608
- *
1609
- * @param value - The new value.
1610
- * @param context - Passed to the {@link CharacteristicEventTypes.SET} and {@link CharacteristicEventTypes.CHANGE} event handler.
1611
- *
1612
- * Note: If you don't want the {@link CharacteristicEventTypes.SET} to be called, refer to {@link updateValue}.
1613
- */
1614
- setValue(value: CharacteristicValue, context?: CharacteristicContext): Characteristic;
1615
- /**
1616
- * This updates the value of the characteristic. If the value changed, an event notification will be sent to all connected
1617
- * HomeKit controllers which are registered to receive event notifications for this characteristic.
1618
- *
1619
- * @param value - The new value or a `Error` or {@link HapStatusError}.
1620
- *
1621
- * Note: Refer to the respective overloads for {@link CharacteristicValue} or {@link HapStatusError} for respective documentation.
1622
- */
1623
- updateValue(value: Nullable<CharacteristicValue> | Error | HapStatusError): Characteristic;
1624
- /**
1625
- * This updates the value of the characteristic. If the value changed, an event notification will be sent to all connected
1626
- * HomeKit controllers which are registered to receive event notifications for this characteristic.
1627
- *
1628
- * @param value - The new value.
1629
- */
1630
- updateValue(value: Nullable<CharacteristicValue>): Characteristic;
1631
- /**
1632
- * Sets the state of the characteristic to an errored state.
1633
- * If a {@link onGet} or {@link CharacteristicEventTypes.GET} handler is set up,
1634
- * the errored state will be ignored and the characteristic will always query the latest state by calling the provided handler.
1635
- *
1636
- * If a generic error object is supplied, the characteristic tries to extract a {@link HAPStatus} code
1637
- * from the error message string. If not possible a generic {@link HAPStatus.SERVICE_COMMUNICATION_FAILURE} will be used.
1638
- * If the supplied error object is an instance of {@link HapStatusError} the corresponding status will be used.
1639
- *
1640
- * Have a look at the
1641
- * {@link https://github.com/homebridge/HAP-NodeJS/wiki/Presenting-Erroneous-Accessory-State-to-the-User Presenting Erroneous Accessory State to the User}
1642
- * guide for more information on how to present erroneous state to the user.
1643
- *
1644
- * @param error - The error object
1645
- *
1646
- * Note: Erroneous state is never **pushed** to the client side. Only, if the HomeKit client requests the current
1647
- * state of the Characteristic, the corresponding {@link HapStatusError} is returned. As described above,
1648
- * any {@link onGet} or {@link CharacteristicEventTypes.GET} handlers have precedence.
1649
- */
1650
- updateValue(error: Error | HapStatusError): Characteristic;
1651
- /**
1652
- * This updates the value of the characteristic. If the value changed, an event notification will be sent to all connected
1653
- * HomeKit controllers which are registered to receive event notifications for this characteristic.
1654
- *
1655
- * @param value - The new value.
1656
- * @param context - Passed to the {@link CharacteristicEventTypes.CHANGE} event handler.
1657
- */
1658
- updateValue(value: Nullable<CharacteristicValue>, context?: CharacteristicContext): Characteristic;
1659
- /**
1660
- * This method acts similarly to {@link updateValue} by setting the current value of the characteristic
1661
- * without calling any {@link CharacteristicEventTypes.SET} or {@link onSet} handlers.
1662
- * The difference is that this method forces an event notification sent (updateValue only sends one if the value changed).
1663
- * This is especially useful for characteristics like {@link Characteristic.ButtonEvent} or {@link Characteristic.ProgrammableSwitchEvent}.
1664
- *
1665
- * @param value - The new value.
1666
- * @param context - Passed to the {@link CharacteristicEventTypes.CHANGE} event handler.
1667
- */
1668
- sendEventNotification(value: CharacteristicValue, context?: CharacteristicContext): Characteristic;
1669
- /**
1670
- * Called when a HAP requests wants to know the current value of the characteristic.
1671
- *
1672
- * @param connection - The HAP connection from which the request originated from.
1673
- * @param context - Deprecated parameter. There for backwards compatibility.
1674
- * @private Used by the Accessory to load the characteristic value
1675
- */
1676
- handleGetRequest(connection?: HAPConnection, context?: CharacteristicContext): Promise<Nullable<CharacteristicValue>>;
1677
- /**
1678
- * Called when a HAP requests update the current value of the characteristic.
1679
- *
1680
- * @param value - The updated value
1681
- * @param connection - The connection from which the request originated from
1682
- * @param context - Deprecated parameter. There for backwards compatibility.
1683
- * @returns Promise resolve to void in normal operation. When characteristic supports write-response, HAP
1684
- * requests a write-response and the set handler returns a write-response value, the respective
1685
- * write response value is resolved.
1686
- * @private
1687
- */
1688
- handleSetRequest(value: CharacteristicValue, connection?: HAPConnection, context?: CharacteristicContext): Promise<CharacteristicValue | void>;
1689
- /**
1690
- * Called once a HomeKit controller subscribes to events of this characteristic.
1691
- * @private
1692
- */
1693
- subscribe(): void;
1694
- /**
1695
- * Called once a HomeKit controller unsubscribe to events of this characteristic or a HomeKit controller
1696
- * which was subscribed to this characteristic disconnects.
1697
- * @private
1698
- */
1699
- unsubscribe(): void;
1700
- protected getDefaultValue(): Nullable<CharacteristicValue>;
1701
- /**
1702
- * Checks if the value received from the HAP request is valid.
1703
- * If returned false the received value is not valid and {@link HAPStatus.INVALID_VALUE_IN_REQUEST}
1704
- * must be returned.
1705
- * @param value - Value supplied by the HomeKit controller
1706
- */
1707
- private validateClientSuppliedValue;
1708
- /**
1709
- * Checks if the value received from the API call is valid.
1710
- * It adjusts the value where it makes sense, prints a warning where values may be rejected with an error
1711
- * in the future and throws an error which can't be converted to a valid value.
1712
- *
1713
- * @param value - The value received from the API call
1714
- * @param warningType - Optionally defines the warning type to use when raising a {@link CharacteristicEventTypes.CHARACTERISTIC_WARNING}.
1715
- */
1716
- private validateUserInput;
1717
- /**
1718
- * @private used to assign iid to characteristic
1719
- */
1720
- _assignID(identifierCache: IdentifierCache, accessoryName: string, serviceUUID: string, serviceSubtype?: string): void;
1721
- /**
1722
- * @param message - what went wrong.
1723
- * @param type - the severity the subscribers see.
1724
- * @param stack - where it was raised.
1725
- * @param reportWhenUnheard - print to the console if nothing is subscribed. **Only for a message that describes how a characteristic was DECLARED.**
1726
- * A characteristic that is not part of a service yet has nothing subscribed to its warnings, and a declaration is made in the constructor, which is
1727
- * exactly where a plugin gets it wrong - so those warnings would otherwise vanish. Every other warning quotes the offending characteristic VALUE
1728
- * (see {@link validateUserInput}), and on something like {@link Characteristic.PasswordSetting} that value is the secret itself, so those keep the
1729
- * long-standing behaviour of going nowhere until an accessory is listening.
1730
- */
1731
- private characteristicWarning;
1732
- /**
1733
- * @param event
1734
- * @private
1735
- */
1736
- removeAllListeners(event?: string | symbol): this;
1737
- /**
1738
- * @param characteristic
1739
- * @private
1740
- */
1741
- replaceBy(characteristic: Characteristic): void;
1742
- /**
1743
- * Returns a JSON representation of this characteristic suitable for delivering to HAP clients.
1744
- * @private used to generate response to /accessories query
1745
- */
1746
- toHAP(connection: HAPConnection, contactGetHandlers?: boolean): Promise<CharacteristicJsonObject>;
1747
- /**
1748
- * Returns a JSON representation of this characteristic without the value.
1749
- * @private used to generate the config hash
1750
- */
1751
- internalHAPRepresentation(): CharacteristicJsonObject;
1752
- /**
1753
- * Serialize characteristic into json string.
1754
- *
1755
- * @param characteristic - Characteristic object.
1756
- * @private used to store characteristic on disk
1757
- */
1758
- static serialize(characteristic: Characteristic): SerializedCharacteristic;
1759
- /**
1760
- * Deserialize characteristic from json string.
1761
- *
1762
- * @param json - Json string representing a characteristic.
1763
- * @private used to recreate characteristic from disk
1764
- */
1765
- static deserialize(json: SerializedCharacteristic): Characteristic;
1766
- }
1767
- import "./definitions/CharacteristicDefinitions";
1768
- //# sourceMappingURL=Characteristic.d.ts.map