@fastybird/smart-panel-backend 1.1.0-alpha.64 → 1.1.0-alpha.65
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/dist/app.module.d.ts +3 -1
- package/dist/app.module.js +5 -1
- package/dist/app.module.js.map +1 -1
- package/dist/cli.js +1 -0
- package/dist/cli.js.map +1 -1
- package/dist/common/database/sqlite-data-source.d.ts +37 -0
- package/dist/common/database/sqlite-data-source.js +2131 -0
- package/dist/common/database/sqlite-data-source.js.map +1 -0
- package/dist/dataSource.d.ts +3 -1
- package/dist/dataSource.js +3 -3
- package/dist/dataSource.js.map +1 -1
- package/dist/main.js +1 -0
- package/dist/main.js.map +1 -1
- package/dist/migrations/1000000000002-AddTokenLastUsedAt.js +1 -0
- package/dist/migrations/1000000000002-AddTokenLastUsedAt.js.map +1 -1
- package/dist/migrations/1000000000027-AddVirtualProducerBindings.d.ts +7 -0
- package/dist/migrations/1000000000027-AddVirtualProducerBindings.js +87 -0
- package/dist/migrations/1000000000027-AddVirtualProducerBindings.js.map +1 -0
- package/dist/migrations/1000000000028-AddShellySampleSources.d.ts +6 -0
- package/dist/migrations/1000000000028-AddShellySampleSources.js +29 -0
- package/dist/migrations/1000000000028-AddShellySampleSources.js.map +1 -0
- package/dist/migrations/1000000000029-AddVirtualNumericTransforms.d.ts +6 -0
- package/dist/migrations/1000000000029-AddVirtualNumericTransforms.js +31 -0
- package/dist/migrations/1000000000029-AddVirtualNumericTransforms.js.map +1 -0
- package/dist/migrations/1000000000030-AddZigbeeSampleSources.d.ts +6 -0
- package/dist/migrations/1000000000030-AddZigbeeSampleSources.js +33 -0
- package/dist/migrations/1000000000030-AddZigbeeSampleSources.js.map +1 -0
- package/dist/migrations/1000000000031-AddVirtualThermostatClaims.d.ts +6 -0
- package/dist/migrations/1000000000031-AddVirtualThermostatClaims.js +62 -0
- package/dist/migrations/1000000000031-AddVirtualThermostatClaims.js.map +1 -0
- package/dist/migrations/1000000000032-AddVirtualThermostatRuntime.d.ts +6 -0
- package/dist/migrations/1000000000032-AddVirtualThermostatRuntime.js +39 -0
- package/dist/migrations/1000000000032-AddVirtualThermostatRuntime.js.map +1 -0
- package/dist/migrations/1000000000033-AddThermostatInstallationProfiles.d.ts +6 -0
- package/dist/migrations/1000000000033-AddThermostatInstallationProfiles.js +28 -0
- package/dist/migrations/1000000000033-AddThermostatInstallationProfiles.js.map +1 -0
- package/dist/migrations/1000000000034-AddVirtualThermostatRecoveries.d.ts +6 -0
- package/dist/migrations/1000000000034-AddVirtualThermostatRecoveries.js +26 -0
- package/dist/migrations/1000000000034-AddVirtualThermostatRecoveries.js.map +1 -0
- package/dist/migrations/1000000000035-IndexVirtualThermostatCommands.d.ts +6 -0
- package/dist/migrations/1000000000035-IndexVirtualThermostatCommands.js +35 -0
- package/dist/migrations/1000000000035-IndexVirtualThermostatCommands.js.map +1 -0
- package/dist/migrations/1000000000036-AddVirtualAggregatePolicies.d.ts +6 -0
- package/dist/migrations/1000000000036-AddVirtualAggregatePolicies.js +18 -0
- package/dist/migrations/1000000000036-AddVirtualAggregatePolicies.js.map +1 -0
- package/dist/migrations/1000000000037-AddVirtualAggregateProfiles.d.ts +6 -0
- package/dist/migrations/1000000000037-AddVirtualAggregateProfiles.js +16 -0
- package/dist/migrations/1000000000037-AddVirtualAggregateProfiles.js.map +1 -0
- package/dist/migrations/1000000000038-AddShellyCoverOrdering.d.ts +6 -0
- package/dist/migrations/1000000000038-AddShellyCoverOrdering.js +19 -0
- package/dist/migrations/1000000000038-AddShellyCoverOrdering.js.map +1 -0
- package/dist/migrations/1000000000039-AddVirtualThermostatComfort.d.ts +6 -0
- package/dist/migrations/1000000000039-AddVirtualThermostatComfort.js +16 -0
- package/dist/migrations/1000000000039-AddVirtualThermostatComfort.js.map +1 -0
- package/dist/migrations/1000000000040-AddThermostatBranchGroups.d.ts +6 -0
- package/dist/migrations/1000000000040-AddThermostatBranchGroups.js +32 -0
- package/dist/migrations/1000000000040-AddThermostatBranchGroups.js.map +1 -0
- package/dist/migrations/1000000000041-AddThermostatMemberProtection.d.ts +6 -0
- package/dist/migrations/1000000000041-AddThermostatMemberProtection.js +39 -0
- package/dist/migrations/1000000000041-AddThermostatMemberProtection.js.map +1 -0
- package/dist/migrations/1000000000042-AddShellyCoverRecoveries.d.ts +6 -0
- package/dist/migrations/1000000000042-AddShellyCoverRecoveries.js +19 -0
- package/dist/migrations/1000000000042-AddShellyCoverRecoveries.js.map +1 -0
- package/dist/migrations/1000000000044-AddVirtualDewPoint.d.ts +6 -0
- package/dist/migrations/1000000000044-AddVirtualDewPoint.js +36 -0
- package/dist/migrations/1000000000044-AddVirtualDewPoint.js.map +1 -0
- package/dist/migrations/1000000000045-AddThermostatCoolingDependencies.d.ts +6 -0
- package/dist/migrations/1000000000045-AddThermostatCoolingDependencies.js +32 -0
- package/dist/migrations/1000000000045-AddThermostatCoolingDependencies.js.map +1 -0
- package/dist/migrations/1000000000046-AddSpaceActivityModes.d.ts +7 -0
- package/dist/migrations/1000000000046-AddSpaceActivityModes.js +54 -0
- package/dist/migrations/1000000000046-AddSpaceActivityModes.js.map +1 -0
- package/dist/migrations/1000000000047-AddClimateAutomationOwnership.d.ts +6 -0
- package/dist/migrations/1000000000047-AddClimateAutomationOwnership.js +60 -0
- package/dist/migrations/1000000000047-AddClimateAutomationOwnership.js.map +1 -0
- package/dist/migrations/1000000000048-AddThermostatCreationCatalogBirths.d.ts +6 -0
- package/dist/migrations/1000000000048-AddThermostatCreationCatalogBirths.js +208 -0
- package/dist/migrations/1000000000048-AddThermostatCreationCatalogBirths.js.map +1 -0
- package/dist/migrations/1000000000049-FenceClimateAutomationLifecycle.d.ts +6 -0
- package/dist/migrations/1000000000049-FenceClimateAutomationLifecycle.js +40 -0
- package/dist/migrations/1000000000049-FenceClimateAutomationLifecycle.js.map +1 -0
- package/dist/migrations/1000000000050-AddSpaceModeSchedules.d.ts +6 -0
- package/dist/migrations/1000000000050-AddSpaceModeSchedules.js +36 -0
- package/dist/migrations/1000000000050-AddSpaceModeSchedules.js.map +1 -0
- package/dist/migrations/1000000000051-AddSpaceOccupancy.d.ts +6 -0
- package/dist/migrations/1000000000051-AddSpaceOccupancy.js +34 -0
- package/dist/migrations/1000000000051-AddSpaceOccupancy.js.map +1 -0
- package/dist/migrations/1000000000052-AddNativeThermostats.d.ts +6 -0
- package/dist/migrations/1000000000052-AddNativeThermostats.js +39 -0
- package/dist/migrations/1000000000052-AddNativeThermostats.js.map +1 -0
- package/dist/migrations/1000000000053-AddThermostatOverrideClocks.d.ts +6 -0
- package/dist/migrations/1000000000053-AddThermostatOverrideClocks.js +35 -0
- package/dist/migrations/1000000000053-AddThermostatOverrideClocks.js.map +1 -0
- package/dist/modules/buddy/buddy.utils.d.ts +1 -1
- package/dist/modules/buddy/buddy.utils.js +10 -11
- package/dist/modules/buddy/buddy.utils.js.map +1 -1
- package/dist/modules/buddy/services/buddy-context.service.js +2 -1
- package/dist/modules/buddy/services/buddy-context.service.js.map +1 -1
- package/dist/modules/buddy/services/home-context-tool-provider.service.d.ts +1 -1
- package/dist/modules/devices/contracts/climate-automation.contract.d.ts +111 -0
- package/dist/modules/devices/contracts/climate-automation.contract.js +3 -0
- package/dist/modules/devices/contracts/climate-automation.contract.js.map +1 -0
- package/dist/modules/devices/controllers/channels.properties.controller.d.ts +1 -1
- package/dist/modules/devices/controllers/channels.properties.controller.js +11 -4
- package/dist/modules/devices/controllers/channels.properties.controller.js.map +1 -1
- package/dist/modules/devices/controllers/devices.channels.properties.controller.d.ts +1 -1
- package/dist/modules/devices/controllers/devices.channels.properties.controller.js +11 -4
- package/dist/modules/devices/controllers/devices.channels.properties.controller.js.map +1 -1
- package/dist/modules/devices/controllers/property-command.controller.d.ts +9 -0
- package/dist/modules/devices/controllers/property-command.controller.js +88 -0
- package/dist/modules/devices/controllers/property-command.controller.js.map +1 -0
- package/dist/modules/devices/devices.constants.d.ts +4 -0
- package/dist/modules/devices/devices.constants.js +4 -0
- package/dist/modules/devices/devices.constants.js.map +1 -1
- package/dist/modules/devices/devices.module.js +22 -0
- package/dist/modules/devices/devices.module.js.map +1 -1
- package/dist/modules/devices/devices.openapi.d.ts +3 -1
- package/dist/modules/devices/devices.openapi.js +39 -0
- package/dist/modules/devices/devices.openapi.js.map +1 -1
- package/dist/modules/devices/dto/property-command.dto.js +20 -6
- package/dist/modules/devices/dto/property-command.dto.js.map +1 -1
- package/dist/modules/devices/dto/update-device.dto.d.ts +1 -1
- package/dist/modules/devices/dto/update-device.dto.js +4 -3
- package/dist/modules/devices/dto/update-device.dto.js.map +1 -1
- package/dist/modules/devices/entities/climate-automation.entity.d.ts +56 -0
- package/dist/modules/devices/entities/climate-automation.entity.js +231 -0
- package/dist/modules/devices/entities/climate-automation.entity.js.map +1 -0
- package/dist/modules/devices/entities/devices.entity.d.ts +4 -0
- package/dist/modules/devices/entities/devices.entity.js +27 -3
- package/dist/modules/devices/entities/devices.entity.js.map +1 -1
- package/dist/modules/devices/interceptors/property-command-entry.interceptor.d.ts +10 -0
- package/dist/modules/devices/interceptors/property-command-entry.interceptor.js +50 -0
- package/dist/modules/devices/interceptors/property-command-entry.interceptor.js.map +1 -0
- package/dist/modules/devices/models/composite-command.model.d.ts +16 -0
- package/dist/modules/devices/models/composite-command.model.js +99 -0
- package/dist/modules/devices/models/composite-command.model.js.map +1 -0
- package/dist/modules/devices/models/property-command-response.model.d.ts +18 -0
- package/dist/modules/devices/models/property-command-response.model.js +90 -0
- package/dist/modules/devices/models/property-command-response.model.js.map +1 -0
- package/dist/modules/devices/models/property-read-policy.model.d.ts +4 -0
- package/dist/modules/devices/models/property-read-policy.model.js +57 -0
- package/dist/modules/devices/models/property-read-policy.model.js.map +1 -0
- package/dist/modules/devices/models/property-sample.model.d.ts +50 -0
- package/dist/modules/devices/models/property-sample.model.js +3 -0
- package/dist/modules/devices/models/property-sample.model.js.map +1 -0
- package/dist/modules/devices/models/property-value-state.model.d.ts +11 -0
- package/dist/modules/devices/models/property-value-state.model.js +55 -1
- package/dist/modules/devices/models/property-value-state.model.js.map +1 -1
- package/dist/modules/devices/platforms/device.platform.d.ts +43 -0
- package/dist/modules/devices/platforms/native-climate.contract.d.ts +50 -0
- package/dist/modules/devices/platforms/native-climate.contract.js +3 -0
- package/dist/modules/devices/platforms/native-climate.contract.js.map +1 -0
- package/dist/modules/devices/services/channels-type-mapper.service.d.ts +3 -0
- package/dist/modules/devices/services/channels-type-mapper.service.js +21 -1
- package/dist/modules/devices/services/channels-type-mapper.service.js.map +1 -1
- package/dist/modules/devices/services/channels.properties-type-mapper.service.d.ts +7 -2
- package/dist/modules/devices/services/channels.properties-type-mapper.service.js +21 -1
- package/dist/modules/devices/services/channels.properties-type-mapper.service.js.map +1 -1
- package/dist/modules/devices/services/channels.properties.service.d.ts +11 -2
- package/dist/modules/devices/services/channels.properties.service.js +219 -64
- package/dist/modules/devices/services/channels.properties.service.js.map +1 -1
- package/dist/modules/devices/services/channels.service.d.ts +12 -5
- package/dist/modules/devices/services/channels.service.js +148 -55
- package/dist/modules/devices/services/channels.service.js.map +1 -1
- package/dist/modules/devices/services/climate-automation-ledger-lifecycle.d.ts +47 -0
- package/dist/modules/devices/services/climate-automation-ledger-lifecycle.js +242 -0
- package/dist/modules/devices/services/climate-automation-ledger-lifecycle.js.map +1 -0
- package/dist/modules/devices/services/climate-automation-ledger.service.d.ts +68 -0
- package/dist/modules/devices/services/climate-automation-ledger.service.js +1061 -0
- package/dist/modules/devices/services/climate-automation-ledger.service.js.map +1 -0
- package/dist/modules/devices/services/climate-automation-ledger.utils.d.ts +8 -0
- package/dist/modules/devices/services/climate-automation-ledger.utils.js +54 -0
- package/dist/modules/devices/services/climate-automation-ledger.utils.js.map +1 -0
- package/dist/modules/devices/services/climate-automation.registry.service.d.ts +15 -0
- package/dist/modules/devices/services/climate-automation.registry.service.js +71 -0
- package/dist/modules/devices/services/climate-automation.registry.service.js.map +1 -0
- package/dist/modules/devices/services/composite-property-command.registry.service.d.ts +48 -0
- package/dist/modules/devices/services/composite-property-command.registry.service.js +65 -0
- package/dist/modules/devices/services/composite-property-command.registry.service.js.map +1 -0
- package/dist/modules/devices/services/controller-publication-context.d.ts +27 -0
- package/dist/modules/devices/services/controller-publication-context.js +148 -0
- package/dist/modules/devices/services/controller-publication-context.js.map +1 -0
- package/dist/modules/devices/services/cover-action-proof.d.ts +7 -0
- package/dist/modules/devices/services/cover-action-proof.js +142 -0
- package/dist/modules/devices/services/cover-action-proof.js.map +1 -0
- package/dist/modules/devices/services/creation-capture.d.ts +19 -0
- package/dist/modules/devices/services/creation-capture.js +85 -0
- package/dist/modules/devices/services/creation-capture.js.map +1 -0
- package/dist/modules/devices/services/device-command-graph.service.js +1 -1
- package/dist/modules/devices/services/device-command-graph.service.js.map +1 -1
- package/dist/modules/devices/services/device-connection-state.service.d.ts +1 -0
- package/dist/modules/devices/services/device-connection-state.service.js +64 -18
- package/dist/modules/devices/services/device-connection-state.service.js.map +1 -1
- package/dist/modules/devices/services/device-connectivity.service.js +96 -51
- package/dist/modules/devices/services/device-connectivity.service.js.map +1 -1
- package/dist/modules/devices/services/device-contribution.registry.service.d.ts +50 -0
- package/dist/modules/devices/services/device-contribution.registry.service.js +45 -0
- package/dist/modules/devices/services/device-contribution.registry.service.js.map +1 -0
- package/dist/modules/devices/services/device-creation-context.d.ts +57 -0
- package/dist/modules/devices/services/device-creation-context.js +315 -0
- package/dist/modules/devices/services/device-creation-context.js.map +1 -0
- package/dist/modules/devices/services/device-structure-lock.service.d.ts +5 -0
- package/dist/modules/devices/services/device-structure-lock.service.js +64 -12
- package/dist/modules/devices/services/device-structure-lock.service.js.map +1 -1
- package/dist/modules/devices/services/device-validation.service.d.ts +0 -1
- package/dist/modules/devices/services/device-validation.service.js +3 -14
- package/dist/modules/devices/services/device-validation.service.js.map +1 -1
- package/dist/modules/devices/services/device-zones.service.d.ts +3 -1
- package/dist/modules/devices/services/device-zones.service.js +30 -6
- package/dist/modules/devices/services/device-zones.service.js.map +1 -1
- package/dist/modules/devices/services/devices-type-mapper.service.d.ts +3 -0
- package/dist/modules/devices/services/devices-type-mapper.service.js +21 -1
- package/dist/modules/devices/services/devices-type-mapper.service.js.map +1 -1
- package/dist/modules/devices/services/devices.service.d.ts +8 -2
- package/dist/modules/devices/services/devices.service.js +194 -49
- package/dist/modules/devices/services/devices.service.js.map +1 -1
- package/dist/modules/devices/services/platform.registry.service.d.ts +11 -1
- package/dist/modules/devices/services/platform.registry.service.js +42 -5
- package/dist/modules/devices/services/platform.registry.service.js.map +1 -1
- package/dist/modules/devices/services/property-command-admission.registry.service.d.ts +28 -0
- package/dist/modules/devices/services/property-command-admission.registry.service.js +70 -0
- package/dist/modules/devices/services/property-command-admission.registry.service.js.map +1 -0
- package/dist/modules/devices/services/property-command-dispatch.service.d.ts +28 -2
- package/dist/modules/devices/services/property-command-dispatch.service.js +704 -10
- package/dist/modules/devices/services/property-command-dispatch.service.js.map +1 -1
- package/dist/modules/devices/services/property-command-entry-snapshot.d.ts +25 -0
- package/dist/modules/devices/services/property-command-entry-snapshot.js +87 -0
- package/dist/modules/devices/services/property-command-entry-snapshot.js.map +1 -0
- package/dist/modules/devices/services/property-command-window.service.d.ts +22 -0
- package/dist/modules/devices/services/property-command-window.service.js +81 -0
- package/dist/modules/devices/services/property-command-window.service.js.map +1 -1
- package/dist/modules/devices/services/property-command.service.d.ts +24 -3
- package/dist/modules/devices/services/property-command.service.js +180 -18
- package/dist/modules/devices/services/property-command.service.js.map +1 -1
- package/dist/modules/devices/services/property-metadata.service.js +1 -1
- package/dist/modules/devices/services/property-metadata.service.js.map +1 -1
- package/dist/modules/devices/services/property-producer.registry.service.d.ts +98 -0
- package/dist/modules/devices/services/property-producer.registry.service.js +636 -0
- package/dist/modules/devices/services/property-producer.registry.service.js.map +1 -0
- package/dist/modules/devices/services/property-value-source.registry.service.d.ts +18 -0
- package/dist/modules/devices/services/property-value-source.registry.service.js +291 -2
- package/dist/modules/devices/services/property-value-source.registry.service.js.map +1 -1
- package/dist/modules/devices/services/property-value.service.d.ts +40 -3
- package/dist/modules/devices/services/property-value.service.js +744 -193
- package/dist/modules/devices/services/property-value.service.js.map +1 -1
- package/dist/modules/devices/subscribers/channel-property-entity.subscriber.d.ts +5 -0
- package/dist/modules/devices/subscribers/channel-property-entity.subscriber.js +25 -0
- package/dist/modules/devices/subscribers/channel-property-entity.subscriber.js.map +1 -1
- package/dist/modules/devices/utils/property-metadata.utils.d.ts +1 -0
- package/dist/modules/devices/utils/property-metadata.utils.js +10 -0
- package/dist/modules/devices/utils/property-metadata.utils.js.map +1 -1
- package/dist/modules/devices/utils/property-permissions.utils.d.ts +2 -0
- package/dist/modules/devices/utils/property-permissions.utils.js +10 -0
- package/dist/modules/devices/utils/property-permissions.utils.js.map +1 -0
- package/dist/modules/extensions/services/discovered-backend.module.d.ts +6 -0
- package/dist/modules/extensions/services/discovered-backend.module.js +32 -0
- package/dist/modules/extensions/services/discovered-backend.module.js.map +1 -0
- package/dist/modules/extensions/services/extensions-discovery.js +15 -0
- package/dist/modules/extensions/services/extensions-discovery.js.map +1 -1
- package/dist/modules/extensions/services/extensions.service.d.ts +4 -0
- package/dist/modules/extensions/services/extensions.service.js +13 -0
- package/dist/modules/extensions/services/extensions.service.js.map +1 -1
- package/dist/modules/extensions/services/managed-extension-service.interface.d.ts +1 -0
- package/dist/modules/extensions/services/managed-service-manager.service.d.ts +15 -0
- package/dist/modules/extensions/services/managed-service-manager.service.js +242 -72
- package/dist/modules/extensions/services/managed-service-manager.service.js.map +1 -1
- package/dist/modules/home-context/schemas/home-search-input.schemas.d.ts +1 -1
- package/dist/modules/intents/models/intent.model.d.ts +2 -0
- package/dist/modules/intents/models/intent.model.js +14 -0
- package/dist/modules/intents/models/intent.model.js.map +1 -1
- package/dist/modules/intents/services/intents.service.d.ts +2 -1
- package/dist/modules/intents/services/intents.service.js +18 -2
- package/dist/modules/intents/services/intents.service.js.map +1 -1
- package/dist/modules/scenes/listeners/websocket-exchange.listener.js +4 -0
- package/dist/modules/scenes/listeners/websocket-exchange.listener.js.map +1 -1
- package/dist/modules/scenes/models/scenes.model.d.ts +2 -0
- package/dist/modules/scenes/models/scenes.model.js +10 -0
- package/dist/modules/scenes/models/scenes.model.js.map +1 -1
- package/dist/modules/scenes/services/scene-executor.service.d.ts +6 -1
- package/dist/modules/scenes/services/scene-executor.service.js +33 -22
- package/dist/modules/scenes/services/scene-executor.service.js.map +1 -1
- package/dist/modules/security/providers/alarm-security.provider.d.ts +3 -1
- package/dist/modules/security/providers/alarm-security.provider.js +83 -8
- package/dist/modules/security/providers/alarm-security.provider.js.map +1 -1
- package/dist/modules/spaces/services/space-lifecycle-registry.service.d.ts +19 -0
- package/dist/modules/spaces/services/space-lifecycle-registry.service.js +121 -0
- package/dist/modules/spaces/services/space-lifecycle-registry.service.js.map +1 -0
- package/dist/modules/spaces/services/spaces.service.d.ts +5 -1
- package/dist/modules/spaces/services/spaces.service.js +34 -6
- package/dist/modules/spaces/services/spaces.service.js.map +1 -1
- package/dist/modules/spaces/spaces.constants.d.ts +3 -1
- package/dist/modules/spaces/spaces.constants.js +2 -0
- package/dist/modules/spaces/spaces.constants.js.map +1 -1
- package/dist/modules/spaces/spaces.module.js +13 -1
- package/dist/modules/spaces/spaces.module.js.map +1 -1
- package/dist/modules/storage/services/storage.service.d.ts +8 -0
- package/dist/modules/storage/services/storage.service.js +225 -0
- package/dist/modules/storage/services/storage.service.js.map +1 -1
- package/dist/modules/swagger/decorators/api-documentation.decorator.d.ts +1 -0
- package/dist/modules/swagger/decorators/api-documentation.decorator.js +9 -1
- package/dist/modules/swagger/decorators/api-documentation.decorator.js.map +1 -1
- package/dist/modules/swagger/services/swagger-document.service.d.ts +1 -0
- package/dist/modules/swagger/services/swagger-document.service.js +71 -1
- package/dist/modules/swagger/services/swagger-document.service.js.map +1 -1
- package/dist/modules/system/services/backup.service.js +3 -5
- package/dist/modules/system/services/backup.service.js.map +1 -1
- package/dist/modules/system/utils/timezone.utils.d.ts +2 -0
- package/dist/modules/system/utils/timezone.utils.js +9 -0
- package/dist/modules/system/utils/timezone.utils.js.map +1 -0
- package/dist/modules/websocket/gateway/websocket.gateway.js +1 -0
- package/dist/modules/websocket/gateway/websocket.gateway.js.map +1 -1
- package/dist/plugins/devices-home-assistant/devices-home-assistant.plugin.js +2 -0
- package/dist/plugins/devices-home-assistant/devices-home-assistant.plugin.js.map +1 -1
- package/dist/plugins/devices-home-assistant/dto/update-channel-property.dto.d.ts +3 -3
- package/dist/plugins/devices-home-assistant/dto/update-channel-property.dto.js +3 -3
- package/dist/plugins/devices-home-assistant/dto/update-channel-property.dto.js.map +1 -1
- package/dist/plugins/devices-home-assistant/platforms/home-assistant.device.platform.d.ts +11 -1
- package/dist/plugins/devices-home-assistant/platforms/home-assistant.device.platform.js +82 -2
- package/dist/plugins/devices-home-assistant/platforms/home-assistant.device.platform.js.map +1 -1
- package/dist/plugins/devices-home-assistant/services/home-assistant-native-climate.service.d.ts +22 -0
- package/dist/plugins/devices-home-assistant/services/home-assistant-native-climate.service.js +409 -0
- package/dist/plugins/devices-home-assistant/services/home-assistant-native-climate.service.js.map +1 -0
- package/dist/plugins/devices-home-assistant/services/home-assistant.ws.service.d.ts +14 -0
- package/dist/plugins/devices-home-assistant/services/home-assistant.ws.service.js +93 -3
- package/dist/plugins/devices-home-assistant/services/home-assistant.ws.service.js.map +1 -1
- package/dist/plugins/devices-homekit/devices-homekit.plugin.js +28 -2
- package/dist/plugins/devices-homekit/devices-homekit.plugin.js.map +1 -1
- package/dist/plugins/devices-homekit/listeners/homekit-event.listener.d.ts +26 -3
- package/dist/plugins/devices-homekit/listeners/homekit-event.listener.js +183 -5
- package/dist/plugins/devices-homekit/listeners/homekit-event.listener.js.map +1 -1
- package/dist/plugins/devices-homekit/mappers/base.mapper.d.ts +2 -1
- package/dist/plugins/devices-homekit/mappers/base.mapper.js +38 -10
- package/dist/plugins/devices-homekit/mappers/base.mapper.js.map +1 -1
- package/dist/plugins/devices-homekit/mappers/battery.mapper.js +4 -3
- package/dist/plugins/devices-homekit/mappers/battery.mapper.js.map +1 -1
- package/dist/plugins/devices-homekit/mappers/button.mapper.js +21 -2
- package/dist/plugins/devices-homekit/mappers/button.mapper.js.map +1 -1
- package/dist/plugins/devices-homekit/mappers/characteristic-get.d.ts +3 -0
- package/dist/plugins/devices-homekit/mappers/characteristic-get.js +10 -0
- package/dist/plugins/devices-homekit/mappers/characteristic-get.js.map +1 -0
- package/dist/plugins/devices-homekit/mappers/characteristic-write.d.ts +1 -1
- package/dist/plugins/devices-homekit/mappers/characteristic-write.js +2 -1
- package/dist/plugins/devices-homekit/mappers/characteristic-write.js.map +1 -1
- package/dist/plugins/devices-homekit/mappers/fan.mapper.d.ts +12 -0
- package/dist/plugins/devices-homekit/mappers/fan.mapper.js +126 -0
- package/dist/plugins/devices-homekit/mappers/fan.mapper.js.map +1 -0
- package/dist/plugins/devices-homekit/mappers/homekit-mapper.interface.d.ts +8 -0
- package/dist/plugins/devices-homekit/mappers/outlet.mapper.js +4 -0
- package/dist/plugins/devices-homekit/mappers/outlet.mapper.js.map +1 -1
- package/dist/plugins/devices-homekit/mappers/property-read.d.ts +7 -0
- package/dist/plugins/devices-homekit/mappers/property-read.js +64 -0
- package/dist/plugins/devices-homekit/mappers/property-read.js.map +1 -0
- package/dist/plugins/devices-homekit/mappers/semantic-conversion.d.ts +2 -0
- package/dist/plugins/devices-homekit/mappers/semantic-conversion.js +15 -0
- package/dist/plugins/devices-homekit/mappers/semantic-conversion.js.map +1 -0
- package/dist/plugins/devices-homekit/mappers/sensor.mapper.d.ts +3 -0
- package/dist/plugins/devices-homekit/mappers/sensor.mapper.js +63 -11
- package/dist/plugins/devices-homekit/mappers/sensor.mapper.js.map +1 -1
- package/dist/plugins/devices-homekit/mappers/service-fault.d.ts +4 -0
- package/dist/plugins/devices-homekit/mappers/service-fault.js +33 -0
- package/dist/plugins/devices-homekit/mappers/service-fault.js.map +1 -0
- package/dist/plugins/devices-homekit/mappers/thermostat-coordinator.d.ts +4 -0
- package/dist/plugins/devices-homekit/mappers/thermostat-coordinator.js +128 -19
- package/dist/plugins/devices-homekit/mappers/thermostat-coordinator.js.map +1 -1
- package/dist/plugins/devices-homekit/mappers/thermostat.mapper.js +5 -3
- package/dist/plugins/devices-homekit/mappers/thermostat.mapper.js.map +1 -1
- package/dist/plugins/devices-homekit/mappers/unavailable-characteristic.d.ts +3 -0
- package/dist/plugins/devices-homekit/mappers/unavailable-characteristic.js +18 -0
- package/dist/plugins/devices-homekit/mappers/unavailable-characteristic.js.map +1 -0
- package/dist/plugins/devices-homekit/mappers/window-covering.mapper.js +19 -3
- package/dist/plugins/devices-homekit/mappers/window-covering.mapper.js.map +1 -1
- package/dist/plugins/devices-homekit/services/homekit-bridge.service.d.ts +4 -0
- package/dist/plugins/devices-homekit/services/homekit-bridge.service.js +58 -29
- package/dist/plugins/devices-homekit/services/homekit-bridge.service.js.map +1 -1
- package/dist/plugins/devices-homekit/services/homekit-command.dispatcher.d.ts +2 -0
- package/dist/plugins/devices-homekit/services/homekit-command.dispatcher.js +3 -0
- package/dist/plugins/devices-homekit/services/homekit-command.dispatcher.js.map +1 -1
- package/dist/plugins/devices-homekit/services/homekit-mapper-registry.service.d.ts +30 -2
- package/dist/plugins/devices-homekit/services/homekit-mapper-registry.service.js +126 -2
- package/dist/plugins/devices-homekit/services/homekit-mapper-registry.service.js.map +1 -1
- package/dist/plugins/devices-homekit/services/homekit-mapping-maintenance.d.ts +8 -0
- package/dist/plugins/devices-homekit/services/homekit-mapping-maintenance.js +17 -0
- package/dist/plugins/devices-homekit/services/homekit-mapping-maintenance.js.map +1 -0
- package/dist/plugins/devices-homekit/services/homekit-property-state.service.d.ts +19 -0
- package/dist/plugins/devices-homekit/services/homekit-property-state.service.js +69 -0
- package/dist/plugins/devices-homekit/services/homekit-property-state.service.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/contracts/cover-action.contract.d.ts +13 -0
- package/dist/plugins/devices-shelly-ng/contracts/cover-action.contract.js +60 -0
- package/dist/plugins/devices-shelly-ng/contracts/cover-action.contract.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/contracts/cover-recovery.contract.d.ts +13 -0
- package/dist/plugins/devices-shelly-ng/contracts/cover-recovery.contract.js +3 -0
- package/dist/plugins/devices-shelly-ng/contracts/cover-recovery.contract.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/contracts/guard-script-source.d.ts +1 -0
- package/dist/plugins/devices-shelly-ng/contracts/guard-script-source.js +5 -0
- package/dist/plugins/devices-shelly-ng/contracts/guard-script-source.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/contracts/guard-script.contract.d.ts +21 -0
- package/dist/plugins/devices-shelly-ng/contracts/guard-script.contract.js +47 -0
- package/dist/plugins/devices-shelly-ng/contracts/guard-script.contract.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/contracts/member-guard-script-source.d.ts +2 -0
- package/dist/plugins/devices-shelly-ng/contracts/member-guard-script-source.js +27 -0
- package/dist/plugins/devices-shelly-ng/contracts/member-guard-script-source.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/contracts/native-temperature.contract.d.ts +36 -0
- package/dist/plugins/devices-shelly-ng/contracts/native-temperature.contract.js +200 -0
- package/dist/plugins/devices-shelly-ng/contracts/native-temperature.contract.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/contracts/protective-switch.contract.d.ts +44 -0
- package/dist/plugins/devices-shelly-ng/contracts/protective-switch.contract.js +29 -0
- package/dist/plugins/devices-shelly-ng/contracts/protective-switch.contract.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/controllers/shelly-cover-recovery.controller.d.ts +11 -0
- package/dist/plugins/devices-shelly-ng/controllers/shelly-cover-recovery.controller.js +98 -0
- package/dist/plugins/devices-shelly-ng/controllers/shelly-cover-recovery.controller.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/delegates/delegates-manager.service.d.ts +51 -1
- package/dist/plugins/devices-shelly-ng/delegates/delegates-manager.service.js +688 -2
- package/dist/plugins/devices-shelly-ng/delegates/delegates-manager.service.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/delegates/shelly-device.delegate.d.ts +46 -1
- package/dist/plugins/devices-shelly-ng/delegates/shelly-device.delegate.js +315 -4
- package/dist/plugins/devices-shelly-ng/delegates/shelly-device.delegate.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/devices-shelly-ng.openapi.d.ts +3 -1
- package/dist/plugins/devices-shelly-ng/devices-shelly-ng.openapi.js +8 -0
- package/dist/plugins/devices-shelly-ng/devices-shelly-ng.openapi.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/devices-shelly-ng.plugin.js +16 -1
- package/dist/plugins/devices-shelly-ng/devices-shelly-ng.plugin.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/dto/cover-recovery.dto.d.ts +11 -0
- package/dist/plugins/devices-shelly-ng/dto/cover-recovery.dto.js +77 -0
- package/dist/plugins/devices-shelly-ng/dto/cover-recovery.dto.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/entities/shelly-cover-ordering.entity.d.ts +5 -0
- package/dist/plugins/devices-shelly-ng/entities/shelly-cover-ordering.entity.js +32 -0
- package/dist/plugins/devices-shelly-ng/entities/shelly-cover-ordering.entity.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/entities/shelly-cover-recovery.entity.d.ts +17 -0
- package/dist/plugins/devices-shelly-ng/entities/shelly-cover-recovery.entity.js +80 -0
- package/dist/plugins/devices-shelly-ng/entities/shelly-cover-recovery.entity.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/entities/shelly-sample-source.entity.d.ts +16 -0
- package/dist/plugins/devices-shelly-ng/entities/shelly-sample-source.entity.js +70 -0
- package/dist/plugins/devices-shelly-ng/entities/shelly-sample-source.entity.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/mappings/definitions/covers.yaml +30 -24
- package/dist/plugins/devices-shelly-ng/models/cover-recovery.model.d.ts +21 -0
- package/dist/plugins/devices-shelly-ng/models/cover-recovery.model.js +114 -0
- package/dist/plugins/devices-shelly-ng/models/cover-recovery.model.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/platforms/shelly-ng.device.platform.d.ts +27 -1
- package/dist/plugins/devices-shelly-ng/platforms/shelly-ng.device.platform.js +146 -0
- package/dist/plugins/devices-shelly-ng/platforms/shelly-ng.device.platform.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/services/authenticated-shelly-script-http.d.ts +16 -0
- package/dist/plugins/devices-shelly-ng/services/authenticated-shelly-script-http.js +154 -0
- package/dist/plugins/devices-shelly-ng/services/authenticated-shelly-script-http.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/device-manager.service.d.ts +4 -1
- package/dist/plugins/devices-shelly-ng/services/device-manager.service.js +113 -4
- package/dist/plugins/devices-shelly-ng/services/device-manager.service.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/services/guarded-shelly-http.d.ts +2 -0
- package/dist/plugins/devices-shelly-ng/services/guarded-shelly-http.js +78 -0
- package/dist/plugins/devices-shelly-ng/services/guarded-shelly-http.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/guarded-shelly-rpc.d.ts +9 -0
- package/dist/plugins/devices-shelly-ng/services/guarded-shelly-rpc.js +56 -0
- package/dist/plugins/devices-shelly-ng/services/guarded-shelly-rpc.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/remote-dew-point-artifact.d.ts +45 -0
- package/dist/plugins/devices-shelly-ng/services/remote-dew-point-artifact.js +278 -0
- package/dist/plugins/devices-shelly-ng/services/remote-dew-point-artifact.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/remote-dew-point-lease.contract.d.ts +49 -0
- package/dist/plugins/devices-shelly-ng/services/remote-dew-point-lease.contract.js +32 -0
- package/dist/plugins/devices-shelly-ng/services/remote-dew-point-lease.contract.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/remote-dew-point-qualification.d.ts +53 -0
- package/dist/plugins/devices-shelly-ng/services/remote-dew-point-qualification.js +91 -0
- package/dist/plugins/devices-shelly-ng/services/remote-dew-point-qualification.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/remote-dew-point-session.d.ts +35 -0
- package/dist/plugins/devices-shelly-ng/services/remote-dew-point-session.js +244 -0
- package/dist/plugins/devices-shelly-ng/services/remote-dew-point-session.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-ordering.service.d.ts +9 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-ordering.service.js +50 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-ordering.service.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-recovery-lane.service.d.ts +29 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-recovery-lane.service.js +166 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-recovery-lane.service.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-recovery.service.d.ts +21 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-recovery.service.js +207 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-recovery.service.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-session.d.ts +25 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-session.js +132 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-session.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-telemetry.d.ts +9 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-telemetry.js +63 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-telemetry.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-guard-rpc-session.d.ts +33 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-guard-rpc-session.js +191 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-guard-rpc-session.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-ng.service.d.ts +3 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-ng.service.js +32 -4
- package/dist/plugins/devices-shelly-ng/services/shelly-ng.service.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/services/shelly-sample-sources.service.d.ts +34 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-sample-sources.service.js +194 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-sample-sources.service.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-ws-server.service.js +5 -2
- package/dist/plugins/devices-shelly-ng/services/shelly-ws-server.service.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/platforms/shelly-v1.device.platform.d.ts +4 -0
- package/dist/plugins/devices-shelly-v1/platforms/shelly-v1.device.platform.js +3 -0
- package/dist/plugins/devices-shelly-v1/platforms/shelly-v1.device.platform.js.map +1 -1
- package/dist/plugins/devices-virtual/contracts/thermostat-actuation.contract.d.ts +114 -0
- package/dist/plugins/devices-virtual/contracts/thermostat-actuation.contract.js +12 -0
- package/dist/plugins/devices-virtual/contracts/thermostat-actuation.contract.js.map +1 -0
- package/dist/plugins/devices-virtual/contracts/thermostat-command.contract.d.ts +4 -0
- package/dist/plugins/devices-virtual/contracts/thermostat-command.contract.js +3 -0
- package/dist/plugins/devices-virtual/contracts/thermostat-command.contract.js.map +1 -0
- package/dist/plugins/devices-virtual/controllers/native-thermostat.controller.d.ts +15 -0
- package/dist/plugins/devices-virtual/controllers/native-thermostat.controller.js +178 -0
- package/dist/plugins/devices-virtual/controllers/native-thermostat.controller.js.map +1 -0
- package/dist/plugins/devices-virtual/controllers/thermostat-authoring-context.controller.d.ts +11 -0
- package/dist/plugins/devices-virtual/controllers/thermostat-authoring-context.controller.js +92 -0
- package/dist/plugins/devices-virtual/controllers/thermostat-authoring-context.controller.js.map +1 -0
- package/dist/plugins/devices-virtual/controllers/thermostat-installation.controller.d.ts +16 -0
- package/dist/plugins/devices-virtual/controllers/thermostat-installation.controller.js +179 -0
- package/dist/plugins/devices-virtual/controllers/thermostat-installation.controller.js.map +1 -0
- package/dist/plugins/devices-virtual/controllers/virtual-dew-point-config.controller.d.ts +11 -0
- package/dist/plugins/devices-virtual/controllers/virtual-dew-point-config.controller.js +100 -0
- package/dist/plugins/devices-virtual/controllers/virtual-dew-point-config.controller.js.map +1 -0
- package/dist/plugins/devices-virtual/controllers/virtual-measurement-authoring.controller.d.ts +19 -0
- package/dist/plugins/devices-virtual/controllers/virtual-measurement-authoring.controller.js +168 -0
- package/dist/plugins/devices-virtual/controllers/virtual-measurement-authoring.controller.js.map +1 -0
- package/dist/plugins/devices-virtual/controllers/virtual-producer-config.controller.d.ts +28 -0
- package/dist/plugins/devices-virtual/controllers/virtual-producer-config.controller.js +278 -0
- package/dist/plugins/devices-virtual/controllers/virtual-producer-config.controller.js.map +1 -0
- package/dist/plugins/devices-virtual/controllers/virtual-thermostat-authoring.controller.d.ts +12 -0
- package/dist/plugins/devices-virtual/controllers/virtual-thermostat-authoring.controller.js +111 -0
- package/dist/plugins/devices-virtual/controllers/virtual-thermostat-authoring.controller.js.map +1 -0
- package/dist/plugins/devices-virtual/controllers/virtual-thermostat-comfort.controller.d.ts +14 -0
- package/dist/plugins/devices-virtual/controllers/virtual-thermostat-comfort.controller.js +160 -0
- package/dist/plugins/devices-virtual/controllers/virtual-thermostat-comfort.controller.js.map +1 -0
- package/dist/plugins/devices-virtual/controllers/virtual-thermostat-config.controller.d.ts +18 -0
- package/dist/plugins/devices-virtual/controllers/virtual-thermostat-config.controller.js +196 -0
- package/dist/plugins/devices-virtual/controllers/virtual-thermostat-config.controller.js.map +1 -0
- package/dist/plugins/devices-virtual/controllers/virtual-transform-config.controller.d.ts +14 -0
- package/dist/plugins/devices-virtual/controllers/virtual-transform-config.controller.js +128 -0
- package/dist/plugins/devices-virtual/controllers/virtual-transform-config.controller.js.map +1 -0
- package/dist/plugins/devices-virtual/devices-virtual.constants.d.ts +1 -0
- package/dist/plugins/devices-virtual/devices-virtual.constants.js +2 -1
- package/dist/plugins/devices-virtual/devices-virtual.constants.js.map +1 -1
- package/dist/plugins/devices-virtual/devices-virtual.openapi.d.ts +24 -2
- package/dist/plugins/devices-virtual/devices-virtual.openapi.js +95 -0
- package/dist/plugins/devices-virtual/devices-virtual.openapi.js.map +1 -1
- package/dist/plugins/devices-virtual/devices-virtual.plugin.d.ts +7 -1
- package/dist/plugins/devices-virtual/devices-virtual.plugin.js +167 -10
- package/dist/plugins/devices-virtual/devices-virtual.plugin.js.map +1 -1
- package/dist/plugins/devices-virtual/dto/create-device.dto.d.ts +2 -0
- package/dist/plugins/devices-virtual/dto/create-device.dto.js +20 -0
- package/dist/plugins/devices-virtual/dto/create-device.dto.js.map +1 -1
- package/dist/plugins/devices-virtual/dto/dew-point-config.dto.d.ts +14 -0
- package/dist/plugins/devices-virtual/dto/dew-point-config.dto.js +119 -0
- package/dist/plugins/devices-virtual/dto/dew-point-config.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/group-catalog.dto.d.ts +8 -0
- package/dist/plugins/devices-virtual/dto/group-catalog.dto.js +62 -0
- package/dist/plugins/devices-virtual/dto/group-catalog.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/light-group-draft.dto.d.ts +19 -0
- package/dist/plugins/devices-virtual/dto/light-group-draft.dto.js +108 -0
- package/dist/plugins/devices-virtual/dto/light-group-draft.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/measurement-authoring.dto.d.ts +25 -0
- package/dist/plugins/devices-virtual/dto/measurement-authoring.dto.js +157 -0
- package/dist/plugins/devices-virtual/dto/measurement-authoring.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/native-thermostat.dto.d.ts +21 -0
- package/dist/plugins/devices-virtual/dto/native-thermostat.dto.js +122 -0
- package/dist/plugins/devices-virtual/dto/native-thermostat.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/producer-config.dto.d.ts +35 -0
- package/dist/plugins/devices-virtual/dto/producer-config.dto.js +290 -0
- package/dist/plugins/devices-virtual/dto/producer-config.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/thermostat-authoring.dto.d.ts +6 -0
- package/dist/plugins/devices-virtual/dto/thermostat-authoring.dto.js +46 -0
- package/dist/plugins/devices-virtual/dto/thermostat-authoring.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/thermostat-comfort.dto.d.ts +39 -0
- package/dist/plugins/devices-virtual/dto/thermostat-comfort.dto.js +244 -0
- package/dist/plugins/devices-virtual/dto/thermostat-comfort.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/thermostat-config.dto.d.ts +94 -0
- package/dist/plugins/devices-virtual/dto/thermostat-config.dto.js +718 -0
- package/dist/plugins/devices-virtual/dto/thermostat-config.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/thermostat-installation.dto.d.ts +71 -0
- package/dist/plugins/devices-virtual/dto/thermostat-installation.dto.js +410 -0
- package/dist/plugins/devices-virtual/dto/thermostat-installation.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/transform-config.dto.d.ts +71 -0
- package/dist/plugins/devices-virtual/dto/transform-config.dto.js +430 -0
- package/dist/plugins/devices-virtual/dto/transform-config.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/update-device.dto.d.ts +2 -0
- package/dist/plugins/devices-virtual/dto/update-device.dto.js +20 -0
- package/dist/plugins/devices-virtual/dto/update-device.dto.js.map +1 -1
- package/dist/plugins/devices-virtual/entities/devices-virtual.entity.d.ts +13 -1
- package/dist/plugins/devices-virtual/entities/devices-virtual.entity.js +56 -6
- package/dist/plugins/devices-virtual/entities/devices-virtual.entity.js.map +1 -1
- package/dist/plugins/devices-virtual/entities/native-thermostat.entity.d.ts +23 -0
- package/dist/plugins/devices-virtual/entities/native-thermostat.entity.js +103 -0
- package/dist/plugins/devices-virtual/entities/native-thermostat.entity.js.map +1 -0
- package/dist/plugins/devices-virtual/entities/thermostat-cooling-dependency.entity.d.ts +19 -0
- package/dist/plugins/devices-virtual/entities/thermostat-cooling-dependency.entity.js +87 -0
- package/dist/plugins/devices-virtual/entities/thermostat-cooling-dependency.entity.js.map +1 -0
- package/dist/plugins/devices-virtual/entities/thermostat-installation.entity.d.ts +36 -0
- package/dist/plugins/devices-virtual/entities/thermostat-installation.entity.js +125 -0
- package/dist/plugins/devices-virtual/entities/thermostat-installation.entity.js.map +1 -0
- package/dist/plugins/devices-virtual/entities/thermostat-member-protection.entity.d.ts +15 -0
- package/dist/plugins/devices-virtual/entities/thermostat-member-protection.entity.js +70 -0
- package/dist/plugins/devices-virtual/entities/thermostat-member-protection.entity.js.map +1 -0
- package/dist/plugins/devices-virtual/entities/thermostat-override-clock.entity.d.ts +7 -0
- package/dist/plugins/devices-virtual/entities/thermostat-override-clock.entity.js +39 -0
- package/dist/plugins/devices-virtual/entities/thermostat-override-clock.entity.js.map +1 -0
- package/dist/plugins/devices-virtual/entities/virtual-dew-point.entity.d.ts +28 -0
- package/dist/plugins/devices-virtual/entities/virtual-dew-point.entity.js +104 -0
- package/dist/plugins/devices-virtual/entities/virtual-dew-point.entity.js.map +1 -0
- package/dist/plugins/devices-virtual/entities/virtual-producer.entity.d.ts +89 -0
- package/dist/plugins/devices-virtual/entities/virtual-producer.entity.js +281 -0
- package/dist/plugins/devices-virtual/entities/virtual-producer.entity.js.map +1 -0
- package/dist/plugins/devices-virtual/entities/virtual-thermostat-runtime.entity.d.ts +45 -0
- package/dist/plugins/devices-virtual/entities/virtual-thermostat-runtime.entity.js +184 -0
- package/dist/plugins/devices-virtual/entities/virtual-thermostat-runtime.entity.js.map +1 -0
- package/dist/plugins/devices-virtual/entities/virtual-thermostat.entity.d.ts +86 -0
- package/dist/plugins/devices-virtual/entities/virtual-thermostat.entity.js +337 -0
- package/dist/plugins/devices-virtual/entities/virtual-thermostat.entity.js.map +1 -0
- package/dist/plugins/devices-virtual/entities/virtual-transform.entity.d.ts +23 -0
- package/dist/plugins/devices-virtual/entities/virtual-transform.entity.js +101 -0
- package/dist/plugins/devices-virtual/entities/virtual-transform.entity.js.map +1 -0
- package/dist/plugins/devices-virtual/listeners/virtual-device-information.listener.d.ts +5 -0
- package/dist/plugins/devices-virtual/listeners/virtual-device-information.listener.js +65 -22
- package/dist/plugins/devices-virtual/listeners/virtual-device-information.listener.js.map +1 -1
- package/dist/plugins/devices-virtual/listeners/virtual-index-maintenance.listener.d.ts +8 -1
- package/dist/plugins/devices-virtual/listeners/virtual-index-maintenance.listener.js +123 -32
- package/dist/plugins/devices-virtual/listeners/virtual-index-maintenance.listener.js.map +1 -1
- package/dist/plugins/devices-virtual/listeners/virtual-projection.listener.d.ts +3 -0
- package/dist/plugins/devices-virtual/listeners/virtual-projection.listener.js +41 -3
- package/dist/plugins/devices-virtual/listeners/virtual-projection.listener.js.map +1 -1
- package/dist/plugins/devices-virtual/listeners/virtual-status.listener.js +28 -15
- package/dist/plugins/devices-virtual/listeners/virtual-status.listener.js.map +1 -1
- package/dist/plugins/devices-virtual/models/dew-point-response.model.d.ts +38 -0
- package/dist/plugins/devices-virtual/models/dew-point-response.model.js +193 -0
- package/dist/plugins/devices-virtual/models/dew-point-response.model.js.map +1 -0
- package/dist/plugins/devices-virtual/models/group-catalog.model.d.ts +26 -0
- package/dist/plugins/devices-virtual/models/group-catalog.model.js +117 -0
- package/dist/plugins/devices-virtual/models/group-catalog.model.js.map +1 -0
- package/dist/plugins/devices-virtual/models/light-group-draft.model.d.ts +28 -0
- package/dist/plugins/devices-virtual/models/light-group-draft.model.js +122 -0
- package/dist/plugins/devices-virtual/models/light-group-draft.model.js.map +1 -0
- package/dist/plugins/devices-virtual/models/measurement-authoring-response.model.d.ts +26 -0
- package/dist/plugins/devices-virtual/models/measurement-authoring-response.model.js +125 -0
- package/dist/plugins/devices-virtual/models/measurement-authoring-response.model.js.map +1 -0
- package/dist/plugins/devices-virtual/models/native-thermostat-response.model.d.ts +84 -0
- package/dist/plugins/devices-virtual/models/native-thermostat-response.model.js +406 -0
- package/dist/plugins/devices-virtual/models/native-thermostat-response.model.js.map +1 -0
- package/dist/plugins/devices-virtual/models/numeric-operator.model.d.ts +23 -0
- package/dist/plugins/devices-virtual/models/numeric-operator.model.js +120 -0
- package/dist/plugins/devices-virtual/models/numeric-operator.model.js.map +1 -0
- package/dist/plugins/devices-virtual/models/producer-response.model.d.ts +138 -0
- package/dist/plugins/devices-virtual/models/producer-response.model.js +764 -0
- package/dist/plugins/devices-virtual/models/producer-response.model.js.map +1 -0
- package/dist/plugins/devices-virtual/models/thermostat-authoring-context.model.d.ts +22 -0
- package/dist/plugins/devices-virtual/models/thermostat-authoring-context.model.js +134 -0
- package/dist/plugins/devices-virtual/models/thermostat-authoring-context.model.js.map +1 -0
- package/dist/plugins/devices-virtual/models/thermostat-authoring-response.model.d.ts +18 -0
- package/dist/plugins/devices-virtual/models/thermostat-authoring-response.model.js +87 -0
- package/dist/plugins/devices-virtual/models/thermostat-authoring-response.model.js.map +1 -0
- package/dist/plugins/devices-virtual/models/thermostat-comfort-response.model.d.ts +60 -0
- package/dist/plugins/devices-virtual/models/thermostat-comfort-response.model.js +341 -0
- package/dist/plugins/devices-virtual/models/thermostat-comfort-response.model.js.map +1 -0
- package/dist/plugins/devices-virtual/models/thermostat-installation-response.model.d.ts +84 -0
- package/dist/plugins/devices-virtual/models/thermostat-installation-response.model.js +440 -0
- package/dist/plugins/devices-virtual/models/thermostat-installation-response.model.js.map +1 -0
- package/dist/plugins/devices-virtual/models/thermostat-response.model.d.ts +218 -0
- package/dist/plugins/devices-virtual/models/thermostat-response.model.js +1157 -0
- package/dist/plugins/devices-virtual/models/thermostat-response.model.js.map +1 -0
- package/dist/plugins/devices-virtual/models/transform-response.model.d.ts +73 -0
- package/dist/plugins/devices-virtual/models/transform-response.model.js +386 -0
- package/dist/plugins/devices-virtual/models/transform-response.model.js.map +1 -0
- package/dist/plugins/devices-virtual/platforms/virtual-device.platform.d.ts +5 -1
- package/dist/plugins/devices-virtual/platforms/virtual-device.platform.js +22 -3
- package/dist/plugins/devices-virtual/platforms/virtual-device.platform.js.map +1 -1
- package/dist/plugins/devices-virtual/services/native-thermostat.service.d.ts +72 -0
- package/dist/plugins/devices-virtual/services/native-thermostat.service.js +932 -0
- package/dist/plugins/devices-virtual/services/native-thermostat.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-authoring-context.service.d.ts +14 -0
- package/dist/plugins/devices-virtual/services/thermostat-authoring-context.service.js +147 -0
- package/dist/plugins/devices-virtual/services/thermostat-authoring-context.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-comfort-selection.d.ts +199 -0
- package/dist/plugins/devices-virtual/services/thermostat-comfort-selection.js +1064 -0
- package/dist/plugins/devices-virtual/services/thermostat-comfort-selection.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-controller-mutation.d.ts +75 -0
- package/dist/plugins/devices-virtual/services/thermostat-controller-mutation.js +445 -0
- package/dist/plugins/devices-virtual/services/thermostat-controller-mutation.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-cooling-dependency.service.d.ts +53 -0
- package/dist/plugins/devices-virtual/services/thermostat-cooling-dependency.service.js +267 -0
- package/dist/plugins/devices-virtual/services/thermostat-cooling-dependency.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-creation-catalog.d.ts +56 -0
- package/dist/plugins/devices-virtual/services/thermostat-creation-catalog.js +438 -0
- package/dist/plugins/devices-virtual/services/thermostat-creation-catalog.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-creation-response.d.ts +37 -0
- package/dist/plugins/devices-virtual/services/thermostat-creation-response.js +430 -0
- package/dist/plugins/devices-virtual/services/thermostat-creation-response.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation-artifact.d.ts +13 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation-artifact.js +263 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation-artifact.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation-bindings.service.d.ts +10 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation-bindings.service.js +238 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation-bindings.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation-loader.service.d.ts +41 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation-loader.service.js +350 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation-loader.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation.service.d.ts +40 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation.service.js +263 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation.types.d.ts +72 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation.types.js +13 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation.types.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-member-protection.service.d.ts +45 -0
- package/dist/plugins/devices-virtual/services/thermostat-member-protection.service.js +235 -0
- package/dist/plugins/devices-virtual/services/thermostat-member-protection.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-override-clock.sql.d.ts +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-override-clock.sql.js +16 -0
- package/dist/plugins/devices-virtual/services/thermostat-override-clock.sql.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-protection-source.utils.d.ts +27 -0
- package/dist/plugins/devices-virtual/services/thermostat-protection-source.utils.js +132 -0
- package/dist/plugins/devices-virtual/services/thermostat-protection-source.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-remote-cooling-adapter.d.ts +88 -0
- package/dist/plugins/devices-virtual/services/thermostat-remote-cooling-adapter.js +200 -0
- package/dist/plugins/devices-virtual/services/thermostat-remote-cooling-adapter.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-aggregate-evaluator.d.ts +35 -0
- package/dist/plugins/devices-virtual/services/virtual-aggregate-evaluator.js +200 -0
- package/dist/plugins/devices-virtual/services/virtual-aggregate-evaluator.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-aggregate-policy.utils.d.ts +5 -0
- package/dist/plugins/devices-virtual/services/virtual-aggregate-policy.utils.js +18 -0
- package/dist/plugins/devices-virtual/services/virtual-aggregate-policy.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-aggregate-runtime.service.d.ts +48 -0
- package/dist/plugins/devices-virtual/services/virtual-aggregate-runtime.service.js +425 -0
- package/dist/plugins/devices-virtual/services/virtual-aggregate-runtime.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-cooling-policy.utils.d.ts +13 -0
- package/dist/plugins/devices-virtual/services/virtual-cooling-policy.utils.js +38 -0
- package/dist/plugins/devices-virtual/services/virtual-cooling-policy.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-cover-contract.utils.d.ts +7 -0
- package/dist/plugins/devices-virtual/services/virtual-cover-contract.utils.js +41 -0
- package/dist/plugins/devices-virtual/services/virtual-cover-contract.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-cover-readiness.utils.d.ts +16 -0
- package/dist/plugins/devices-virtual/services/virtual-cover-readiness.utils.js +42 -0
- package/dist/plugins/devices-virtual/services/virtual-cover-readiness.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-dependency-graph.service.d.ts +118 -0
- package/dist/plugins/devices-virtual/services/virtual-dependency-graph.service.js +667 -0
- package/dist/plugins/devices-virtual/services/virtual-dependency-graph.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-devices.service.d.ts +8 -4
- package/dist/plugins/devices-virtual/services/virtual-devices.service.js +105 -22
- package/dist/plugins/devices-virtual/services/virtual-devices.service.js.map +1 -1
- package/dist/plugins/devices-virtual/services/virtual-dew-point-config.service.d.ts +28 -0
- package/dist/plugins/devices-virtual/services/virtual-dew-point-config.service.js +193 -0
- package/dist/plugins/devices-virtual/services/virtual-dew-point-config.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-dew-point-contract.utils.d.ts +5 -0
- package/dist/plugins/devices-virtual/services/virtual-dew-point-contract.utils.js +69 -0
- package/dist/plugins/devices-virtual/services/virtual-dew-point-contract.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-dew-point-runtime.service.d.ts +65 -0
- package/dist/plugins/devices-virtual/services/virtual-dew-point-runtime.service.js +524 -0
- package/dist/plugins/devices-virtual/services/virtual-dew-point-runtime.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-dew-point.utils.d.ts +9 -0
- package/dist/plugins/devices-virtual/services/virtual-dew-point.utils.js +25 -0
- package/dist/plugins/devices-virtual/services/virtual-dew-point.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-group-catalog.service.d.ts +10 -0
- package/dist/plugins/devices-virtual/services/virtual-group-catalog.service.js +117 -0
- package/dist/plugins/devices-virtual/services/virtual-group-catalog.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-group-contract.utils.d.ts +4 -0
- package/dist/plugins/devices-virtual/services/virtual-group-contract.utils.js +35 -0
- package/dist/plugins/devices-virtual/services/virtual-group-contract.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-group-field.utils.d.ts +10 -0
- package/dist/plugins/devices-virtual/services/virtual-group-field.utils.js +35 -0
- package/dist/plugins/devices-virtual/services/virtual-group-field.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-group-profile.d.ts +19 -0
- package/dist/plugins/devices-virtual/services/virtual-group-profile.js +137 -0
- package/dist/plugins/devices-virtual/services/virtual-group-profile.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group-authoring.service.d.ts +43 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group-authoring.service.js +217 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group-authoring.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group-command.service.d.ts +28 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group-command.service.js +262 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group-command.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group-contribution.service.d.ts +19 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group-contribution.service.js +91 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group-contribution.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group-state.service.d.ts +37 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group-state.service.js +346 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group-state.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group.utils.d.ts +46 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group.utils.js +204 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-measurement-authoring.service.d.ts +37 -0
- package/dist/plugins/devices-virtual/services/virtual-measurement-authoring.service.js +270 -0
- package/dist/plugins/devices-virtual/services/virtual-measurement-authoring.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-measurement-contribution.service.d.ts +21 -0
- package/dist/plugins/devices-virtual/services/virtual-measurement-contribution.service.js +166 -0
- package/dist/plugins/devices-virtual/services/virtual-measurement-contribution.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-measurement-metadata.utils.d.ts +3 -0
- package/dist/plugins/devices-virtual/services/virtual-measurement-metadata.utils.js +25 -0
- package/dist/plugins/devices-virtual/services/virtual-measurement-metadata.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-numeric-operator-host.service.d.ts +24 -0
- package/dist/plugins/devices-virtual/services/virtual-numeric-operator-host.service.js +145 -0
- package/dist/plugins/devices-virtual/services/virtual-numeric-operator-host.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-numeric-operator.registry.d.ts +18 -0
- package/dist/plugins/devices-virtual/services/virtual-numeric-operator.registry.js +86 -0
- package/dist/plugins/devices-virtual/services/virtual-numeric-operator.registry.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-numeric-profile.utils.d.ts +29 -0
- package/dist/plugins/devices-virtual/services/virtual-numeric-profile.utils.js +136 -0
- package/dist/plugins/devices-virtual/services/virtual-numeric-profile.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-numeric-transform.utils.d.ts +59 -0
- package/dist/plugins/devices-virtual/services/virtual-numeric-transform.utils.js +165 -0
- package/dist/plugins/devices-virtual/services/virtual-numeric-transform.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-producer-config.service.d.ts +64 -0
- package/dist/plugins/devices-virtual/services/virtual-producer-config.service.js +694 -0
- package/dist/plugins/devices-virtual/services/virtual-producer-config.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-producer-state.service.d.ts +60 -0
- package/dist/plugins/devices-virtual/services/virtual-producer-state.service.js +484 -0
- package/dist/plugins/devices-virtual/services/virtual-producer-state.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-property-index.service.d.ts +11 -2
- package/dist/plugins/devices-virtual/services/virtual-property-index.service.js +166 -13
- package/dist/plugins/devices-virtual/services/virtual-property-index.service.js.map +1 -1
- package/dist/plugins/devices-virtual/services/virtual-source-eligibility.utils.d.ts +3 -0
- package/dist/plugins/devices-virtual/services/virtual-source-eligibility.utils.js +10 -0
- package/dist/plugins/devices-virtual/services/virtual-source-eligibility.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-authoring.service.d.ts +27 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-authoring.service.js +385 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-authoring.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-automation.service.d.ts +90 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-automation.service.js +1189 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-automation.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-branch.utils.d.ts +5 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-branch.utils.js +29 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-branch.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-claims.service.d.ts +80 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-claims.service.js +489 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-claims.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-comfort.service.d.ts +80 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-comfort.service.js +580 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-comfort.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-comfort.utils.d.ts +58 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-comfort.utils.js +106 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-comfort.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-config.service.d.ts +909 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-config.service.js +1171 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-config.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-contract.utils.d.ts +5 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-contract.utils.js +51 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-contract.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-inputs.service.d.ts +46 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-inputs.service.js +166 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-inputs.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-ownership.sql.d.ts +4 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-ownership.sql.js +59 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-ownership.sql.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-policy.utils.d.ts +45 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-policy.utils.js +149 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-policy.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-runtime-ownership.d.ts +56 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-runtime-ownership.js +680 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-runtime-ownership.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-runtime.service.d.ts +133 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-runtime.service.js +1617 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-runtime.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-transport.service.d.ts +39 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-transport.service.js +561 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-transport.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-config.service.d.ts +41 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-config.service.js +209 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-config.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-contract.utils.d.ts +8 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-contract.utils.js +103 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-contract.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-preview.utils.d.ts +3 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-preview.utils.js +18 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-preview.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-resolver.d.ts +15 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-resolver.js +102 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-resolver.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-runtime.service.d.ts +54 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-runtime.service.js +470 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-runtime.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-typed-group.utils.d.ts +6 -0
- package/dist/plugins/devices-virtual/services/virtual-typed-group.utils.js +100 -0
- package/dist/plugins/devices-virtual/services/virtual-typed-group.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-value-source.service.d.ts +7 -0
- package/dist/plugins/devices-virtual/services/virtual-value-source.service.js +36 -2
- package/dist/plugins/devices-virtual/services/virtual-value-source.service.js.map +1 -1
- package/dist/plugins/devices-virtual/services/virtual-window-contact.utils.d.ts +17 -0
- package/dist/plugins/devices-virtual/services/virtual-window-contact.utils.js +52 -0
- package/dist/plugins/devices-virtual/services/virtual-window-contact.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-window-trend.utils.d.ts +44 -0
- package/dist/plugins/devices-virtual/services/virtual-window-trend.utils.js +171 -0
- package/dist/plugins/devices-virtual/services/virtual-window-trend.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/subscribers/virtual-thermostat-ownership.subscriber.d.ts +30 -0
- package/dist/plugins/devices-virtual/subscribers/virtual-thermostat-ownership.subscriber.js +195 -0
- package/dist/plugins/devices-virtual/subscribers/virtual-thermostat-ownership.subscriber.js.map +1 -0
- package/dist/plugins/devices-virtual/subscribers/virtual-transform-metadata.subscriber.d.ts +9 -0
- package/dist/plugins/devices-virtual/subscribers/virtual-transform-metadata.subscriber.js +58 -0
- package/dist/plugins/devices-virtual/subscribers/virtual-transform-metadata.subscriber.js.map +1 -0
- package/dist/plugins/devices-virtual/validators/category-allowed-constraint.validator.d.ts +1 -1
- package/dist/plugins/devices-virtual/validators/category-allowed-constraint.validator.js +6 -1
- package/dist/plugins/devices-virtual/validators/category-allowed-constraint.validator.js.map +1 -1
- package/dist/plugins/devices-wled/interfaces/wled.interface.d.ts +7 -0
- package/dist/plugins/devices-wled/interfaces/wled.interface.js.map +1 -1
- package/dist/plugins/devices-wled/platforms/wled.device.platform.d.ts +4 -2
- package/dist/plugins/devices-wled/platforms/wled.device.platform.js +56 -9
- package/dist/plugins/devices-wled/platforms/wled.device.platform.js.map +1 -1
- package/dist/plugins/devices-wled/services/device-mapper.service.d.ts +3 -2
- package/dist/plugins/devices-wled/services/device-mapper.service.js +48 -1
- package/dist/plugins/devices-wled/services/device-mapper.service.js.map +1 -1
- package/dist/plugins/devices-wled/services/wled-client-adapter.service.d.ts +6 -1
- package/dist/plugins/devices-wled/services/wled-client-adapter.service.js +101 -13
- package/dist/plugins/devices-wled/services/wled-client-adapter.service.js.map +1 -1
- package/dist/plugins/devices-wled/services/wled.service.js +5 -2
- package/dist/plugins/devices-wled/services/wled.service.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/contracts/sample-source.contract.d.ts +38 -0
- package/dist/plugins/devices-zigbee2mqtt/contracts/sample-source.contract.js +95 -0
- package/dist/plugins/devices-zigbee2mqtt/contracts/sample-source.contract.js.map +1 -0
- package/dist/plugins/devices-zigbee2mqtt/devices-zigbee2mqtt.plugin.js +11 -1
- package/dist/plugins/devices-zigbee2mqtt/devices-zigbee2mqtt.plugin.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/entities/zigbee-sample-source.entity.d.ts +18 -0
- package/dist/plugins/devices-zigbee2mqtt/entities/zigbee-sample-source.entity.js +79 -0
- package/dist/plugins/devices-zigbee2mqtt/entities/zigbee-sample-source.entity.js.map +1 -0
- package/dist/plugins/devices-zigbee2mqtt/interfaces/zigbee2mqtt.interface.d.ts +11 -0
- package/dist/plugins/devices-zigbee2mqtt/platforms/zigbee2mqtt.device.platform.d.ts +11 -2
- package/dist/plugins/devices-zigbee2mqtt/platforms/zigbee2mqtt.device.platform.js +100 -11
- package/dist/plugins/devices-zigbee2mqtt/platforms/zigbee2mqtt.device.platform.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/base-client-adapter.d.ts +31 -13
- package/dist/plugins/devices-zigbee2mqtt/services/base-client-adapter.js +166 -5
- package/dist/plugins/devices-zigbee2mqtt/services/base-client-adapter.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/device-adoption.service.d.ts +1 -0
- package/dist/plugins/devices-zigbee2mqtt/services/device-adoption.service.js +44 -3
- package/dist/plugins/devices-zigbee2mqtt/services/device-adoption.service.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/device-mapper.service.d.ts +20 -3
- package/dist/plugins/devices-zigbee2mqtt/services/device-mapper.service.js +156 -34
- package/dist/plugins/devices-zigbee2mqtt/services/device-mapper.service.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/mqtt-client-adapter.service.d.ts +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/mqtt-client-adapter.service.js +14 -1
- package/dist/plugins/devices-zigbee2mqtt/services/mqtt-client-adapter.service.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/native-climate-adapter.service.d.ts +15 -0
- package/dist/plugins/devices-zigbee2mqtt/services/native-climate-adapter.service.js +249 -0
- package/dist/plugins/devices-zigbee2mqtt/services/native-climate-adapter.service.js.map +1 -0
- package/dist/plugins/devices-zigbee2mqtt/services/websocket-sample-evidence.d.ts +2 -0
- package/dist/plugins/devices-zigbee2mqtt/services/websocket-sample-evidence.js +15 -0
- package/dist/plugins/devices-zigbee2mqtt/services/websocket-sample-evidence.js.map +1 -0
- package/dist/plugins/devices-zigbee2mqtt/services/ws-client-adapter.service.d.ts +7 -1
- package/dist/plugins/devices-zigbee2mqtt/services/ws-client-adapter.service.js +45 -2
- package/dist/plugins/devices-zigbee2mqtt/services/ws-client-adapter.service.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/zigbee-sample-sources.service.d.ts +49 -0
- package/dist/plugins/devices-zigbee2mqtt/services/zigbee-sample-sources.service.js +264 -0
- package/dist/plugins/devices-zigbee2mqtt/services/zigbee-sample-sources.service.js.map +1 -0
- package/dist/plugins/devices-zigbee2mqtt/services/zigbee2mqtt.service.js +2 -0
- package/dist/plugins/devices-zigbee2mqtt/services/zigbee2mqtt.service.js.map +1 -1
- package/dist/plugins/scenes-local/platforms/local-scene.platform.d.ts +6 -3
- package/dist/plugins/scenes-local/platforms/local-scene.platform.js +101 -15
- package/dist/plugins/scenes-local/platforms/local-scene.platform.js.map +1 -1
- package/dist/plugins/spaces-home-control/activity/activity-actor.d.ts +2 -0
- package/dist/plugins/spaces-home-control/activity/activity-actor.js +14 -0
- package/dist/plugins/spaces-home-control/activity/activity-actor.js.map +1 -0
- package/dist/plugins/spaces-home-control/activity/activity-result.utils.d.ts +6 -0
- package/dist/plugins/spaces-home-control/activity/activity-result.utils.js +26 -0
- package/dist/plugins/spaces-home-control/activity/activity-result.utils.js.map +1 -0
- package/dist/plugins/spaces-home-control/activity/space-activity.constants.d.ts +32 -0
- package/dist/plugins/spaces-home-control/activity/space-activity.constants.js +40 -0
- package/dist/plugins/spaces-home-control/activity/space-activity.constants.js.map +1 -0
- package/dist/plugins/spaces-home-control/activity/space-activity.defaults.d.ts +3 -0
- package/dist/plugins/spaces-home-control/activity/space-activity.defaults.js +25 -0
- package/dist/plugins/spaces-home-control/activity/space-activity.defaults.js.map +1 -0
- package/dist/plugins/spaces-home-control/activity/validate-activity-configuration.d.ts +2 -0
- package/dist/plugins/spaces-home-control/activity/validate-activity-configuration.js +37 -0
- package/dist/plugins/spaces-home-control/activity/validate-activity-configuration.js.map +1 -0
- package/dist/plugins/spaces-home-control/controllers/space-mode-schedules.controller.d.ts +12 -0
- package/dist/plugins/spaces-home-control/controllers/space-mode-schedules.controller.js +97 -0
- package/dist/plugins/spaces-home-control/controllers/space-mode-schedules.controller.js.map +1 -0
- package/dist/plugins/spaces-home-control/controllers/space-modes.controller.d.ts +19 -0
- package/dist/plugins/spaces-home-control/controllers/space-modes.controller.js +220 -0
- package/dist/plugins/spaces-home-control/controllers/space-modes.controller.js.map +1 -0
- package/dist/plugins/spaces-home-control/controllers/space-occupancy.controller.d.ts +18 -0
- package/dist/plugins/spaces-home-control/controllers/space-occupancy.controller.js +147 -0
- package/dist/plugins/spaces-home-control/controllers/space-occupancy.controller.js.map +1 -0
- package/dist/plugins/spaces-home-control/controllers/spaces-domain.controller.js +4 -0
- package/dist/plugins/spaces-home-control/controllers/spaces-domain.controller.js.map +1 -1
- package/dist/plugins/spaces-home-control/dto/activity-mode.dto.d.ts +22 -0
- package/dist/plugins/spaces-home-control/dto/activity-mode.dto.js +119 -0
- package/dist/plugins/spaces-home-control/dto/activity-mode.dto.js.map +1 -0
- package/dist/plugins/spaces-home-control/dto/space-mode-schedule.dto.d.ts +18 -0
- package/dist/plugins/spaces-home-control/dto/space-mode-schedule.dto.js +127 -0
- package/dist/plugins/spaces-home-control/dto/space-mode-schedule.dto.js.map +1 -0
- package/dist/plugins/spaces-home-control/dto/space-occupancy.dto.d.ts +13 -0
- package/dist/plugins/spaces-home-control/dto/space-occupancy.dto.js +99 -0
- package/dist/plugins/spaces-home-control/dto/space-occupancy.dto.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/space-activity-config.entity.d.ts +12 -0
- package/dist/plugins/spaces-home-control/entities/space-activity-config.entity.js +72 -0
- package/dist/plugins/spaces-home-control/entities/space-activity-config.entity.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/space-activity-state.entity.d.ts +14 -0
- package/dist/plugins/spaces-home-control/entities/space-activity-state.entity.js +105 -0
- package/dist/plugins/spaces-home-control/entities/space-activity-state.entity.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/space-mode-schedule.entity.d.ts +19 -0
- package/dist/plugins/spaces-home-control/entities/space-mode-schedule.entity.js +110 -0
- package/dist/plugins/spaces-home-control/entities/space-mode-schedule.entity.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/space-occupancy.entity.d.ts +23 -0
- package/dist/plugins/spaces-home-control/entities/space-occupancy.entity.js +135 -0
- package/dist/plugins/spaces-home-control/entities/space-occupancy.entity.js.map +1 -0
- package/dist/plugins/spaces-home-control/listeners/space-climate-state.listener.d.ts +2 -0
- package/dist/plugins/spaces-home-control/listeners/space-climate-state.listener.js +23 -0
- package/dist/plugins/spaces-home-control/listeners/space-climate-state.listener.js.map +1 -1
- package/dist/plugins/spaces-home-control/listeners/websocket-exchange.listener.js +3 -0
- package/dist/plugins/spaces-home-control/listeners/websocket-exchange.listener.js.map +1 -1
- package/dist/plugins/spaces-home-control/models/activity-configuration.model.d.ts +27 -0
- package/dist/plugins/spaces-home-control/models/activity-configuration.model.js +182 -0
- package/dist/plugins/spaces-home-control/models/activity-configuration.model.js.map +1 -0
- package/dist/plugins/spaces-home-control/models/activity-response.model.d.ts +16 -0
- package/dist/plugins/spaces-home-control/models/activity-response.model.js +79 -0
- package/dist/plugins/spaces-home-control/models/activity-response.model.js.map +1 -0
- package/dist/plugins/spaces-home-control/models/activity-result.model.d.ts +6 -0
- package/dist/plugins/spaces-home-control/models/activity-result.model.js +37 -0
- package/dist/plugins/spaces-home-control/models/activity-result.model.js.map +1 -0
- package/dist/plugins/spaces-home-control/models/climate-contribution.model.d.ts +11 -0
- package/dist/plugins/spaces-home-control/models/climate-contribution.model.js +66 -0
- package/dist/plugins/spaces-home-control/models/climate-contribution.model.js.map +1 -0
- package/dist/plugins/spaces-home-control/models/space-mode-schedule-response.model.d.ts +9 -0
- package/dist/plugins/spaces-home-control/models/space-mode-schedule-response.model.js +45 -0
- package/dist/plugins/spaces-home-control/models/space-mode-schedule-response.model.js.map +1 -0
- package/dist/plugins/spaces-home-control/models/space-mode-schedule.model.d.ts +34 -0
- package/dist/plugins/spaces-home-control/models/space-mode-schedule.model.js +170 -0
- package/dist/plugins/spaces-home-control/models/space-mode-schedule.model.js.map +1 -0
- package/dist/plugins/spaces-home-control/models/space-occupancy.model.d.ts +26 -0
- package/dist/plugins/spaces-home-control/models/space-occupancy.model.js +121 -0
- package/dist/plugins/spaces-home-control/models/space-occupancy.model.js.map +1 -0
- package/dist/plugins/spaces-home-control/models/spaces-response.model.d.ts +13 -0
- package/dist/plugins/spaces-home-control/models/spaces-response.model.js +81 -2
- package/dist/plugins/spaces-home-control/models/spaces-response.model.js.map +1 -1
- package/dist/plugins/spaces-home-control/occupancy/occupancy-admission.d.ts +7 -0
- package/dist/plugins/spaces-home-control/occupancy/occupancy-admission.js +57 -0
- package/dist/plugins/spaces-home-control/occupancy/occupancy-admission.js.map +1 -0
- package/dist/plugins/spaces-home-control/occupancy/space-occupancy.types.d.ts +31 -0
- package/dist/plugins/spaces-home-control/occupancy/space-occupancy.types.js +30 -0
- package/dist/plugins/spaces-home-control/occupancy/space-occupancy.types.js.map +1 -0
- package/dist/plugins/spaces-home-control/schedule/schedule-time.d.ts +9 -0
- package/dist/plugins/spaces-home-control/schedule/schedule-time.js +79 -0
- package/dist/plugins/spaces-home-control/schedule/schedule-time.js.map +1 -0
- package/dist/plugins/spaces-home-control/schedule/space-mode-schedule.types.d.ts +28 -0
- package/dist/plugins/spaces-home-control/schedule/space-mode-schedule.types.js +7 -0
- package/dist/plugins/spaces-home-control/schedule/space-mode-schedule.types.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/activity-test-support.d.ts +16 -0
- package/dist/plugins/spaces-home-control/services/activity-test-support.js +34 -0
- package/dist/plugins/spaces-home-control/services/activity-test-support.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/climate-contribution-planner.service.d.ts +15 -0
- package/dist/plugins/spaces-home-control/services/climate-contribution-planner.service.js +97 -0
- package/dist/plugins/spaces-home-control/services/climate-contribution-planner.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/climate-intent.service.d.ts +15 -2
- package/dist/plugins/spaces-home-control/services/climate-intent.service.js +155 -15
- package/dist/plugins/spaces-home-control/services/climate-intent.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/services/cover-group-intent.port.d.ts +31 -0
- package/dist/plugins/spaces-home-control/services/cover-group-intent.port.js +189 -0
- package/dist/plugins/spaces-home-control/services/cover-group-intent.port.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/covers-intent.service.d.ts +8 -3
- package/dist/plugins/spaces-home-control/services/covers-intent.service.js +139 -65
- package/dist/plugins/spaces-home-control/services/covers-intent.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/services/lighting-contribution-planner.service.d.ts +16 -0
- package/dist/plugins/spaces-home-control/services/lighting-contribution-planner.service.js +66 -0
- package/dist/plugins/spaces-home-control/services/lighting-contribution-planner.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/lighting-intent.service.d.ts +13 -3
- package/dist/plugins/spaces-home-control/services/lighting-intent.service.js +93 -13
- package/dist/plugins/spaces-home-control/services/lighting-intent.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/services/space-activity-config.service.d.ts +25 -0
- package/dist/plugins/spaces-home-control/services/space-activity-config.service.js +144 -0
- package/dist/plugins/spaces-home-control/services/space-activity-config.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/space-activity-domains.service.d.ts +21 -0
- package/dist/plugins/spaces-home-control/services/space-activity-domains.service.js +139 -0
- package/dist/plugins/spaces-home-control/services/space-activity-domains.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/space-climate-automation.port.d.ts +17 -0
- package/dist/plugins/spaces-home-control/services/space-climate-automation.port.js +5 -0
- package/dist/plugins/spaces-home-control/services/space-climate-automation.port.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/space-climate-automation.service.d.ts +63 -0
- package/dist/plugins/spaces-home-control/services/space-climate-automation.service.js +722 -0
- package/dist/plugins/spaces-home-control/services/space-climate-automation.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/space-climate-state.service.d.ts +8 -3
- package/dist/plugins/spaces-home-control/services/space-climate-state.service.js +25 -19
- package/dist/plugins/spaces-home-control/services/space-climate-state.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/services/space-covers-state.service.d.ts +16 -2
- package/dist/plugins/spaces-home-control/services/space-covers-state.service.js +102 -18
- package/dist/plugins/spaces-home-control/services/space-covers-state.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/services/space-intent-base.service.d.ts +2 -0
- package/dist/plugins/spaces-home-control/services/space-intent-base.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/services/space-lighting-state.service.d.ts +4 -1
- package/dist/plugins/spaces-home-control/services/space-lighting-state.service.js +94 -24
- package/dist/plugins/spaces-home-control/services/space-lighting-state.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/services/space-media-activity.service.d.ts +8 -2
- package/dist/plugins/spaces-home-control/services/space-media-activity.service.js +79 -13
- package/dist/plugins/spaces-home-control/services/space-media-activity.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/services/space-mode-schedule-config.service.d.ts +24 -0
- package/dist/plugins/spaces-home-control/services/space-mode-schedule-config.service.js +132 -0
- package/dist/plugins/spaces-home-control/services/space-mode-schedule-config.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/space-mode-scheduler.service.d.ts +39 -0
- package/dist/plugins/spaces-home-control/services/space-mode-scheduler.service.js +289 -0
- package/dist/plugins/spaces-home-control/services/space-mode-scheduler.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/space-mode.service.d.ts +34 -0
- package/dist/plugins/spaces-home-control/services/space-mode.service.js +296 -0
- package/dist/plugins/spaces-home-control/services/space-mode.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/space-occupancy-config.service.d.ts +26 -0
- package/dist/plugins/spaces-home-control/services/space-occupancy-config.service.js +134 -0
- package/dist/plugins/spaces-home-control/services/space-occupancy-config.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/space-occupancy-inputs.service.d.ts +21 -0
- package/dist/plugins/spaces-home-control/services/space-occupancy-inputs.service.js +84 -0
- package/dist/plugins/spaces-home-control/services/space-occupancy-inputs.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/space-occupancy.service.d.ts +48 -0
- package/dist/plugins/spaces-home-control/services/space-occupancy.service.js +285 -0
- package/dist/plugins/spaces-home-control/services/space-occupancy.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/space-state-read.service.d.ts +5 -1
- package/dist/plugins/spaces-home-control/services/space-state-read.service.js +33 -7
- package/dist/plugins/spaces-home-control/services/space-state-read.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/spaces-home-control.openapi.js +52 -0
- package/dist/plugins/spaces-home-control/spaces-home-control.openapi.js.map +1 -1
- package/dist/plugins/spaces-home-control/spaces-home-control.plugin.d.ts +5 -1
- package/dist/plugins/spaces-home-control/spaces-home-control.plugin.js +57 -2
- package/dist/plugins/spaces-home-control/spaces-home-control.plugin.js.map +1 -1
- package/dist/spec/channels.d.ts +27 -4
- package/dist/spec/channels.js +37 -6
- package/dist/spec/channels.js.map +1 -1
- package/dist/spec/devices.d.ts +20 -0
- package/dist/spec/devices.js +20 -0
- package/dist/spec/devices.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +4 -3
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SHELLY_GUARD_SOURCE = void 0;
|
|
4
|
+
exports.SHELLY_GUARD_SOURCE = "/* Offline protocol candidate. See shelly-reconciliation.md before using it.\n * SP_GUARD_CONFIG must be prepended by the internal installation qualifier.\n * No default limits, firmware, component, or evidence are supplied here.\n */\nlet cfg = SP_GUARD_CONFIG;\nlet epoch = 0;\nlet ready = false;\nlet busy = false;\nlet pendingFence = null;\nlet pendingOn = null;\nlet fencePersisted = false;\nlet emergencyBusy = false;\nlet until = 0;\nlet floorLatched = true;\nlet floorObservedAt = 0;\nlet floorValue = null;\nlet fault = null;\nlet info = Shelly.getDeviceInfo();\n\n/** Reject NaN and infinities using arithmetic supported by the embedded script runtime. */\nfunction finiteNumber(n) {\n\treturn typeof n === 'number' && n === n && n - n === 0;\n}\n/** Bound epochs and millisecond expiries to the nonnegative integer range used by this protocol. */\nfunction integer(n) {\n\treturn typeof n === 'number' && n === Math.floor(n) && n >= 0 && n < 2147483647;\n}\n/** Use device uptime for lease and sensor age checks, independent of backend clocks. */\nfunction now() {\n\treturn Shelly.getUptimeMs();\n}\n/** Return a protocol error without claiming that earlier local ON work has drained. */\nfunction reject(request, reason) {\n\trequest.error(-1, reason);\n}\n/** Require finite installed Steinhart-Hart parameters before treating raw voltage as floor temperature. */\nfunction conversionQualified() {\n\tlet conversion = cfg.floorConversion;\n\treturn (\n\t\tcfg.floorComponentType === 'voltmeter' &&\n\t\tcfg.floorAttribute === 'voltage' &&\n\t\tconversion &&\n\t\tconversion.kind === 'steinhart_hart' &&\n\t\tfiniteNumber(conversion.referenceVoltage) &&\n\t\tconversion.referenceVoltage > 0 &&\n\t\tfiniteNumber(conversion.seriesResistance) &&\n\t\tconversion.seriesResistance > 0 &&\n\t\tfiniteNumber(conversion.a) &&\n\t\tfiniteNumber(conversion.b) &&\n\t\tfiniteNumber(conversion.c) &&\n\t\t(conversion.thermistorLeg === 'low' || conversion.thermistorLeg === 'high') &&\n\t\tconversion.inputRange && finiteNumber(conversion.inputRange.minimum) && finiteNumber(conversion.inputRange.maximum) && conversion.inputRange.minimum <= conversion.inputRange.maximum &&\n\t\tconversion.outputRange && finiteNumber(conversion.outputRange.minimum) && finiteNumber(conversion.outputRange.maximum) && conversion.outputRange.minimum <= conversion.outputRange.maximum\n\t);\n}\n/** Convert qualified divider voltage to Celsius; invalid electrical or conversion values yield no sample. */\nfunction floorCelsius(value) {\n\tif (!finiteNumber(value)) return null;\n\tif (cfg.floorAttribute !== 'voltage') return value;\n\tif (!conversionQualified() || value <= 0 || value >= cfg.floorConversion.referenceVoltage) return null;\n\tlet conversion = cfg.floorConversion;\n\tif (value < conversion.inputRange.minimum || value > conversion.inputRange.maximum) return null;\n\tlet resistance = conversion.thermistorLeg === 'low' ? (conversion.seriesResistance * value) / (conversion.referenceVoltage - value) : (conversion.seriesResistance * (conversion.referenceVoltage - value)) / value;\n\tif (!finiteNumber(resistance) || resistance <= 0) return null;\n\tlet logarithm = Math.log(resistance);\n\tlet inverse = conversion.a + (conversion.b + conversion.c * logarithm * logarithm) * logarithm;\n\tif (!finiteNumber(inverse) || inverse <= 0) return null;\n\tlet temperature = 1 / inverse - 273.15;\n\treturn finiteNumber(temperature) && temperature >= conversion.outputRange.minimum && temperature <= conversion.outputRange.maximum ? temperature : null;\n}\n\n/** Require unchanged installed sensor configuration, a fresh value and a cleared overtemperature latch. */\nfunction floorSafe() {\n\tlet floorConfig = Shelly.getComponentConfig(cfg.floorComponentType, cfg.floorComponentId);\n\tlet helper = floorConfig && floorConfig[cfg.floorAttribute];\n\tlet celsius =\n\t\tconversionQualified() ||\n\t\tcfg.floorComponentType === 'temperature' ||\n\t\t(helper &&\n\t\t\ttypeof helper.expr === 'string' &&\n\t\t\thelper.expr.length > 0 &&\n\t\t\t(helper.unit === 'C' || helper.unit === '\u00b0C' || helper.unit === 'Celsius' || helper.unit === 'celsius'));\n\treturn (\n\t\tcelsius &&\n\t\tJSON.stringify(floorConfig) === cfg.floorConfigurationJson &&\n\t\tfloorValue !== null &&\n\t\t!floorLatched &&\n\t\tnow() - floorObservedAt < cfg.floorMaxAgeMs\n\t);\n}\n/** Record an actual floor report and update the fail-closed temperature latch with hysteresis. */\nfunction observeFloor(status) {\n\tlet value = floorCelsius(status && status[cfg.floorAttribute]);\n\tfloorObservedAt = now();\n\tif (typeof value !== 'number' || !finiteNumber(value) || (status.errors && status.errors.length > 0)) {\n\t\tfloorValue = null;\n\t\tfloorLatched = true;\n\t} else {\n\t\tfloorValue = value;\n\t\tif (value >= cfg.floorLimitC) floorLatched = true;\n\t\telse if (value < cfg.floorLimitC - cfg.floorHysteresisC) floorLatched = false;\n\t}\n}\n/** Expose current identity, epoch, lease-readiness and output status for backend inspection. */\nfunction view() {\n\tlet output = Shelly.getComponentStatus('switch', cfg.componentId);\n\treturn {\n\t\tprotocol: 'sp-guard-candidate-1',\n\t\tdeviceId: info.id,\n\t\tfirmware: info.fw_id,\n\t\tcomponentId: cfg.componentId,\n\t\tevidenceId: cfg.evidenceId,\n\t\tepoch: epoch,\n\t\tnowMs: now(),\n\t\tready: ready,\n\t\tbusy: busy,\n\t\tfault: fault,\n\t\tfloorSafe: floorSafe(),\n\t\tfloorCelsius: floorValue,\n\t\toutput: output && typeof output.output === 'boolean' ? output.output : null,\n\t};\n}\n/** Revoke readiness and the lease, rejecting pending replies without asserting physical OFF or drainage. */\nfunction fail(reason) {\n\tfault = reason;\n\tready = false;\n\tuntil = 0;\n\tif (pendingOn) {\n\t\treject(pendingOn, reason);\n\t\tpendingOn = null;\n\t}\n\tif (pendingFence) {\n\t\treject(pendingFence, reason);\n\t\tpendingFence = null;\n\t}\n}\n/** Acknowledge a persisted fence only after matched OFF readback from an OFF cycle in its current epoch. */\nfunction readBack(result, code, message, cycleEpoch) {\n\tbusy = false;\n\tif (code !== 0 || !result || result.id !== cfg.componentId || result.output !== false) {\n\t\tfail('off_readback_unconfirmed');\n\t\treturn;\n\t}\n\tif (pendingFence && fencePersisted && cycleEpoch === epoch) {\n\t\tlet request = pendingFence;\n\t\tpendingFence = null;\n\t\t// Covers this script's earlier local IO only. External writer exclusion and\n\t\t// script-restart IO drainage still require installed firmware qualification.\n\t\trequest.result({\n\t\t\tepoch: epoch,\n\t\t\tdeviceId: info.id,\n\t\t\tcomponentId: cfg.componentId,\n\t\t\toutput: false,\n\t\t\tlocalOnDrained: fault === null,\n\t\t\texternalWriterBarrier: false,\n\t\t\tobservedAtMs: now(),\n\t\t\tevidenceId: cfg.evidenceId,\n\t\t});\n\t} else if (pendingFence && fencePersisted) {\n\t\tdriveOff();\n\t}\n}\n/** After acknowledged absolute OFF, request status readback; unknown execution faults without minting proof. */\nfunction offDone(result, code, message, cycleEpoch) {\n\tif (code !== 0 || !result || typeof result.was_on !== 'boolean') {\n\t\tbusy = false;\n\t\tfail('off_execution_unknown');\n\t\treturn;\n\t}\n\tShelly.call('Switch.GetStatus', { id: cfg.componentId }, readBack, cycleEpoch);\n}\n/** Allow another best-effort emergency OFF attempt; its callback supplies no serial drainage proof. */\nfunction emergencyDone() {\n\temergencyBusy = false;\n}\n/** Revoke the lease and drive absolute OFF, using emergency attempts while serial work or epoch persistence is pending. */\nfunction driveOff() {\n\tuntil = 0;\n\tif (pendingFence && !fencePersisted) {\n\t\tif (!emergencyBusy) {\n\t\t\temergencyBusy = true;\n\t\t\tShelly.call('Switch.Set', { id: cfg.componentId, on: false }, emergencyDone);\n\t\t}\n\t\treturn;\n\t}\n\tif (busy) {\n\t\t// Best-effort emergency OFF does not constitute a drain barrier. Never let a\n\t\t// stalled ON callback suppress all OFF attempts. Serial OFF/readback follows\n\t\t// only after that ON has genuinely completed; unknown completion stays faulted.\n\t\tif ((pendingOn || !ready) && !emergencyBusy) {\n\t\t\temergencyBusy = true;\n\t\t\tShelly.call('Switch.Set', { id: cfg.componentId, on: false }, emergencyDone);\n\t\t}\n\t\treturn;\n\t}\n\tbusy = true;\n\t// OFF never receives a flip-back timer. Native auto_on must be disabled by qualification.\n\tShelly.call('Switch.Set', { id: cfg.componentId, on: false }, offDone, pendingFence && fencePersisted ? epoch : null);\n}\n/** Acknowledge ON only while its lease and floor remain valid; failed or superseded completion triggers OFF. */\nfunction onDone(result, code) {\n\tbusy = false;\n\tlet request = pendingOn;\n\tpendingOn = null;\n\tif (code !== 0 || !result || typeof result.was_on !== 'boolean') {\n\t\tif (request) reject(request, 'on_execution_unknown');\n\t\tfail('on_execution_unknown');\n\t\tdriveOff();\n\t\treturn;\n\t}\n\tif (pendingFence || !ready || !floorSafe() || now() >= until) {\n\t\tif (request) reject(request, 'on_superseded');\n\t\tdriveOff();\n\t\treturn;\n\t}\n\tif (request) request.result({ epoch: epoch, accepted: true, untilMs: until });\n}\n/** Enable serial OFF/readback after durable epoch persistence without stealing an existing IO cycle. */\nfunction persistedFence(result, code) {\n\tif (code !== 0) {\n\t\tbusy = false;\n\t\tfail('epoch_persistence_failed');\n\t\tdriveOff();\n\t\treturn;\n\t}\n\tfencePersisted = true;\n\t// Existing ON/OFF/readback owns busy until completion. Never overwrite its ownership.\n\tif (!busy) driveOff();\n}\n/** Advance and persist the epoch before acknowledging correlated OFF and local ON drainage. */\nfunction fence(request) {\n\tif (!ready || pendingFence || epoch >= 2147483646) {\n\t\treject(request, 'fence_unavailable');\n\t\treturn;\n\t}\n\tepoch = epoch + 1;\n\tuntil = 0;\n\tpendingFence = request;\n\tfencePersisted = false;\n\t// Persist before acknowledging the barrier. A concurrently running ON callback\n\t// must not run OFF/readback before this persistence operation has completed.\n\tShelly.call('KVS.Set', { key: cfg.epochKey, value: epoch }, persistedFence);\n}\n/** Admit one current-epoch ON with a safe floor and bounded absolute expiry, backed by native flip-back. */\nfunction energize(request, params) {\n\tif (!ready || fault || busy || pendingFence || !params || params.epoch !== epoch || !floorSafe()) {\n\t\treject(request, 'on_not_admitted');\n\t\treturn;\n\t}\n\tlet remaining = params.untilMs - now();\n\tif (!integer(params.untilMs) || remaining < cfg.minLeaseMs || remaining > cfg.maxLeaseMs) {\n\t\treject(request, 'on_expired_or_unqualified');\n\t\treturn;\n\t}\n\tuntil = params.untilMs;\n\tpendingOn = request;\n\tbusy = true;\n\t// Native flip-back remains a second bound if this script crashes after dispatch.\n\tShelly.call('Switch.Set', { id: cfg.componentId, on: true, toggle_after: remaining / 1000 }, onDone);\n}\n/** Drive OFF for revoked or expired leases, unsafe floor data and unknown output while leaving idle confirmed OFF alone. */\nfunction watchdog() {\n\tif (fault || pendingFence || (pendingOn && until === 0)) {\n\t\tdriveOff();\n\t\treturn;\n\t}\n\tlet hasLease = until > 0;\n\tif (hasLease && (now() >= until || !floorSafe())) {\n\t\tdriveOff();\n\t\treturn;\n\t}\n\tlet output = Shelly.getComponentStatus('switch', cfg.componentId);\n\t// Pending ON owns its valid lease even while the cached output is still OFF;\n\t// revoked pending ON keeps requesting emergency OFF until its callback drains.\n\t// Unknown output fails closed; idle confirmed OFF needs no serial IO cycle.\n\tif (!output || typeof output.output !== 'boolean' || (!hasLease && output.output)) driveOff();\n}\n/** Process reports from the configured floor component and request OFF whenever floor safety is lost. */\nfunction floorUpdate(event) {\n\tif (event.component !== cfg.floorComponentType + ':' + cfg.floorComponentId) return;\n\tobserveFloor(event.delta);\n\tif (!floorSafe()) driveOff();\n}\n/** Enable readiness only after startup status reports the configured switch output as OFF. */\nfunction startupOff(result, code) {\n\tif (code !== 0 || !result || result.id !== cfg.componentId || result.output !== false) {\n\t\tfail('startup_off_unconfirmed');\n\t\treturn;\n\t}\n\tbusy = false;\n\tready = true;\n}\n/** Require acknowledged startup OFF before requesting the live status needed to enable readiness. */\nfunction startupSet(result, code) {\n\tif (code !== 0 || !result || typeof result.was_on !== 'boolean') {\n\t\tfail('startup_off_execution_unknown');\n\t\treturn;\n\t}\n\tShelly.call('Switch.GetStatus', { id: cfg.componentId }, startupOff);\n}\n/** After persisting the boot epoch, issue absolute OFF before the startup readiness readback. */\nfunction startupPersist(result, code) {\n\tif (code !== 0) {\n\t\tfail('epoch_persistence_failed');\n\t\treturn;\n\t}\n\tbusy = true;\n\tShelly.call('Switch.Set', { id: cfg.componentId, on: false }, startupSet);\n}\n/** Require commissioned epoch storage and persist its successor so packets from an earlier boot cannot reuse the epoch. */\nfunction startupEpoch(result, code) {\n\t// The key must have been initialized during commissioning. Missing/reset storage\n\t// cannot silently establish a fresh epoch and admit packets from an earlier boot.\n\tif (code !== 0 || !result || !integer(result.value) || result.value >= 2147483646) {\n\t\tfail('epoch_storage_unqualified');\n\t\treturn;\n\t}\n\tepoch = result.value + 1;\n\tShelly.call('KVS.Set', { key: cfg.epochKey, value: epoch }, startupPersist);\n}\n/** Restrict correlation tokens to a bounded alphabet accepted unchanged by the HTTP query parser. */\nfunction validNonce(nonce) {\n\tif (typeof nonce !== 'string' || nonce.length < 1 || nonce.length > 64) return false;\n\tlet allowed = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_-';\n\tfor (let index = 0; index < nonce.length; index++) if (allowed.indexOf(nonce.charAt(index)) < 0) return false;\n\treturn true;\n}\n\n/** Validate unique action parameters and nonce, then route one uncached correlated status, fence or ON reply. */\nfunction handleHttp(request, response) {\n\tlet params = {};\n\tlet reply = {\n\t\t/** Correlate a successful action result with the exact request nonce. */\n\t\tresult: function (value) {\n\t\t\tresponse.code = 200;\n\t\t\tresponse.body = JSON.stringify({ result: value, nonce: params.nonce });\n\t\t\tresponse.send();\n\t\t},\n\t\t/** Return a correlated protocol error without representing it as successful OFF evidence. */\n\t\terror: function (code, reason) {\n\t\t\tresponse.code = 409;\n\t\t\tresponse.body = JSON.stringify({ error: reason, nonce: params.nonce });\n\t\t\tresponse.send();\n\t\t},\n\t};\n\tresponse.headers = [\n\t\t['Content-Type', 'application/json'],\n\t\t['Cache-Control', 'no-store'],\n\t];\n\tif (request.method !== 'GET') {\n\t\treject(reply, 'method_not_allowed');\n\t\treturn;\n\t}\n\tlet action = null;\n\tlet parts = (request.query || '').split('&');\n\ttry {\n\t\tfor (let index = 0; index < parts.length; index++) {\n\t\t\tlet field = parts[index].split('=');\n\t\t\tif (field.length !== 2) {\n\t\t\t\treject(reply, 'invalid_query');\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (field[0] === 'action' && action === null) action = field[1];\n\t\t\telse if (field[0] === 'nonce' && params.nonce === undefined) params.nonce = field[1];\n\t\t\telse if (field[0] === 'epoch' && params.epoch === undefined) params.epoch = JSON.parse(field[1]);\n\t\t\telse if (field[0] === 'untilMs' && params.untilMs === undefined) params.untilMs = JSON.parse(field[1]);\n\t\t\telse {\n\t\t\t\treject(reply, 'invalid_query');\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t} catch (error) {\n\t\treject(reply, 'invalid_query');\n\t\treturn;\n\t}\n\tif (!validNonce(params.nonce)) {\n\t\treject(reply, 'invalid_nonce');\n\t\treturn;\n\t}\n\tif (action === 'status' && parts.length === 2) reply.result(view());\n\telse if (action === 'fence' && parts.length === 2) fence(reply);\n\telse if (action === 'on' && parts.length === 4) energize(reply, params);\n\telse reject(reply, 'invalid_action');\n}\n\n/** Validate device identity, declared installation prerequisites and bounds; declarations alone are not commissioning evidence. */\nfunction validConfig() {\n\treturn (\n\t\tcfg &&\n\t\tcfg.deviceId === info.id &&\n\t\tcfg.model === info.model &&\n\t\tcfg.firmware === info.fw_id &&\n\t\tcfg.evidenceId &&\n\t\tcfg.scriptRestartDrainQualified === true &&\n\t\tcfg.nativeWritersExcluded === true &&\n\t\tinteger(cfg.componentId) &&\n\t\tinteger(cfg.floorComponentId) &&\n\t\t((cfg.floorComponentType === 'temperature' && cfg.floorAttribute === 'tC') ||\n\t\t\t(cfg.floorComponentType === 'voltmeter' && cfg.floorAttribute === 'xvoltage') ||\n\t\t\tconversionQualified() ||\n\t\t\t(cfg.floorComponentType === 'input' && cfg.floorAttribute === 'xpercent')) &&\n\t\ttypeof cfg.floorConfigurationJson === 'string' &&\n\t\tcfg.floorConfigurationJson &&\n\t\ttypeof cfg.epochKey === 'string' &&\n\t\tcfg.epochKey &&\n\t\tinteger(cfg.minLeaseMs) &&\n\t\tcfg.minLeaseMs > 0 &&\n\t\tinteger(cfg.maxLeaseMs) &&\n\t\tcfg.maxLeaseMs >= cfg.minLeaseMs &&\n\t\tinteger(cfg.watchdogMs) &&\n\t\tcfg.watchdogMs > 0 &&\n\t\tcfg.watchdogMs < cfg.minLeaseMs &&\n\t\tinteger(cfg.floorMaxAgeMs) &&\n\t\tcfg.floorMaxAgeMs > cfg.watchdogMs &&\n\t\ttypeof cfg.floorLimitC === 'number' &&\n\t\tfiniteNumber(cfg.floorLimitC) &&\n\t\ttypeof cfg.floorHysteresisC === 'number' &&\n\t\tfiniteNumber(cfg.floorHysteresisC) &&\n\t\tcfg.floorHysteresisC > 0\n\t);\n}\n\nif (!validConfig()) {\n\tfail('installation_qualification_missing');\n} else {\n\tHTTPServer.registerEndpoint('spguard', handleHttp);\n\t// A cached startup snapshot cannot refresh sensor freshness. Only actual\n\t// sensor status reports qualify floor input; equal-report behavior needs testing.\n\tShelly.addStatusHandler(floorUpdate);\n\tTimer.set(cfg.watchdogMs, true, watchdog);\n\tbusy = true;\n\tdriveOff();\n\tShelly.call('KVS.Get', { key: cfg.epochKey }, startupEpoch);\n}\n";
|
|
5
|
+
//# sourceMappingURL=guard-script-source.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"guard-script-source.js","sourceRoot":"","sources":["../../../../src/plugins/devices-shelly-ng/contracts/guard-script-source.ts"],"names":[],"mappings":";;;AACa,QAAA,mBAAmB,GAC/B,mljBAAmljB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface ShellyGuardScriptQualification {
|
|
2
|
+
readonly scriptId: number;
|
|
3
|
+
readonly sourceHash: string;
|
|
4
|
+
readonly endpointHostname: string;
|
|
5
|
+
readonly canonicalMac: string;
|
|
6
|
+
readonly evidenceId: string;
|
|
7
|
+
readonly writerIsolationEvidenceId: string;
|
|
8
|
+
readonly commissioningBarrierEvidenceId: string;
|
|
9
|
+
readonly endpointAuthenticationEvidenceId: string;
|
|
10
|
+
readonly restartDrainEvidenceId: string;
|
|
11
|
+
readonly localExecutionBoundsEvidenceId: string;
|
|
12
|
+
readonly installationMetadata?: {
|
|
13
|
+
readonly componentType: string;
|
|
14
|
+
readonly componentId: number;
|
|
15
|
+
readonly configurationJson: string;
|
|
16
|
+
readonly switchConfigurationJson: string;
|
|
17
|
+
readonly peripheralsJson: string;
|
|
18
|
+
};
|
|
19
|
+
readonly protocol: 'sp-guard-candidate-1';
|
|
20
|
+
}
|
|
21
|
+
export declare function guardScriptReadiness(value: ShellyGuardScriptQualification | undefined): readonly string[];
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.guardScriptReadiness = guardScriptReadiness;
|
|
4
|
+
const node_net_1 = require("node:net");
|
|
5
|
+
function guardScriptReadiness(value) {
|
|
6
|
+
if (!value)
|
|
7
|
+
return ['ordered_script_qualification_missing'];
|
|
8
|
+
const identifiers = [
|
|
9
|
+
value.evidenceId,
|
|
10
|
+
value.writerIsolationEvidenceId,
|
|
11
|
+
value.commissioningBarrierEvidenceId,
|
|
12
|
+
value.endpointAuthenticationEvidenceId,
|
|
13
|
+
value.restartDrainEvidenceId,
|
|
14
|
+
value.localExecutionBoundsEvidenceId,
|
|
15
|
+
];
|
|
16
|
+
if (identifiers.some((id) => typeof id !== 'string' || !id.trim() || id.length > 256))
|
|
17
|
+
return ['ordered_script_qualification_invalid'];
|
|
18
|
+
try {
|
|
19
|
+
const endpoint = new URL(`http://${value.endpointHostname}`);
|
|
20
|
+
if ((0, node_net_1.isIP)(endpoint.hostname.replace(/^\[|\]$/g, '')) === 0 ||
|
|
21
|
+
endpoint.host !== value.endpointHostname ||
|
|
22
|
+
endpoint.username ||
|
|
23
|
+
endpoint.password ||
|
|
24
|
+
endpoint.pathname !== '/' ||
|
|
25
|
+
endpoint.search ||
|
|
26
|
+
endpoint.hash)
|
|
27
|
+
return ['ordered_script_endpoint_invalid'];
|
|
28
|
+
}
|
|
29
|
+
catch {
|
|
30
|
+
return ['ordered_script_endpoint_invalid'];
|
|
31
|
+
}
|
|
32
|
+
return Number.isSafeInteger(value.scriptId) &&
|
|
33
|
+
value.scriptId >= 0 &&
|
|
34
|
+
/^[a-f0-9]{64}$/.test(value.sourceHash) &&
|
|
35
|
+
/^[a-f0-9]{12}$/i.test(value.canonicalMac) &&
|
|
36
|
+
!!value.endpointHostname &&
|
|
37
|
+
!!value.evidenceId &&
|
|
38
|
+
!!value.writerIsolationEvidenceId &&
|
|
39
|
+
!!value.commissioningBarrierEvidenceId &&
|
|
40
|
+
!!value.endpointAuthenticationEvidenceId &&
|
|
41
|
+
!!value.restartDrainEvidenceId &&
|
|
42
|
+
!!value.localExecutionBoundsEvidenceId &&
|
|
43
|
+
value.protocol === 'sp-guard-candidate-1'
|
|
44
|
+
? []
|
|
45
|
+
: ['ordered_script_qualification_invalid'];
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=guard-script.contract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"guard-script.contract.js","sourceRoot":"","sources":["../../../../src/plugins/devices-shelly-ng/contracts/guard-script.contract.ts"],"names":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,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC;QAC1C,CAAC,CAAC,KAAK,CAAC,gBAAgB;QACxB,CAAC,CAAC,KAAK,CAAC,UAAU;QAClB,CAAC,CAAC,KAAK,CAAC,yBAAyB;QACjC,CAAC,CAAC,KAAK,CAAC,8BAA8B;QACtC,CAAC,CAAC,KAAK,CAAC,gCAAgC;QACxC,CAAC,CAAC,KAAK,CAAC,sBAAsB;QAC9B,CAAC,CAAC,KAAK,CAAC,8BAA8B;QACtC,KAAK,CAAC,QAAQ,KAAK,sBAAsB;QACzC,CAAC,CAAC,EAAE;QACJ,CAAC,CAAC,CAAC,sCAAsC,CAAC,CAAC;AAC7C,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SHELLY_MEMBER_GUARD_SOURCE = void 0;
|
|
4
|
+
exports.buildShellyMemberGuardSource = buildShellyMemberGuardSource;
|
|
5
|
+
const guard_script_source_1 = require("./guard-script-source");
|
|
6
|
+
function buildShellyMemberGuardSource(source) {
|
|
7
|
+
const patches = [
|
|
8
|
+
[
|
|
9
|
+
'function observeFloor(status) {\n',
|
|
10
|
+
'function observeFloor(status) {\n\tif (now() - floorObservedAt >= cfg.floorMaxAgeMs) floorLatched = true;\n',
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
'!finiteNumber(value) || (status.errors',
|
|
14
|
+
'!finiteNumber(value) || !cfg.floorDomainC || value < cfg.floorDomainC.minimum || value > cfg.floorDomainC.maximum || (status.errors',
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
'cfg.floorHysteresisC > 0\n',
|
|
18
|
+
'cfg.floorHysteresisC > 0 && cfg.floorDomainC && finiteNumber(cfg.floorDomainC.minimum) && finiteNumber(cfg.floorDomainC.maximum) && cfg.floorDomainC.minimum < cfg.floorDomainC.maximum && cfg.floorLimitC <= cfg.floorDomainC.maximum && cfg.floorLimitC > cfg.floorDomainC.minimum && cfg.floorLimitC - cfg.floorHysteresisC > cfg.floorDomainC.minimum\n',
|
|
19
|
+
],
|
|
20
|
+
];
|
|
21
|
+
for (const [anchor] of patches)
|
|
22
|
+
if (source.split(anchor).length !== 2)
|
|
23
|
+
throw new Error(`Member guard patch anchor must occur exactly once: ${anchor}`);
|
|
24
|
+
return patches.reduce((result, [anchor, replacement]) => result.replace(anchor, replacement), source);
|
|
25
|
+
}
|
|
26
|
+
exports.SHELLY_MEMBER_GUARD_SOURCE = buildShellyMemberGuardSource(guard_script_source_1.SHELLY_GUARD_SOURCE);
|
|
27
|
+
//# sourceMappingURL=member-guard-script-source.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"member-guard-script-source.js","sourceRoot":"","sources":["../../../../src/plugins/devices-shelly-ng/contracts/member-guard-script-source.ts"],"names":[],"mappings":";;;AAGA,oEAmBC;AAtBD,+DAA4D;AAG5D,SAAgB,4BAA4B,CAAC,MAAc;IAC1D,MAAM,OAAO,GAAG;QACf;YACC,mCAAmC;YACnC,6GAA6G;SAC7G;QACD;YACC,wCAAwC;YACxC,qIAAqI;SACrI;QACD;YACC,4BAA4B;YAC5B,6VAA6V;SAC7V;KACQ,CAAC;IACX,KAAK,MAAM,CAAC,MAAM,CAAC,IAAI,OAAO;QAC7B,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,MAAM,KAAK,CAAC;YACpC,MAAM,IAAI,KAAK,CAAC,sDAAsD,MAAM,EAAE,CAAC,CAAC;IAClF,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,WAAW,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,CAAC,CAAC;AACvG,CAAC;AAGY,QAAA,0BAA0B,GAAG,4BAA4B,CAAC,yCAAmB,CAAC,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { PropertySampleEvidence } from '../../../modules/devices/models/property-sample.model';
|
|
2
|
+
export { hasQualifiedRawVoltageIdentity } from '../../../modules/devices/utils/property-metadata.utils';
|
|
3
|
+
export interface ShellyRawSample {
|
|
4
|
+
readonly componentKey: string;
|
|
5
|
+
readonly values: Readonly<Record<string, unknown>>;
|
|
6
|
+
readonly evidence: PropertySampleEvidence;
|
|
7
|
+
}
|
|
8
|
+
export interface NativeTemperatureSnapshot {
|
|
9
|
+
readonly installationSnapshot?: {
|
|
10
|
+
configuration: Readonly<Record<string, unknown>>;
|
|
11
|
+
peripherals: Readonly<Record<string, unknown>>;
|
|
12
|
+
};
|
|
13
|
+
readonly componentKey: string;
|
|
14
|
+
readonly fingerprint: string;
|
|
15
|
+
readonly channelIdentifier: string;
|
|
16
|
+
readonly attribute: 'xpercent' | 'xvoltage' | 'tC' | 'voltage';
|
|
17
|
+
readonly unit: string;
|
|
18
|
+
readonly expression: string | null;
|
|
19
|
+
readonly configuration: {
|
|
20
|
+
readonly enabled: boolean;
|
|
21
|
+
readonly inverted: boolean;
|
|
22
|
+
readonly rangeMap: readonly number[] | null;
|
|
23
|
+
readonly inputRange: number | null;
|
|
24
|
+
readonly reportThreshold: number | null;
|
|
25
|
+
readonly offset: number | null;
|
|
26
|
+
};
|
|
27
|
+
readonly peripheral: {
|
|
28
|
+
readonly kind: 'analog_in' | 'voltmeter' | 'ds18b20';
|
|
29
|
+
readonly io: number;
|
|
30
|
+
readonly address: string | null;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export declare function nativeTemperatureIdentity(componentKey: string, config: Readonly<Record<string, unknown>>, peripherals: Readonly<Record<string, unknown>>): NativeTemperatureSnapshot | null;
|
|
34
|
+
export declare function nativeVoltmeterVoltageIdentity(componentKey: string, config: Readonly<Record<string, unknown>>, peripherals: Readonly<Record<string, unknown>>, canonicalMac: string | null | undefined): NativeTemperatureSnapshot | null;
|
|
35
|
+
export declare function shellySampleEvidence(ts: unknown, observedAt: Date, receivedAt?: Date): PropertySampleEvidence;
|
|
36
|
+
export declare function hasQualifiedFloorSourceIdentity(channelIdentifier: string): boolean;
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.hasQualifiedRawVoltageIdentity = void 0;
|
|
4
|
+
exports.nativeTemperatureIdentity = nativeTemperatureIdentity;
|
|
5
|
+
exports.nativeVoltmeterVoltageIdentity = nativeVoltmeterVoltageIdentity;
|
|
6
|
+
exports.shellySampleEvidence = shellySampleEvidence;
|
|
7
|
+
exports.hasQualifiedFloorSourceIdentity = hasQualifiedFloorSourceIdentity;
|
|
8
|
+
const crypto_1 = require("crypto");
|
|
9
|
+
var property_metadata_utils_1 = require("../../../modules/devices/utils/property-metadata.utils");
|
|
10
|
+
Object.defineProperty(exports, "hasQualifiedRawVoltageIdentity", { enumerable: true, get: function () { return property_metadata_utils_1.hasQualifiedRawVoltageIdentity; } });
|
|
11
|
+
function installationSnapshot(componentKey, configuration, peripherals) {
|
|
12
|
+
const common = ['id', 'name', 'enable', 'invert', 'range', 'range_map', 'report_thr', 'offset'];
|
|
13
|
+
const allowed = componentKey.startsWith('temperature:')
|
|
14
|
+
? ['id', 'name', 'report_thr_C', 'offset_C']
|
|
15
|
+
: [...common, 'type', 'factory_reset', 'xpercent', 'xvoltage'];
|
|
16
|
+
if (Object.keys(configuration).some((key) => !allowed.includes(key)))
|
|
17
|
+
return undefined;
|
|
18
|
+
for (const key of ['xpercent', 'xvoltage']) {
|
|
19
|
+
const helper = configuration[key];
|
|
20
|
+
if (helper != null &&
|
|
21
|
+
(typeof helper !== 'object' ||
|
|
22
|
+
Array.isArray(helper) ||
|
|
23
|
+
Object.entries(helper).some(([field, value]) => !['expr', 'unit'].includes(field) || (value !== null && typeof value !== 'string'))))
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
for (const [key, value] of Object.entries(configuration)) {
|
|
27
|
+
if (['xpercent', 'xvoltage'].includes(key))
|
|
28
|
+
continue;
|
|
29
|
+
if (key === 'range_map') {
|
|
30
|
+
if (value != null &&
|
|
31
|
+
(!Array.isArray(value) || !value.every((entry) => typeof entry === 'number' && Number.isFinite(entry))))
|
|
32
|
+
return undefined;
|
|
33
|
+
continue;
|
|
34
|
+
}
|
|
35
|
+
if (value !== null && !['string', 'boolean', 'number'].includes(typeof value))
|
|
36
|
+
return undefined;
|
|
37
|
+
if (typeof value === 'number' && !Number.isFinite(value))
|
|
38
|
+
return undefined;
|
|
39
|
+
}
|
|
40
|
+
for (const [kind, links] of Object.entries(peripherals)) {
|
|
41
|
+
if (!['analog_in', 'voltmeter', 'ds18b20', 'dht22', 'digital_in', 'digital_out'].includes(kind) ||
|
|
42
|
+
!links ||
|
|
43
|
+
typeof links !== 'object' ||
|
|
44
|
+
Array.isArray(links))
|
|
45
|
+
return undefined;
|
|
46
|
+
for (const link of Object.values(links))
|
|
47
|
+
if (!link ||
|
|
48
|
+
typeof link !== 'object' ||
|
|
49
|
+
Array.isArray(link) ||
|
|
50
|
+
Object.entries(link).some(([key, value]) => key === 'io'
|
|
51
|
+
? !Number.isSafeInteger(value) || value < 0
|
|
52
|
+
: key === 'addr'
|
|
53
|
+
? typeof value !== 'string'
|
|
54
|
+
: true))
|
|
55
|
+
return undefined;
|
|
56
|
+
}
|
|
57
|
+
const serialized = JSON.stringify({ configuration, peripherals });
|
|
58
|
+
return serialized.length <= 8192
|
|
59
|
+
? JSON.parse(serialized)
|
|
60
|
+
: undefined;
|
|
61
|
+
}
|
|
62
|
+
function nativeTemperatureIdentity(componentKey, config, peripherals) {
|
|
63
|
+
const [type, id] = componentKey.split(':');
|
|
64
|
+
if (!['input', 'voltmeter', 'temperature'].includes(type) || !/^\d+$/.test(id) || config.id !== Number(id))
|
|
65
|
+
return null;
|
|
66
|
+
if (!Number.isSafeInteger(Number(id)))
|
|
67
|
+
return null;
|
|
68
|
+
if (config.range_map !== undefined &&
|
|
69
|
+
config.range_map !== null &&
|
|
70
|
+
(!Array.isArray(config.range_map) ||
|
|
71
|
+
!config.range_map.every((value) => typeof value === 'number' && Number.isFinite(value))))
|
|
72
|
+
return null;
|
|
73
|
+
for (const field of ['invert', 'enable'])
|
|
74
|
+
if (config[field] !== undefined && typeof config[field] !== 'boolean')
|
|
75
|
+
return null;
|
|
76
|
+
const thresholdField = type === 'temperature' ? 'report_thr_C' : 'report_thr';
|
|
77
|
+
const offsetField = type === 'temperature' ? 'offset_C' : 'offset';
|
|
78
|
+
for (const field of [offsetField, thresholdField])
|
|
79
|
+
if (config[field] !== undefined &&
|
|
80
|
+
config[field] !== null &&
|
|
81
|
+
(typeof config[field] !== 'number' || !Number.isFinite(config[field])))
|
|
82
|
+
return null;
|
|
83
|
+
if (config.range !== undefined &&
|
|
84
|
+
config.range !== null &&
|
|
85
|
+
(!Number.isInteger(config.range) || config.range < 0))
|
|
86
|
+
return null;
|
|
87
|
+
const attribute = type === 'input' ? 'xpercent' : type === 'voltmeter' ? 'xvoltage' : 'tC';
|
|
88
|
+
const kind = type === 'input' ? 'analog_in' : type === 'voltmeter' ? 'voltmeter' : 'ds18b20';
|
|
89
|
+
const links = peripherals[kind];
|
|
90
|
+
const link = links?.[componentKey];
|
|
91
|
+
if (!link || typeof link !== 'object' || Array.isArray(link))
|
|
92
|
+
return null;
|
|
93
|
+
const io = link.io === undefined ? 0 : link.io;
|
|
94
|
+
if (!Number.isInteger(io) || io < 0)
|
|
95
|
+
return null;
|
|
96
|
+
let unit;
|
|
97
|
+
let expression;
|
|
98
|
+
if (type === 'temperature') {
|
|
99
|
+
if (typeof link.addr !== 'string' || !link.addr.trim())
|
|
100
|
+
return null;
|
|
101
|
+
unit = '°C';
|
|
102
|
+
expression = null;
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
const helper = config[attribute];
|
|
106
|
+
if (!helper ||
|
|
107
|
+
typeof helper.expr !== 'string' ||
|
|
108
|
+
!helper.expr.trim() ||
|
|
109
|
+
typeof helper.unit !== 'string' ||
|
|
110
|
+
!['°C', 'C', 'Celsius', 'celsius'].includes(helper.unit))
|
|
111
|
+
return null;
|
|
112
|
+
if (type === 'input' && (config.type !== 'analog' || config.enable === false))
|
|
113
|
+
return null;
|
|
114
|
+
unit = helper.unit;
|
|
115
|
+
expression = helper.expr;
|
|
116
|
+
}
|
|
117
|
+
const configuration = {
|
|
118
|
+
enabled: config.enable !== false,
|
|
119
|
+
inverted: config.invert === true,
|
|
120
|
+
rangeMap: Array.isArray(config.range_map) &&
|
|
121
|
+
config.range_map.every((value) => typeof value === 'number' && Number.isFinite(value))
|
|
122
|
+
? [...config.range_map]
|
|
123
|
+
: null,
|
|
124
|
+
inputRange: typeof config.range === 'number' ? config.range : null,
|
|
125
|
+
reportThreshold: typeof config[thresholdField] === 'number' && Number.isFinite(config[thresholdField])
|
|
126
|
+
? config[thresholdField]
|
|
127
|
+
: null,
|
|
128
|
+
offset: typeof config[offsetField] === 'number' && Number.isFinite(config[offsetField]) ? config[offsetField] : null,
|
|
129
|
+
};
|
|
130
|
+
const peripheral = {
|
|
131
|
+
kind,
|
|
132
|
+
io: io,
|
|
133
|
+
address: typeof link.addr === 'string' ? link.addr : null,
|
|
134
|
+
};
|
|
135
|
+
const fingerprint = (0, crypto_1.createHash)('sha256')
|
|
136
|
+
.update(JSON.stringify({ componentKey, unit, expression, configuration, peripheral }))
|
|
137
|
+
.digest('hex');
|
|
138
|
+
return {
|
|
139
|
+
installationSnapshot: installationSnapshot(componentKey, config, peripherals),
|
|
140
|
+
componentKey,
|
|
141
|
+
fingerprint,
|
|
142
|
+
channelIdentifier: `${type === 'temperature' ? 'probe-temperature' : 'helper-temperature'}:${componentKey}:${fingerprint}`,
|
|
143
|
+
attribute,
|
|
144
|
+
unit,
|
|
145
|
+
expression,
|
|
146
|
+
configuration,
|
|
147
|
+
peripheral,
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
function nativeVoltmeterVoltageIdentity(componentKey, config, peripherals, canonicalMac) {
|
|
151
|
+
const match = /^voltmeter:(\d+)$/.exec(componentKey);
|
|
152
|
+
if (!match || !Number.isSafeInteger(Number(match[1])) || config.id !== Number(match[1]))
|
|
153
|
+
return null;
|
|
154
|
+
if (!canonicalMac || !/^[\da-f]{12}$/i.test(canonicalMac))
|
|
155
|
+
return null;
|
|
156
|
+
if (!Number.isInteger(config.range) || config.range < 0)
|
|
157
|
+
return null;
|
|
158
|
+
if (config.report_thr !== undefined &&
|
|
159
|
+
config.report_thr !== null &&
|
|
160
|
+
(typeof config.report_thr !== 'number' || !Number.isFinite(config.report_thr)))
|
|
161
|
+
return null;
|
|
162
|
+
const links = peripherals.voltmeter;
|
|
163
|
+
const link = links?.[componentKey];
|
|
164
|
+
if (!link || typeof link !== 'object' || Array.isArray(link))
|
|
165
|
+
return null;
|
|
166
|
+
const io = link.io === undefined ? 0 : link.io;
|
|
167
|
+
if (!Number.isInteger(io) || io < 0)
|
|
168
|
+
return null;
|
|
169
|
+
const configuration = {
|
|
170
|
+
enabled: true,
|
|
171
|
+
inverted: false,
|
|
172
|
+
rangeMap: null,
|
|
173
|
+
inputRange: config.range,
|
|
174
|
+
reportThreshold: typeof config.report_thr === 'number' ? config.report_thr : null,
|
|
175
|
+
offset: null,
|
|
176
|
+
};
|
|
177
|
+
const peripheral = { kind: 'voltmeter', io: io, address: null };
|
|
178
|
+
const fingerprint = (0, crypto_1.createHash)('sha256')
|
|
179
|
+
.update(JSON.stringify({ canonicalMac: canonicalMac.toUpperCase(), componentKey, unit: 'V', configuration, peripheral }))
|
|
180
|
+
.digest('hex');
|
|
181
|
+
return {
|
|
182
|
+
installationSnapshot: installationSnapshot(componentKey, config, peripherals),
|
|
183
|
+
componentKey,
|
|
184
|
+
fingerprint,
|
|
185
|
+
channelIdentifier: `raw-voltage:${componentKey}:${fingerprint}`,
|
|
186
|
+
attribute: 'voltage',
|
|
187
|
+
unit: 'V',
|
|
188
|
+
expression: null,
|
|
189
|
+
configuration,
|
|
190
|
+
peripheral,
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
function shellySampleEvidence(ts, observedAt, receivedAt = new Date()) {
|
|
194
|
+
const sourceTime = ts === undefined ? observedAt : new Date(typeof ts === 'number' && Number.isFinite(ts) ? ts * 1000 : Number.NaN);
|
|
195
|
+
return { sampledAt: sourceTime, receivedAt, observedAt, provenance: 'live' };
|
|
196
|
+
}
|
|
197
|
+
function hasQualifiedFloorSourceIdentity(channelIdentifier) {
|
|
198
|
+
return /^(helper-temperature:(input|voltmeter)|probe-temperature:temperature):\d+:[a-f0-9]{64}$/.test(channelIdentifier);
|
|
199
|
+
}
|
|
200
|
+
//# sourceMappingURL=native-temperature.contract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-temperature.contract.js","sourceRoot":"","sources":["../../../../src/plugins/devices-shelly-ng/contracts/native-temperature.contract.ts"],"names":[],"mappings":";;;AAyGA,8DAgGC;AAGD,wEA8CC;AAGD,oDAKC;AAGD,0EAIC;AAzQD,mCAAoC;AAIpC,kGAAwG;AAA/F,yIAAA,8BAA8B,OAAA;AAmCvC,SAAS,oBAAoB,CAC5B,YAAoB,EACpB,aAAgD,EAChD,WAA8C;IAE9C,MAAM,MAAM,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,CAAC,CAAC;IAChG,MAAM,OAAO,GAAG,YAAY,CAAC,UAAU,CAAC,cAAc,CAAC;QACtD,CAAC,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,CAAC;QAC5C,CAAC,CAAC,CAAC,GAAG,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC;IAChE,IAAI,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EA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AAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IAClH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC;AAC9E,CAAC;AAGD,SAAgB,+BAA+B,CAAC,iBAAyB;IACxE,OAAO,yFAAyF,CAAC,IAAI,CACpG,iBAAiB,CACjB,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { QualifiedRemoteDewPointProfile } from '../services/remote-dew-point-qualification';
|
|
2
|
+
import { ShellyGuardScriptQualification } from './guard-script.contract';
|
|
3
|
+
export interface ShellyProtectiveQualification {
|
|
4
|
+
readonly deviceId: string;
|
|
5
|
+
readonly model: string;
|
|
6
|
+
readonly firmware: string;
|
|
7
|
+
readonly componentId: number;
|
|
8
|
+
readonly evidenceId: string;
|
|
9
|
+
readonly revision: number;
|
|
10
|
+
readonly testedLeaseSeconds: {
|
|
11
|
+
readonly min: number;
|
|
12
|
+
readonly max: number;
|
|
13
|
+
};
|
|
14
|
+
readonly releaseOrderingQualified: boolean;
|
|
15
|
+
readonly independentProtectionQualified: boolean;
|
|
16
|
+
readonly guardScript?: ShellyGuardScriptQualification;
|
|
17
|
+
readonly remoteDewPoint?: QualifiedRemoteDewPointProfile;
|
|
18
|
+
}
|
|
19
|
+
export type ShellyProtectiveCommand = {
|
|
20
|
+
readonly on: true;
|
|
21
|
+
readonly leaseSeconds: number;
|
|
22
|
+
readonly qualification: ShellyProtectiveQualification;
|
|
23
|
+
} | {
|
|
24
|
+
readonly on: false;
|
|
25
|
+
};
|
|
26
|
+
export type ShellyProtectiveCommandResult = {
|
|
27
|
+
readonly outcome: 'refused';
|
|
28
|
+
readonly reasons: readonly string[];
|
|
29
|
+
} | {
|
|
30
|
+
readonly outcome: 'accepted';
|
|
31
|
+
readonly wasOn: boolean;
|
|
32
|
+
readonly outputConfirmed: false;
|
|
33
|
+
readonly pendingOnDrained: false;
|
|
34
|
+
} | {
|
|
35
|
+
readonly outcome: 'unknown';
|
|
36
|
+
readonly outputConfirmed: false;
|
|
37
|
+
readonly pendingOnDrained: false;
|
|
38
|
+
};
|
|
39
|
+
export declare function protectiveReadiness(identity: {
|
|
40
|
+
deviceId: string;
|
|
41
|
+
model: string;
|
|
42
|
+
firmware: string;
|
|
43
|
+
}, componentId: number, qualification?: ShellyProtectiveQualification): readonly string[];
|
|
44
|
+
export declare const SHELLY_V1_PROTECTIVE_READINESS: readonly string[];
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SHELLY_V1_PROTECTIVE_READINESS = void 0;
|
|
4
|
+
exports.protectiveReadiness = protectiveReadiness;
|
|
5
|
+
function protectiveReadiness(identity, componentId, qualification) {
|
|
6
|
+
const reasons = [];
|
|
7
|
+
if (identity.model !== 'SNSW-001P16EU')
|
|
8
|
+
reasons.push('unsupported_model');
|
|
9
|
+
if (!qualification)
|
|
10
|
+
return [...reasons, 'hardware_evidence_missing'];
|
|
11
|
+
if (qualification.deviceId !== identity.deviceId ||
|
|
12
|
+
qualification.model !== identity.model ||
|
|
13
|
+
!identity.firmware ||
|
|
14
|
+
qualification.firmware !== identity.firmware ||
|
|
15
|
+
qualification.componentId !== componentId)
|
|
16
|
+
reasons.push('hardware_identity_mismatch');
|
|
17
|
+
if (!qualification.evidenceId || !Number.isSafeInteger(qualification.revision) || qualification.revision < 1)
|
|
18
|
+
reasons.push('hardware_evidence_missing');
|
|
19
|
+
if (!qualification.releaseOrderingQualified)
|
|
20
|
+
reasons.push('release_ordering_unqualified');
|
|
21
|
+
if (!qualification.independentProtectionQualified)
|
|
22
|
+
reasons.push('independent_protection_unqualified');
|
|
23
|
+
const bounds = qualification.testedLeaseSeconds;
|
|
24
|
+
if (!Number.isFinite(bounds.min) || !Number.isFinite(bounds.max) || bounds.min <= 0 || bounds.max < bounds.min)
|
|
25
|
+
reasons.push('lease_bounds_unqualified');
|
|
26
|
+
return reasons;
|
|
27
|
+
}
|
|
28
|
+
exports.SHELLY_V1_PROTECTIVE_READINESS = Object.freeze(['unsupported_protective_protocol']);
|
|
29
|
+
//# sourceMappingURL=protective-switch.contract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protective-switch.contract.js","sourceRoot":"","sources":["../../../../src/plugins/devices-shelly-ng/contracts/protective-switch.contract.ts"],"names":[],"mappings":";;;AAqCA,kDAyBC;AAzBD,SAAgB,mBAAmB,CAClC,QAA+D,EAC/D,WAAmB,EACnB,aAA6C;IAE7C,MAAM,OAAO,GAAa,EAAE,CAAC;IAE7B,IAAI,QAAQ,CAAC,KAAK,KAAK,eAAe;QAAE,OAAO,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;IAC1E,IAAI,CAAC,aAAa;QAAE,OAAO,CAAC,GAAG,OAAO,EAAE,2BAA2B,CAAC,CAAC;IACrE,IACC,aAAa,CAAC,QAAQ,KAAK,QAAQ,CAAC,QAAQ;QAC5C,aAAa,CAAC,KAAK,KAAK,QAAQ,CAAC,KAAK;QACtC,CAAC,QAAQ,CAAC,QAAQ;QAClB,aAAa,CAAC,QAAQ,KAAK,QAAQ,CAAC,QAAQ;QAC5C,aAAa,CAAC,WAAW,KAAK,WAAW;QAEzC,OAAO,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAC;IAC5C,IAAI,CAAC,aAAa,CAAC,UAAU,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,aAAa,CAAC,QAAQ,CAAC,IAAI,aAAa,CAAC,QAAQ,GAAG,CAAC;QAC3G,OAAO,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC;IAC3C,IAAI,CAAC,aAAa,CAAC,wBAAwB;QAAE,OAAO,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC;IAC1F,IAAI,CAAC,aAAa,CAAC,8BAA8B;QAAE,OAAO,CAAC,IAAI,CAAC,oCAAoC,CAAC,CAAC;IACtG,MAAM,MAAM,GAAG,aAAa,CAAC,kBAAkB,CAAC;IAChD,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,MAAM,CAAC,GAAG,GAAG,MAAM,CAAC,GAAG;QAC7G,OAAO,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC;IAC1C,OAAO,OAAO,CAAC;AAChB,CAAC;AAGY,QAAA,8BAA8B,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,iCAAiC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AuthenticatedRequest } from '../../../modules/auth/guards/auth.guard';
|
|
2
|
+
import { ReqRecoverCoverOrderingDto } from '../dto/cover-recovery.dto';
|
|
3
|
+
import { CoverRecoveryContextResponseModel, CoverRecoveryResponseModel } from '../models/cover-recovery.model';
|
|
4
|
+
import { ShellyCoverRecoveryService } from '../services/shelly-cover-recovery.service';
|
|
5
|
+
export declare class ShellyCoverRecoveryController {
|
|
6
|
+
private readonly recovery;
|
|
7
|
+
constructor(recovery: ShellyCoverRecoveryService);
|
|
8
|
+
private actor;
|
|
9
|
+
context(request: AuthenticatedRequest, deviceId: string, channelId: string, propertyId: string): Promise<CoverRecoveryContextResponseModel>;
|
|
10
|
+
recover(request: AuthenticatedRequest, deviceId: string, channelId: string, propertyId: string, dto: ReqRecoverCoverOrderingDto): Promise<CoverRecoveryResponseModel>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.ShellyCoverRecoveryController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
18
|
+
const api_documentation_decorator_1 = require("../../../modules/swagger/decorators/api-documentation.decorator");
|
|
19
|
+
const roles_guard_1 = require("../../../modules/users/guards/roles.guard");
|
|
20
|
+
const users_constants_1 = require("../../../modules/users/users.constants");
|
|
21
|
+
const devices_shelly_ng_constants_1 = require("../devices-shelly-ng.constants");
|
|
22
|
+
const cover_recovery_dto_1 = require("../dto/cover-recovery.dto");
|
|
23
|
+
const cover_recovery_model_1 = require("../models/cover-recovery.model");
|
|
24
|
+
const shelly_cover_recovery_service_1 = require("../services/shelly-cover-recovery.service");
|
|
25
|
+
let ShellyCoverRecoveryController = class ShellyCoverRecoveryController {
|
|
26
|
+
constructor(recovery) {
|
|
27
|
+
this.recovery = recovery;
|
|
28
|
+
}
|
|
29
|
+
actor(request) {
|
|
30
|
+
const auth = request.auth;
|
|
31
|
+
if (auth?.type !== 'user' || !auth.id || ![users_constants_1.UserRole.OWNER, users_constants_1.UserRole.ADMIN].includes(auth.role))
|
|
32
|
+
throw new common_1.ForbiddenException('Identified owner or administrator required');
|
|
33
|
+
return auth.id;
|
|
34
|
+
}
|
|
35
|
+
async context(request, deviceId, channelId, propertyId) {
|
|
36
|
+
const response = new cover_recovery_model_1.CoverRecoveryContextResponseModel();
|
|
37
|
+
response.data = await this.recovery.context(this.actor(request), deviceId, channelId, propertyId);
|
|
38
|
+
return response;
|
|
39
|
+
}
|
|
40
|
+
async recover(request, deviceId, channelId, propertyId, dto) {
|
|
41
|
+
const response = new cover_recovery_model_1.CoverRecoveryResponseModel();
|
|
42
|
+
response.data = await this.recovery.recover(this.actor(request), deviceId, channelId, propertyId, dto.data);
|
|
43
|
+
return response;
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
exports.ShellyCoverRecoveryController = ShellyCoverRecoveryController;
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, swagger_1.ApiOperation)({
|
|
49
|
+
tags: [devices_shelly_ng_constants_1.DEVICES_SHELLY_NG_PLUGIN_API_TAG_NAME],
|
|
50
|
+
summary: 'Get unresolved ordinary cover ordering context',
|
|
51
|
+
description: 'Owner/admin only. Short-lived canonical metadata and connection context; this is not command authority.',
|
|
52
|
+
operationId: 'get-devices-shelly-ng-plugin-cover-ordering-recovery',
|
|
53
|
+
}),
|
|
54
|
+
(0, api_documentation_decorator_1.ApiSuccessResponse)(cover_recovery_model_1.CoverRecoveryContextResponseModel, 'Current unresolved ordinary cover ordering context'),
|
|
55
|
+
(0, api_documentation_decorator_1.ApiForbiddenResponse)('Identified owner or administrator user session required'),
|
|
56
|
+
(0, api_documentation_decorator_1.ApiBadRequestResponse)('Invalid canonical device/channel/property identifiers'),
|
|
57
|
+
(0, api_documentation_decorator_1.ApiNotFoundResponse)('No current canonical motor or unresolved ordering reservation'),
|
|
58
|
+
(0, api_documentation_decorator_1.ApiConflictResponse)('Recovery context or guarded provider changed'),
|
|
59
|
+
(0, roles_guard_1.Roles)(users_constants_1.UserRole.OWNER, users_constants_1.UserRole.ADMIN),
|
|
60
|
+
(0, common_1.Get)(),
|
|
61
|
+
__param(0, (0, common_1.Req)()),
|
|
62
|
+
__param(1, (0, common_1.Param)('deviceId', new common_1.ParseUUIDPipe())),
|
|
63
|
+
__param(2, (0, common_1.Param)('channelId', new common_1.ParseUUIDPipe())),
|
|
64
|
+
__param(3, (0, common_1.Param)('propertyId', new common_1.ParseUUIDPipe())),
|
|
65
|
+
__metadata("design:type", Function),
|
|
66
|
+
__metadata("design:paramtypes", [Object, String, String, String]),
|
|
67
|
+
__metadata("design:returntype", Promise)
|
|
68
|
+
], ShellyCoverRecoveryController.prototype, "context", null);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, swagger_1.ApiOperation)({
|
|
71
|
+
tags: [devices_shelly_ng_constants_1.DEVICES_SHELLY_NG_PLUGIN_API_TAG_NAME],
|
|
72
|
+
summary: 'Accept unresolved ordinary cover ordering uncertainty',
|
|
73
|
+
description: 'Explicit owner/admin physical handback responsibility. Previously sent actions may still execute. Fresh nonmoving status is a current-condition prerequisite, never upstream drain proof or command completion. No hardware command is sent.',
|
|
74
|
+
operationId: 'recover-devices-shelly-ng-plugin-cover-ordering',
|
|
75
|
+
}),
|
|
76
|
+
(0, api_documentation_decorator_1.ApiSuccessResponse)(cover_recovery_model_1.CoverRecoveryResponseModel, 'Audited operator uncertainty override; no command confirmation'),
|
|
77
|
+
(0, api_documentation_decorator_1.ApiForbiddenResponse)('Identified owner or administrator user session required'),
|
|
78
|
+
(0, api_documentation_decorator_1.ApiBadRequestResponse)('Explicit acknowledgement, bounded reason and current context required'),
|
|
79
|
+
(0, api_documentation_decorator_1.ApiNotFoundResponse)('Current canonical ordinary physical motor is unavailable'),
|
|
80
|
+
(0, api_documentation_decorator_1.ApiConflictResponse)('Active dispatch, stale context/reservation, invalid current condition or audit conflict; ordering stays unresolved'),
|
|
81
|
+
(0, roles_guard_1.Roles)(users_constants_1.UserRole.OWNER, users_constants_1.UserRole.ADMIN),
|
|
82
|
+
(0, common_1.Post)(),
|
|
83
|
+
(0, common_1.HttpCode)(200),
|
|
84
|
+
__param(0, (0, common_1.Req)()),
|
|
85
|
+
__param(1, (0, common_1.Param)('deviceId', new common_1.ParseUUIDPipe())),
|
|
86
|
+
__param(2, (0, common_1.Param)('channelId', new common_1.ParseUUIDPipe())),
|
|
87
|
+
__param(3, (0, common_1.Param)('propertyId', new common_1.ParseUUIDPipe())),
|
|
88
|
+
__param(4, (0, common_1.Body)()),
|
|
89
|
+
__metadata("design:type", Function),
|
|
90
|
+
__metadata("design:paramtypes", [Object, String, String, String, cover_recovery_dto_1.ReqRecoverCoverOrderingDto]),
|
|
91
|
+
__metadata("design:returntype", Promise)
|
|
92
|
+
], ShellyCoverRecoveryController.prototype, "recover", null);
|
|
93
|
+
exports.ShellyCoverRecoveryController = ShellyCoverRecoveryController = __decorate([
|
|
94
|
+
(0, swagger_1.ApiTags)(devices_shelly_ng_constants_1.DEVICES_SHELLY_NG_PLUGIN_API_TAG_NAME),
|
|
95
|
+
(0, common_1.Controller)('devices/:deviceId/channels/:channelId/properties/:propertyId/cover-ordering-recovery'),
|
|
96
|
+
__metadata("design:paramtypes", [shelly_cover_recovery_service_1.ShellyCoverRecoveryService])
|
|
97
|
+
], ShellyCoverRecoveryController);
|
|
98
|
+
//# sourceMappingURL=shelly-cover-recovery.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shelly-cover-recovery.controller.js","sourceRoot":"","sources":["../../../../src/plugins/devices-shelly-ng/controllers/shelly-cover-recovery.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAsH;AACtH,6CAAwD;AAGxD,iHAMyE;AACzE,2EAAkE;AAClE,4EAAkE;AAClE,gFAAuF;AACvF,kEAAuE;AACvE,yEAA+G;AAC/G,6FAAuF;AAIhF,IAAM,6BAA6B,GAAnC,MAAM,6BAA6B;IACzC,YAA6B,QAAoC;QAApC,aA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