@switchbot/homebridge-switchbot 5.0.0-beta.9 → 5.0.0-beta.90
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.
- package/.github/ISSUE_TEMPLATE/e2e-verification.md +36 -0
- package/.github/workflows/ci.yml +32 -0
- package/.github/workflows/manual-e2e.yml +115 -0
- package/.github/workflows/release.yml +0 -4
- package/CHANGELOG.md +35 -0
- package/E2E-VERIFICATION.md +121 -0
- package/MIGRATION.md +44 -0
- package/README.md +56 -3
- package/config.schema.json +91 -14787
- package/dist/deviceFactory.d.ts +13 -0
- package/dist/deviceFactory.d.ts.map +1 -0
- package/dist/deviceFactory.js +81 -0
- package/dist/deviceFactory.js.map +1 -0
- package/dist/devices/deviceBase.d.ts +50 -0
- package/dist/devices/deviceBase.d.ts.map +1 -0
- package/dist/devices/deviceBase.js +119 -0
- package/dist/devices/deviceBase.js.map +1 -0
- package/dist/devices/genericDevice.d.ts +283 -0
- package/dist/devices/genericDevice.d.ts.map +1 -0
- package/dist/devices/genericDevice.js +1035 -0
- package/dist/devices/genericDevice.js.map +1 -0
- package/dist/homebridge-ui/public/index.html +630 -246
- package/dist/homebridge-ui/server.d.ts +3 -1
- package/dist/homebridge-ui/server.d.ts.map +1 -1
- package/dist/homebridge-ui/server.js +367 -36
- package/dist/homebridge-ui/server.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -32
- package/dist/index.js.map +1 -1
- package/dist/platform.d.ts +35 -0
- package/dist/platform.d.ts.map +1 -0
- package/dist/platform.js +514 -0
- package/dist/platform.js.map +1 -0
- package/dist/settings.d.ts +10 -249
- package/dist/settings.d.ts.map +1 -1
- package/dist/settings.js +5 -30
- package/dist/settings.js.map +1 -1
- package/dist/switchbotClient.d.ts +32 -0
- package/dist/switchbotClient.d.ts.map +1 -0
- package/dist/switchbotClient.js +194 -0
- package/dist/switchbotClient.js.map +1 -0
- package/dist/utils.d.ts +39 -50
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +39 -688
- package/dist/utils.js.map +1 -1
- package/docs/assets/highlight.css +14 -0
- package/docs/assets/icons.js +1 -1
- package/docs/assets/icons.svg +1 -1
- package/docs/assets/main.js +2 -2
- package/docs/assets/style.css +3 -3
- package/docs/index.html +77 -13
- package/docs/variables/default.html +1 -1
- package/eslint.config.js +2 -8
- package/package.json +21 -28
- package/scripts/e2e/README.md +25 -0
- package/scripts/e2e/curtain-e2e.sh +70 -0
- package/scripts/e2e/fan-e2e.sh +75 -0
- package/scripts/e2e/light-advanced-e2e.sh +97 -0
- package/scripts/e2e/light-e2e.sh +75 -0
- package/scripts/e2e/list-accessories.sh +19 -0
- package/scripts/e2e/lock-e2e.sh +65 -0
- package/scripts/generate-matter-maps.js +60 -0
- package/scripts/run-e2e-local.sh +14 -0
- package/src/deviceFactory.ts +122 -0
- package/src/devices/deviceBase.ts +141 -0
- package/src/devices/genericDevice.ts +965 -0
- package/src/homebridge-ui/public/index.html +630 -246
- package/src/homebridge-ui/server.ts +434 -41
- package/src/index.ts +4 -33
- package/src/platform.ts +515 -0
- package/src/settings.ts +12 -277
- package/src/switchbotClient.ts +203 -0
- package/src/utils.ts +45 -713
- package/test/accessory-restore.spec.ts +73 -0
- package/test/device-mapping.spec.ts +37 -0
- package/test/deviceFactory.spec.ts +18 -0
- package/test/e2e/run-e2e.spec.ts +50 -0
- package/test/fan-swing.spec.ts +29 -0
- package/test/helpers/matter-harness.ts +53 -0
- package/test/lock-users.spec.ts +44 -0
- package/test/matter-childbridge.spec.ts +55 -0
- package/test/matter-descriptors.spec.ts +97 -0
- package/test/matter-device-state.spec.ts +101 -0
- package/test/matter-integration.spec.ts +70 -0
- package/test/platform.integration.spec.ts +55 -0
- package/test/switchbot-client-debounce.spec.ts +131 -0
- package/test/switchbot-client-openapi.spec.ts +56 -0
- package/test/switchbotClient.spec.ts +10 -0
- package/test/utils.spec.ts +20 -0
- package/vitest.config.ts +7 -0
- package/coverage/base.css +0 -224
- package/coverage/block-navigation.js +0 -87
- package/coverage/clover.xml +0 -15847
- package/coverage/coverage-final.json +0 -42
- package/coverage/docs/assets/dmt/dmt-component-data.js.html +0 -85
- package/coverage/docs/assets/dmt/dmt-components.js.html +0 -286
- package/coverage/docs/assets/dmt/index.html +0 -131
- package/coverage/docs/assets/hierarchy.js.html +0 -85
- package/coverage/docs/assets/icons.js.html +0 -136
- package/coverage/docs/assets/index.html +0 -146
- package/coverage/docs/assets/main.js.html +0 -265
- package/coverage/favicon.png +0 -0
- package/coverage/index.html +0 -191
- package/coverage/prettify.css +0 -1
- package/coverage/prettify.js +0 -2
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +0 -196
- package/coverage/src/device/blindtilt.ts.html +0 -3238
- package/coverage/src/device/bot.ts.html +0 -2803
- package/coverage/src/device/ceilinglight.ts.html +0 -2338
- package/coverage/src/device/colorbulb.ts.html +0 -2824
- package/coverage/src/device/contact.ts.html +0 -1465
- package/coverage/src/device/curtain.ts.html +0 -2869
- package/coverage/src/device/device.ts.html +0 -2500
- package/coverage/src/device/fan.ts.html +0 -2242
- package/coverage/src/device/hub.ts.html +0 -1408
- package/coverage/src/device/humidifier.ts.html +0 -2116
- package/coverage/src/device/index.html +0 -416
- package/coverage/src/device/iosensor.ts.html +0 -1375
- package/coverage/src/device/lightstrip.ts.html +0 -2617
- package/coverage/src/device/lock.ts.html +0 -1963
- package/coverage/src/device/meter.ts.html +0 -1372
- package/coverage/src/device/meterplus.ts.html +0 -1384
- package/coverage/src/device/meterpro.ts.html +0 -1618
- package/coverage/src/device/motion.ts.html +0 -1264
- package/coverage/src/device/plug.ts.html +0 -1372
- package/coverage/src/device/relayswitch.ts.html +0 -2284
- package/coverage/src/device/robotvacuumcleaner.ts.html +0 -1810
- package/coverage/src/device/waterdetector.ts.html +0 -1294
- package/coverage/src/homebridge-ui/index.html +0 -116
- package/coverage/src/homebridge-ui/server.ts.html +0 -229
- package/coverage/src/index.html +0 -161
- package/coverage/src/index.ts.html +0 -124
- package/coverage/src/irdevice/airconditioner.ts.html +0 -1687
- package/coverage/src/irdevice/airpurifier.ts.html +0 -844
- package/coverage/src/irdevice/camera.ts.html +0 -475
- package/coverage/src/irdevice/fan.ts.html +0 -766
- package/coverage/src/irdevice/index.html +0 -251
- package/coverage/src/irdevice/irdevice.ts.html +0 -1117
- package/coverage/src/irdevice/light.ts.html +0 -826
- package/coverage/src/irdevice/other.ts.html +0 -2458
- package/coverage/src/irdevice/tv.ts.html +0 -1222
- package/coverage/src/irdevice/vacuumcleaner.ts.html +0 -466
- package/coverage/src/irdevice/waterheater.ts.html +0 -469
- package/coverage/src/platform.ts.html +0 -8776
- package/coverage/src/settings.ts.html +0 -934
- package/coverage/src/utils.ts.html +0 -2092
- package/dist/devices-hap/airpurifier.d.ts +0 -54
- package/dist/devices-hap/airpurifier.d.ts.map +0 -1
- package/dist/devices-hap/airpurifier.js +0 -527
- package/dist/devices-hap/airpurifier.js.map +0 -1
- package/dist/devices-hap/blindtilt.d.ts +0 -90
- package/dist/devices-hap/blindtilt.d.ts.map +0 -1
- package/dist/devices-hap/blindtilt.js +0 -974
- package/dist/devices-hap/blindtilt.js.map +0 -1
- package/dist/devices-hap/bot.d.ts +0 -102
- package/dist/devices-hap/bot.d.ts.map +0 -1
- package/dist/devices-hap/bot.js +0 -811
- package/dist/devices-hap/bot.js.map +0 -1
- package/dist/devices-hap/ceilinglight.d.ts +0 -85
- package/dist/devices-hap/ceilinglight.d.ts.map +0 -1
- package/dist/devices-hap/ceilinglight.js +0 -701
- package/dist/devices-hap/ceilinglight.js.map +0 -1
- package/dist/devices-hap/colorbulb.d.ts +0 -88
- package/dist/devices-hap/colorbulb.d.ts.map +0 -1
- package/dist/devices-hap/colorbulb.js +0 -881
- package/dist/devices-hap/colorbulb.js.map +0 -1
- package/dist/devices-hap/contact.d.ts +0 -44
- package/dist/devices-hap/contact.d.ts.map +0 -1
- package/dist/devices-hap/contact.js +0 -409
- package/dist/devices-hap/contact.js.map +0 -1
- package/dist/devices-hap/curtain.d.ts +0 -73
- package/dist/devices-hap/curtain.d.ts.map +0 -1
- package/dist/devices-hap/curtain.js +0 -869
- package/dist/devices-hap/curtain.js.map +0 -1
- package/dist/devices-hap/device.d.ts +0 -98
- package/dist/devices-hap/device.d.ts.map +0 -1
- package/dist/devices-hap/device.js +0 -749
- package/dist/devices-hap/device.js.map +0 -1
- package/dist/devices-hap/fan.d.ts +0 -69
- package/dist/devices-hap/fan.d.ts.map +0 -1
- package/dist/devices-hap/fan.js +0 -649
- package/dist/devices-hap/fan.js.map +0 -1
- package/dist/devices-hap/hub.d.ts +0 -37
- package/dist/devices-hap/hub.d.ts.map +0 -1
- package/dist/devices-hap/hub.js +0 -392
- package/dist/devices-hap/hub.js.map +0 -1
- package/dist/devices-hap/humidifier.d.ts +0 -68
- package/dist/devices-hap/humidifier.d.ts.map +0 -1
- package/dist/devices-hap/humidifier.js +0 -628
- package/dist/devices-hap/humidifier.js.map +0 -1
- package/dist/devices-hap/iosensor.d.ts +0 -42
- package/dist/devices-hap/iosensor.d.ts.map +0 -1
- package/dist/devices-hap/iosensor.js +0 -382
- package/dist/devices-hap/iosensor.js.map +0 -1
- package/dist/devices-hap/lightstrip.d.ts +0 -79
- package/dist/devices-hap/lightstrip.d.ts.map +0 -1
- package/dist/devices-hap/lightstrip.js +0 -797
- package/dist/devices-hap/lightstrip.js.map +0 -1
- package/dist/devices-hap/lock.d.ts +0 -53
- package/dist/devices-hap/lock.d.ts.map +0 -1
- package/dist/devices-hap/lock.js +0 -561
- package/dist/devices-hap/lock.js.map +0 -1
- package/dist/devices-hap/meter.d.ts +0 -37
- package/dist/devices-hap/meter.d.ts.map +0 -1
- package/dist/devices-hap/meter.js +0 -379
- package/dist/devices-hap/meter.js.map +0 -1
- package/dist/devices-hap/meterplus.d.ts +0 -42
- package/dist/devices-hap/meterplus.d.ts.map +0 -1
- package/dist/devices-hap/meterplus.js +0 -384
- package/dist/devices-hap/meterplus.js.map +0 -1
- package/dist/devices-hap/meterpro.d.ts +0 -43
- package/dist/devices-hap/meterpro.d.ts.map +0 -1
- package/dist/devices-hap/meterpro.js +0 -468
- package/dist/devices-hap/meterpro.js.map +0 -1
- package/dist/devices-hap/motion.d.ts +0 -42
- package/dist/devices-hap/motion.d.ts.map +0 -1
- package/dist/devices-hap/motion.js +0 -345
- package/dist/devices-hap/motion.js.map +0 -1
- package/dist/devices-hap/plug.d.ts +0 -49
- package/dist/devices-hap/plug.d.ts.map +0 -1
- package/dist/devices-hap/plug.js +0 -395
- package/dist/devices-hap/plug.js.map +0 -1
- package/dist/devices-hap/relayswitch.d.ts +0 -96
- package/dist/devices-hap/relayswitch.d.ts.map +0 -1
- package/dist/devices-hap/relayswitch.js +0 -642
- package/dist/devices-hap/relayswitch.js.map +0 -1
- package/dist/devices-hap/robotvacuumcleaner.d.ts +0 -54
- package/dist/devices-hap/robotvacuumcleaner.d.ts.map +0 -1
- package/dist/devices-hap/robotvacuumcleaner.js +0 -523
- package/dist/devices-hap/robotvacuumcleaner.js.map +0 -1
- package/dist/devices-hap/waterdetector.d.ts +0 -41
- package/dist/devices-hap/waterdetector.d.ts.map +0 -1
- package/dist/devices-hap/waterdetector.js +0 -356
- package/dist/devices-hap/waterdetector.js.map +0 -1
- package/dist/devices-matter/BaseMatterAccessory.d.ts +0 -63
- package/dist/devices-matter/BaseMatterAccessory.d.ts.map +0 -1
- package/dist/devices-matter/BaseMatterAccessory.js +0 -100
- package/dist/devices-matter/BaseMatterAccessory.js.map +0 -1
- package/dist/devices-matter/ColorLightAccessory.d.ts +0 -20
- package/dist/devices-matter/ColorLightAccessory.d.ts.map +0 -1
- package/dist/devices-matter/ColorLightAccessory.js +0 -95
- package/dist/devices-matter/ColorLightAccessory.js.map +0 -1
- package/dist/devices-matter/ColorTemperatureLightAccessory.d.ts +0 -18
- package/dist/devices-matter/ColorTemperatureLightAccessory.d.ts.map +0 -1
- package/dist/devices-matter/ColorTemperatureLightAccessory.js +0 -78
- package/dist/devices-matter/ColorTemperatureLightAccessory.js.map +0 -1
- package/dist/devices-matter/ContactSensorAccessory.d.ts +0 -12
- package/dist/devices-matter/ContactSensorAccessory.d.ts.map +0 -1
- package/dist/devices-matter/ContactSensorAccessory.js +0 -34
- package/dist/devices-matter/ContactSensorAccessory.js.map +0 -1
- package/dist/devices-matter/DimmableLightAccessory.d.ts +0 -58
- package/dist/devices-matter/DimmableLightAccessory.d.ts.map +0 -1
- package/dist/devices-matter/DimmableLightAccessory.js +0 -167
- package/dist/devices-matter/DimmableLightAccessory.js.map +0 -1
- package/dist/devices-matter/DoorLockAccessory.d.ts +0 -14
- package/dist/devices-matter/DoorLockAccessory.d.ts.map +0 -1
- package/dist/devices-matter/DoorLockAccessory.js +0 -50
- package/dist/devices-matter/DoorLockAccessory.js.map +0 -1
- package/dist/devices-matter/ExtendedColorLightAccessory.d.ts +0 -21
- package/dist/devices-matter/ExtendedColorLightAccessory.d.ts.map +0 -1
- package/dist/devices-matter/ExtendedColorLightAccessory.js +0 -107
- package/dist/devices-matter/ExtendedColorLightAccessory.js.map +0 -1
- package/dist/devices-matter/FanAccessory.d.ts +0 -16
- package/dist/devices-matter/FanAccessory.d.ts.map +0 -1
- package/dist/devices-matter/FanAccessory.js +0 -81
- package/dist/devices-matter/FanAccessory.js.map +0 -1
- package/dist/devices-matter/HumiditySensorAccessory.d.ts +0 -12
- package/dist/devices-matter/HumiditySensorAccessory.d.ts.map +0 -1
- package/dist/devices-matter/HumiditySensorAccessory.js +0 -34
- package/dist/devices-matter/HumiditySensorAccessory.js.map +0 -1
- package/dist/devices-matter/LeakSensorAccessory.d.ts +0 -12
- package/dist/devices-matter/LeakSensorAccessory.d.ts.map +0 -1
- package/dist/devices-matter/LeakSensorAccessory.js +0 -33
- package/dist/devices-matter/LeakSensorAccessory.js.map +0 -1
- package/dist/devices-matter/LightSensorAccessory.d.ts +0 -12
- package/dist/devices-matter/LightSensorAccessory.d.ts.map +0 -1
- package/dist/devices-matter/LightSensorAccessory.js +0 -34
- package/dist/devices-matter/LightSensorAccessory.js.map +0 -1
- package/dist/devices-matter/OccupancySensorAccessory.d.ts +0 -12
- package/dist/devices-matter/OccupancySensorAccessory.d.ts.map +0 -1
- package/dist/devices-matter/OccupancySensorAccessory.js +0 -39
- package/dist/devices-matter/OccupancySensorAccessory.js.map +0 -1
- package/dist/devices-matter/OnOffLightAccessory.d.ts +0 -38
- package/dist/devices-matter/OnOffLightAccessory.d.ts.map +0 -1
- package/dist/devices-matter/OnOffLightAccessory.js +0 -118
- package/dist/devices-matter/OnOffLightAccessory.js.map +0 -1
- package/dist/devices-matter/OnOffOutletAccessory.d.ts +0 -12
- package/dist/devices-matter/OnOffOutletAccessory.d.ts.map +0 -1
- package/dist/devices-matter/OnOffOutletAccessory.js +0 -40
- package/dist/devices-matter/OnOffOutletAccessory.js.map +0 -1
- package/dist/devices-matter/OnOffSwitchAccessory.d.ts +0 -14
- package/dist/devices-matter/OnOffSwitchAccessory.d.ts.map +0 -1
- package/dist/devices-matter/OnOffSwitchAccessory.js +0 -42
- package/dist/devices-matter/OnOffSwitchAccessory.js.map +0 -1
- package/dist/devices-matter/RoboticVacuumAccessory.d.ts +0 -68
- package/dist/devices-matter/RoboticVacuumAccessory.d.ts.map +0 -1
- package/dist/devices-matter/RoboticVacuumAccessory.js +0 -334
- package/dist/devices-matter/RoboticVacuumAccessory.js.map +0 -1
- package/dist/devices-matter/SmokeCOAlarmAccessory.d.ts +0 -11
- package/dist/devices-matter/SmokeCOAlarmAccessory.d.ts.map +0 -1
- package/dist/devices-matter/SmokeCOAlarmAccessory.js +0 -49
- package/dist/devices-matter/SmokeCOAlarmAccessory.js.map +0 -1
- package/dist/devices-matter/TemperatureSensorAccessory.d.ts +0 -12
- package/dist/devices-matter/TemperatureSensorAccessory.d.ts.map +0 -1
- package/dist/devices-matter/TemperatureSensorAccessory.js +0 -36
- package/dist/devices-matter/TemperatureSensorAccessory.js.map +0 -1
- package/dist/devices-matter/ThermostatAccessory.d.ts +0 -19
- package/dist/devices-matter/ThermostatAccessory.d.ts.map +0 -1
- package/dist/devices-matter/ThermostatAccessory.js +0 -95
- package/dist/devices-matter/ThermostatAccessory.js.map +0 -1
- package/dist/devices-matter/VenetianBlindAccessory.d.ts +0 -19
- package/dist/devices-matter/VenetianBlindAccessory.d.ts.map +0 -1
- package/dist/devices-matter/VenetianBlindAccessory.js +0 -99
- package/dist/devices-matter/VenetianBlindAccessory.js.map +0 -1
- package/dist/devices-matter/WindowBlindAccessory.d.ts +0 -17
- package/dist/devices-matter/WindowBlindAccessory.d.ts.map +0 -1
- package/dist/devices-matter/WindowBlindAccessory.js +0 -80
- package/dist/devices-matter/WindowBlindAccessory.js.map +0 -1
- package/dist/devices-matter/custom/PowerStripAccessory.d.ts +0 -97
- package/dist/devices-matter/custom/PowerStripAccessory.d.ts.map +0 -1
- package/dist/devices-matter/custom/PowerStripAccessory.js +0 -265
- package/dist/devices-matter/custom/PowerStripAccessory.js.map +0 -1
- package/dist/devices-matter/custom/index.d.ts +0 -8
- package/dist/devices-matter/custom/index.d.ts.map +0 -1
- package/dist/devices-matter/custom/index.js +0 -8
- package/dist/devices-matter/custom/index.js.map +0 -1
- package/dist/devices-matter/index.d.ts +0 -29
- package/dist/devices-matter/index.d.ts.map +0 -1
- package/dist/devices-matter/index.js +0 -28
- package/dist/devices-matter/index.js.map +0 -1
- package/dist/index.test.d.ts +0 -2
- package/dist/index.test.d.ts.map +0 -1
- package/dist/index.test.js +0 -14
- package/dist/index.test.js.map +0 -1
- package/dist/irdevice/airconditioner.d.ts +0 -61
- package/dist/irdevice/airconditioner.d.ts.map +0 -1
- package/dist/irdevice/airconditioner.js +0 -472
- package/dist/irdevice/airconditioner.js.map +0 -1
- package/dist/irdevice/airpurifier.d.ts +0 -50
- package/dist/irdevice/airpurifier.d.ts.map +0 -1
- package/dist/irdevice/airpurifier.js +0 -213
- package/dist/irdevice/airpurifier.js.map +0 -1
- package/dist/irdevice/camera.d.ts +0 -32
- package/dist/irdevice/camera.d.ts.map +0 -1
- package/dist/irdevice/camera.js +0 -107
- package/dist/irdevice/camera.js.map +0 -1
- package/dist/irdevice/fan.d.ts +0 -36
- package/dist/irdevice/fan.d.ts.map +0 -1
- package/dist/irdevice/fan.js +0 -200
- package/dist/irdevice/fan.js.map +0 -1
- package/dist/irdevice/irdevice.d.ts +0 -68
- package/dist/irdevice/irdevice.d.ts.map +0 -1
- package/dist/irdevice/irdevice.js +0 -298
- package/dist/irdevice/irdevice.js.map +0 -1
- package/dist/irdevice/light.d.ts +0 -36
- package/dist/irdevice/light.d.ts.map +0 -1
- package/dist/irdevice/light.js +0 -206
- package/dist/irdevice/light.js.map +0 -1
- package/dist/irdevice/other.d.ts +0 -57
- package/dist/irdevice/other.d.ts.map +0 -1
- package/dist/irdevice/other.js +0 -778
- package/dist/irdevice/other.js.map +0 -1
- package/dist/irdevice/tv.d.ts +0 -45
- package/dist/irdevice/tv.d.ts.map +0 -1
- package/dist/irdevice/tv.js +0 -327
- package/dist/irdevice/tv.js.map +0 -1
- package/dist/irdevice/vacuumcleaner.d.ts +0 -28
- package/dist/irdevice/vacuumcleaner.d.ts.map +0 -1
- package/dist/irdevice/vacuumcleaner.js +0 -104
- package/dist/irdevice/vacuumcleaner.js.map +0 -1
- package/dist/irdevice/waterheater.d.ts +0 -30
- package/dist/irdevice/waterheater.d.ts.map +0 -1
- package/dist/irdevice/waterheater.js +0 -105
- package/dist/irdevice/waterheater.js.map +0 -1
- package/dist/platform-hap.d.ts +0 -149
- package/dist/platform-hap.d.ts.map +0 -1
- package/dist/platform-hap.js +0 -2861
- package/dist/platform-hap.js.map +0 -1
- package/dist/platform-matter.d.ts +0 -120
- package/dist/platform-matter.d.ts.map +0 -1
- package/dist/platform-matter.js +0 -966
- package/dist/platform-matter.js.map +0 -1
- package/dist/verifyconfig.test.d.ts +0 -2
- package/dist/verifyconfig.test.d.ts.map +0 -1
- package/dist/verifyconfig.test.js +0 -167
- package/dist/verifyconfig.test.js.map +0 -1
- package/src/custom.d.ts +0 -7
- package/src/devices-hap/airpurifier.ts +0 -563
- package/src/devices-hap/blindtilt.ts +0 -1049
- package/src/devices-hap/bot.ts +0 -900
- package/src/devices-hap/ceilinglight.ts +0 -742
- package/src/devices-hap/colorbulb.ts +0 -904
- package/src/devices-hap/contact.ts +0 -457
- package/src/devices-hap/curtain.ts +0 -944
- package/src/devices-hap/device.ts +0 -811
- package/src/devices-hap/fan.ts +0 -711
- package/src/devices-hap/hub.ts +0 -439
- package/src/devices-hap/humidifier.ts +0 -669
- package/src/devices-hap/iosensor.ts +0 -427
- package/src/devices-hap/lightstrip.ts +0 -836
- package/src/devices-hap/lock.ts +0 -620
- package/src/devices-hap/meter.ts +0 -426
- package/src/devices-hap/meterplus.ts +0 -430
- package/src/devices-hap/meterpro.ts +0 -522
- package/src/devices-hap/motion.ts +0 -390
- package/src/devices-hap/plug.ts +0 -423
- package/src/devices-hap/relayswitch.ts +0 -727
- package/src/devices-hap/robotvacuumcleaner.ts +0 -568
- package/src/devices-hap/waterdetector.ts +0 -400
- package/src/devices-matter/BaseMatterAccessory.ts +0 -131
- package/src/devices-matter/ColorLightAccessory.ts +0 -110
- package/src/devices-matter/ColorTemperatureLightAccessory.ts +0 -92
- package/src/devices-matter/ContactSensorAccessory.ts +0 -41
- package/src/devices-matter/DimmableLightAccessory.ts +0 -192
- package/src/devices-matter/DoorLockAccessory.ts +0 -60
- package/src/devices-matter/ExtendedColorLightAccessory.ts +0 -123
- package/src/devices-matter/FanAccessory.ts +0 -95
- package/src/devices-matter/HumiditySensorAccessory.ts +0 -41
- package/src/devices-matter/LeakSensorAccessory.ts +0 -40
- package/src/devices-matter/LightSensorAccessory.ts +0 -41
- package/src/devices-matter/OccupancySensorAccessory.ts +0 -48
- package/src/devices-matter/OnOffLightAccessory.ts +0 -133
- package/src/devices-matter/OnOffOutletAccessory.ts +0 -46
- package/src/devices-matter/OnOffSwitchAccessory.ts +0 -51
- package/src/devices-matter/RoboticVacuumAccessory.ts +0 -407
- package/src/devices-matter/SmokeCOAlarmAccessory.ts +0 -59
- package/src/devices-matter/TemperatureSensorAccessory.ts +0 -43
- package/src/devices-matter/ThermostatAccessory.ts +0 -110
- package/src/devices-matter/VenetianBlindAccessory.ts +0 -115
- package/src/devices-matter/WindowBlindAccessory.ts +0 -92
- package/src/devices-matter/custom/PowerStripAccessory.ts +0 -309
- package/src/devices-matter/custom/index.ts +0 -8
- package/src/devices-matter/index.ts +0 -29
- package/src/index.test.ts +0 -19
- package/src/irdevice/airconditioner.ts +0 -533
- package/src/irdevice/airpurifier.ts +0 -252
- package/src/irdevice/camera.ts +0 -129
- package/src/irdevice/fan.ts +0 -226
- package/src/irdevice/irdevice.ts +0 -344
- package/src/irdevice/light.ts +0 -246
- package/src/irdevice/other.ts +0 -790
- package/src/irdevice/tv.ts +0 -378
- package/src/irdevice/vacuumcleaner.ts +0 -126
- package/src/irdevice/waterheater.ts +0 -127
- package/src/platform-hap.ts +0 -2997
- package/src/platform-matter.ts +0 -1092
- package/src/verifyconfig.test.ts +0 -197
|
@@ -1,1465 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
<!doctype html>
|
|
3
|
-
<html lang="en">
|
|
4
|
-
|
|
5
|
-
<head>
|
|
6
|
-
<title>Code coverage report for src/device/contact.ts</title>
|
|
7
|
-
<meta charset="utf-8" />
|
|
8
|
-
<link rel="stylesheet" href="../../prettify.css" />
|
|
9
|
-
<link rel="stylesheet" href="../../base.css" />
|
|
10
|
-
<link rel="shortcut icon" type="image/x-icon" href="../../favicon.png" />
|
|
11
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
|
-
<style type='text/css'>
|
|
13
|
-
.coverage-summary .sorter {
|
|
14
|
-
background-image: url(../../sort-arrow-sprite.png);
|
|
15
|
-
}
|
|
16
|
-
</style>
|
|
17
|
-
</head>
|
|
18
|
-
|
|
19
|
-
<body>
|
|
20
|
-
<div class='wrapper'>
|
|
21
|
-
<div class='pad1'>
|
|
22
|
-
<h1><a href="../../index.html">All files</a> / <a href="index.html">src/device</a> contact.ts</h1>
|
|
23
|
-
<div class='clearfix'>
|
|
24
|
-
|
|
25
|
-
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">1.47% </span>
|
|
27
|
-
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>5/338</span>
|
|
29
|
-
</div>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">0% </span>
|
|
34
|
-
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>0/1</span>
|
|
36
|
-
</div>
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">0% </span>
|
|
41
|
-
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>0/1</span>
|
|
43
|
-
</div>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">1.47% </span>
|
|
48
|
-
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>5/338</span>
|
|
50
|
-
</div>
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
</div>
|
|
54
|
-
<p class="quiet">
|
|
55
|
-
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
|
-
</p>
|
|
57
|
-
<template id="filterTemplate">
|
|
58
|
-
<div class="quiet">
|
|
59
|
-
Filter:
|
|
60
|
-
<input type="search" id="fileSearch">
|
|
61
|
-
</div>
|
|
62
|
-
</template>
|
|
63
|
-
</div>
|
|
64
|
-
<div class='status-line low'></div>
|
|
65
|
-
<pre><table class="coverage">
|
|
66
|
-
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
67
|
-
<a name='L2'></a><a href='#L2'>2</a>
|
|
68
|
-
<a name='L3'></a><a href='#L3'>3</a>
|
|
69
|
-
<a name='L4'></a><a href='#L4'>4</a>
|
|
70
|
-
<a name='L5'></a><a href='#L5'>5</a>
|
|
71
|
-
<a name='L6'></a><a href='#L6'>6</a>
|
|
72
|
-
<a name='L7'></a><a href='#L7'>7</a>
|
|
73
|
-
<a name='L8'></a><a href='#L8'>8</a>
|
|
74
|
-
<a name='L9'></a><a href='#L9'>9</a>
|
|
75
|
-
<a name='L10'></a><a href='#L10'>10</a>
|
|
76
|
-
<a name='L11'></a><a href='#L11'>11</a>
|
|
77
|
-
<a name='L12'></a><a href='#L12'>12</a>
|
|
78
|
-
<a name='L13'></a><a href='#L13'>13</a>
|
|
79
|
-
<a name='L14'></a><a href='#L14'>14</a>
|
|
80
|
-
<a name='L15'></a><a href='#L15'>15</a>
|
|
81
|
-
<a name='L16'></a><a href='#L16'>16</a>
|
|
82
|
-
<a name='L17'></a><a href='#L17'>17</a>
|
|
83
|
-
<a name='L18'></a><a href='#L18'>18</a>
|
|
84
|
-
<a name='L19'></a><a href='#L19'>19</a>
|
|
85
|
-
<a name='L20'></a><a href='#L20'>20</a>
|
|
86
|
-
<a name='L21'></a><a href='#L21'>21</a>
|
|
87
|
-
<a name='L22'></a><a href='#L22'>22</a>
|
|
88
|
-
<a name='L23'></a><a href='#L23'>23</a>
|
|
89
|
-
<a name='L24'></a><a href='#L24'>24</a>
|
|
90
|
-
<a name='L25'></a><a href='#L25'>25</a>
|
|
91
|
-
<a name='L26'></a><a href='#L26'>26</a>
|
|
92
|
-
<a name='L27'></a><a href='#L27'>27</a>
|
|
93
|
-
<a name='L28'></a><a href='#L28'>28</a>
|
|
94
|
-
<a name='L29'></a><a href='#L29'>29</a>
|
|
95
|
-
<a name='L30'></a><a href='#L30'>30</a>
|
|
96
|
-
<a name='L31'></a><a href='#L31'>31</a>
|
|
97
|
-
<a name='L32'></a><a href='#L32'>32</a>
|
|
98
|
-
<a name='L33'></a><a href='#L33'>33</a>
|
|
99
|
-
<a name='L34'></a><a href='#L34'>34</a>
|
|
100
|
-
<a name='L35'></a><a href='#L35'>35</a>
|
|
101
|
-
<a name='L36'></a><a href='#L36'>36</a>
|
|
102
|
-
<a name='L37'></a><a href='#L37'>37</a>
|
|
103
|
-
<a name='L38'></a><a href='#L38'>38</a>
|
|
104
|
-
<a name='L39'></a><a href='#L39'>39</a>
|
|
105
|
-
<a name='L40'></a><a href='#L40'>40</a>
|
|
106
|
-
<a name='L41'></a><a href='#L41'>41</a>
|
|
107
|
-
<a name='L42'></a><a href='#L42'>42</a>
|
|
108
|
-
<a name='L43'></a><a href='#L43'>43</a>
|
|
109
|
-
<a name='L44'></a><a href='#L44'>44</a>
|
|
110
|
-
<a name='L45'></a><a href='#L45'>45</a>
|
|
111
|
-
<a name='L46'></a><a href='#L46'>46</a>
|
|
112
|
-
<a name='L47'></a><a href='#L47'>47</a>
|
|
113
|
-
<a name='L48'></a><a href='#L48'>48</a>
|
|
114
|
-
<a name='L49'></a><a href='#L49'>49</a>
|
|
115
|
-
<a name='L50'></a><a href='#L50'>50</a>
|
|
116
|
-
<a name='L51'></a><a href='#L51'>51</a>
|
|
117
|
-
<a name='L52'></a><a href='#L52'>52</a>
|
|
118
|
-
<a name='L53'></a><a href='#L53'>53</a>
|
|
119
|
-
<a name='L54'></a><a href='#L54'>54</a>
|
|
120
|
-
<a name='L55'></a><a href='#L55'>55</a>
|
|
121
|
-
<a name='L56'></a><a href='#L56'>56</a>
|
|
122
|
-
<a name='L57'></a><a href='#L57'>57</a>
|
|
123
|
-
<a name='L58'></a><a href='#L58'>58</a>
|
|
124
|
-
<a name='L59'></a><a href='#L59'>59</a>
|
|
125
|
-
<a name='L60'></a><a href='#L60'>60</a>
|
|
126
|
-
<a name='L61'></a><a href='#L61'>61</a>
|
|
127
|
-
<a name='L62'></a><a href='#L62'>62</a>
|
|
128
|
-
<a name='L63'></a><a href='#L63'>63</a>
|
|
129
|
-
<a name='L64'></a><a href='#L64'>64</a>
|
|
130
|
-
<a name='L65'></a><a href='#L65'>65</a>
|
|
131
|
-
<a name='L66'></a><a href='#L66'>66</a>
|
|
132
|
-
<a name='L67'></a><a href='#L67'>67</a>
|
|
133
|
-
<a name='L68'></a><a href='#L68'>68</a>
|
|
134
|
-
<a name='L69'></a><a href='#L69'>69</a>
|
|
135
|
-
<a name='L70'></a><a href='#L70'>70</a>
|
|
136
|
-
<a name='L71'></a><a href='#L71'>71</a>
|
|
137
|
-
<a name='L72'></a><a href='#L72'>72</a>
|
|
138
|
-
<a name='L73'></a><a href='#L73'>73</a>
|
|
139
|
-
<a name='L74'></a><a href='#L74'>74</a>
|
|
140
|
-
<a name='L75'></a><a href='#L75'>75</a>
|
|
141
|
-
<a name='L76'></a><a href='#L76'>76</a>
|
|
142
|
-
<a name='L77'></a><a href='#L77'>77</a>
|
|
143
|
-
<a name='L78'></a><a href='#L78'>78</a>
|
|
144
|
-
<a name='L79'></a><a href='#L79'>79</a>
|
|
145
|
-
<a name='L80'></a><a href='#L80'>80</a>
|
|
146
|
-
<a name='L81'></a><a href='#L81'>81</a>
|
|
147
|
-
<a name='L82'></a><a href='#L82'>82</a>
|
|
148
|
-
<a name='L83'></a><a href='#L83'>83</a>
|
|
149
|
-
<a name='L84'></a><a href='#L84'>84</a>
|
|
150
|
-
<a name='L85'></a><a href='#L85'>85</a>
|
|
151
|
-
<a name='L86'></a><a href='#L86'>86</a>
|
|
152
|
-
<a name='L87'></a><a href='#L87'>87</a>
|
|
153
|
-
<a name='L88'></a><a href='#L88'>88</a>
|
|
154
|
-
<a name='L89'></a><a href='#L89'>89</a>
|
|
155
|
-
<a name='L90'></a><a href='#L90'>90</a>
|
|
156
|
-
<a name='L91'></a><a href='#L91'>91</a>
|
|
157
|
-
<a name='L92'></a><a href='#L92'>92</a>
|
|
158
|
-
<a name='L93'></a><a href='#L93'>93</a>
|
|
159
|
-
<a name='L94'></a><a href='#L94'>94</a>
|
|
160
|
-
<a name='L95'></a><a href='#L95'>95</a>
|
|
161
|
-
<a name='L96'></a><a href='#L96'>96</a>
|
|
162
|
-
<a name='L97'></a><a href='#L97'>97</a>
|
|
163
|
-
<a name='L98'></a><a href='#L98'>98</a>
|
|
164
|
-
<a name='L99'></a><a href='#L99'>99</a>
|
|
165
|
-
<a name='L100'></a><a href='#L100'>100</a>
|
|
166
|
-
<a name='L101'></a><a href='#L101'>101</a>
|
|
167
|
-
<a name='L102'></a><a href='#L102'>102</a>
|
|
168
|
-
<a name='L103'></a><a href='#L103'>103</a>
|
|
169
|
-
<a name='L104'></a><a href='#L104'>104</a>
|
|
170
|
-
<a name='L105'></a><a href='#L105'>105</a>
|
|
171
|
-
<a name='L106'></a><a href='#L106'>106</a>
|
|
172
|
-
<a name='L107'></a><a href='#L107'>107</a>
|
|
173
|
-
<a name='L108'></a><a href='#L108'>108</a>
|
|
174
|
-
<a name='L109'></a><a href='#L109'>109</a>
|
|
175
|
-
<a name='L110'></a><a href='#L110'>110</a>
|
|
176
|
-
<a name='L111'></a><a href='#L111'>111</a>
|
|
177
|
-
<a name='L112'></a><a href='#L112'>112</a>
|
|
178
|
-
<a name='L113'></a><a href='#L113'>113</a>
|
|
179
|
-
<a name='L114'></a><a href='#L114'>114</a>
|
|
180
|
-
<a name='L115'></a><a href='#L115'>115</a>
|
|
181
|
-
<a name='L116'></a><a href='#L116'>116</a>
|
|
182
|
-
<a name='L117'></a><a href='#L117'>117</a>
|
|
183
|
-
<a name='L118'></a><a href='#L118'>118</a>
|
|
184
|
-
<a name='L119'></a><a href='#L119'>119</a>
|
|
185
|
-
<a name='L120'></a><a href='#L120'>120</a>
|
|
186
|
-
<a name='L121'></a><a href='#L121'>121</a>
|
|
187
|
-
<a name='L122'></a><a href='#L122'>122</a>
|
|
188
|
-
<a name='L123'></a><a href='#L123'>123</a>
|
|
189
|
-
<a name='L124'></a><a href='#L124'>124</a>
|
|
190
|
-
<a name='L125'></a><a href='#L125'>125</a>
|
|
191
|
-
<a name='L126'></a><a href='#L126'>126</a>
|
|
192
|
-
<a name='L127'></a><a href='#L127'>127</a>
|
|
193
|
-
<a name='L128'></a><a href='#L128'>128</a>
|
|
194
|
-
<a name='L129'></a><a href='#L129'>129</a>
|
|
195
|
-
<a name='L130'></a><a href='#L130'>130</a>
|
|
196
|
-
<a name='L131'></a><a href='#L131'>131</a>
|
|
197
|
-
<a name='L132'></a><a href='#L132'>132</a>
|
|
198
|
-
<a name='L133'></a><a href='#L133'>133</a>
|
|
199
|
-
<a name='L134'></a><a href='#L134'>134</a>
|
|
200
|
-
<a name='L135'></a><a href='#L135'>135</a>
|
|
201
|
-
<a name='L136'></a><a href='#L136'>136</a>
|
|
202
|
-
<a name='L137'></a><a href='#L137'>137</a>
|
|
203
|
-
<a name='L138'></a><a href='#L138'>138</a>
|
|
204
|
-
<a name='L139'></a><a href='#L139'>139</a>
|
|
205
|
-
<a name='L140'></a><a href='#L140'>140</a>
|
|
206
|
-
<a name='L141'></a><a href='#L141'>141</a>
|
|
207
|
-
<a name='L142'></a><a href='#L142'>142</a>
|
|
208
|
-
<a name='L143'></a><a href='#L143'>143</a>
|
|
209
|
-
<a name='L144'></a><a href='#L144'>144</a>
|
|
210
|
-
<a name='L145'></a><a href='#L145'>145</a>
|
|
211
|
-
<a name='L146'></a><a href='#L146'>146</a>
|
|
212
|
-
<a name='L147'></a><a href='#L147'>147</a>
|
|
213
|
-
<a name='L148'></a><a href='#L148'>148</a>
|
|
214
|
-
<a name='L149'></a><a href='#L149'>149</a>
|
|
215
|
-
<a name='L150'></a><a href='#L150'>150</a>
|
|
216
|
-
<a name='L151'></a><a href='#L151'>151</a>
|
|
217
|
-
<a name='L152'></a><a href='#L152'>152</a>
|
|
218
|
-
<a name='L153'></a><a href='#L153'>153</a>
|
|
219
|
-
<a name='L154'></a><a href='#L154'>154</a>
|
|
220
|
-
<a name='L155'></a><a href='#L155'>155</a>
|
|
221
|
-
<a name='L156'></a><a href='#L156'>156</a>
|
|
222
|
-
<a name='L157'></a><a href='#L157'>157</a>
|
|
223
|
-
<a name='L158'></a><a href='#L158'>158</a>
|
|
224
|
-
<a name='L159'></a><a href='#L159'>159</a>
|
|
225
|
-
<a name='L160'></a><a href='#L160'>160</a>
|
|
226
|
-
<a name='L161'></a><a href='#L161'>161</a>
|
|
227
|
-
<a name='L162'></a><a href='#L162'>162</a>
|
|
228
|
-
<a name='L163'></a><a href='#L163'>163</a>
|
|
229
|
-
<a name='L164'></a><a href='#L164'>164</a>
|
|
230
|
-
<a name='L165'></a><a href='#L165'>165</a>
|
|
231
|
-
<a name='L166'></a><a href='#L166'>166</a>
|
|
232
|
-
<a name='L167'></a><a href='#L167'>167</a>
|
|
233
|
-
<a name='L168'></a><a href='#L168'>168</a>
|
|
234
|
-
<a name='L169'></a><a href='#L169'>169</a>
|
|
235
|
-
<a name='L170'></a><a href='#L170'>170</a>
|
|
236
|
-
<a name='L171'></a><a href='#L171'>171</a>
|
|
237
|
-
<a name='L172'></a><a href='#L172'>172</a>
|
|
238
|
-
<a name='L173'></a><a href='#L173'>173</a>
|
|
239
|
-
<a name='L174'></a><a href='#L174'>174</a>
|
|
240
|
-
<a name='L175'></a><a href='#L175'>175</a>
|
|
241
|
-
<a name='L176'></a><a href='#L176'>176</a>
|
|
242
|
-
<a name='L177'></a><a href='#L177'>177</a>
|
|
243
|
-
<a name='L178'></a><a href='#L178'>178</a>
|
|
244
|
-
<a name='L179'></a><a href='#L179'>179</a>
|
|
245
|
-
<a name='L180'></a><a href='#L180'>180</a>
|
|
246
|
-
<a name='L181'></a><a href='#L181'>181</a>
|
|
247
|
-
<a name='L182'></a><a href='#L182'>182</a>
|
|
248
|
-
<a name='L183'></a><a href='#L183'>183</a>
|
|
249
|
-
<a name='L184'></a><a href='#L184'>184</a>
|
|
250
|
-
<a name='L185'></a><a href='#L185'>185</a>
|
|
251
|
-
<a name='L186'></a><a href='#L186'>186</a>
|
|
252
|
-
<a name='L187'></a><a href='#L187'>187</a>
|
|
253
|
-
<a name='L188'></a><a href='#L188'>188</a>
|
|
254
|
-
<a name='L189'></a><a href='#L189'>189</a>
|
|
255
|
-
<a name='L190'></a><a href='#L190'>190</a>
|
|
256
|
-
<a name='L191'></a><a href='#L191'>191</a>
|
|
257
|
-
<a name='L192'></a><a href='#L192'>192</a>
|
|
258
|
-
<a name='L193'></a><a href='#L193'>193</a>
|
|
259
|
-
<a name='L194'></a><a href='#L194'>194</a>
|
|
260
|
-
<a name='L195'></a><a href='#L195'>195</a>
|
|
261
|
-
<a name='L196'></a><a href='#L196'>196</a>
|
|
262
|
-
<a name='L197'></a><a href='#L197'>197</a>
|
|
263
|
-
<a name='L198'></a><a href='#L198'>198</a>
|
|
264
|
-
<a name='L199'></a><a href='#L199'>199</a>
|
|
265
|
-
<a name='L200'></a><a href='#L200'>200</a>
|
|
266
|
-
<a name='L201'></a><a href='#L201'>201</a>
|
|
267
|
-
<a name='L202'></a><a href='#L202'>202</a>
|
|
268
|
-
<a name='L203'></a><a href='#L203'>203</a>
|
|
269
|
-
<a name='L204'></a><a href='#L204'>204</a>
|
|
270
|
-
<a name='L205'></a><a href='#L205'>205</a>
|
|
271
|
-
<a name='L206'></a><a href='#L206'>206</a>
|
|
272
|
-
<a name='L207'></a><a href='#L207'>207</a>
|
|
273
|
-
<a name='L208'></a><a href='#L208'>208</a>
|
|
274
|
-
<a name='L209'></a><a href='#L209'>209</a>
|
|
275
|
-
<a name='L210'></a><a href='#L210'>210</a>
|
|
276
|
-
<a name='L211'></a><a href='#L211'>211</a>
|
|
277
|
-
<a name='L212'></a><a href='#L212'>212</a>
|
|
278
|
-
<a name='L213'></a><a href='#L213'>213</a>
|
|
279
|
-
<a name='L214'></a><a href='#L214'>214</a>
|
|
280
|
-
<a name='L215'></a><a href='#L215'>215</a>
|
|
281
|
-
<a name='L216'></a><a href='#L216'>216</a>
|
|
282
|
-
<a name='L217'></a><a href='#L217'>217</a>
|
|
283
|
-
<a name='L218'></a><a href='#L218'>218</a>
|
|
284
|
-
<a name='L219'></a><a href='#L219'>219</a>
|
|
285
|
-
<a name='L220'></a><a href='#L220'>220</a>
|
|
286
|
-
<a name='L221'></a><a href='#L221'>221</a>
|
|
287
|
-
<a name='L222'></a><a href='#L222'>222</a>
|
|
288
|
-
<a name='L223'></a><a href='#L223'>223</a>
|
|
289
|
-
<a name='L224'></a><a href='#L224'>224</a>
|
|
290
|
-
<a name='L225'></a><a href='#L225'>225</a>
|
|
291
|
-
<a name='L226'></a><a href='#L226'>226</a>
|
|
292
|
-
<a name='L227'></a><a href='#L227'>227</a>
|
|
293
|
-
<a name='L228'></a><a href='#L228'>228</a>
|
|
294
|
-
<a name='L229'></a><a href='#L229'>229</a>
|
|
295
|
-
<a name='L230'></a><a href='#L230'>230</a>
|
|
296
|
-
<a name='L231'></a><a href='#L231'>231</a>
|
|
297
|
-
<a name='L232'></a><a href='#L232'>232</a>
|
|
298
|
-
<a name='L233'></a><a href='#L233'>233</a>
|
|
299
|
-
<a name='L234'></a><a href='#L234'>234</a>
|
|
300
|
-
<a name='L235'></a><a href='#L235'>235</a>
|
|
301
|
-
<a name='L236'></a><a href='#L236'>236</a>
|
|
302
|
-
<a name='L237'></a><a href='#L237'>237</a>
|
|
303
|
-
<a name='L238'></a><a href='#L238'>238</a>
|
|
304
|
-
<a name='L239'></a><a href='#L239'>239</a>
|
|
305
|
-
<a name='L240'></a><a href='#L240'>240</a>
|
|
306
|
-
<a name='L241'></a><a href='#L241'>241</a>
|
|
307
|
-
<a name='L242'></a><a href='#L242'>242</a>
|
|
308
|
-
<a name='L243'></a><a href='#L243'>243</a>
|
|
309
|
-
<a name='L244'></a><a href='#L244'>244</a>
|
|
310
|
-
<a name='L245'></a><a href='#L245'>245</a>
|
|
311
|
-
<a name='L246'></a><a href='#L246'>246</a>
|
|
312
|
-
<a name='L247'></a><a href='#L247'>247</a>
|
|
313
|
-
<a name='L248'></a><a href='#L248'>248</a>
|
|
314
|
-
<a name='L249'></a><a href='#L249'>249</a>
|
|
315
|
-
<a name='L250'></a><a href='#L250'>250</a>
|
|
316
|
-
<a name='L251'></a><a href='#L251'>251</a>
|
|
317
|
-
<a name='L252'></a><a href='#L252'>252</a>
|
|
318
|
-
<a name='L253'></a><a href='#L253'>253</a>
|
|
319
|
-
<a name='L254'></a><a href='#L254'>254</a>
|
|
320
|
-
<a name='L255'></a><a href='#L255'>255</a>
|
|
321
|
-
<a name='L256'></a><a href='#L256'>256</a>
|
|
322
|
-
<a name='L257'></a><a href='#L257'>257</a>
|
|
323
|
-
<a name='L258'></a><a href='#L258'>258</a>
|
|
324
|
-
<a name='L259'></a><a href='#L259'>259</a>
|
|
325
|
-
<a name='L260'></a><a href='#L260'>260</a>
|
|
326
|
-
<a name='L261'></a><a href='#L261'>261</a>
|
|
327
|
-
<a name='L262'></a><a href='#L262'>262</a>
|
|
328
|
-
<a name='L263'></a><a href='#L263'>263</a>
|
|
329
|
-
<a name='L264'></a><a href='#L264'>264</a>
|
|
330
|
-
<a name='L265'></a><a href='#L265'>265</a>
|
|
331
|
-
<a name='L266'></a><a href='#L266'>266</a>
|
|
332
|
-
<a name='L267'></a><a href='#L267'>267</a>
|
|
333
|
-
<a name='L268'></a><a href='#L268'>268</a>
|
|
334
|
-
<a name='L269'></a><a href='#L269'>269</a>
|
|
335
|
-
<a name='L270'></a><a href='#L270'>270</a>
|
|
336
|
-
<a name='L271'></a><a href='#L271'>271</a>
|
|
337
|
-
<a name='L272'></a><a href='#L272'>272</a>
|
|
338
|
-
<a name='L273'></a><a href='#L273'>273</a>
|
|
339
|
-
<a name='L274'></a><a href='#L274'>274</a>
|
|
340
|
-
<a name='L275'></a><a href='#L275'>275</a>
|
|
341
|
-
<a name='L276'></a><a href='#L276'>276</a>
|
|
342
|
-
<a name='L277'></a><a href='#L277'>277</a>
|
|
343
|
-
<a name='L278'></a><a href='#L278'>278</a>
|
|
344
|
-
<a name='L279'></a><a href='#L279'>279</a>
|
|
345
|
-
<a name='L280'></a><a href='#L280'>280</a>
|
|
346
|
-
<a name='L281'></a><a href='#L281'>281</a>
|
|
347
|
-
<a name='L282'></a><a href='#L282'>282</a>
|
|
348
|
-
<a name='L283'></a><a href='#L283'>283</a>
|
|
349
|
-
<a name='L284'></a><a href='#L284'>284</a>
|
|
350
|
-
<a name='L285'></a><a href='#L285'>285</a>
|
|
351
|
-
<a name='L286'></a><a href='#L286'>286</a>
|
|
352
|
-
<a name='L287'></a><a href='#L287'>287</a>
|
|
353
|
-
<a name='L288'></a><a href='#L288'>288</a>
|
|
354
|
-
<a name='L289'></a><a href='#L289'>289</a>
|
|
355
|
-
<a name='L290'></a><a href='#L290'>290</a>
|
|
356
|
-
<a name='L291'></a><a href='#L291'>291</a>
|
|
357
|
-
<a name='L292'></a><a href='#L292'>292</a>
|
|
358
|
-
<a name='L293'></a><a href='#L293'>293</a>
|
|
359
|
-
<a name='L294'></a><a href='#L294'>294</a>
|
|
360
|
-
<a name='L295'></a><a href='#L295'>295</a>
|
|
361
|
-
<a name='L296'></a><a href='#L296'>296</a>
|
|
362
|
-
<a name='L297'></a><a href='#L297'>297</a>
|
|
363
|
-
<a name='L298'></a><a href='#L298'>298</a>
|
|
364
|
-
<a name='L299'></a><a href='#L299'>299</a>
|
|
365
|
-
<a name='L300'></a><a href='#L300'>300</a>
|
|
366
|
-
<a name='L301'></a><a href='#L301'>301</a>
|
|
367
|
-
<a name='L302'></a><a href='#L302'>302</a>
|
|
368
|
-
<a name='L303'></a><a href='#L303'>303</a>
|
|
369
|
-
<a name='L304'></a><a href='#L304'>304</a>
|
|
370
|
-
<a name='L305'></a><a href='#L305'>305</a>
|
|
371
|
-
<a name='L306'></a><a href='#L306'>306</a>
|
|
372
|
-
<a name='L307'></a><a href='#L307'>307</a>
|
|
373
|
-
<a name='L308'></a><a href='#L308'>308</a>
|
|
374
|
-
<a name='L309'></a><a href='#L309'>309</a>
|
|
375
|
-
<a name='L310'></a><a href='#L310'>310</a>
|
|
376
|
-
<a name='L311'></a><a href='#L311'>311</a>
|
|
377
|
-
<a name='L312'></a><a href='#L312'>312</a>
|
|
378
|
-
<a name='L313'></a><a href='#L313'>313</a>
|
|
379
|
-
<a name='L314'></a><a href='#L314'>314</a>
|
|
380
|
-
<a name='L315'></a><a href='#L315'>315</a>
|
|
381
|
-
<a name='L316'></a><a href='#L316'>316</a>
|
|
382
|
-
<a name='L317'></a><a href='#L317'>317</a>
|
|
383
|
-
<a name='L318'></a><a href='#L318'>318</a>
|
|
384
|
-
<a name='L319'></a><a href='#L319'>319</a>
|
|
385
|
-
<a name='L320'></a><a href='#L320'>320</a>
|
|
386
|
-
<a name='L321'></a><a href='#L321'>321</a>
|
|
387
|
-
<a name='L322'></a><a href='#L322'>322</a>
|
|
388
|
-
<a name='L323'></a><a href='#L323'>323</a>
|
|
389
|
-
<a name='L324'></a><a href='#L324'>324</a>
|
|
390
|
-
<a name='L325'></a><a href='#L325'>325</a>
|
|
391
|
-
<a name='L326'></a><a href='#L326'>326</a>
|
|
392
|
-
<a name='L327'></a><a href='#L327'>327</a>
|
|
393
|
-
<a name='L328'></a><a href='#L328'>328</a>
|
|
394
|
-
<a name='L329'></a><a href='#L329'>329</a>
|
|
395
|
-
<a name='L330'></a><a href='#L330'>330</a>
|
|
396
|
-
<a name='L331'></a><a href='#L331'>331</a>
|
|
397
|
-
<a name='L332'></a><a href='#L332'>332</a>
|
|
398
|
-
<a name='L333'></a><a href='#L333'>333</a>
|
|
399
|
-
<a name='L334'></a><a href='#L334'>334</a>
|
|
400
|
-
<a name='L335'></a><a href='#L335'>335</a>
|
|
401
|
-
<a name='L336'></a><a href='#L336'>336</a>
|
|
402
|
-
<a name='L337'></a><a href='#L337'>337</a>
|
|
403
|
-
<a name='L338'></a><a href='#L338'>338</a>
|
|
404
|
-
<a name='L339'></a><a href='#L339'>339</a>
|
|
405
|
-
<a name='L340'></a><a href='#L340'>340</a>
|
|
406
|
-
<a name='L341'></a><a href='#L341'>341</a>
|
|
407
|
-
<a name='L342'></a><a href='#L342'>342</a>
|
|
408
|
-
<a name='L343'></a><a href='#L343'>343</a>
|
|
409
|
-
<a name='L344'></a><a href='#L344'>344</a>
|
|
410
|
-
<a name='L345'></a><a href='#L345'>345</a>
|
|
411
|
-
<a name='L346'></a><a href='#L346'>346</a>
|
|
412
|
-
<a name='L347'></a><a href='#L347'>347</a>
|
|
413
|
-
<a name='L348'></a><a href='#L348'>348</a>
|
|
414
|
-
<a name='L349'></a><a href='#L349'>349</a>
|
|
415
|
-
<a name='L350'></a><a href='#L350'>350</a>
|
|
416
|
-
<a name='L351'></a><a href='#L351'>351</a>
|
|
417
|
-
<a name='L352'></a><a href='#L352'>352</a>
|
|
418
|
-
<a name='L353'></a><a href='#L353'>353</a>
|
|
419
|
-
<a name='L354'></a><a href='#L354'>354</a>
|
|
420
|
-
<a name='L355'></a><a href='#L355'>355</a>
|
|
421
|
-
<a name='L356'></a><a href='#L356'>356</a>
|
|
422
|
-
<a name='L357'></a><a href='#L357'>357</a>
|
|
423
|
-
<a name='L358'></a><a href='#L358'>358</a>
|
|
424
|
-
<a name='L359'></a><a href='#L359'>359</a>
|
|
425
|
-
<a name='L360'></a><a href='#L360'>360</a>
|
|
426
|
-
<a name='L361'></a><a href='#L361'>361</a>
|
|
427
|
-
<a name='L362'></a><a href='#L362'>362</a>
|
|
428
|
-
<a name='L363'></a><a href='#L363'>363</a>
|
|
429
|
-
<a name='L364'></a><a href='#L364'>364</a>
|
|
430
|
-
<a name='L365'></a><a href='#L365'>365</a>
|
|
431
|
-
<a name='L366'></a><a href='#L366'>366</a>
|
|
432
|
-
<a name='L367'></a><a href='#L367'>367</a>
|
|
433
|
-
<a name='L368'></a><a href='#L368'>368</a>
|
|
434
|
-
<a name='L369'></a><a href='#L369'>369</a>
|
|
435
|
-
<a name='L370'></a><a href='#L370'>370</a>
|
|
436
|
-
<a name='L371'></a><a href='#L371'>371</a>
|
|
437
|
-
<a name='L372'></a><a href='#L372'>372</a>
|
|
438
|
-
<a name='L373'></a><a href='#L373'>373</a>
|
|
439
|
-
<a name='L374'></a><a href='#L374'>374</a>
|
|
440
|
-
<a name='L375'></a><a href='#L375'>375</a>
|
|
441
|
-
<a name='L376'></a><a href='#L376'>376</a>
|
|
442
|
-
<a name='L377'></a><a href='#L377'>377</a>
|
|
443
|
-
<a name='L378'></a><a href='#L378'>378</a>
|
|
444
|
-
<a name='L379'></a><a href='#L379'>379</a>
|
|
445
|
-
<a name='L380'></a><a href='#L380'>380</a>
|
|
446
|
-
<a name='L381'></a><a href='#L381'>381</a>
|
|
447
|
-
<a name='L382'></a><a href='#L382'>382</a>
|
|
448
|
-
<a name='L383'></a><a href='#L383'>383</a>
|
|
449
|
-
<a name='L384'></a><a href='#L384'>384</a>
|
|
450
|
-
<a name='L385'></a><a href='#L385'>385</a>
|
|
451
|
-
<a name='L386'></a><a href='#L386'>386</a>
|
|
452
|
-
<a name='L387'></a><a href='#L387'>387</a>
|
|
453
|
-
<a name='L388'></a><a href='#L388'>388</a>
|
|
454
|
-
<a name='L389'></a><a href='#L389'>389</a>
|
|
455
|
-
<a name='L390'></a><a href='#L390'>390</a>
|
|
456
|
-
<a name='L391'></a><a href='#L391'>391</a>
|
|
457
|
-
<a name='L392'></a><a href='#L392'>392</a>
|
|
458
|
-
<a name='L393'></a><a href='#L393'>393</a>
|
|
459
|
-
<a name='L394'></a><a href='#L394'>394</a>
|
|
460
|
-
<a name='L395'></a><a href='#L395'>395</a>
|
|
461
|
-
<a name='L396'></a><a href='#L396'>396</a>
|
|
462
|
-
<a name='L397'></a><a href='#L397'>397</a>
|
|
463
|
-
<a name='L398'></a><a href='#L398'>398</a>
|
|
464
|
-
<a name='L399'></a><a href='#L399'>399</a>
|
|
465
|
-
<a name='L400'></a><a href='#L400'>400</a>
|
|
466
|
-
<a name='L401'></a><a href='#L401'>401</a>
|
|
467
|
-
<a name='L402'></a><a href='#L402'>402</a>
|
|
468
|
-
<a name='L403'></a><a href='#L403'>403</a>
|
|
469
|
-
<a name='L404'></a><a href='#L404'>404</a>
|
|
470
|
-
<a name='L405'></a><a href='#L405'>405</a>
|
|
471
|
-
<a name='L406'></a><a href='#L406'>406</a>
|
|
472
|
-
<a name='L407'></a><a href='#L407'>407</a>
|
|
473
|
-
<a name='L408'></a><a href='#L408'>408</a>
|
|
474
|
-
<a name='L409'></a><a href='#L409'>409</a>
|
|
475
|
-
<a name='L410'></a><a href='#L410'>410</a>
|
|
476
|
-
<a name='L411'></a><a href='#L411'>411</a>
|
|
477
|
-
<a name='L412'></a><a href='#L412'>412</a>
|
|
478
|
-
<a name='L413'></a><a href='#L413'>413</a>
|
|
479
|
-
<a name='L414'></a><a href='#L414'>414</a>
|
|
480
|
-
<a name='L415'></a><a href='#L415'>415</a>
|
|
481
|
-
<a name='L416'></a><a href='#L416'>416</a>
|
|
482
|
-
<a name='L417'></a><a href='#L417'>417</a>
|
|
483
|
-
<a name='L418'></a><a href='#L418'>418</a>
|
|
484
|
-
<a name='L419'></a><a href='#L419'>419</a>
|
|
485
|
-
<a name='L420'></a><a href='#L420'>420</a>
|
|
486
|
-
<a name='L421'></a><a href='#L421'>421</a>
|
|
487
|
-
<a name='L422'></a><a href='#L422'>422</a>
|
|
488
|
-
<a name='L423'></a><a href='#L423'>423</a>
|
|
489
|
-
<a name='L424'></a><a href='#L424'>424</a>
|
|
490
|
-
<a name='L425'></a><a href='#L425'>425</a>
|
|
491
|
-
<a name='L426'></a><a href='#L426'>426</a>
|
|
492
|
-
<a name='L427'></a><a href='#L427'>427</a>
|
|
493
|
-
<a name='L428'></a><a href='#L428'>428</a>
|
|
494
|
-
<a name='L429'></a><a href='#L429'>429</a>
|
|
495
|
-
<a name='L430'></a><a href='#L430'>430</a>
|
|
496
|
-
<a name='L431'></a><a href='#L431'>431</a>
|
|
497
|
-
<a name='L432'></a><a href='#L432'>432</a>
|
|
498
|
-
<a name='L433'></a><a href='#L433'>433</a>
|
|
499
|
-
<a name='L434'></a><a href='#L434'>434</a>
|
|
500
|
-
<a name='L435'></a><a href='#L435'>435</a>
|
|
501
|
-
<a name='L436'></a><a href='#L436'>436</a>
|
|
502
|
-
<a name='L437'></a><a href='#L437'>437</a>
|
|
503
|
-
<a name='L438'></a><a href='#L438'>438</a>
|
|
504
|
-
<a name='L439'></a><a href='#L439'>439</a>
|
|
505
|
-
<a name='L440'></a><a href='#L440'>440</a>
|
|
506
|
-
<a name='L441'></a><a href='#L441'>441</a>
|
|
507
|
-
<a name='L442'></a><a href='#L442'>442</a>
|
|
508
|
-
<a name='L443'></a><a href='#L443'>443</a>
|
|
509
|
-
<a name='L444'></a><a href='#L444'>444</a>
|
|
510
|
-
<a name='L445'></a><a href='#L445'>445</a>
|
|
511
|
-
<a name='L446'></a><a href='#L446'>446</a>
|
|
512
|
-
<a name='L447'></a><a href='#L447'>447</a>
|
|
513
|
-
<a name='L448'></a><a href='#L448'>448</a>
|
|
514
|
-
<a name='L449'></a><a href='#L449'>449</a>
|
|
515
|
-
<a name='L450'></a><a href='#L450'>450</a>
|
|
516
|
-
<a name='L451'></a><a href='#L451'>451</a>
|
|
517
|
-
<a name='L452'></a><a href='#L452'>452</a>
|
|
518
|
-
<a name='L453'></a><a href='#L453'>453</a>
|
|
519
|
-
<a name='L454'></a><a href='#L454'>454</a>
|
|
520
|
-
<a name='L455'></a><a href='#L455'>455</a>
|
|
521
|
-
<a name='L456'></a><a href='#L456'>456</a>
|
|
522
|
-
<a name='L457'></a><a href='#L457'>457</a>
|
|
523
|
-
<a name='L458'></a><a href='#L458'>458</a>
|
|
524
|
-
<a name='L459'></a><a href='#L459'>459</a>
|
|
525
|
-
<a name='L460'></a><a href='#L460'>460</a>
|
|
526
|
-
<a name='L461'></a><a href='#L461'>461</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
527
|
-
<span class="cline-any cline-neutral"> </span>
|
|
528
|
-
<span class="cline-any cline-neutral"> </span>
|
|
529
|
-
<span class="cline-any cline-neutral"> </span>
|
|
530
|
-
<span class="cline-any cline-neutral"> </span>
|
|
531
|
-
<span class="cline-any cline-neutral"> </span>
|
|
532
|
-
<span class="cline-any cline-neutral"> </span>
|
|
533
|
-
<span class="cline-any cline-neutral"> </span>
|
|
534
|
-
<span class="cline-any cline-neutral"> </span>
|
|
535
|
-
<span class="cline-any cline-neutral"> </span>
|
|
536
|
-
<span class="cline-any cline-neutral"> </span>
|
|
537
|
-
<span class="cline-any cline-neutral"> </span>
|
|
538
|
-
<span class="cline-any cline-neutral"> </span>
|
|
539
|
-
<span class="cline-any cline-neutral"> </span>
|
|
540
|
-
<span class="cline-any cline-yes">1x</span>
|
|
541
|
-
<span class="cline-any cline-yes">1x</span>
|
|
542
|
-
<span class="cline-any cline-neutral"> </span>
|
|
543
|
-
<span class="cline-any cline-yes">1x</span>
|
|
544
|
-
<span class="cline-any cline-yes">1x</span>
|
|
545
|
-
<span class="cline-any cline-neutral"> </span>
|
|
546
|
-
<span class="cline-any cline-neutral"> </span>
|
|
547
|
-
<span class="cline-any cline-neutral"> </span>
|
|
548
|
-
<span class="cline-any cline-neutral"> </span>
|
|
549
|
-
<span class="cline-any cline-neutral"> </span>
|
|
550
|
-
<span class="cline-any cline-neutral"> </span>
|
|
551
|
-
<span class="cline-any cline-yes">1x</span>
|
|
552
|
-
<span class="cline-any cline-neutral"> </span>
|
|
553
|
-
<span class="cline-any cline-no"> </span>
|
|
554
|
-
<span class="cline-any cline-neutral"> </span>
|
|
555
|
-
<span class="cline-any cline-neutral"> </span>
|
|
556
|
-
<span class="cline-any cline-neutral"> </span>
|
|
557
|
-
<span class="cline-any cline-neutral"> </span>
|
|
558
|
-
<span class="cline-any cline-neutral"> </span>
|
|
559
|
-
<span class="cline-any cline-no"> </span>
|
|
560
|
-
<span class="cline-any cline-neutral"> </span>
|
|
561
|
-
<span class="cline-any cline-neutral"> </span>
|
|
562
|
-
<span class="cline-any cline-neutral"> </span>
|
|
563
|
-
<span class="cline-any cline-neutral"> </span>
|
|
564
|
-
<span class="cline-any cline-neutral"> </span>
|
|
565
|
-
<span class="cline-any cline-neutral"> </span>
|
|
566
|
-
<span class="cline-any cline-no"> </span>
|
|
567
|
-
<span class="cline-any cline-neutral"> </span>
|
|
568
|
-
<span class="cline-any cline-neutral"> </span>
|
|
569
|
-
<span class="cline-any cline-neutral"> </span>
|
|
570
|
-
<span class="cline-any cline-neutral"> </span>
|
|
571
|
-
<span class="cline-any cline-neutral"> </span>
|
|
572
|
-
<span class="cline-any cline-no"> </span>
|
|
573
|
-
<span class="cline-any cline-neutral"> </span>
|
|
574
|
-
<span class="cline-any cline-neutral"> </span>
|
|
575
|
-
<span class="cline-any cline-neutral"> </span>
|
|
576
|
-
<span class="cline-any cline-neutral"> </span>
|
|
577
|
-
<span class="cline-any cline-neutral"> </span>
|
|
578
|
-
<span class="cline-any cline-neutral"> </span>
|
|
579
|
-
<span class="cline-any cline-no"> </span>
|
|
580
|
-
<span class="cline-any cline-neutral"> </span>
|
|
581
|
-
<span class="cline-any cline-neutral"> </span>
|
|
582
|
-
<span class="cline-any cline-no"> </span>
|
|
583
|
-
<span class="cline-any cline-neutral"> </span>
|
|
584
|
-
<span class="cline-any cline-neutral"> </span>
|
|
585
|
-
<span class="cline-any cline-no"> </span>
|
|
586
|
-
<span class="cline-any cline-neutral"> </span>
|
|
587
|
-
<span class="cline-any cline-neutral"> </span>
|
|
588
|
-
<span class="cline-any cline-no"> </span>
|
|
589
|
-
<span class="cline-any cline-no"> </span>
|
|
590
|
-
<span class="cline-any cline-neutral"> </span>
|
|
591
|
-
<span class="cline-any cline-no"> </span>
|
|
592
|
-
<span class="cline-any cline-no"> </span>
|
|
593
|
-
<span class="cline-any cline-no"> </span>
|
|
594
|
-
<span class="cline-any cline-no"> </span>
|
|
595
|
-
<span class="cline-any cline-no"> </span>
|
|
596
|
-
<span class="cline-any cline-no"> </span>
|
|
597
|
-
<span class="cline-any cline-neutral"> </span>
|
|
598
|
-
<span class="cline-any cline-no"> </span>
|
|
599
|
-
<span class="cline-any cline-neutral"> </span>
|
|
600
|
-
<span class="cline-any cline-neutral"> </span>
|
|
601
|
-
<span class="cline-any cline-no"> </span>
|
|
602
|
-
<span class="cline-any cline-no"> </span>
|
|
603
|
-
<span class="cline-any cline-neutral"> </span>
|
|
604
|
-
<span class="cline-any cline-neutral"> </span>
|
|
605
|
-
<span class="cline-any cline-no"> </span>
|
|
606
|
-
<span class="cline-any cline-no"> </span>
|
|
607
|
-
<span class="cline-any cline-no"> </span>
|
|
608
|
-
<span class="cline-any cline-no"> </span>
|
|
609
|
-
<span class="cline-any cline-no"> </span>
|
|
610
|
-
<span class="cline-any cline-no"> </span>
|
|
611
|
-
<span class="cline-any cline-no"> </span>
|
|
612
|
-
<span class="cline-any cline-neutral"> </span>
|
|
613
|
-
<span class="cline-any cline-neutral"> </span>
|
|
614
|
-
<span class="cline-any cline-no"> </span>
|
|
615
|
-
<span class="cline-any cline-no"> </span>
|
|
616
|
-
<span class="cline-any cline-no"> </span>
|
|
617
|
-
<span class="cline-any cline-neutral"> </span>
|
|
618
|
-
<span class="cline-any cline-neutral"> </span>
|
|
619
|
-
<span class="cline-any cline-no"> </span>
|
|
620
|
-
<span class="cline-any cline-no"> </span>
|
|
621
|
-
<span class="cline-any cline-no"> </span>
|
|
622
|
-
<span class="cline-any cline-no"> </span>
|
|
623
|
-
<span class="cline-any cline-no"> </span>
|
|
624
|
-
<span class="cline-any cline-no"> </span>
|
|
625
|
-
<span class="cline-any cline-no"> </span>
|
|
626
|
-
<span class="cline-any cline-no"> </span>
|
|
627
|
-
<span class="cline-any cline-neutral"> </span>
|
|
628
|
-
<span class="cline-any cline-neutral"> </span>
|
|
629
|
-
<span class="cline-any cline-no"> </span>
|
|
630
|
-
<span class="cline-any cline-no"> </span>
|
|
631
|
-
<span class="cline-any cline-no"> </span>
|
|
632
|
-
<span class="cline-any cline-neutral"> </span>
|
|
633
|
-
<span class="cline-any cline-no"> </span>
|
|
634
|
-
<span class="cline-any cline-no"> </span>
|
|
635
|
-
<span class="cline-any cline-no"> </span>
|
|
636
|
-
<span class="cline-any cline-neutral"> </span>
|
|
637
|
-
<span class="cline-any cline-neutral"> </span>
|
|
638
|
-
<span class="cline-any cline-no"> </span>
|
|
639
|
-
<span class="cline-any cline-no"> </span>
|
|
640
|
-
<span class="cline-any cline-no"> </span>
|
|
641
|
-
<span class="cline-any cline-no"> </span>
|
|
642
|
-
<span class="cline-any cline-no"> </span>
|
|
643
|
-
<span class="cline-any cline-no"> </span>
|
|
644
|
-
<span class="cline-any cline-no"> </span>
|
|
645
|
-
<span class="cline-any cline-no"> </span>
|
|
646
|
-
<span class="cline-any cline-no"> </span>
|
|
647
|
-
<span class="cline-any cline-no"> </span>
|
|
648
|
-
<span class="cline-any cline-no"> </span>
|
|
649
|
-
<span class="cline-any cline-no"> </span>
|
|
650
|
-
<span class="cline-any cline-no"> </span>
|
|
651
|
-
<span class="cline-any cline-no"> </span>
|
|
652
|
-
<span class="cline-any cline-neutral"> </span>
|
|
653
|
-
<span class="cline-any cline-neutral"> </span>
|
|
654
|
-
<span class="cline-any cline-no"> </span>
|
|
655
|
-
<span class="cline-any cline-no"> </span>
|
|
656
|
-
<span class="cline-any cline-no"> </span>
|
|
657
|
-
<span class="cline-any cline-no"> </span>
|
|
658
|
-
<span class="cline-any cline-neutral"> </span>
|
|
659
|
-
<span class="cline-any cline-neutral"> </span>
|
|
660
|
-
<span class="cline-any cline-no"> </span>
|
|
661
|
-
<span class="cline-any cline-no"> </span>
|
|
662
|
-
<span class="cline-any cline-no"> </span>
|
|
663
|
-
<span class="cline-any cline-no"> </span>
|
|
664
|
-
<span class="cline-any cline-no"> </span>
|
|
665
|
-
<span class="cline-any cline-no"> </span>
|
|
666
|
-
<span class="cline-any cline-no"> </span>
|
|
667
|
-
<span class="cline-any cline-no"> </span>
|
|
668
|
-
<span class="cline-any cline-no"> </span>
|
|
669
|
-
<span class="cline-any cline-no"> </span>
|
|
670
|
-
<span class="cline-any cline-no"> </span>
|
|
671
|
-
<span class="cline-any cline-no"> </span>
|
|
672
|
-
<span class="cline-any cline-no"> </span>
|
|
673
|
-
<span class="cline-any cline-no"> </span>
|
|
674
|
-
<span class="cline-any cline-neutral"> </span>
|
|
675
|
-
<span class="cline-any cline-neutral"> </span>
|
|
676
|
-
<span class="cline-any cline-no"> </span>
|
|
677
|
-
<span class="cline-any cline-no"> </span>
|
|
678
|
-
<span class="cline-any cline-no"> </span>
|
|
679
|
-
<span class="cline-any cline-no"> </span>
|
|
680
|
-
<span class="cline-any cline-neutral"> </span>
|
|
681
|
-
<span class="cline-any cline-neutral"> </span>
|
|
682
|
-
<span class="cline-any cline-no"> </span>
|
|
683
|
-
<span class="cline-any cline-no"> </span>
|
|
684
|
-
<span class="cline-any cline-no"> </span>
|
|
685
|
-
<span class="cline-any cline-no"> </span>
|
|
686
|
-
<span class="cline-any cline-no"> </span>
|
|
687
|
-
<span class="cline-any cline-no"> </span>
|
|
688
|
-
<span class="cline-any cline-neutral"> </span>
|
|
689
|
-
<span class="cline-any cline-neutral"> </span>
|
|
690
|
-
<span class="cline-any cline-no"> </span>
|
|
691
|
-
<span class="cline-any cline-no"> </span>
|
|
692
|
-
<span class="cline-any cline-no"> </span>
|
|
693
|
-
<span class="cline-any cline-no"> </span>
|
|
694
|
-
<span class="cline-any cline-no"> </span>
|
|
695
|
-
<span class="cline-any cline-no"> </span>
|
|
696
|
-
<span class="cline-any cline-neutral"> </span>
|
|
697
|
-
<span class="cline-any cline-neutral"> </span>
|
|
698
|
-
<span class="cline-any cline-no"> </span>
|
|
699
|
-
<span class="cline-any cline-no"> </span>
|
|
700
|
-
<span class="cline-any cline-no"> </span>
|
|
701
|
-
<span class="cline-any cline-no"> </span>
|
|
702
|
-
<span class="cline-any cline-no"> </span>
|
|
703
|
-
<span class="cline-any cline-no"> </span>
|
|
704
|
-
<span class="cline-any cline-neutral"> </span>
|
|
705
|
-
<span class="cline-any cline-neutral"> </span>
|
|
706
|
-
<span class="cline-any cline-no"> </span>
|
|
707
|
-
<span class="cline-any cline-no"> </span>
|
|
708
|
-
<span class="cline-any cline-no"> </span>
|
|
709
|
-
<span class="cline-any cline-no"> </span>
|
|
710
|
-
<span class="cline-any cline-no"> </span>
|
|
711
|
-
<span class="cline-any cline-no"> </span>
|
|
712
|
-
<span class="cline-any cline-neutral"> </span>
|
|
713
|
-
<span class="cline-any cline-no"> </span>
|
|
714
|
-
<span class="cline-any cline-no"> </span>
|
|
715
|
-
<span class="cline-any cline-neutral"> </span>
|
|
716
|
-
<span class="cline-any cline-no"> </span>
|
|
717
|
-
<span class="cline-any cline-no"> </span>
|
|
718
|
-
<span class="cline-any cline-neutral"> </span>
|
|
719
|
-
<span class="cline-any cline-neutral"> </span>
|
|
720
|
-
<span class="cline-any cline-no"> </span>
|
|
721
|
-
<span class="cline-any cline-no"> </span>
|
|
722
|
-
<span class="cline-any cline-no"> </span>
|
|
723
|
-
<span class="cline-any cline-no"> </span>
|
|
724
|
-
<span class="cline-any cline-neutral"> </span>
|
|
725
|
-
<span class="cline-any cline-no"> </span>
|
|
726
|
-
<span class="cline-any cline-no"> </span>
|
|
727
|
-
<span class="cline-any cline-no"> </span>
|
|
728
|
-
<span class="cline-any cline-no"> </span>
|
|
729
|
-
<span class="cline-any cline-no"> </span>
|
|
730
|
-
<span class="cline-any cline-no"> </span>
|
|
731
|
-
<span class="cline-any cline-no"> </span>
|
|
732
|
-
<span class="cline-any cline-neutral"> </span>
|
|
733
|
-
<span class="cline-any cline-no"> </span>
|
|
734
|
-
<span class="cline-any cline-neutral"> </span>
|
|
735
|
-
<span class="cline-any cline-no"> </span>
|
|
736
|
-
<span class="cline-any cline-no"> </span>
|
|
737
|
-
<span class="cline-any cline-neutral"> </span>
|
|
738
|
-
<span class="cline-any cline-no"> </span>
|
|
739
|
-
<span class="cline-any cline-no"> </span>
|
|
740
|
-
<span class="cline-any cline-no"> </span>
|
|
741
|
-
<span class="cline-any cline-no"> </span>
|
|
742
|
-
<span class="cline-any cline-no"> </span>
|
|
743
|
-
<span class="cline-any cline-no"> </span>
|
|
744
|
-
<span class="cline-any cline-neutral"> </span>
|
|
745
|
-
<span class="cline-any cline-no"> </span>
|
|
746
|
-
<span class="cline-any cline-no"> </span>
|
|
747
|
-
<span class="cline-any cline-neutral"> </span>
|
|
748
|
-
<span class="cline-any cline-no"> </span>
|
|
749
|
-
<span class="cline-any cline-no"> </span>
|
|
750
|
-
<span class="cline-any cline-neutral"> </span>
|
|
751
|
-
<span class="cline-any cline-neutral"> </span>
|
|
752
|
-
<span class="cline-any cline-no"> </span>
|
|
753
|
-
<span class="cline-any cline-no"> </span>
|
|
754
|
-
<span class="cline-any cline-no"> </span>
|
|
755
|
-
<span class="cline-any cline-no"> </span>
|
|
756
|
-
<span class="cline-any cline-neutral"> </span>
|
|
757
|
-
<span class="cline-any cline-no"> </span>
|
|
758
|
-
<span class="cline-any cline-no"> </span>
|
|
759
|
-
<span class="cline-any cline-no"> </span>
|
|
760
|
-
<span class="cline-any cline-no"> </span>
|
|
761
|
-
<span class="cline-any cline-no"> </span>
|
|
762
|
-
<span class="cline-any cline-no"> </span>
|
|
763
|
-
<span class="cline-any cline-no"> </span>
|
|
764
|
-
<span class="cline-any cline-neutral"> </span>
|
|
765
|
-
<span class="cline-any cline-no"> </span>
|
|
766
|
-
<span class="cline-any cline-no"> </span>
|
|
767
|
-
<span class="cline-any cline-neutral"> </span>
|
|
768
|
-
<span class="cline-any cline-no"> </span>
|
|
769
|
-
<span class="cline-any cline-no"> </span>
|
|
770
|
-
<span class="cline-any cline-no"> </span>
|
|
771
|
-
<span class="cline-any cline-no"> </span>
|
|
772
|
-
<span class="cline-any cline-neutral"> </span>
|
|
773
|
-
<span class="cline-any cline-no"> </span>
|
|
774
|
-
<span class="cline-any cline-no"> </span>
|
|
775
|
-
<span class="cline-any cline-no"> </span>
|
|
776
|
-
<span class="cline-any cline-no"> </span>
|
|
777
|
-
<span class="cline-any cline-no"> </span>
|
|
778
|
-
<span class="cline-any cline-no"> </span>
|
|
779
|
-
<span class="cline-any cline-no"> </span>
|
|
780
|
-
<span class="cline-any cline-no"> </span>
|
|
781
|
-
<span class="cline-any cline-no"> </span>
|
|
782
|
-
<span class="cline-any cline-no"> </span>
|
|
783
|
-
<span class="cline-any cline-no"> </span>
|
|
784
|
-
<span class="cline-any cline-no"> </span>
|
|
785
|
-
<span class="cline-any cline-no"> </span>
|
|
786
|
-
<span class="cline-any cline-no"> </span>
|
|
787
|
-
<span class="cline-any cline-neutral"> </span>
|
|
788
|
-
<span class="cline-any cline-no"> </span>
|
|
789
|
-
<span class="cline-any cline-no"> </span>
|
|
790
|
-
<span class="cline-any cline-no"> </span>
|
|
791
|
-
<span class="cline-any cline-neutral"> </span>
|
|
792
|
-
<span class="cline-any cline-no"> </span>
|
|
793
|
-
<span class="cline-any cline-no"> </span>
|
|
794
|
-
<span class="cline-any cline-no"> </span>
|
|
795
|
-
<span class="cline-any cline-neutral"> </span>
|
|
796
|
-
<span class="cline-any cline-no"> </span>
|
|
797
|
-
<span class="cline-any cline-no"> </span>
|
|
798
|
-
<span class="cline-any cline-no"> </span>
|
|
799
|
-
<span class="cline-any cline-no"> </span>
|
|
800
|
-
<span class="cline-any cline-no"> </span>
|
|
801
|
-
<span class="cline-any cline-no"> </span>
|
|
802
|
-
<span class="cline-any cline-no"> </span>
|
|
803
|
-
<span class="cline-any cline-no"> </span>
|
|
804
|
-
<span class="cline-any cline-no"> </span>
|
|
805
|
-
<span class="cline-any cline-no"> </span>
|
|
806
|
-
<span class="cline-any cline-no"> </span>
|
|
807
|
-
<span class="cline-any cline-neutral"> </span>
|
|
808
|
-
<span class="cline-any cline-neutral"> </span>
|
|
809
|
-
<span class="cline-any cline-neutral"> </span>
|
|
810
|
-
<span class="cline-any cline-neutral"> </span>
|
|
811
|
-
<span class="cline-any cline-no"> </span>
|
|
812
|
-
<span class="cline-any cline-no"> </span>
|
|
813
|
-
<span class="cline-any cline-no"> </span>
|
|
814
|
-
<span class="cline-any cline-no"> </span>
|
|
815
|
-
<span class="cline-any cline-no"> </span>
|
|
816
|
-
<span class="cline-any cline-no"> </span>
|
|
817
|
-
<span class="cline-any cline-no"> </span>
|
|
818
|
-
<span class="cline-any cline-no"> </span>
|
|
819
|
-
<span class="cline-any cline-no"> </span>
|
|
820
|
-
<span class="cline-any cline-no"> </span>
|
|
821
|
-
<span class="cline-any cline-no"> </span>
|
|
822
|
-
<span class="cline-any cline-no"> </span>
|
|
823
|
-
<span class="cline-any cline-neutral"> </span>
|
|
824
|
-
<span class="cline-any cline-no"> </span>
|
|
825
|
-
<span class="cline-any cline-no"> </span>
|
|
826
|
-
<span class="cline-any cline-no"> </span>
|
|
827
|
-
<span class="cline-any cline-no"> </span>
|
|
828
|
-
<span class="cline-any cline-no"> </span>
|
|
829
|
-
<span class="cline-any cline-no"> </span>
|
|
830
|
-
<span class="cline-any cline-neutral"> </span>
|
|
831
|
-
<span class="cline-any cline-no"> </span>
|
|
832
|
-
<span class="cline-any cline-neutral"> </span>
|
|
833
|
-
<span class="cline-any cline-no"> </span>
|
|
834
|
-
<span class="cline-any cline-neutral"> </span>
|
|
835
|
-
<span class="cline-any cline-no"> </span>
|
|
836
|
-
<span class="cline-any cline-no"> </span>
|
|
837
|
-
<span class="cline-any cline-no"> </span>
|
|
838
|
-
<span class="cline-any cline-no"> </span>
|
|
839
|
-
<span class="cline-any cline-no"> </span>
|
|
840
|
-
<span class="cline-any cline-no"> </span>
|
|
841
|
-
<span class="cline-any cline-no"> </span>
|
|
842
|
-
<span class="cline-any cline-no"> </span>
|
|
843
|
-
<span class="cline-any cline-no"> </span>
|
|
844
|
-
<span class="cline-any cline-no"> </span>
|
|
845
|
-
<span class="cline-any cline-no"> </span>
|
|
846
|
-
<span class="cline-any cline-no"> </span>
|
|
847
|
-
<span class="cline-any cline-no"> </span>
|
|
848
|
-
<span class="cline-any cline-no"> </span>
|
|
849
|
-
<span class="cline-any cline-no"> </span>
|
|
850
|
-
<span class="cline-any cline-no"> </span>
|
|
851
|
-
<span class="cline-any cline-neutral"> </span>
|
|
852
|
-
<span class="cline-any cline-no"> </span>
|
|
853
|
-
<span class="cline-any cline-no"> </span>
|
|
854
|
-
<span class="cline-any cline-no"> </span>
|
|
855
|
-
<span class="cline-any cline-no"> </span>
|
|
856
|
-
<span class="cline-any cline-no"> </span>
|
|
857
|
-
<span class="cline-any cline-no"> </span>
|
|
858
|
-
<span class="cline-any cline-no"> </span>
|
|
859
|
-
<span class="cline-any cline-no"> </span>
|
|
860
|
-
<span class="cline-any cline-no"> </span>
|
|
861
|
-
<span class="cline-any cline-no"> </span>
|
|
862
|
-
<span class="cline-any cline-no"> </span>
|
|
863
|
-
<span class="cline-any cline-no"> </span>
|
|
864
|
-
<span class="cline-any cline-no"> </span>
|
|
865
|
-
<span class="cline-any cline-no"> </span>
|
|
866
|
-
<span class="cline-any cline-no"> </span>
|
|
867
|
-
<span class="cline-any cline-no"> </span>
|
|
868
|
-
<span class="cline-any cline-no"> </span>
|
|
869
|
-
<span class="cline-any cline-no"> </span>
|
|
870
|
-
<span class="cline-any cline-no"> </span>
|
|
871
|
-
<span class="cline-any cline-no"> </span>
|
|
872
|
-
<span class="cline-any cline-no"> </span>
|
|
873
|
-
<span class="cline-any cline-no"> </span>
|
|
874
|
-
<span class="cline-any cline-no"> </span>
|
|
875
|
-
<span class="cline-any cline-no"> </span>
|
|
876
|
-
<span class="cline-any cline-no"> </span>
|
|
877
|
-
<span class="cline-any cline-no"> </span>
|
|
878
|
-
<span class="cline-any cline-no"> </span>
|
|
879
|
-
<span class="cline-any cline-no"> </span>
|
|
880
|
-
<span class="cline-any cline-no"> </span>
|
|
881
|
-
<span class="cline-any cline-no"> </span>
|
|
882
|
-
<span class="cline-any cline-neutral"> </span>
|
|
883
|
-
<span class="cline-any cline-no"> </span>
|
|
884
|
-
<span class="cline-any cline-no"> </span>
|
|
885
|
-
<span class="cline-any cline-no"> </span>
|
|
886
|
-
<span class="cline-any cline-no"> </span>
|
|
887
|
-
<span class="cline-any cline-no"> </span>
|
|
888
|
-
<span class="cline-any cline-no"> </span>
|
|
889
|
-
<span class="cline-any cline-no"> </span>
|
|
890
|
-
<span class="cline-any cline-no"> </span>
|
|
891
|
-
<span class="cline-any cline-no"> </span>
|
|
892
|
-
<span class="cline-any cline-no"> </span>
|
|
893
|
-
<span class="cline-any cline-no"> </span>
|
|
894
|
-
<span class="cline-any cline-no"> </span>
|
|
895
|
-
<span class="cline-any cline-no"> </span>
|
|
896
|
-
<span class="cline-any cline-no"> </span>
|
|
897
|
-
<span class="cline-any cline-no"> </span>
|
|
898
|
-
<span class="cline-any cline-no"> </span>
|
|
899
|
-
<span class="cline-any cline-no"> </span>
|
|
900
|
-
<span class="cline-any cline-no"> </span>
|
|
901
|
-
<span class="cline-any cline-no"> </span>
|
|
902
|
-
<span class="cline-any cline-neutral"> </span>
|
|
903
|
-
<span class="cline-any cline-no"> </span>
|
|
904
|
-
<span class="cline-any cline-no"> </span>
|
|
905
|
-
<span class="cline-any cline-no"> </span>
|
|
906
|
-
<span class="cline-any cline-no"> </span>
|
|
907
|
-
<span class="cline-any cline-no"> </span>
|
|
908
|
-
<span class="cline-any cline-no"> </span>
|
|
909
|
-
<span class="cline-any cline-no"> </span>
|
|
910
|
-
<span class="cline-any cline-no"> </span>
|
|
911
|
-
<span class="cline-any cline-no"> </span>
|
|
912
|
-
<span class="cline-any cline-no"> </span>
|
|
913
|
-
<span class="cline-any cline-no"> </span>
|
|
914
|
-
<span class="cline-any cline-no"> </span>
|
|
915
|
-
<span class="cline-any cline-no"> </span>
|
|
916
|
-
<span class="cline-any cline-no"> </span>
|
|
917
|
-
<span class="cline-any cline-no"> </span>
|
|
918
|
-
<span class="cline-any cline-no"> </span>
|
|
919
|
-
<span class="cline-any cline-no"> </span>
|
|
920
|
-
<span class="cline-any cline-no"> </span>
|
|
921
|
-
<span class="cline-any cline-no"> </span>
|
|
922
|
-
<span class="cline-any cline-no"> </span>
|
|
923
|
-
<span class="cline-any cline-no"> </span>
|
|
924
|
-
<span class="cline-any cline-neutral"> </span>
|
|
925
|
-
<span class="cline-any cline-neutral"> </span>
|
|
926
|
-
<span class="cline-any cline-neutral"> </span>
|
|
927
|
-
<span class="cline-any cline-neutral"> </span>
|
|
928
|
-
<span class="cline-any cline-no"> </span>
|
|
929
|
-
<span class="cline-any cline-neutral"> </span>
|
|
930
|
-
<span class="cline-any cline-no"> </span>
|
|
931
|
-
<span class="cline-any cline-neutral"> </span>
|
|
932
|
-
<span class="cline-any cline-no"> </span>
|
|
933
|
-
<span class="cline-any cline-no"> </span>
|
|
934
|
-
<span class="cline-any cline-no"> </span>
|
|
935
|
-
<span class="cline-any cline-neutral"> </span>
|
|
936
|
-
<span class="cline-any cline-no"> </span>
|
|
937
|
-
<span class="cline-any cline-no"> </span>
|
|
938
|
-
<span class="cline-any cline-no"> </span>
|
|
939
|
-
<span class="cline-any cline-neutral"> </span>
|
|
940
|
-
<span class="cline-any cline-no"> </span>
|
|
941
|
-
<span class="cline-any cline-neutral"> </span>
|
|
942
|
-
<span class="cline-any cline-no"> </span>
|
|
943
|
-
<span class="cline-any cline-no"> </span>
|
|
944
|
-
<span class="cline-any cline-neutral"> </span>
|
|
945
|
-
<span class="cline-any cline-no"> </span>
|
|
946
|
-
<span class="cline-any cline-no"> </span>
|
|
947
|
-
<span class="cline-any cline-no"> </span>
|
|
948
|
-
<span class="cline-any cline-no"> </span>
|
|
949
|
-
<span class="cline-any cline-no"> </span>
|
|
950
|
-
<span class="cline-any cline-no"> </span>
|
|
951
|
-
<span class="cline-any cline-no"> </span>
|
|
952
|
-
<span class="cline-any cline-neutral"> </span>
|
|
953
|
-
<span class="cline-any cline-no"> </span>
|
|
954
|
-
<span class="cline-any cline-no"> </span>
|
|
955
|
-
<span class="cline-any cline-no"> </span>
|
|
956
|
-
<span class="cline-any cline-no"> </span>
|
|
957
|
-
<span class="cline-any cline-no"> </span>
|
|
958
|
-
<span class="cline-any cline-no"> </span>
|
|
959
|
-
<span class="cline-any cline-no"> </span>
|
|
960
|
-
<span class="cline-any cline-no"> </span>
|
|
961
|
-
<span class="cline-any cline-no"> </span>
|
|
962
|
-
<span class="cline-any cline-no"> </span>
|
|
963
|
-
<span class="cline-any cline-no"> </span>
|
|
964
|
-
<span class="cline-any cline-neutral"> </span>
|
|
965
|
-
<span class="cline-any cline-no"> </span>
|
|
966
|
-
<span class="cline-any cline-no"> </span>
|
|
967
|
-
<span class="cline-any cline-no"> </span>
|
|
968
|
-
<span class="cline-any cline-no"> </span>
|
|
969
|
-
<span class="cline-any cline-no"> </span>
|
|
970
|
-
<span class="cline-any cline-no"> </span>
|
|
971
|
-
<span class="cline-any cline-no"> </span>
|
|
972
|
-
<span class="cline-any cline-no"> </span>
|
|
973
|
-
<span class="cline-any cline-no"> </span>
|
|
974
|
-
<span class="cline-any cline-no"> </span>
|
|
975
|
-
<span class="cline-any cline-no"> </span>
|
|
976
|
-
<span class="cline-any cline-no"> </span>
|
|
977
|
-
<span class="cline-any cline-no"> </span>
|
|
978
|
-
<span class="cline-any cline-no"> </span>
|
|
979
|
-
<span class="cline-any cline-neutral"> </span>
|
|
980
|
-
<span class="cline-any cline-no"> </span>
|
|
981
|
-
<span class="cline-any cline-no"> </span>
|
|
982
|
-
<span class="cline-any cline-no"> </span>
|
|
983
|
-
<span class="cline-any cline-no"> </span>
|
|
984
|
-
<span class="cline-any cline-no"> </span>
|
|
985
|
-
<span class="cline-any cline-no"> </span>
|
|
986
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">/* Copyright(C) 2021-2024, donavanbecker (https://github.com/donavanbecker). All rights reserved.
|
|
987
|
-
*
|
|
988
|
-
* contact.ts: @switchbot/homebridge-switchbot.
|
|
989
|
-
*/
|
|
990
|
-
import type { CharacteristicValue, PlatformAccessory, Service } from 'homebridge'
|
|
991
|
-
import type { contactSensorServiceData, contactSensorStatus, contactSensorWebhookContext, device, SwitchBotBLE } from 'node-switchbot'
|
|
992
|
-
|
|
993
|
-
import type { SwitchBotPlatform } from '../platform.js'
|
|
994
|
-
import type { contactConfig, devicesConfig } from '../settings.js'
|
|
995
|
-
|
|
996
|
-
/*
|
|
997
|
-
* For Testing Locally:
|
|
998
|
-
* import { SwitchBotBLEModel, SwitchBotBLEModelName } from '/Users/Shared/GitHub/OpenWonderLabs/node-switchbot/dist/index.js';
|
|
999
|
-
*/
|
|
1000
|
-
import { SwitchBotBLEModel, SwitchBotBLEModelName } from 'node-switchbot'
|
|
1001
|
-
import { interval, skipWhile, Subject } from 'rxjs'
|
|
1002
|
-
|
|
1003
|
-
import { formatDeviceIdAsMac } from '../utils.js'
|
|
1004
|
-
import { deviceBase } from './device.js'
|
|
1005
|
-
|
|
1006
|
-
/**
|
|
1007
|
-
* Platform Accessory
|
|
1008
|
-
* An instance of this class is created for each accessory your platform registers
|
|
1009
|
-
* Each accessory may expose multiple services of different service types.
|
|
1010
|
-
*/
|
|
1011
|
-
export <span class="fstat-no" title="function not covered" ><span class="branch-0 cbranch-no" title="branch not covered" >class Contact extends deviceBase {</span></span>
|
|
1012
|
-
// Services
|
|
1013
|
-
<span class="cstat-no" title="statement not covered" > private ContactSensor: {</span>
|
|
1014
|
-
Name: CharacteristicValue
|
|
1015
|
-
Service: Service
|
|
1016
|
-
ContactSensorState: CharacteristicValue
|
|
1017
|
-
}
|
|
1018
|
-
|
|
1019
|
-
<span class="cstat-no" title="statement not covered" > private Battery: {</span>
|
|
1020
|
-
Name: CharacteristicValue
|
|
1021
|
-
Service: Service
|
|
1022
|
-
BatteryLevel: CharacteristicValue
|
|
1023
|
-
StatusLowBattery: CharacteristicValue
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
|
-
<span class="cstat-no" title="statement not covered" > private MotionSensor?: {</span>
|
|
1027
|
-
Name: CharacteristicValue
|
|
1028
|
-
Service: Service
|
|
1029
|
-
MotionDetected: CharacteristicValue
|
|
1030
|
-
}
|
|
1031
|
-
|
|
1032
|
-
<span class="cstat-no" title="statement not covered" > private LightSensor?: {</span>
|
|
1033
|
-
Name: CharacteristicValue
|
|
1034
|
-
Service: Service
|
|
1035
|
-
CurrentAmbientLightLevel: CharacteristicValue
|
|
1036
|
-
}
|
|
1037
|
-
|
|
1038
|
-
// OpenAPI
|
|
1039
|
-
<span class="cstat-no" title="statement not covered" > deviceStatus!: contactSensorStatus</span>
|
|
1040
|
-
|
|
1041
|
-
// Webhook
|
|
1042
|
-
<span class="cstat-no" title="statement not covered" > webhookContext!: contactSensorWebhookContext</span>
|
|
1043
|
-
|
|
1044
|
-
// BLE
|
|
1045
|
-
<span class="cstat-no" title="statement not covered" > serviceData!: contactSensorServiceData</span>
|
|
1046
|
-
|
|
1047
|
-
// Updates
|
|
1048
|
-
<span class="cstat-no" title="statement not covered" > contactUpdateInProgress!: boolean</span>
|
|
1049
|
-
<span class="cstat-no" title="statement not covered" > doContactUpdate!: Subject<void></span>
|
|
1050
|
-
|
|
1051
|
-
<span class="cstat-no" title="statement not covered" > constructor(</span>
|
|
1052
|
-
<span class="cstat-no" title="statement not covered" > readonly platform: SwitchBotPlatform,</span>
|
|
1053
|
-
<span class="cstat-no" title="statement not covered" > accessory: PlatformAccessory,</span>
|
|
1054
|
-
<span class="cstat-no" title="statement not covered" > device: device & devicesConfig,</span>
|
|
1055
|
-
<span class="cstat-no" title="statement not covered" > ) {</span>
|
|
1056
|
-
<span class="cstat-no" title="statement not covered" > super(platform, accessory, device)</span>
|
|
1057
|
-
// Set category
|
|
1058
|
-
<span class="cstat-no" title="statement not covered" > accessory.category = this.hap.Categories.SENSOR</span>
|
|
1059
|
-
|
|
1060
|
-
// this is subject we use to track when we need to POST changes to the SwitchBot API
|
|
1061
|
-
<span class="cstat-no" title="statement not covered" > this.doContactUpdate = new Subject()</span>
|
|
1062
|
-
<span class="cstat-no" title="statement not covered" > this.contactUpdateInProgress = false</span>
|
|
1063
|
-
|
|
1064
|
-
// Initialize Contact Sensor Service
|
|
1065
|
-
<span class="cstat-no" title="statement not covered" > accessory.context.ContactSensor = accessory.context.ContactSensor ?? {}</span>
|
|
1066
|
-
<span class="cstat-no" title="statement not covered" > this.ContactSensor = {</span>
|
|
1067
|
-
<span class="cstat-no" title="statement not covered" > Name: accessory.displayName,</span>
|
|
1068
|
-
<span class="cstat-no" title="statement not covered" > Service: accessory.getService(this.hap.Service.ContactSensor) ?? accessory.addService(this.hap.Service.ContactSensor) as Service,</span>
|
|
1069
|
-
<span class="cstat-no" title="statement not covered" > ContactSensorState: accessory.context.ContactSensorState ?? this.hap.Characteristic.ContactSensorState.CONTACT_DETECTED,</span>
|
|
1070
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1071
|
-
<span class="cstat-no" title="statement not covered" > accessory.context.ContactSensor = this.ContactSensor as object</span>
|
|
1072
|
-
|
|
1073
|
-
// Initialize ContactSensor Characteristics
|
|
1074
|
-
<span class="cstat-no" title="statement not covered" > this.ContactSensor.Service.setCharacteristic(this.hap.Characteristic.Name, this.ContactSensor.Name).setCharacteristic(this.hap.Characteristic.StatusActive, true).getCharacteristic(this.hap.Characteristic.ContactSensorState).onGet(() => {</span>
|
|
1075
|
-
<span class="cstat-no" title="statement not covered" > return this.ContactSensor.ContactSensorState</span>
|
|
1076
|
-
<span class="cstat-no" title="statement not covered" > })</span>
|
|
1077
|
-
|
|
1078
|
-
// Initialize Battery Service
|
|
1079
|
-
<span class="cstat-no" title="statement not covered" > accessory.context.Battery = accessory.context.Battery ?? {}</span>
|
|
1080
|
-
<span class="cstat-no" title="statement not covered" > this.Battery = {</span>
|
|
1081
|
-
<span class="cstat-no" title="statement not covered" > Name: `${accessory.displayName} Battery`,</span>
|
|
1082
|
-
<span class="cstat-no" title="statement not covered" > Service: accessory.getService(this.hap.Service.Battery) ?? accessory.addService(this.hap.Service.Battery) as Service,</span>
|
|
1083
|
-
<span class="cstat-no" title="statement not covered" > BatteryLevel: accessory.context.BatteryLevel ?? 100,</span>
|
|
1084
|
-
<span class="cstat-no" title="statement not covered" > StatusLowBattery: accessory.context.StatusLowBattery ?? this.hap.Characteristic.StatusLowBattery.BATTERY_LEVEL_NORMAL,</span>
|
|
1085
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1086
|
-
<span class="cstat-no" title="statement not covered" > accessory.context.Battery = this.Battery as object</span>
|
|
1087
|
-
|
|
1088
|
-
// Initialize Battery Characteristics
|
|
1089
|
-
<span class="cstat-no" title="statement not covered" > this.Battery.Service.setCharacteristic(this.hap.Characteristic.Name, this.Battery.Name).setCharacteristic(this.hap.Characteristic.ChargingState, this.hap.Characteristic.ChargingState.NOT_CHARGEABLE).getCharacteristic(this.hap.Characteristic.BatteryLevel).onGet(() => {</span>
|
|
1090
|
-
<span class="cstat-no" title="statement not covered" > return this.Battery.BatteryLevel</span>
|
|
1091
|
-
<span class="cstat-no" title="statement not covered" > })</span>
|
|
1092
|
-
|
|
1093
|
-
<span class="cstat-no" title="statement not covered" > this.Battery.Service.setCharacteristic(this.hap.Characteristic.StatusLowBattery, this.Battery.StatusLowBattery).getCharacteristic(this.hap.Characteristic.StatusLowBattery).onGet(() => {</span>
|
|
1094
|
-
<span class="cstat-no" title="statement not covered" > return this.Battery.StatusLowBattery</span>
|
|
1095
|
-
<span class="cstat-no" title="statement not covered" > })</span>
|
|
1096
|
-
|
|
1097
|
-
// Initialize Motion Sensor Service
|
|
1098
|
-
<span class="cstat-no" title="statement not covered" > if ((this.device as contactConfig).hide_motionsensor) {</span>
|
|
1099
|
-
<span class="cstat-no" title="statement not covered" > if (this.MotionSensor) {</span>
|
|
1100
|
-
<span class="cstat-no" title="statement not covered" > this.debugLog('Removing Motion Sensor Service')</span>
|
|
1101
|
-
<span class="cstat-no" title="statement not covered" > this.MotionSensor.Service = accessory.getService(this.hap.Service.MotionSensor) as Service</span>
|
|
1102
|
-
<span class="cstat-no" title="statement not covered" > accessory.removeService(this.MotionSensor.Service)</span>
|
|
1103
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1104
|
-
<span class="cstat-no" title="statement not covered" > } else {</span>
|
|
1105
|
-
<span class="cstat-no" title="statement not covered" > accessory.context.MotionSensor = accessory.context.MotionSensor ?? {}</span>
|
|
1106
|
-
<span class="cstat-no" title="statement not covered" > this.MotionSensor = {</span>
|
|
1107
|
-
<span class="cstat-no" title="statement not covered" > Name: `${accessory.displayName} Motion Sensor`,</span>
|
|
1108
|
-
<span class="cstat-no" title="statement not covered" > Service: accessory.getService(this.hap.Service.MotionSensor) ?? accessory.addService(this.hap.Service.MotionSensor) as Service,</span>
|
|
1109
|
-
<span class="cstat-no" title="statement not covered" > MotionDetected: accessory.context.MotionDetected ?? false,</span>
|
|
1110
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1111
|
-
<span class="cstat-no" title="statement not covered" > accessory.context.MotionSensor = this.MotionSensor as object</span>
|
|
1112
|
-
|
|
1113
|
-
// Motion Sensor Characteristics
|
|
1114
|
-
<span class="cstat-no" title="statement not covered" > this.MotionSensor.Service.setCharacteristic(this.hap.Characteristic.Name, this.MotionSensor.Name).setCharacteristic(this.hap.Characteristic.StatusActive, true).getCharacteristic(this.hap.Characteristic.MotionDetected).onGet(() => {</span>
|
|
1115
|
-
<span class="cstat-no" title="statement not covered" > return this.MotionSensor!.MotionDetected</span>
|
|
1116
|
-
<span class="cstat-no" title="statement not covered" > })</span>
|
|
1117
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1118
|
-
|
|
1119
|
-
// Initialize Light Sensor Service
|
|
1120
|
-
<span class="cstat-no" title="statement not covered" > if ((device as contactConfig).hide_lightsensor) {</span>
|
|
1121
|
-
<span class="cstat-no" title="statement not covered" > if (this.LightSensor) {</span>
|
|
1122
|
-
<span class="cstat-no" title="statement not covered" > this.debugLog('Removing Light Sensor Service')</span>
|
|
1123
|
-
<span class="cstat-no" title="statement not covered" > this.LightSensor.Service = accessory.getService(this.hap.Service.LightSensor) as Service</span>
|
|
1124
|
-
<span class="cstat-no" title="statement not covered" > accessory.removeService(this.LightSensor.Service)</span>
|
|
1125
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1126
|
-
<span class="cstat-no" title="statement not covered" > } else {</span>
|
|
1127
|
-
<span class="cstat-no" title="statement not covered" > accessory.context.LightSensor = accessory.context.LightSensor ?? {}</span>
|
|
1128
|
-
<span class="cstat-no" title="statement not covered" > this.LightSensor = {</span>
|
|
1129
|
-
<span class="cstat-no" title="statement not covered" > Name: `${accessory.displayName} Light Sensor`,</span>
|
|
1130
|
-
<span class="cstat-no" title="statement not covered" > Service: accessory.getService(this.hap.Service.LightSensor) ?? accessory.addService(this.hap.Service.LightSensor) as Service,</span>
|
|
1131
|
-
<span class="cstat-no" title="statement not covered" > CurrentAmbientLightLevel: accessory.context.CurrentAmbientLightLevel ?? 0.0001,</span>
|
|
1132
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1133
|
-
<span class="cstat-no" title="statement not covered" > accessory.context.LightSensor = this.LightSensor as object</span>
|
|
1134
|
-
|
|
1135
|
-
// Light Sensor Characteristics
|
|
1136
|
-
<span class="cstat-no" title="statement not covered" > this.LightSensor.Service.setCharacteristic(this.hap.Characteristic.Name, this.LightSensor.Name).setCharacteristic(this.hap.Characteristic.StatusActive, true).getCharacteristic(this.hap.Characteristic.CurrentAmbientLightLevel).onGet(() => {</span>
|
|
1137
|
-
<span class="cstat-no" title="statement not covered" > return this.LightSensor!.CurrentAmbientLightLevel</span>
|
|
1138
|
-
<span class="cstat-no" title="statement not covered" > })</span>
|
|
1139
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1140
|
-
|
|
1141
|
-
// Retrieve initial values and updateHomekit
|
|
1142
|
-
<span class="cstat-no" title="statement not covered" > try {</span>
|
|
1143
|
-
<span class="cstat-no" title="statement not covered" > this.debugLog('Retrieve initial values and update Homekit')</span>
|
|
1144
|
-
<span class="cstat-no" title="statement not covered" > this.refreshStatus()</span>
|
|
1145
|
-
<span class="cstat-no" title="statement not covered" > } catch (e: any) {</span>
|
|
1146
|
-
<span class="cstat-no" title="statement not covered" > this.errorLog(`failed to retrieve initial values and update Homekit, Error: ${e.message ?? e}`)</span>
|
|
1147
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1148
|
-
|
|
1149
|
-
// regisiter webhook event handler if enabled
|
|
1150
|
-
<span class="cstat-no" title="statement not covered" > try {</span>
|
|
1151
|
-
<span class="cstat-no" title="statement not covered" > this.debugLog('Registering Webhook Event Handler')</span>
|
|
1152
|
-
<span class="cstat-no" title="statement not covered" > this.registerWebhook()</span>
|
|
1153
|
-
<span class="cstat-no" title="statement not covered" > } catch (e: any) {</span>
|
|
1154
|
-
<span class="cstat-no" title="statement not covered" > this.errorLog(`failed to registerWebhook, Error: ${e.message ?? e}`)</span>
|
|
1155
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1156
|
-
|
|
1157
|
-
// regisiter platform BLE event handler if enabled
|
|
1158
|
-
<span class="cstat-no" title="statement not covered" > try {</span>
|
|
1159
|
-
<span class="cstat-no" title="statement not covered" > this.debugLog('Registering Platform BLE Event Handler')</span>
|
|
1160
|
-
<span class="cstat-no" title="statement not covered" > this.registerPlatformBLE()</span>
|
|
1161
|
-
<span class="cstat-no" title="statement not covered" > } catch (e: any) {</span>
|
|
1162
|
-
<span class="cstat-no" title="statement not covered" > this.errorLog(`failed to registerPlatformBLE, Error: ${e.message ?? e}`)</span>
|
|
1163
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1164
|
-
|
|
1165
|
-
// Start an update interval
|
|
1166
|
-
<span class="cstat-no" title="statement not covered" > interval(this.deviceRefreshRate * 1000)</span>
|
|
1167
|
-
<span class="cstat-no" title="statement not covered" > .pipe(skipWhile(() => this.contactUpdateInProgress))</span>
|
|
1168
|
-
<span class="cstat-no" title="statement not covered" > .subscribe(async () => {</span>
|
|
1169
|
-
<span class="cstat-no" title="statement not covered" > await this.refreshStatus()</span>
|
|
1170
|
-
<span class="cstat-no" title="statement not covered" > })</span>
|
|
1171
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1172
|
-
|
|
1173
|
-
<span class="cstat-no" title="statement not covered" > async BLEparseStatus(): Promise<void> {</span>
|
|
1174
|
-
<span class="cstat-no" title="statement not covered" > this.debugLog('BLEparseStatus')</span>
|
|
1175
|
-
// ContactSensorState
|
|
1176
|
-
<span class="cstat-no" title="statement not covered" > this.ContactSensor.ContactSensorState = this.getContactSensorState(this.serviceData.doorState)</span>
|
|
1177
|
-
<span class="cstat-no" title="statement not covered" > this.debugLog(`ContactSensorState: ${this.ContactSensor.ContactSensorState}`)</span>
|
|
1178
|
-
|
|
1179
|
-
// MotionDetected
|
|
1180
|
-
<span class="cstat-no" title="statement not covered" > if (!(this.device as contactConfig).hide_motionsensor && this.MotionSensor?.Service) {</span>
|
|
1181
|
-
<span class="cstat-no" title="statement not covered" > this.MotionSensor.MotionDetected = this.serviceData.movement</span>
|
|
1182
|
-
<span class="cstat-no" title="statement not covered" > this.debugLog(`MotionDetected: ${this.MotionSensor.MotionDetected}`)</span>
|
|
1183
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1184
|
-
// CurrentAmbientLightLevel
|
|
1185
|
-
<span class="cstat-no" title="statement not covered" > if (!(this.device as contactConfig).hide_lightsensor && this.LightSensor?.Service) {</span>
|
|
1186
|
-
<span class="cstat-no" title="statement not covered" > const set_minLux = (this.device as contactConfig).set_minLux ?? 1</span>
|
|
1187
|
-
<span class="cstat-no" title="statement not covered" > const set_maxLux = (this.device as contactConfig).set_maxLux ?? 6001</span>
|
|
1188
|
-
<span class="cstat-no" title="statement not covered" > const lightLevel = this.serviceData.lightLevel === 'bright' ? set_maxLux : set_minLux</span>
|
|
1189
|
-
<span class="cstat-no" title="statement not covered" > this.LightSensor.CurrentAmbientLightLevel = this.getLightLevel(lightLevel, set_minLux, set_maxLux, 2)</span>
|
|
1190
|
-
<span class="cstat-no" title="statement not covered" > this.debugLog(`LightLevel: ${this.serviceData.lightLevel}, CurrentAmbientLightLevel: ${this.LightSensor.CurrentAmbientLightLevel}`)</span>
|
|
1191
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1192
|
-
// Battery Info
|
|
1193
|
-
<span class="cstat-no" title="statement not covered" > if ('battery' in this.serviceData) {</span>
|
|
1194
|
-
// BatteryLevel
|
|
1195
|
-
<span class="cstat-no" title="statement not covered" > this.Battery.BatteryLevel = this.serviceData.battery</span>
|
|
1196
|
-
<span class="cstat-no" title="statement not covered" > this.debugLog(`BatteryLevel: ${this.Battery.BatteryLevel}`)</span>
|
|
1197
|
-
// StatusLowBattery
|
|
1198
|
-
<span class="cstat-no" title="statement not covered" > this.Battery.StatusLowBattery = this.Battery.BatteryLevel < 10</span>
|
|
1199
|
-
<span class="cstat-no" title="statement not covered" > ? this.hap.Characteristic.StatusLowBattery.BATTERY_LEVEL_LOW</span>
|
|
1200
|
-
<span class="cstat-no" title="statement not covered" > : this.hap.Characteristic.StatusLowBattery.BATTERY_LEVEL_NORMAL</span>
|
|
1201
|
-
<span class="cstat-no" title="statement not covered" > this.debugLog(`StatusLowBattery: ${this.Battery.StatusLowBattery}`)</span>
|
|
1202
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1203
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1204
|
-
|
|
1205
|
-
<span class="cstat-no" title="statement not covered" > async openAPIparseStatus(): Promise<void> {</span>
|
|
1206
|
-
<span class="cstat-no" title="statement not covered" > this.debugLog('openAPIparseStatus')</span>
|
|
1207
|
-
// Contact State
|
|
1208
|
-
<span class="cstat-no" title="statement not covered" > this.ContactSensor.ContactSensorState = this.getContactSensorState(this.deviceStatus.openState)</span>
|
|
1209
|
-
<span class="cstat-no" title="statement not covered" > this.debugLog(`ContactSensorState: ${this.ContactSensor.ContactSensorState}`)</span>
|
|
1210
|
-
|
|
1211
|
-
// MotionDetected
|
|
1212
|
-
<span class="cstat-no" title="statement not covered" > if (!(this.device as contactConfig).hide_motionsensor && this.MotionSensor?.Service) {</span>
|
|
1213
|
-
<span class="cstat-no" title="statement not covered" > this.MotionSensor.MotionDetected = this.deviceStatus.moveDetected</span>
|
|
1214
|
-
<span class="cstat-no" title="statement not covered" > this.debugLog(`MotionDetected: ${this.MotionSensor.MotionDetected}`)</span>
|
|
1215
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1216
|
-
// Light Level
|
|
1217
|
-
<span class="cstat-no" title="statement not covered" > if (!(this.device as contactConfig).hide_lightsensor && this.LightSensor?.Service) {</span>
|
|
1218
|
-
<span class="cstat-no" title="statement not covered" > const set_minLux = (this.device as contactConfig).set_minLux ?? 1</span>
|
|
1219
|
-
<span class="cstat-no" title="statement not covered" > const set_maxLux = (this.device as contactConfig).set_maxLux ?? 6001</span>
|
|
1220
|
-
<span class="cstat-no" title="statement not covered" > const lightLevel = this.deviceStatus.brightness === 'bright' ? set_maxLux : set_minLux</span>
|
|
1221
|
-
<span class="cstat-no" title="statement not covered" > this.LightSensor.CurrentAmbientLightLevel = this.getLightLevel(lightLevel, set_minLux, set_maxLux, 2)</span>
|
|
1222
|
-
<span class="cstat-no" title="statement not covered" > this.debugLog(`LightLevel: ${this.deviceStatus.brightness}, CurrentAmbientLightLevel: ${this.LightSensor.CurrentAmbientLightLevel}`)</span>
|
|
1223
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1224
|
-
// BatteryLevel
|
|
1225
|
-
<span class="cstat-no" title="statement not covered" > this.Battery.BatteryLevel = this.deviceStatus.battery</span>
|
|
1226
|
-
<span class="cstat-no" title="statement not covered" > this.debugLog(`BatteryLevel: ${this.Battery.BatteryLevel}`)</span>
|
|
1227
|
-
// StatusLowBattery
|
|
1228
|
-
<span class="cstat-no" title="statement not covered" > this.Battery.StatusLowBattery = this.Battery.BatteryLevel < 10</span>
|
|
1229
|
-
<span class="cstat-no" title="statement not covered" > ? this.hap.Characteristic.StatusLowBattery.BATTERY_LEVEL_LOW</span>
|
|
1230
|
-
<span class="cstat-no" title="statement not covered" > : this.hap.Characteristic.StatusLowBattery.BATTERY_LEVEL_NORMAL</span>
|
|
1231
|
-
<span class="cstat-no" title="statement not covered" > this.debugLog(`StatusLowBattery: ${this.Battery.StatusLowBattery}`)</span>
|
|
1232
|
-
// FirmwareVersion
|
|
1233
|
-
<span class="cstat-no" title="statement not covered" > if (this.deviceStatus.version) {</span>
|
|
1234
|
-
<span class="cstat-no" title="statement not covered" > const version = this.deviceStatus.version.toString()</span>
|
|
1235
|
-
<span class="cstat-no" title="statement not covered" > this.debugLog(`Firmware Version: ${version.replace(/^V|-.*$/g, '')}`)</span>
|
|
1236
|
-
<span class="cstat-no" title="statement not covered" > const deviceVersion = version.replace(/^V|-.*$/g, '') ?? '0.0.0'</span>
|
|
1237
|
-
<span class="cstat-no" title="statement not covered" > this.accessory</span>
|
|
1238
|
-
<span class="cstat-no" title="statement not covered" > .getService(this.hap.Service.AccessoryInformation)!</span>
|
|
1239
|
-
<span class="cstat-no" title="statement not covered" > .setCharacteristic(this.hap.Characteristic.HardwareRevision, deviceVersion)</span>
|
|
1240
|
-
<span class="cstat-no" title="statement not covered" > .setCharacteristic(this.hap.Characteristic.FirmwareRevision, deviceVersion)</span>
|
|
1241
|
-
<span class="cstat-no" title="statement not covered" > .getCharacteristic(this.hap.Characteristic.FirmwareRevision)</span>
|
|
1242
|
-
<span class="cstat-no" title="statement not covered" > .updateValue(deviceVersion)</span>
|
|
1243
|
-
<span class="cstat-no" title="statement not covered" > this.accessory.context.version = deviceVersion</span>
|
|
1244
|
-
<span class="cstat-no" title="statement not covered" > this.debugLog(`version: ${this.accessory.context.version}`)</span>
|
|
1245
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1246
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1247
|
-
|
|
1248
|
-
<span class="cstat-no" title="statement not covered" > async parseStatusWebhook(): Promise<void> {</span>
|
|
1249
|
-
<span class="cstat-no" title="statement not covered" > this.debugLog('parseStatusWebhook')</span>
|
|
1250
|
-
<span class="cstat-no" title="statement not covered" > this.debugLog(`(detectionState, brightness, openState) = Webhook:(${this.webhookContext.detectionState}, ${this.webhookContext.brightness}, ${this.webhookContext.openState}), current:(${this.MotionSensor?.MotionDetected}, ${this.LightSensor?.CurrentAmbientLightLevel}, ${this.ContactSensor.ContactSensorState})`)</span>
|
|
1251
|
-
// ContactSensorState
|
|
1252
|
-
<span class="cstat-no" title="statement not covered" > this.ContactSensor.ContactSensorState = this.getContactSensorState(this.webhookContext.openState)</span>
|
|
1253
|
-
<span class="cstat-no" title="statement not covered" > this.debugLog(`ContactSensorState: ${this.ContactSensor.ContactSensorState}`)</span>
|
|
1254
|
-
<span class="cstat-no" title="statement not covered" > if (!(this.device as contactConfig).hide_motionsensor && this.MotionSensor?.Service) {</span>
|
|
1255
|
-
// MotionDetected
|
|
1256
|
-
<span class="cstat-no" title="statement not covered" > this.MotionSensor.MotionDetected = this.webhookContext.detectionState === 'DETECTED'</span>
|
|
1257
|
-
<span class="cstat-no" title="statement not covered" > this.debugLog(`MotionDetected: ${this.MotionSensor.MotionDetected}`)</span>
|
|
1258
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1259
|
-
<span class="cstat-no" title="statement not covered" > if (!(this.device as contactConfig).hide_lightsensor && this.LightSensor?.Service) {</span>
|
|
1260
|
-
<span class="cstat-no" title="statement not covered" > const set_minLux = (this.device as contactConfig).set_minLux ?? 1</span>
|
|
1261
|
-
<span class="cstat-no" title="statement not covered" > const set_maxLux = (this.device as contactConfig).set_maxLux ?? 6001</span>
|
|
1262
|
-
<span class="cstat-no" title="statement not covered" > const lightLevel = this.webhookContext.brightness === 'bright' ? set_maxLux : set_minLux</span>
|
|
1263
|
-
<span class="cstat-no" title="statement not covered" > this.LightSensor.CurrentAmbientLightLevel = this.getLightLevel(lightLevel, set_minLux, set_maxLux, 2)</span>
|
|
1264
|
-
<span class="cstat-no" title="statement not covered" > this.debugLog(`LightLevel: ${this.webhookContext.brightness}, CurrentAmbientLightLevel: ${this.LightSensor.CurrentAmbientLightLevel}`)</span>
|
|
1265
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1266
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1267
|
-
|
|
1268
|
-
/**
|
|
1269
|
-
* Asks the SwitchBot API for the latest device information
|
|
1270
|
-
*/
|
|
1271
|
-
<span class="cstat-no" title="statement not covered" > async refreshStatus(): Promise<void> {</span>
|
|
1272
|
-
<span class="cstat-no" title="statement not covered" > if (!this.device.enableCloudService && this.OpenAPI) {</span>
|
|
1273
|
-
<span class="cstat-no" title="statement not covered" > this.errorLog(`refreshStatus enableCloudService: ${this.device.enableCloudService}`)</span>
|
|
1274
|
-
<span class="cstat-no" title="statement not covered" > } else if (this.BLE) {</span>
|
|
1275
|
-
<span class="cstat-no" title="statement not covered" > await this.BLERefreshStatus()</span>
|
|
1276
|
-
<span class="cstat-no" title="statement not covered" > } else if (this.OpenAPI && this.platform.config.credentials?.token) {</span>
|
|
1277
|
-
<span class="cstat-no" title="statement not covered" > await this.openAPIRefreshStatus()</span>
|
|
1278
|
-
<span class="cstat-no" title="statement not covered" > } else {</span>
|
|
1279
|
-
<span class="cstat-no" title="statement not covered" > await this.offlineOff()</span>
|
|
1280
|
-
<span class="cstat-no" title="statement not covered" > this.debugWarnLog(`Connection Type: ${this.device.connectionType}, refreshStatus will not happen.`)</span>
|
|
1281
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1282
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1283
|
-
|
|
1284
|
-
<span class="cstat-no" title="statement not covered" > async BLERefreshStatus(): Promise<void> {</span>
|
|
1285
|
-
<span class="cstat-no" title="statement not covered" > this.debugLog('BLERefreshStatus')</span>
|
|
1286
|
-
<span class="cstat-no" title="statement not covered" > const switchBotBLE = await this.switchbotBLE()</span>
|
|
1287
|
-
<span class="cstat-no" title="statement not covered" > if (switchBotBLE === undefined) {</span>
|
|
1288
|
-
<span class="cstat-no" title="statement not covered" > await this.BLERefreshConnection(switchBotBLE)</span>
|
|
1289
|
-
<span class="cstat-no" title="statement not covered" > } else {</span>
|
|
1290
|
-
// Start to monitor advertisement packets
|
|
1291
|
-
<span class="cstat-no" title="statement not covered" > (async () => {</span>
|
|
1292
|
-
// Start to monitor advertisement packets
|
|
1293
|
-
<span class="cstat-no" title="statement not covered" > const serviceData = await this.monitorAdvertisementPackets(switchBotBLE) as contactSensorServiceData</span>
|
|
1294
|
-
// Update HomeKit
|
|
1295
|
-
<span class="cstat-no" title="statement not covered" > if (serviceData.model === SwitchBotBLEModel.ContactSensor && serviceData.modelName === SwitchBotBLEModelName.ContactSensor) {</span>
|
|
1296
|
-
<span class="cstat-no" title="statement not covered" > this.serviceData = serviceData</span>
|
|
1297
|
-
<span class="cstat-no" title="statement not covered" > if (serviceData !== undefined || serviceData !== null) {</span>
|
|
1298
|
-
<span class="cstat-no" title="statement not covered" > await this.BLEparseStatus()</span>
|
|
1299
|
-
<span class="cstat-no" title="statement not covered" > await this.updateHomeKitCharacteristics()</span>
|
|
1300
|
-
<span class="cstat-no" title="statement not covered" > } else {</span>
|
|
1301
|
-
<span class="cstat-no" title="statement not covered" > this.errorLog(`serviceData is either undefined or null, serviceData: ${JSON.stringify(serviceData)}`)</span>
|
|
1302
|
-
<span class="cstat-no" title="statement not covered" > await this.BLERefreshConnection(switchBotBLE)</span>
|
|
1303
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1304
|
-
<span class="cstat-no" title="statement not covered" > } else {</span>
|
|
1305
|
-
<span class="cstat-no" title="statement not covered" > this.errorLog(`failed to get serviceData, serviceData: ${JSON.stringify(serviceData)}`)</span>
|
|
1306
|
-
<span class="cstat-no" title="statement not covered" > await this.BLERefreshConnection(switchBotBLE)</span>
|
|
1307
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1308
|
-
<span class="cstat-no" title="statement not covered" > })()</span>
|
|
1309
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1310
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1311
|
-
|
|
1312
|
-
<span class="cstat-no" title="statement not covered" > async registerPlatformBLE(): Promise<void> {</span>
|
|
1313
|
-
<span class="cstat-no" title="statement not covered" > this.debugLog('registerPlatformBLE')</span>
|
|
1314
|
-
<span class="cstat-no" title="statement not covered" > if (this.config.options?.BLE && !this.device.disablePlatformBLE) {</span>
|
|
1315
|
-
<span class="cstat-no" title="statement not covered" > this.debugLog('is listening to Platform BLE.')</span>
|
|
1316
|
-
<span class="cstat-no" title="statement not covered" > try {</span>
|
|
1317
|
-
<span class="cstat-no" title="statement not covered" > const formattedDeviceId = formatDeviceIdAsMac(this.device.deviceId)</span>
|
|
1318
|
-
<span class="cstat-no" title="statement not covered" > this.device.bleMac = formattedDeviceId</span>
|
|
1319
|
-
<span class="cstat-no" title="statement not covered" > this.debugLog(`bleMac: ${this.device.bleMac}`)</span>
|
|
1320
|
-
<span class="cstat-no" title="statement not covered" > this.platform.bleEventHandler[this.device.bleMac] = async (context: contactSensorServiceData) => {</span>
|
|
1321
|
-
<span class="cstat-no" title="statement not covered" > try {</span>
|
|
1322
|
-
<span class="cstat-no" title="statement not covered" > this.serviceData = context</span>
|
|
1323
|
-
<span class="cstat-no" title="statement not covered" > if (context !== undefined || context !== null) {</span>
|
|
1324
|
-
<span class="cstat-no" title="statement not covered" > this.debugLog(`received BLE: ${JSON.stringify(context)}`)</span>
|
|
1325
|
-
<span class="cstat-no" title="statement not covered" > await this.BLEparseStatus()</span>
|
|
1326
|
-
<span class="cstat-no" title="statement not covered" > await this.updateHomeKitCharacteristics()</span>
|
|
1327
|
-
<span class="cstat-no" title="statement not covered" > } else {</span>
|
|
1328
|
-
<span class="cstat-no" title="statement not covered" > this.errorLog(`context is either undefined or null, context: ${JSON.stringify(context)}`)</span>
|
|
1329
|
-
<span class="cstat-no" title="statement not covered" > await this.BLERefreshConnection(context)</span>
|
|
1330
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1331
|
-
<span class="cstat-no" title="statement not covered" > } catch (e: any) {</span>
|
|
1332
|
-
<span class="cstat-no" title="statement not covered" > this.errorLog(`failed to handle BLE. Received: ${JSON.stringify(context)} Error: ${e.message ?? e}`)</span>
|
|
1333
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1334
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1335
|
-
<span class="cstat-no" title="statement not covered" > } catch (error) {</span>
|
|
1336
|
-
<span class="cstat-no" title="statement not covered" > this.errorLog(`failed to format device ID as MAC, Error: ${error}`)</span>
|
|
1337
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1338
|
-
<span class="cstat-no" title="statement not covered" > } else {</span>
|
|
1339
|
-
<span class="cstat-no" title="statement not covered" > this.debugLog('is not listening to Platform BLE')</span>
|
|
1340
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1341
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1342
|
-
|
|
1343
|
-
<span class="cstat-no" title="statement not covered" > async openAPIRefreshStatus(): Promise<void> {</span>
|
|
1344
|
-
<span class="cstat-no" title="statement not covered" > this.debugLog('openAPIRefreshStatus')</span>
|
|
1345
|
-
<span class="cstat-no" title="statement not covered" > try {</span>
|
|
1346
|
-
<span class="cstat-no" title="statement not covered" > const response = await this.deviceRefreshStatus()</span>
|
|
1347
|
-
<span class="cstat-no" title="statement not covered" > const deviceStatus: any = response.body</span>
|
|
1348
|
-
<span class="cstat-no" title="statement not covered" > this.debugLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`)</span>
|
|
1349
|
-
<span class="cstat-no" title="statement not covered" > if (await this.successfulStatusCodes(deviceStatus)) {</span>
|
|
1350
|
-
<span class="cstat-no" title="statement not covered" > this.debugSuccessLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`)</span>
|
|
1351
|
-
<span class="cstat-no" title="statement not covered" > this.deviceStatus = deviceStatus.body</span>
|
|
1352
|
-
<span class="cstat-no" title="statement not covered" > await this.openAPIparseStatus()</span>
|
|
1353
|
-
<span class="cstat-no" title="statement not covered" > await this.updateHomeKitCharacteristics()</span>
|
|
1354
|
-
<span class="cstat-no" title="statement not covered" > } else {</span>
|
|
1355
|
-
<span class="cstat-no" title="statement not covered" > this.debugWarnLog(`statusCode: ${deviceStatus.statusCode}, deviceStatus: ${JSON.stringify(deviceStatus)}`)</span>
|
|
1356
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1357
|
-
<span class="cstat-no" title="statement not covered" > } catch (e: any) {</span>
|
|
1358
|
-
<span class="cstat-no" title="statement not covered" > await this.apiError(e)</span>
|
|
1359
|
-
<span class="cstat-no" title="statement not covered" > this.errorLog(`failed openAPIRefreshStatus with ${this.device.connectionType} Connection, Error Message: ${JSON.stringify(e.message)}`)</span>
|
|
1360
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1361
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1362
|
-
|
|
1363
|
-
<span class="cstat-no" title="statement not covered" > async registerWebhook() {</span>
|
|
1364
|
-
<span class="cstat-no" title="statement not covered" > if (this.device.webhook) {</span>
|
|
1365
|
-
<span class="cstat-no" title="statement not covered" > this.debugLog('is listening webhook.')</span>
|
|
1366
|
-
<span class="cstat-no" title="statement not covered" > this.platform.webhookEventHandler[this.device.deviceId] = async (context: contactSensorWebhookContext) => {</span>
|
|
1367
|
-
<span class="cstat-no" title="statement not covered" > try {</span>
|
|
1368
|
-
<span class="cstat-no" title="statement not covered" > this.webhookContext = context</span>
|
|
1369
|
-
<span class="cstat-no" title="statement not covered" > if (context !== undefined || context !== null) {</span>
|
|
1370
|
-
<span class="cstat-no" title="statement not covered" > this.debugLog(`received Webhook: ${JSON.stringify(context)}`)</span>
|
|
1371
|
-
<span class="cstat-no" title="statement not covered" > await this.parseStatusWebhook()</span>
|
|
1372
|
-
<span class="cstat-no" title="statement not covered" > await this.updateHomeKitCharacteristics()</span>
|
|
1373
|
-
<span class="cstat-no" title="statement not covered" > } else {</span>
|
|
1374
|
-
<span class="cstat-no" title="statement not covered" > this.errorLog(`context is either undefined or null, context: ${JSON.stringify(context)}`)</span>
|
|
1375
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1376
|
-
<span class="cstat-no" title="statement not covered" > } catch (e: any) {</span>
|
|
1377
|
-
<span class="cstat-no" title="statement not covered" > this.errorLog(`failed to handle webhook. Received: ${JSON.stringify(context)} Error: ${e.message ?? e}`)</span>
|
|
1378
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1379
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1380
|
-
<span class="cstat-no" title="statement not covered" > } else {</span>
|
|
1381
|
-
<span class="cstat-no" title="statement not covered" > this.debugLog('is not listening webhook.')</span>
|
|
1382
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1383
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1384
|
-
|
|
1385
|
-
/**
|
|
1386
|
-
* Updates the status for each of the HomeKit Characteristics
|
|
1387
|
-
*/
|
|
1388
|
-
<span class="cstat-no" title="statement not covered" > async updateHomeKitCharacteristics(): Promise<void> {</span>
|
|
1389
|
-
// ContactSensorState
|
|
1390
|
-
<span class="cstat-no" title="statement not covered" > await this.updateCharacteristic(this.ContactSensor.Service, this.hap.Characteristic.ContactSensorState, this.ContactSensor.ContactSensorState, 'ContactSensorState')</span>
|
|
1391
|
-
// MotionDetected
|
|
1392
|
-
<span class="cstat-no" title="statement not covered" > if (!(this.device as contactConfig).hide_motionsensor && this.MotionSensor?.Service) {</span>
|
|
1393
|
-
<span class="cstat-no" title="statement not covered" > await this.updateCharacteristic(this.MotionSensor.Service, this.hap.Characteristic.MotionDetected, this.MotionSensor.MotionDetected, 'MotionDetected')</span>
|
|
1394
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1395
|
-
// CurrentAmbientLightLevel
|
|
1396
|
-
<span class="cstat-no" title="statement not covered" > if (!(this.device as contactConfig).hide_lightsensor && this.LightSensor?.Service) {</span>
|
|
1397
|
-
<span class="cstat-no" title="statement not covered" > await this.updateCharacteristic(this.LightSensor.Service, this.hap.Characteristic.CurrentAmbientLightLevel, this.LightSensor.CurrentAmbientLightLevel, 'CurrentAmbientLightLevel')</span>
|
|
1398
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1399
|
-
// BatteryLevel
|
|
1400
|
-
<span class="cstat-no" title="statement not covered" > await this.updateCharacteristic(this.Battery.Service, this.hap.Characteristic.BatteryLevel, this.Battery.BatteryLevel, 'BatteryLevel')</span>
|
|
1401
|
-
// StatusLowBattery
|
|
1402
|
-
<span class="cstat-no" title="statement not covered" > await this.updateCharacteristic(this.Battery.Service, this.hap.Characteristic.StatusLowBattery, this.Battery.StatusLowBattery, 'StatusLowBattery')</span>
|
|
1403
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1404
|
-
|
|
1405
|
-
<span class="cstat-no" title="statement not covered" > async BLERefreshConnection(switchbot: SwitchBotBLE): Promise<void> {</span>
|
|
1406
|
-
<span class="cstat-no" title="statement not covered" > this.errorLog(`wasn't able to establish BLE Connection, node-switchbot: ${switchbot}`)</span>
|
|
1407
|
-
<span class="cstat-no" title="statement not covered" > if (this.platform.config.credentials?.token && this.device.connectionType === 'BLE/OpenAPI') {</span>
|
|
1408
|
-
<span class="cstat-no" title="statement not covered" > this.warnLog('Using OpenAPI Connection to Refresh Status')</span>
|
|
1409
|
-
<span class="cstat-no" title="statement not covered" > await this.openAPIRefreshStatus()</span>
|
|
1410
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1411
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1412
|
-
|
|
1413
|
-
<span class="cstat-no" title="statement not covered" > async offlineOff(): Promise<void> {</span>
|
|
1414
|
-
<span class="cstat-no" title="statement not covered" > if (this.device.offline) {</span>
|
|
1415
|
-
<span class="cstat-no" title="statement not covered" > this.ContactSensor.Service.updateCharacteristic(this.hap.Characteristic.ContactSensorState, this.hap.Characteristic.ContactSensorState.CONTACT_DETECTED)</span>
|
|
1416
|
-
<span class="cstat-no" title="statement not covered" > if (!(this.device as contactConfig).hide_motionsensor && this.MotionSensor?.Service) {</span>
|
|
1417
|
-
<span class="cstat-no" title="statement not covered" > this.MotionSensor.Service.updateCharacteristic(this.hap.Characteristic.MotionDetected, false)</span>
|
|
1418
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1419
|
-
<span class="cstat-no" title="statement not covered" > if (!(this.device as contactConfig).hide_lightsensor && this.LightSensor?.Service) {</span>
|
|
1420
|
-
<span class="cstat-no" title="statement not covered" > this.LightSensor.Service.updateCharacteristic(this.hap.Characteristic.CurrentAmbientLightLevel, 100)</span>
|
|
1421
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1422
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1423
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1424
|
-
|
|
1425
|
-
<span class="cstat-no" title="statement not covered" > async apiError(e: any): Promise<void> {</span>
|
|
1426
|
-
<span class="cstat-no" title="statement not covered" > this.ContactSensor.Service.updateCharacteristic(this.hap.Characteristic.ContactSensorState, e)</span>
|
|
1427
|
-
<span class="cstat-no" title="statement not covered" > this.ContactSensor.Service.updateCharacteristic(this.hap.Characteristic.StatusActive, e)</span>
|
|
1428
|
-
<span class="cstat-no" title="statement not covered" > if (!(this.device as contactConfig).hide_motionsensor && this.MotionSensor?.Service) {</span>
|
|
1429
|
-
<span class="cstat-no" title="statement not covered" > this.MotionSensor.Service.updateCharacteristic(this.hap.Characteristic.MotionDetected, e)</span>
|
|
1430
|
-
<span class="cstat-no" title="statement not covered" > this.MotionSensor.Service.updateCharacteristic(this.hap.Characteristic.StatusActive, e)</span>
|
|
1431
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1432
|
-
<span class="cstat-no" title="statement not covered" > if (!(this.device as contactConfig).hide_lightsensor && this.LightSensor?.Service) {</span>
|
|
1433
|
-
<span class="cstat-no" title="statement not covered" > this.LightSensor.Service.updateCharacteristic(this.hap.Characteristic.CurrentAmbientLightLevel, e)</span>
|
|
1434
|
-
<span class="cstat-no" title="statement not covered" > this.LightSensor.Service.updateCharacteristic(this.hap.Characteristic.StatusActive, e)</span>
|
|
1435
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1436
|
-
<span class="cstat-no" title="statement not covered" > this.Battery.Service.updateCharacteristic(this.hap.Characteristic.BatteryLevel, e)</span>
|
|
1437
|
-
<span class="cstat-no" title="statement not covered" > this.Battery.Service.updateCharacteristic(this.hap.Characteristic.StatusLowBattery, e)</span>
|
|
1438
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1439
|
-
|
|
1440
|
-
<span class="cstat-no" title="statement not covered" > private getContactSensorState(openState: string): CharacteristicValue {</span>
|
|
1441
|
-
<span class="cstat-no" title="statement not covered" > return openState === 'open' || openState === 'timeOutNotClose'</span>
|
|
1442
|
-
<span class="cstat-no" title="statement not covered" > ? this.hap.Characteristic.ContactSensorState.CONTACT_NOT_DETECTED</span>
|
|
1443
|
-
<span class="cstat-no" title="statement not covered" > : this.hap.Characteristic.ContactSensorState.CONTACT_DETECTED</span>
|
|
1444
|
-
<span class="cstat-no" title="statement not covered" > }</span>
|
|
1445
|
-
<span class="cstat-no" title="statement not covered" >}</span>
|
|
1446
|
-
</pre></td></tr></table></pre>
|
|
1447
|
-
|
|
1448
|
-
<div class='push'></div><!-- for sticky footer -->
|
|
1449
|
-
</div><!-- /wrapper -->
|
|
1450
|
-
<div class='footer quiet pad2 space-top1 center small'>
|
|
1451
|
-
Code coverage generated by
|
|
1452
|
-
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1453
|
-
at 2025-08-21T05:12:41.588Z
|
|
1454
|
-
</div>
|
|
1455
|
-
<script src="../../prettify.js"></script>
|
|
1456
|
-
<script>
|
|
1457
|
-
window.onload = function () {
|
|
1458
|
-
prettyPrint();
|
|
1459
|
-
};
|
|
1460
|
-
</script>
|
|
1461
|
-
<script src="../../sorter.js"></script>
|
|
1462
|
-
<script src="../../block-navigation.js"></script>
|
|
1463
|
-
</body>
|
|
1464
|
-
</html>
|
|
1465
|
-
|