@fastybird/smart-panel-backend 0.12.0-alpha.0 → 1.0.0-beta.3
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.constants.js.map +1 -1
- package/dist/app.module.js +44 -17
- package/dist/app.module.js.map +1 -1
- package/dist/common/filters/bad-request-exception.filter.js +0 -6
- package/dist/common/filters/bad-request-exception.filter.js.map +1 -1
- package/dist/common/filters/global-error.filter.js +2 -6
- package/dist/common/filters/global-error.filter.js.map +1 -1
- package/dist/common/filters/internal-server-error-exception.filter.js +0 -5
- package/dist/common/filters/internal-server-error-exception.filter.js.map +1 -1
- package/dist/common/filters/not-found-exception.filter.d.ts +4 -0
- package/dist/common/filters/not-found-exception.filter.js +22 -3
- package/dist/common/filters/not-found-exception.filter.js.map +1 -1
- package/dist/common/filters/query-failed-exception.filter.js +0 -5
- package/dist/common/filters/query-failed-exception.filter.js.map +1 -1
- package/dist/common/filters/unprocessable-entity-exception.filter.js +0 -5
- package/dist/common/filters/unprocessable-entity-exception.filter.js.map +1 -1
- package/dist/common/plugin-relations/relation-loader.interface.d.ts +5 -0
- package/dist/common/plugin-relations/relation-loader.interface.js +3 -0
- package/dist/common/plugin-relations/relation-loader.interface.js.map +1 -0
- package/dist/common/services/app-instance-holder.service.d.ts +1 -2
- package/dist/common/services/app-instance-holder.service.js.map +1 -1
- package/dist/common/utils/config.utils.d.ts +0 -1
- package/dist/common/utils/config.utils.js +1 -11
- package/dist/common/utils/config.utils.js.map +1 -1
- package/dist/common/utils/semver.js +1 -1
- package/dist/common/utils/semver.js.map +1 -1
- package/dist/main.js +25 -6
- package/dist/main.js.map +1 -1
- package/dist/migrations/1000000000000-InitialSetup.js +8 -0
- package/dist/migrations/1000000000000-InitialSetup.js.map +1 -1
- package/dist/migrations/1000000000002-AddTokenLastUsedAt.d.ts +6 -0
- package/dist/migrations/1000000000002-AddTokenLastUsedAt.js +15 -0
- package/dist/migrations/1000000000002-AddTokenLastUsedAt.js.map +1 -0
- package/dist/migrations/1000000000003-UnifySpaceRoleTables.d.ts +6 -0
- package/dist/migrations/1000000000003-UnifySpaceRoleTables.js +88 -0
- package/dist/migrations/1000000000003-UnifySpaceRoleTables.js.map +1 -0
- package/dist/migrations/1000000000004-DisplaysSpaceOnly.d.ts +6 -0
- package/dist/migrations/1000000000004-DisplaysSpaceOnly.js +165 -0
- package/dist/migrations/1000000000004-DisplaysSpaceOnly.js.map +1 -0
- package/dist/migrations/1000000000005-SpacesSignageInfoPanel.d.ts +6 -0
- package/dist/migrations/1000000000005-SpacesSignageInfoPanel.js +66 -0
- package/dist/migrations/1000000000005-SpacesSignageInfoPanel.js.map +1 -0
- package/dist/migrations/1000000000006-DropLegacyRoleTables.d.ts +6 -0
- package/dist/migrations/1000000000006-DropLegacyRoleTables.js +32 -0
- package/dist/migrations/1000000000006-DropLegacyRoleTables.js.map +1 -0
- package/dist/modules/api/interceptors/open-api-response.interceptor.js +1 -1
- package/dist/modules/api/interceptors/open-api-response.interceptor.js.map +1 -1
- package/dist/modules/auth/auth.module.js +44 -28
- package/dist/modules/auth/auth.module.js.map +1 -1
- package/dist/modules/auth/controllers/auth.controller.js +6 -0
- package/dist/modules/auth/controllers/auth.controller.js.map +1 -1
- package/dist/modules/auth/controllers/tokens.controller.d.ts +10 -3
- package/dist/modules/auth/controllers/tokens.controller.js +96 -7
- package/dist/modules/auth/controllers/tokens.controller.js.map +1 -1
- package/dist/modules/auth/dto/create-personal-token.dto.d.ts +8 -0
- package/dist/modules/auth/dto/create-personal-token.dto.js +75 -0
- package/dist/modules/auth/dto/create-personal-token.dto.js.map +1 -0
- package/dist/modules/auth/dto/register.dto.d.ts +1 -1
- package/dist/modules/auth/dto/register.dto.js +13 -11
- package/dist/modules/auth/dto/register.dto.js.map +1 -1
- package/dist/modules/auth/entities/auth.entity.d.ts +1 -0
- package/dist/modules/auth/entities/auth.entity.js +13 -0
- package/dist/modules/auth/entities/auth.entity.js.map +1 -1
- package/dist/modules/auth/guards/auth.guard.d.ts +0 -1
- package/dist/modules/auth/guards/auth.guard.js +8 -26
- package/dist/modules/auth/guards/auth.guard.js.map +1 -1
- package/dist/modules/auth/guards/display-aware-throttler.guard.d.ts +16 -0
- package/dist/modules/auth/guards/display-aware-throttler.guard.js +133 -0
- package/dist/modules/auth/guards/display-aware-throttler.guard.js.map +1 -0
- package/dist/modules/auth/services/auth.service.js +1 -1
- package/dist/modules/auth/services/auth.service.js.map +1 -1
- package/dist/modules/auth/services/tokens.service.d.ts +10 -0
- package/dist/modules/auth/services/tokens.service.js +35 -0
- package/dist/modules/auth/services/tokens.service.js.map +1 -1
- package/dist/modules/auth/utils/token.utils.d.ts +7 -0
- package/dist/modules/auth/utils/token.utils.js +12 -1
- package/dist/modules/auth/utils/token.utils.js.map +1 -1
- package/dist/modules/buddy/buddy.module.d.ts +5 -1
- package/dist/modules/buddy/buddy.module.js +42 -15
- package/dist/modules/buddy/buddy.module.js.map +1 -1
- package/dist/modules/buddy/buddy.utils.d.ts +8 -0
- package/dist/modules/buddy/buddy.utils.js +49 -0
- package/dist/modules/buddy/buddy.utils.js.map +1 -1
- package/dist/modules/buddy/controllers/buddy-suggestions.controller.js +2 -2
- package/dist/modules/buddy/controllers/buddy-suggestions.controller.js.map +1 -1
- package/dist/modules/buddy/entities/buddy-conversation.entity.js +3 -3
- package/dist/modules/buddy/entities/buddy-conversation.entity.js.map +1 -1
- package/dist/modules/buddy/entities/buddy-message.entity.js +2 -2
- package/dist/modules/buddy/entities/buddy-message.entity.js.map +1 -1
- package/dist/modules/buddy/entities/buddy-suggestion.entity.d.ts +19 -0
- package/dist/modules/buddy/entities/buddy-suggestion.entity.js +93 -0
- package/dist/modules/buddy/entities/buddy-suggestion.entity.js.map +1 -0
- package/dist/modules/buddy/listeners/media-activity-event.listener.js +3 -3
- package/dist/modules/buddy/listeners/media-activity-event.listener.js.map +1 -1
- package/dist/modules/buddy/platforms/llm-provider.platform.d.ts +6 -0
- package/dist/modules/buddy/platforms/openai-sdk.utils.d.ts +2 -1
- package/dist/modules/buddy/platforms/openai-sdk.utils.js +12 -1
- package/dist/modules/buddy/platforms/openai-sdk.utils.js.map +1 -1
- package/dist/modules/buddy/services/buddy-context.service.js +2 -2
- package/dist/modules/buddy/services/buddy-context.service.js.map +1 -1
- package/dist/modules/buddy/services/buddy-conversation.service.js +23 -8
- package/dist/modules/buddy/services/buddy-conversation.service.js.map +1 -1
- package/dist/modules/buddy/services/buddy-personality.service.d.ts +1 -1
- package/dist/modules/buddy/services/buddy-personality.service.js.map +1 -1
- package/dist/modules/buddy/services/heartbeat.service.js +2 -2
- package/dist/modules/buddy/services/heartbeat.service.js.map +1 -1
- package/dist/modules/buddy/services/llm-provider.service.js +2 -10
- package/dist/modules/buddy/services/llm-provider.service.js.map +1 -1
- package/dist/modules/buddy/services/module-reset.service.d.ts +3 -1
- package/dist/modules/buddy/services/module-reset.service.js +6 -1
- package/dist/modules/buddy/services/module-reset.service.js.map +1 -1
- package/dist/modules/buddy/services/pattern-detector.service.d.ts +4 -1
- package/dist/modules/buddy/services/pattern-detector.service.js +10 -3
- package/dist/modules/buddy/services/pattern-detector.service.js.map +1 -1
- package/dist/modules/buddy/services/scene-suggestion-evaluator.service.d.ts +4 -1
- package/dist/modules/buddy/services/scene-suggestion-evaluator.service.js +10 -4
- package/dist/modules/buddy/services/scene-suggestion-evaluator.service.js.map +1 -1
- package/dist/modules/buddy/services/stt-provider.service.js +2 -10
- package/dist/modules/buddy/services/stt-provider.service.js.map +1 -1
- package/dist/modules/buddy/services/suggestion-engine.service.d.ts +19 -13
- package/dist/modules/buddy/services/suggestion-engine.service.js +170 -103
- package/dist/modules/buddy/services/suggestion-engine.service.js.map +1 -1
- package/dist/modules/buddy/services/tts-provider.service.js +2 -10
- package/dist/modules/buddy/services/tts-provider.service.js.map +1 -1
- package/dist/modules/config/config.constants.d.ts +2 -1
- package/dist/modules/config/config.constants.js +1 -0
- package/dist/modules/config/config.constants.js.map +1 -1
- package/dist/modules/config/config.module.d.ts +5 -1
- package/dist/modules/config/config.module.js +78 -14
- package/dist/modules/config/config.module.js.map +1 -1
- package/dist/modules/config/services/config.service.d.ts +1 -0
- package/dist/modules/config/services/config.service.js +11 -1
- package/dist/modules/config/services/config.service.js.map +1 -1
- package/dist/modules/dashboard/dashboard.module.js +21 -18
- package/dist/modules/dashboard/dashboard.module.js.map +1 -1
- package/dist/modules/dashboard/entities/dashboard.relations.d.ts +1 -5
- package/dist/modules/devices/devices.module.js +24 -16
- package/dist/modules/devices/devices.module.js.map +1 -1
- package/dist/modules/devices/services/device-zones.service.js +2 -2
- package/dist/modules/devices/services/device-zones.service.js.map +1 -1
- package/dist/modules/devices/services/devices.service.js.map +1 -1
- package/dist/modules/displays/displays.constants.d.ts +0 -5
- package/dist/modules/displays/displays.constants.js +1 -7
- package/dist/modules/displays/displays.constants.js.map +1 -1
- package/dist/modules/displays/displays.module.js +27 -23
- package/dist/modules/displays/displays.module.js.map +1 -1
- package/dist/modules/displays/dto/update-display.dto.d.ts +2 -3
- package/dist/modules/displays/dto/update-display.dto.js +4 -19
- package/dist/modules/displays/dto/update-display.dto.js.map +1 -1
- package/dist/modules/displays/entities/displays.entity.d.ts +3 -4
- package/dist/modules/displays/entities/displays.entity.js +8 -25
- package/dist/modules/displays/entities/displays.entity.js.map +1 -1
- package/dist/modules/displays/services/displays.service.d.ts +4 -2
- package/dist/modules/displays/services/displays.service.js +19 -24
- package/dist/modules/displays/services/displays.service.js.map +1 -1
- package/dist/modules/displays/services/home-resolution.service.d.ts +7 -2
- package/dist/modules/displays/services/home-resolution.service.js +50 -6
- package/dist/modules/displays/services/home-resolution.service.js.map +1 -1
- package/dist/modules/displays/services/space-home-page-resolver-registry.service.d.ts +9 -0
- package/dist/modules/displays/services/space-home-page-resolver-registry.service.js +26 -0
- package/dist/modules/displays/services/space-home-page-resolver-registry.service.js.map +1 -0
- package/dist/modules/displays/services/space-selection-validator-registry.service.d.ts +9 -0
- package/dist/modules/displays/services/space-selection-validator-registry.service.js +26 -0
- package/dist/modules/displays/services/space-selection-validator-registry.service.js.map +1 -0
- package/dist/modules/energy/energy.module.js +29 -15
- package/dist/modules/energy/energy.module.js.map +1 -1
- package/dist/modules/extensions/controllers/actions.controller.d.ts +9 -4
- package/dist/modules/extensions/controllers/actions.controller.js +63 -10
- package/dist/modules/extensions/controllers/actions.controller.js.map +1 -1
- package/dist/modules/extensions/extensions.module.js +31 -28
- package/dist/modules/extensions/extensions.module.js.map +1 -1
- package/dist/modules/extensions/extensions.openapi.d.ts +3 -3
- package/dist/modules/extensions/extensions.openapi.js +2 -0
- package/dist/modules/extensions/extensions.openapi.js.map +1 -1
- package/dist/modules/extensions/models/action.model.d.ts +13 -0
- package/dist/modules/extensions/models/action.model.js +89 -3
- package/dist/modules/extensions/models/action.model.js.map +1 -1
- package/dist/modules/extensions/models/actions-response.model.d.ts +4 -1
- package/dist/modules/extensions/models/actions-response.model.js +19 -1
- package/dist/modules/extensions/models/actions-response.model.js.map +1 -1
- package/dist/modules/extensions/models/extension.model.js +5 -0
- package/dist/modules/extensions/models/extension.model.js.map +1 -1
- package/dist/modules/extensions/models/service-status.model.js +7 -0
- package/dist/modules/extensions/models/service-status.model.js.map +1 -1
- package/dist/modules/extensions/services/action-audit.service.d.ts +21 -0
- package/dist/modules/extensions/services/action-audit.service.js +49 -0
- package/dist/modules/extensions/services/action-audit.service.js.map +1 -0
- package/dist/modules/extensions/services/base-managed-plugin.service.d.ts +11 -0
- package/dist/modules/extensions/services/base-managed-plugin.service.js +28 -0
- package/dist/modules/extensions/services/base-managed-plugin.service.js.map +1 -0
- package/dist/modules/extensions/services/extension-action-registry.service.d.ts +6 -1
- package/dist/modules/extensions/services/extension-action-registry.service.js +22 -3
- package/dist/modules/extensions/services/extension-action-registry.service.js.map +1 -1
- package/dist/modules/extensions/services/extension-action.interface.d.ts +3 -0
- package/dist/modules/extensions/services/extension-action.interface.js +3 -1
- package/dist/modules/extensions/services/extension-action.interface.js.map +1 -1
- package/dist/modules/intents/intents.module.js +27 -26
- package/dist/modules/intents/intents.module.js.map +1 -1
- package/dist/modules/mdns/mdns.module.js +24 -19
- package/dist/modules/mdns/mdns.module.js.map +1 -1
- package/dist/modules/platform/dto/system-info.dto.d.ts +2 -0
- package/dist/modules/platform/dto/system-info.dto.js +7 -0
- package/dist/modules/platform/dto/system-info.dto.js.map +1 -1
- package/dist/modules/platform/platform.module.js +25 -17
- package/dist/modules/platform/platform.module.js.map +1 -1
- package/dist/modules/platform/platforms/abstract.platform.d.ts +44 -0
- package/dist/modules/platform/platforms/abstract.platform.js +267 -0
- package/dist/modules/platform/platforms/abstract.platform.js.map +1 -1
- package/dist/modules/platform/platforms/docker.platform.d.ts +2 -0
- package/dist/modules/platform/platforms/docker.platform.js +3 -0
- package/dist/modules/platform/platforms/docker.platform.js.map +1 -1
- package/dist/modules/platform/platforms/generic.platform.d.ts +2 -1
- package/dist/modules/platform/platforms/generic.platform.js +17 -15
- package/dist/modules/platform/platforms/generic.platform.js.map +1 -1
- package/dist/modules/platform/platforms/home-assistant.platform.d.ts +4 -0
- package/dist/modules/platform/platforms/home-assistant.platform.js +21 -0
- package/dist/modules/platform/platforms/home-assistant.platform.js.map +1 -1
- package/dist/modules/platform/platforms/raspberry.platform.js +22 -40
- package/dist/modules/platform/platforms/raspberry.platform.js.map +1 -1
- package/dist/modules/platform/services/platform.service.d.ts +2 -0
- package/dist/modules/platform/services/platform.service.js +7 -0
- package/dist/modules/platform/services/platform.service.js.map +1 -1
- package/dist/modules/scenes/scenes.module.js +18 -18
- package/dist/modules/scenes/scenes.module.js.map +1 -1
- package/dist/modules/security/security.module.js +22 -17
- package/dist/modules/security/security.module.js.map +1 -1
- package/dist/modules/spaces/controllers/spaces.controller.d.ts +5 -115
- package/dist/modules/spaces/controllers/spaces.controller.js +22 -1922
- package/dist/modules/spaces/controllers/spaces.controller.js.map +1 -1
- package/dist/modules/spaces/dto/create-space.dto.d.ts +1 -5
- package/dist/modules/spaces/dto/create-space.dto.js +0 -61
- package/dist/modules/spaces/dto/create-space.dto.js.map +1 -1
- package/dist/modules/spaces/dto/update-space.dto.d.ts +1 -5
- package/dist/modules/spaces/dto/update-space.dto.js +0 -61
- package/dist/modules/spaces/dto/update-space.dto.js.map +1 -1
- package/dist/modules/spaces/entities/space-role.entity.d.ts +8 -0
- package/dist/modules/spaces/entities/space-role.entity.js +58 -0
- package/dist/modules/spaces/entities/space-role.entity.js.map +1 -0
- package/dist/modules/spaces/entities/space.entity.d.ts +3 -6
- package/dist/modules/spaces/entities/space.entity.js +11 -74
- package/dist/modules/spaces/entities/space.entity.js.map +1 -1
- package/dist/modules/spaces/entities/space.relations.d.ts +11 -0
- package/dist/modules/spaces/entities/space.relations.js +3 -0
- package/dist/modules/spaces/entities/space.relations.js.map +1 -0
- package/dist/modules/spaces/models/spaces-response.model.d.ts +1 -522
- package/dist/modules/spaces/models/spaces-response.model.js +23 -4150
- package/dist/modules/spaces/models/spaces-response.model.js.map +1 -1
- package/dist/modules/spaces/services/space-create-builder-registry.service.d.ts +6 -0
- package/dist/modules/spaces/services/space-create-builder-registry.service.js +26 -0
- package/dist/modules/spaces/services/space-create-builder-registry.service.js.map +1 -0
- package/dist/modules/spaces/services/space-relations-loader-registry.service.d.ts +6 -0
- package/dist/modules/spaces/services/space-relations-loader-registry.service.js +26 -0
- package/dist/modules/spaces/services/space-relations-loader-registry.service.js.map +1 -0
- package/dist/modules/spaces/services/space-roles-type-mapper.service.d.ts +12 -0
- package/dist/modules/spaces/services/space-roles-type-mapper.service.js +39 -0
- package/dist/modules/spaces/services/space-roles-type-mapper.service.js.map +1 -0
- package/dist/modules/spaces/services/spaces-type-mapper.service.d.ts +17 -0
- package/dist/modules/spaces/services/spaces-type-mapper.service.js +36 -0
- package/dist/modules/spaces/services/spaces-type-mapper.service.js.map +1 -0
- package/dist/modules/spaces/services/spaces.service.d.ts +4 -12
- package/dist/modules/spaces/services/spaces.service.js +120 -160
- package/dist/modules/spaces/services/spaces.service.js.map +1 -1
- package/dist/modules/spaces/spaces.constants.d.ts +13 -292
- package/dist/modules/spaces/spaces.constants.js +13 -1449
- package/dist/modules/spaces/spaces.constants.js.map +1 -1
- package/dist/modules/spaces/spaces.module.d.ts +2 -9
- package/dist/modules/spaces/spaces.module.js +51 -108
- package/dist/modules/spaces/spaces.module.js.map +1 -1
- package/dist/modules/spaces/spaces.openapi.d.ts +3 -16
- package/dist/modules/spaces/spaces.openapi.js +0 -136
- package/dist/modules/spaces/spaces.openapi.js.map +1 -1
- package/dist/modules/stats/controllers/prometheus.controller.js +0 -2
- package/dist/modules/stats/controllers/prometheus.controller.js.map +1 -1
- package/dist/modules/storage/models/config.model.js +2 -4
- package/dist/modules/storage/models/config.model.js.map +1 -1
- package/dist/modules/storage/services/storage.service.d.ts +4 -10
- package/dist/modules/storage/services/storage.service.js +21 -60
- package/dist/modules/storage/services/storage.service.js.map +1 -1
- package/dist/modules/storage/storage.constants.d.ts +2 -0
- package/dist/modules/storage/storage.constants.js +3 -1
- package/dist/modules/storage/storage.constants.js.map +1 -1
- package/dist/modules/storage/storage.module.js +26 -7
- package/dist/modules/storage/storage.module.js.map +1 -1
- package/dist/modules/swagger/commands/serve-swagger.command.d.ts +14 -0
- package/dist/modules/swagger/commands/serve-swagger.command.js +60 -0
- package/dist/modules/swagger/commands/serve-swagger.command.js.map +1 -0
- package/dist/modules/swagger/swagger.module.js +2 -0
- package/dist/modules/swagger/swagger.module.js.map +1 -1
- package/dist/modules/system/backup-contribution.module.d.ts +2 -0
- package/dist/modules/system/backup-contribution.module.js +22 -0
- package/dist/modules/system/backup-contribution.module.js.map +1 -0
- package/dist/modules/system/commands/update-panel.command.d.ts +1 -0
- package/dist/modules/system/commands/update-panel.command.js +21 -6
- package/dist/modules/system/commands/update-panel.command.js.map +1 -1
- package/dist/modules/system/controllers/backup.controller.d.ts +17 -0
- package/dist/modules/system/controllers/backup.controller.js +308 -0
- package/dist/modules/system/controllers/backup.controller.js.map +1 -0
- package/dist/modules/system/dto/create-backup.dto.d.ts +6 -0
- package/dist/modules/system/dto/create-backup.dto.js +43 -0
- package/dist/modules/system/dto/create-backup.dto.js.map +1 -0
- package/dist/modules/system/models/backup-response.model.d.ts +8 -0
- package/dist/modules/system/models/backup-response.model.js +46 -0
- package/dist/modules/system/models/backup-response.model.js.map +1 -0
- package/dist/modules/system/models/backup.model.d.ts +14 -0
- package/dist/modules/system/models/backup.model.js +103 -0
- package/dist/modules/system/models/backup.model.js.map +1 -0
- package/dist/modules/system/models/system.model.d.ts +3 -1
- package/dist/modules/system/models/system.model.js +26 -0
- package/dist/modules/system/models/system.model.js.map +1 -1
- package/dist/modules/system/scripts/update-worker.sh +304 -0
- package/dist/modules/system/services/backup-contribution-registry.service.d.ts +24 -0
- package/dist/modules/system/services/backup-contribution-registry.service.js +52 -0
- package/dist/modules/system/services/backup-contribution-registry.service.js.map +1 -0
- package/dist/modules/system/services/backup.service.d.ts +52 -0
- package/dist/modules/system/services/backup.service.js +630 -0
- package/dist/modules/system/services/backup.service.js.map +1 -0
- package/dist/modules/system/services/house-mode-actions.service.d.ts +1 -1
- package/dist/modules/system/services/house-mode-actions.service.js +5 -5
- package/dist/modules/system/services/house-mode-actions.service.js.map +1 -1
- package/dist/modules/system/services/system-command.service.d.ts +7 -1
- package/dist/modules/system/services/system-command.service.js +24 -4
- package/dist/modules/system/services/system-command.service.js.map +1 -1
- package/dist/modules/system/services/system.service.js +4 -1
- package/dist/modules/system/services/system.service.js.map +1 -1
- package/dist/modules/system/services/update-executor.service.d.ts +4 -0
- package/dist/modules/system/services/update-executor.service.js +130 -10
- package/dist/modules/system/services/update-executor.service.js.map +1 -1
- package/dist/modules/system/services/update.service.d.ts +11 -3
- package/dist/modules/system/services/update.service.js +108 -38
- package/dist/modules/system/services/update.service.js.map +1 -1
- package/dist/modules/system/system.constants.d.ts +7 -0
- package/dist/modules/system/system.constants.js +9 -1
- package/dist/modules/system/system.constants.js.map +1 -1
- package/dist/modules/system/system.module.d.ts +5 -1
- package/dist/modules/system/system.module.js +95 -31
- package/dist/modules/system/system.module.js.map +1 -1
- package/dist/modules/system/system.openapi.d.ts +4 -1
- package/dist/modules/system/system.openapi.js +8 -0
- package/dist/modules/system/system.openapi.js.map +1 -1
- package/dist/modules/users/controllers/users.controller.js +9 -0
- package/dist/modules/users/controllers/users.controller.js.map +1 -1
- package/dist/modules/users/dto/create-user.dto.js +1 -0
- package/dist/modules/users/dto/create-user.dto.js.map +1 -1
- package/dist/modules/users/dto/update-user.dto.d.ts +1 -0
- package/dist/modules/users/dto/update-user.dto.js +15 -1
- package/dist/modules/users/dto/update-user.dto.js.map +1 -1
- package/dist/modules/users/services/users.service.d.ts +1 -0
- package/dist/modules/users/services/users.service.js +12 -2
- package/dist/modules/users/services/users.service.js.map +1 -1
- package/dist/modules/users/users.constants.d.ts +3 -0
- package/dist/modules/users/users.constants.js +35 -1
- package/dist/modules/users/users.constants.js.map +1 -1
- package/dist/modules/users/users.module.js +29 -13
- package/dist/modules/users/users.module.js.map +1 -1
- package/dist/modules/weather/weather.module.js +20 -18
- package/dist/modules/weather/weather.module.js.map +1 -1
- package/dist/modules/websocket/dto/client-user.dto.js +25 -0
- package/dist/modules/websocket/dto/client-user.dto.js.map +1 -1
- package/dist/modules/websocket/dto/ws-client.dto.js +26 -0
- package/dist/modules/websocket/dto/ws-client.dto.js.map +1 -1
- package/dist/modules/websocket/gateway/websocket.gateway.d.ts +2 -2
- package/dist/modules/websocket/gateway/websocket.gateway.js +27 -9
- package/dist/modules/websocket/gateway/websocket.gateway.js.map +1 -1
- package/dist/modules/websocket/services/command-event-registry.service.d.ts +3 -1
- package/dist/modules/websocket/services/command-event-registry.service.js +5 -4
- package/dist/modules/websocket/services/command-event-registry.service.js.map +1 -1
- package/dist/plugins/buddy-claude/buddy-claude.plugin.js +24 -11
- package/dist/plugins/buddy-claude/buddy-claude.plugin.js.map +1 -1
- package/dist/plugins/buddy-claude-setup-token/buddy-claude-setup-token.plugin.js +21 -11
- package/dist/plugins/buddy-claude-setup-token/buddy-claude-setup-token.plugin.js.map +1 -1
- package/dist/plugins/buddy-discord/buddy-discord.plugin.js +28 -16
- package/dist/plugins/buddy-discord/buddy-discord.plugin.js.map +1 -1
- package/dist/plugins/buddy-elevenlabs/buddy-elevenlabs.plugin.js +22 -11
- package/dist/plugins/buddy-elevenlabs/buddy-elevenlabs.plugin.js.map +1 -1
- package/dist/plugins/buddy-ollama/buddy-ollama.plugin.js +28 -12
- package/dist/plugins/buddy-ollama/buddy-ollama.plugin.js.map +1 -1
- package/dist/plugins/buddy-openai/buddy-openai.plugin.js +24 -15
- package/dist/plugins/buddy-openai/buddy-openai.plugin.js.map +1 -1
- package/dist/plugins/buddy-openai/platforms/openai.provider.js +1 -0
- package/dist/plugins/buddy-openai/platforms/openai.provider.js.map +1 -1
- package/dist/plugins/buddy-openai-codex/buddy-openai-codex.plugin.js +26 -15
- package/dist/plugins/buddy-openai-codex/buddy-openai-codex.plugin.js.map +1 -1
- package/dist/plugins/buddy-stt-whisper-local/buddy-stt-whisper-local.plugin.js +23 -9
- package/dist/plugins/buddy-stt-whisper-local/buddy-stt-whisper-local.plugin.js.map +1 -1
- package/dist/plugins/buddy-system-tts/buddy-system-tts.plugin.js +21 -10
- package/dist/plugins/buddy-system-tts/buddy-system-tts.plugin.js.map +1 -1
- package/dist/plugins/buddy-telegram/buddy-telegram.plugin.js +22 -11
- package/dist/plugins/buddy-telegram/buddy-telegram.plugin.js.map +1 -1
- package/dist/plugins/buddy-voiceai/buddy-voiceai.plugin.js +22 -12
- package/dist/plugins/buddy-voiceai/buddy-voiceai.plugin.js.map +1 -1
- package/dist/plugins/buddy-whatsapp/buddy-whatsapp.plugin.js +24 -12
- package/dist/plugins/buddy-whatsapp/buddy-whatsapp.plugin.js.map +1 -1
- package/dist/plugins/buddy-whatsapp/controllers/whatsapp-webhook.controller.d.ts +2 -2
- package/dist/plugins/buddy-whatsapp/controllers/whatsapp-webhook.controller.js +3 -3
- package/dist/plugins/buddy-whatsapp/controllers/whatsapp-webhook.controller.js.map +1 -1
- package/dist/plugins/buddy-whatsapp/platforms/whatsapp-bot.provider.d.ts +2 -1
- package/dist/plugins/buddy-whatsapp/platforms/whatsapp-bot.provider.js +31 -12
- package/dist/plugins/buddy-whatsapp/platforms/whatsapp-bot.provider.js.map +1 -1
- package/dist/plugins/data-sources-device-channel/data-sources-device-channel.plugin.js +16 -30
- package/dist/plugins/data-sources-device-channel/data-sources-device-channel.plugin.js.map +1 -1
- package/dist/plugins/data-sources-weather/data-sources-weather.plugin.js +17 -29
- package/dist/plugins/data-sources-weather/data-sources-weather.plugin.js.map +1 -1
- package/dist/plugins/devices-home-assistant/devices-home-assistant.plugin.js +37 -136
- package/dist/plugins/devices-home-assistant/devices-home-assistant.plugin.js.map +1 -1
- package/dist/plugins/devices-home-assistant/dto/home-assistant-discovered-helper.dto.js +22 -2
- package/dist/plugins/devices-home-assistant/dto/home-assistant-discovered-helper.dto.js.map +1 -1
- package/dist/plugins/devices-home-assistant/models/config.model.d.ts +1 -0
- package/dist/plugins/devices-home-assistant/models/config.model.js +12 -0
- package/dist/plugins/devices-home-assistant/models/config.model.js.map +1 -1
- package/dist/plugins/devices-home-assistant/platforms/home-assistant.device.platform.d.ts +3 -1
- package/dist/plugins/devices-home-assistant/platforms/home-assistant.device.platform.js +11 -2
- package/dist/plugins/devices-home-assistant/platforms/home-assistant.device.platform.js.map +1 -1
- package/dist/plugins/devices-home-assistant/services/ha-mdns-discoverer.service.js +0 -6
- package/dist/plugins/devices-home-assistant/services/ha-mdns-discoverer.service.js.map +1 -1
- package/dist/plugins/devices-home-assistant/services/ha-supervisor.service.d.ts +10 -0
- package/dist/plugins/devices-home-assistant/services/ha-supervisor.service.js +47 -0
- package/dist/plugins/devices-home-assistant/services/ha-supervisor.service.js.map +1 -0
- package/dist/plugins/devices-home-assistant/services/home-assistant-config-validator.service.d.ts +3 -1
- package/dist/plugins/devices-home-assistant/services/home-assistant-config-validator.service.js +8 -2
- package/dist/plugins/devices-home-assistant/services/home-assistant-config-validator.service.js.map +1 -1
- package/dist/plugins/devices-home-assistant/services/home-assistant.http.service.d.ts +5 -1
- package/dist/plugins/devices-home-assistant/services/home-assistant.http.service.js +27 -7
- package/dist/plugins/devices-home-assistant/services/home-assistant.http.service.js.map +1 -1
- package/dist/plugins/devices-home-assistant/services/home-assistant.ws.service.d.ts +9 -7
- package/dist/plugins/devices-home-assistant/services/home-assistant.ws.service.js +58 -24
- package/dist/plugins/devices-home-assistant/services/home-assistant.ws.service.js.map +1 -1
- package/dist/plugins/devices-home-assistant/services/state-changed.event.service.js +1 -0
- package/dist/plugins/devices-home-assistant/services/state-changed.event.service.js.map +1 -1
- package/dist/plugins/devices-reterminal/devices-reterminal.plugin.js +20 -17
- package/dist/plugins/devices-reterminal/devices-reterminal.plugin.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/controllers/shelly-ng-devices.controller.d.ts +7 -2
- package/dist/plugins/devices-shelly-ng/controllers/shelly-ng-devices.controller.js +83 -2
- package/dist/plugins/devices-shelly-ng/controllers/shelly-ng-devices.controller.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/delegates/delegates-manager.service.d.ts +4 -0
- package/dist/plugins/devices-shelly-ng/delegates/delegates-manager.service.js +86 -11
- 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 +8 -0
- package/dist/plugins/devices-shelly-ng/delegates/shelly-device.delegate.js +45 -0
- 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 -3
- package/dist/plugins/devices-shelly-ng/devices-shelly-ng.openapi.js +4 -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.d.ts +6 -1
- package/dist/plugins/devices-shelly-ng/devices-shelly-ng.plugin.js +72 -21
- package/dist/plugins/devices-shelly-ng/devices-shelly-ng.plugin.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/dto/update-config.dto.d.ts +1 -0
- package/dist/plugins/devices-shelly-ng/dto/update-config.dto.js +24 -6
- package/dist/plugins/devices-shelly-ng/dto/update-config.dto.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/entities/devices-shelly-ng.entity.js +12 -0
- package/dist/plugins/devices-shelly-ng/entities/devices-shelly-ng.entity.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/entities/shelly-ng-device-address.entity.js +2 -0
- package/dist/plugins/devices-shelly-ng/entities/shelly-ng-device-address.entity.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/models/config.model.d.ts +1 -0
- package/dist/plugins/devices-shelly-ng/models/config.model.js +18 -6
- package/dist/plugins/devices-shelly-ng/models/config.model.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/models/shelly-ng-response.model.d.ts +4 -1
- package/dist/plugins/devices-shelly-ng/models/shelly-ng-response.model.js +15 -1
- package/dist/plugins/devices-shelly-ng/models/shelly-ng-response.model.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/models/shelly-ng.model.d.ts +30 -0
- package/dist/plugins/devices-shelly-ng/models/shelly-ng.model.js +269 -1
- package/dist/plugins/devices-shelly-ng/models/shelly-ng.model.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/services/device-manager.service.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/services/shelly-ng-discovery.service.d.ts +64 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-ng-discovery.service.js +301 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-ng-discovery.service.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-ng.service.d.ts +17 -7
- package/dist/plugins/devices-shelly-ng/services/shelly-ng.service.js +110 -15
- package/dist/plugins/devices-shelly-ng/services/shelly-ng.service.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/services/shelly-rpc-client.service.d.ts +5 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-rpc-client.service.js +3 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-rpc-client.service.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/services/shelly-ws-server.service.d.ts +28 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-ws-server.service.js +197 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-ws-server.service.js.map +1 -0
- package/dist/plugins/devices-shelly-v1/controllers/shelly-v1-devices.controller.d.ts +7 -2
- package/dist/plugins/devices-shelly-v1/controllers/shelly-v1-devices.controller.js +83 -2
- package/dist/plugins/devices-shelly-v1/controllers/shelly-v1-devices.controller.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/devices-shelly-v1.openapi.d.ts +3 -3
- package/dist/plugins/devices-shelly-v1/devices-shelly-v1.openapi.js +4 -0
- package/dist/plugins/devices-shelly-v1/devices-shelly-v1.openapi.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/devices-shelly-v1.plugin.js +27 -23
- package/dist/plugins/devices-shelly-v1/devices-shelly-v1.plugin.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/models/shelly-v1-response.model.d.ts +4 -1
- package/dist/plugins/devices-shelly-v1/models/shelly-v1-response.model.js +15 -1
- package/dist/plugins/devices-shelly-v1/models/shelly-v1-response.model.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/models/shelly-v1.model.d.ts +31 -0
- package/dist/plugins/devices-shelly-v1/models/shelly-v1.model.js +279 -1
- package/dist/plugins/devices-shelly-v1/models/shelly-v1.model.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/platforms/shelly-v1.device.platform.d.ts +0 -1
- package/dist/plugins/devices-shelly-v1/platforms/shelly-v1.device.platform.js +2 -9
- package/dist/plugins/devices-shelly-v1/platforms/shelly-v1.device.platform.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/services/device-mapper.service.d.ts +0 -1
- package/dist/plugins/devices-shelly-v1/services/device-mapper.service.js +2 -15
- package/dist/plugins/devices-shelly-v1/services/device-mapper.service.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/services/shellies-adapter.service.d.ts +9 -2
- package/dist/plugins/devices-shelly-v1/services/shellies-adapter.service.js +93 -20
- package/dist/plugins/devices-shelly-v1/services/shellies-adapter.service.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/services/shelly-v1-discovery.service.d.ts +62 -0
- package/dist/plugins/devices-shelly-v1/services/shelly-v1-discovery.service.js +314 -0
- package/dist/plugins/devices-shelly-v1/services/shelly-v1-discovery.service.js.map +1 -0
- package/dist/plugins/devices-shelly-v1/services/shelly-v1.service.d.ts +3 -6
- package/dist/plugins/devices-shelly-v1/services/shelly-v1.service.js +13 -37
- package/dist/plugins/devices-shelly-v1/services/shelly-v1.service.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/utils/descriptor.utils.d.ts +2 -0
- package/dist/plugins/devices-shelly-v1/utils/descriptor.utils.js +23 -0
- package/dist/plugins/devices-shelly-v1/utils/descriptor.utils.js.map +1 -0
- package/dist/plugins/devices-third-party/devices-third-party.plugin.js +19 -23
- package/dist/plugins/devices-third-party/devices-third-party.plugin.js.map +1 -1
- package/dist/plugins/devices-wled/devices-wled.plugin.js +30 -20
- package/dist/plugins/devices-wled/devices-wled.plugin.js.map +1 -1
- package/dist/plugins/devices-wled/services/wled-mdns-discoverer.service.js +0 -6
- package/dist/plugins/devices-wled/services/wled-mdns-discoverer.service.js.map +1 -1
- package/dist/plugins/devices-wled/services/wled.service.d.ts +3 -6
- package/dist/plugins/devices-wled/services/wled.service.js +3 -20
- package/dist/plugins/devices-wled/services/wled.service.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/controllers/zigbee2mqtt-wizard.controller.d.ts +14 -0
- package/dist/plugins/devices-zigbee2mqtt/controllers/zigbee2mqtt-wizard.controller.js +185 -0
- package/dist/plugins/devices-zigbee2mqtt/controllers/zigbee2mqtt-wizard.controller.js.map +1 -0
- package/dist/plugins/devices-zigbee2mqtt/devices-zigbee2mqtt.openapi.d.ts +5 -3
- package/dist/plugins/devices-zigbee2mqtt/devices-zigbee2mqtt.openapi.js +12 -0
- package/dist/plugins/devices-zigbee2mqtt/devices-zigbee2mqtt.openapi.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/devices-zigbee2mqtt.plugin.js +43 -54
- package/dist/plugins/devices-zigbee2mqtt/devices-zigbee2mqtt.plugin.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/dto/wizard-adopt.dto.d.ts +12 -0
- package/dist/plugins/devices-zigbee2mqtt/dto/wizard-adopt.dto.js +73 -0
- package/dist/plugins/devices-zigbee2mqtt/dto/wizard-adopt.dto.js.map +1 -0
- package/dist/plugins/devices-zigbee2mqtt/models/wizard.model.d.ts +38 -0
- package/dist/plugins/devices-zigbee2mqtt/models/wizard.model.js +259 -0
- package/dist/plugins/devices-zigbee2mqtt/models/wizard.model.js.map +1 -0
- package/dist/plugins/devices-zigbee2mqtt/models/zigbee2mqtt-response.model.d.ts +7 -0
- package/dist/plugins/devices-zigbee2mqtt/models/zigbee2mqtt-response.model.js +30 -1
- package/dist/plugins/devices-zigbee2mqtt/models/zigbee2mqtt-response.model.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/base-client-adapter.d.ts +1 -0
- package/dist/plugins/devices-zigbee2mqtt/services/base-client-adapter.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/mqtt-client-adapter.service.d.ts +1 -0
- package/dist/plugins/devices-zigbee2mqtt/services/mqtt-client-adapter.service.js +22 -0
- package/dist/plugins/devices-zigbee2mqtt/services/mqtt-client-adapter.service.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/wizard.service.d.ts +70 -0
- package/dist/plugins/devices-zigbee2mqtt/services/wizard.service.js +361 -0
- package/dist/plugins/devices-zigbee2mqtt/services/wizard.service.js.map +1 -0
- package/dist/plugins/devices-zigbee2mqtt/services/ws-client-adapter.service.d.ts +1 -0
- package/dist/plugins/devices-zigbee2mqtt/services/ws-client-adapter.service.js +23 -0
- package/dist/plugins/devices-zigbee2mqtt/services/ws-client-adapter.service.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/zigbee2mqtt.service.d.ts +10 -7
- package/dist/plugins/devices-zigbee2mqtt/services/zigbee2mqtt.service.js +46 -22
- package/dist/plugins/devices-zigbee2mqtt/services/zigbee2mqtt.service.js.map +1 -1
- package/dist/{modules/storage/plugins/influx-v1/influx-v1.update-config.dto.d.ts → plugins/influx-v1/dto/update-config.dto.d.ts} +1 -1
- package/dist/{modules/storage/plugins/influx-v1/influx-v1.update-config.dto.js → plugins/influx-v1/dto/update-config.dto.js} +3 -3
- package/dist/plugins/influx-v1/dto/update-config.dto.js.map +1 -0
- package/dist/plugins/influx-v1/influx-v1.constants.js.map +1 -0
- package/dist/{modules/storage/plugins → plugins}/influx-v1/influx-v1.openapi.d.ts +1 -1
- package/dist/plugins/influx-v1/influx-v1.openapi.js +7 -0
- package/dist/plugins/influx-v1/influx-v1.openapi.js.map +1 -0
- package/dist/plugins/influx-v1/influx-v1.plugin.d.ts +15 -0
- package/dist/plugins/influx-v1/influx-v1.plugin.js +109 -0
- package/dist/plugins/influx-v1/influx-v1.plugin.js.map +1 -0
- package/dist/{modules/storage/plugins/influx-v1/influx-v1.config.model.d.ts → plugins/influx-v1/models/config.model.d.ts} +1 -1
- package/dist/{modules/storage/plugins/influx-v1/influx-v1.config.model.js → plugins/influx-v1/models/config.model.js} +3 -3
- package/dist/plugins/influx-v1/models/config.model.js.map +1 -0
- package/dist/plugins/influx-v1/services/influx-v1-managed.service.d.ts +20 -0
- package/dist/plugins/influx-v1/services/influx-v1-managed.service.js +128 -0
- package/dist/plugins/influx-v1/services/influx-v1-managed.service.js.map +1 -0
- package/dist/{modules/storage/plugins/influx-v1/influx-v1.plugin.d.ts → plugins/influx-v1/services/influx-v1.storage.d.ts} +3 -3
- package/dist/{modules/storage/plugins/influx-v1/influx-v1.plugin.js → plugins/influx-v1/services/influx-v1.storage.js} +9 -9
- package/dist/plugins/influx-v1/services/influx-v1.storage.js.map +1 -0
- package/dist/plugins/influx-v2/dto/update-config.dto.d.ts +8 -0
- package/dist/plugins/influx-v2/dto/update-config.dto.js +82 -0
- package/dist/plugins/influx-v2/dto/update-config.dto.js.map +1 -0
- package/dist/plugins/influx-v2/influx-v2.constants.d.ts +4 -0
- package/dist/plugins/influx-v2/influx-v2.constants.js +8 -0
- package/dist/plugins/influx-v2/influx-v2.constants.js.map +1 -0
- package/dist/plugins/influx-v2/influx-v2.openapi.d.ts +2 -0
- package/dist/plugins/influx-v2/influx-v2.openapi.js +7 -0
- package/dist/plugins/influx-v2/influx-v2.openapi.js.map +1 -0
- package/dist/plugins/influx-v2/influx-v2.plugin.d.ts +15 -0
- package/dist/plugins/influx-v2/influx-v2.plugin.js +109 -0
- package/dist/plugins/influx-v2/influx-v2.plugin.js.map +1 -0
- package/dist/plugins/influx-v2/models/config.model.d.ts +9 -0
- package/dist/plugins/influx-v2/models/config.model.js +93 -0
- package/dist/plugins/influx-v2/models/config.model.js.map +1 -0
- package/dist/plugins/influx-v2/services/influx-v2-managed.service.d.ts +20 -0
- package/dist/plugins/influx-v2/services/influx-v2-managed.service.js +132 -0
- package/dist/plugins/influx-v2/services/influx-v2-managed.service.js.map +1 -0
- package/dist/plugins/influx-v2/services/influx-v2.storage.d.ts +33 -0
- package/dist/plugins/influx-v2/services/influx-v2.storage.js +230 -0
- package/dist/plugins/influx-v2/services/influx-v2.storage.js.map +1 -0
- package/dist/plugins/logger-rotating-file/logger-rotating-file.plugin.js +20 -29
- package/dist/plugins/logger-rotating-file/logger-rotating-file.plugin.js.map +1 -1
- package/dist/{modules/storage/plugins/memory/memory.update-config.dto.d.ts → plugins/memory-storage/dto/update-config.dto.d.ts} +1 -1
- package/dist/{modules/storage/plugins/memory/memory.update-config.dto.js → plugins/memory-storage/dto/update-config.dto.js} +5 -5
- package/dist/plugins/memory-storage/dto/update-config.dto.js.map +1 -0
- package/dist/{modules/storage/plugins/memory/memory.constants.js → plugins/memory-storage/memory-storage.constants.js} +1 -1
- package/dist/plugins/memory-storage/memory-storage.constants.js.map +1 -0
- package/dist/{modules/storage/plugins/memory/memory.openapi.d.ts → plugins/memory-storage/memory-storage.openapi.d.ts} +1 -1
- package/dist/plugins/memory-storage/memory-storage.openapi.js +7 -0
- package/dist/plugins/memory-storage/memory-storage.openapi.js.map +1 -0
- package/dist/plugins/memory-storage/memory-storage.plugin.d.ts +15 -0
- package/dist/plugins/memory-storage/memory-storage.plugin.js +92 -0
- package/dist/plugins/memory-storage/memory-storage.plugin.js.map +1 -0
- package/dist/{modules/storage/plugins/memory/memory.config.model.d.ts → plugins/memory-storage/models/config.model.d.ts} +1 -1
- package/dist/{modules/storage/plugins/memory/memory.config.model.js → plugins/memory-storage/models/config.model.js} +5 -5
- package/dist/plugins/memory-storage/models/config.model.js.map +1 -0
- package/dist/{modules/storage/plugins/memory → plugins/memory-storage/services}/in-memory-timeseries.store.d.ts +1 -1
- package/dist/{modules/storage/plugins/memory → plugins/memory-storage/services}/in-memory-timeseries.store.js +4 -4
- package/dist/plugins/memory-storage/services/in-memory-timeseries.store.js.map +1 -0
- package/dist/plugins/memory-storage/services/influxql-parser.js.map +1 -0
- package/dist/plugins/memory-storage/services/memory-storage-managed.service.d.ts +14 -0
- package/dist/plugins/memory-storage/services/memory-storage-managed.service.js +87 -0
- package/dist/plugins/memory-storage/services/memory-storage-managed.service.js.map +1 -0
- package/dist/{modules/storage/plugins/memory/memory.plugin.d.ts → plugins/memory-storage/services/memory-storage.storage.d.ts} +3 -3
- package/dist/{modules/storage/plugins/memory/memory.plugin.js → plugins/memory-storage/services/memory-storage.storage.js} +8 -8
- package/dist/plugins/memory-storage/services/memory-storage.storage.js.map +1 -0
- package/dist/plugins/pages-cards/pages-cards.plugin.js +15 -26
- package/dist/plugins/pages-cards/pages-cards.plugin.js.map +1 -1
- package/dist/plugins/pages-device-detail/pages-device-detail.plugin.js +16 -25
- package/dist/plugins/pages-device-detail/pages-device-detail.plugin.js.map +1 -1
- package/dist/plugins/pages-tiles/pages-tiles.plugin.js +15 -26
- package/dist/plugins/pages-tiles/pages-tiles.plugin.js.map +1 -1
- package/dist/plugins/scenes-local/scenes-local.plugin.js +21 -22
- package/dist/plugins/scenes-local/scenes-local.plugin.js.map +1 -1
- package/dist/plugins/simulator/services/scenario-executor.service.d.ts +5 -5
- package/dist/plugins/simulator/services/scenario-executor.service.js +7 -6
- package/dist/plugins/simulator/services/scenario-executor.service.js.map +1 -1
- package/dist/plugins/simulator/services/simulator-actions.service.js +3 -0
- package/dist/plugins/simulator/services/simulator-actions.service.js.map +1 -1
- package/dist/plugins/simulator/simulator.plugin.js +49 -58
- package/dist/plugins/simulator/simulator.plugin.js.map +1 -1
- package/dist/plugins/spaces-home-control/controllers/spaces-domain.controller.d.ts +119 -0
- package/dist/plugins/spaces-home-control/controllers/spaces-domain.controller.js +1958 -0
- package/dist/plugins/spaces-home-control/controllers/spaces-domain.controller.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/climate-intent.dto.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/climate-intent.dto.js +24 -24
- package/dist/plugins/spaces-home-control/dto/climate-intent.dto.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/climate-role.dto.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/climate-role.dto.js +4 -4
- package/dist/plugins/spaces-home-control/dto/climate-role.dto.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/covers-intent.dto.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/covers-intent.dto.js +18 -18
- package/dist/plugins/spaces-home-control/dto/covers-intent.dto.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/covers-role.dto.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/covers-role.dto.js +4 -4
- package/dist/plugins/spaces-home-control/dto/covers-role.dto.js.map +1 -0
- package/dist/plugins/spaces-home-control/dto/create-home-control-space.dto.d.ts +8 -0
- package/dist/plugins/spaces-home-control/dto/create-home-control-space.dto.js +85 -0
- package/dist/plugins/spaces-home-control/dto/create-home-control-space.dto.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/lighting-intent.dto.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/lighting-intent.dto.js +34 -34
- package/dist/plugins/spaces-home-control/dto/lighting-intent.dto.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/lighting-role.dto.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/lighting-role.dto.js +4 -4
- package/dist/plugins/spaces-home-control/dto/lighting-role.dto.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/media-activity-binding.dto.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/media-activity-binding.dto.js +4 -4
- package/dist/plugins/spaces-home-control/dto/media-activity-binding.dto.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/sensor-role.dto.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/sensor-role.dto.js +4 -4
- package/dist/plugins/spaces-home-control/dto/sensor-role.dto.js.map +1 -0
- package/dist/plugins/spaces-home-control/dto/status-widget.dto.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/suggestion.dto.d.ts +2 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/suggestion.dto.js +5 -4
- package/dist/plugins/spaces-home-control/dto/suggestion.dto.js.map +1 -0
- package/dist/plugins/spaces-home-control/dto/update-config.dto.d.ts +5 -0
- package/dist/plugins/spaces-home-control/dto/update-config.dto.js +34 -0
- package/dist/plugins/spaces-home-control/dto/update-config.dto.js.map +1 -0
- package/dist/plugins/spaces-home-control/dto/update-home-control-space.dto.d.ts +8 -0
- package/dist/plugins/spaces-home-control/dto/update-home-control-space.dto.js +85 -0
- package/dist/plugins/spaces-home-control/dto/update-home-control-space.dto.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/room-space.entity.d.ts +8 -0
- package/dist/plugins/spaces-home-control/entities/room-space.entity.js +91 -0
- package/dist/plugins/spaces-home-control/entities/room-space.entity.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/space-active-media-activity.entity.d.ts +11 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/entities/space-active-media-activity.entity.js +23 -30
- package/dist/plugins/spaces-home-control/entities/space-active-media-activity.entity.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/space-climate-role.entity.d.ts +13 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/entities/space-climate-role.entity.js +25 -32
- package/dist/plugins/spaces-home-control/entities/space-climate-role.entity.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/space-covers-role.entity.d.ts +13 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/entities/space-covers-role.entity.js +27 -34
- package/dist/plugins/spaces-home-control/entities/space-covers-role.entity.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/space-lighting-role.entity.d.ts +13 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/entities/space-lighting-role.entity.js +27 -34
- package/dist/plugins/spaces-home-control/entities/space-lighting-role.entity.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/space-media-activity-binding.entity.d.ts +15 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/entities/space-media-activity-binding.entity.js +20 -28
- package/dist/plugins/spaces-home-control/entities/space-media-activity-binding.entity.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/space-sensor-role.entity.d.ts +13 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/entities/space-sensor-role.entity.js +27 -34
- package/dist/plugins/spaces-home-control/entities/space-sensor-role.entity.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/zone-space.entity.d.ts +8 -0
- package/dist/plugins/spaces-home-control/entities/zone-space.entity.js +91 -0
- package/dist/plugins/spaces-home-control/entities/zone-space.entity.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/listeners/space-activity.listener.d.ts +2 -2
- package/dist/{modules/spaces → plugins/spaces-home-control}/listeners/space-activity.listener.js +4 -4
- package/dist/plugins/spaces-home-control/listeners/space-activity.listener.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/listeners/space-climate-state.listener.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/listeners/space-climate-state.listener.js +6 -5
- package/dist/plugins/spaces-home-control/listeners/space-climate-state.listener.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/listeners/space-lighting-state.listener.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/listeners/space-lighting-state.listener.js +6 -5
- package/dist/plugins/spaces-home-control/listeners/space-lighting-state.listener.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/listeners/space-sensor-state.listener.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/listeners/space-sensor-state.listener.js +9 -8
- package/dist/plugins/spaces-home-control/listeners/space-sensor-state.listener.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/listeners/websocket-exchange.listener.d.ts +2 -2
- package/dist/{modules/spaces → plugins/spaces-home-control}/listeners/websocket-exchange.listener.js +5 -5
- package/dist/plugins/spaces-home-control/listeners/websocket-exchange.listener.js.map +1 -0
- package/dist/plugins/spaces-home-control/models/config.model.d.ts +5 -0
- package/dist/plugins/spaces-home-control/models/config.model.js +49 -0
- package/dist/plugins/spaces-home-control/models/config.model.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/models/derived-media-endpoint.model.d.ts +2 -2
- package/dist/{modules/spaces → plugins/spaces-home-control}/models/derived-media-endpoint.model.js +4 -4
- package/dist/plugins/spaces-home-control/models/derived-media-endpoint.model.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/models/media-activity-binding.model.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/models/media-activity-binding.model.js +1 -1
- package/dist/plugins/spaces-home-control/models/media-activity-binding.model.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/models/media-activity.model.d.ts +2 -2
- package/dist/{modules/spaces → plugins/spaces-home-control}/models/media-activity.model.js +6 -6
- package/dist/plugins/spaces-home-control/models/media-activity.model.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/models/media-routing.model.d.ts +2 -2
- package/dist/{modules/spaces → plugins/spaces-home-control}/models/media-routing.model.js +4 -4
- package/dist/plugins/spaces-home-control/models/media-routing.model.js.map +1 -0
- package/dist/plugins/spaces-home-control/models/spaces-response.model.d.ts +524 -0
- package/dist/plugins/spaces-home-control/models/spaces-response.model.js +4145 -0
- package/dist/plugins/spaces-home-control/models/spaces-response.model.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/__fixtures__/media-scenario-templates.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/__fixtures__/media-scenario-templates.js +3 -3
- package/dist/plugins/spaces-home-control/services/__fixtures__/media-scenario-templates.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/__fixtures__/media-test-harness.d.ts +1 -1
- package/dist/plugins/spaces-home-control/services/__fixtures__/media-test-harness.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/climate-intent.service.d.ts +5 -5
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/climate-intent.service.js +35 -34
- package/dist/plugins/spaces-home-control/services/climate-intent.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/covers-intent.service.d.ts +5 -5
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/covers-intent.service.js +48 -47
- package/dist/plugins/spaces-home-control/services/covers-intent.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/derived-media-endpoint.service.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/derived-media-endpoint.service.js +28 -27
- package/dist/plugins/spaces-home-control/services/derived-media-endpoint.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/home-control-home-page.resolver.d.ts +4 -0
- package/dist/plugins/spaces-home-control/services/home-control-home-page.resolver.js +20 -0
- package/dist/plugins/spaces-home-control/services/home-control-home-page.resolver.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/home-control-spaces.service.d.ts +24 -0
- package/dist/plugins/spaces-home-control/services/home-control-spaces.service.js +182 -0
- package/dist/plugins/spaces-home-control/services/home-control-spaces.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/lighting-intent.service.d.ts +6 -6
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/lighting-intent.service.js +68 -67
- package/dist/plugins/spaces-home-control/services/lighting-intent.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/media-capability.service.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/media-capability.service.js +20 -19
- package/dist/plugins/spaces-home-control/services/media-capability.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-climate-role.service.d.ts +4 -4
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-climate-role.service.js +18 -17
- package/dist/plugins/spaces-home-control/services/space-climate-role.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-climate-state.service.d.ts +5 -5
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-climate-state.service.js +32 -31
- package/dist/plugins/spaces-home-control/services/space-climate-state.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-context-snapshot.service.d.ts +2 -2
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-context-snapshot.service.js +7 -6
- package/dist/plugins/spaces-home-control/services/space-context-snapshot.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-covers-role.service.d.ts +3 -3
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-covers-role.service.js +28 -25
- package/dist/plugins/spaces-home-control/services/space-covers-role.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-covers-state.service.d.ts +4 -4
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-covers-state.service.js +9 -8
- package/dist/plugins/spaces-home-control/services/space-covers-state.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-intent-base.service.d.ts +1 -1
- package/dist/plugins/spaces-home-control/services/space-intent-base.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/space-intent.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-lighting-role.service.d.ts +3 -3
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-lighting-role.service.js +25 -22
- package/dist/plugins/spaces-home-control/services/space-lighting-role.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-lighting-state.service.d.ts +3 -3
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-lighting-state.service.js +20 -19
- package/dist/plugins/spaces-home-control/services/space-lighting-state.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-lighting-tool.service.d.ts +4 -4
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-lighting-tool.service.js +8 -7
- package/dist/plugins/spaces-home-control/services/space-lighting-tool.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-media-activity-binding.service.d.ts +2 -2
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-media-activity-binding.service.js +31 -30
- package/dist/plugins/spaces-home-control/services/space-media-activity-binding.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-media-activity.service.d.ts +3 -3
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-media-activity.service.js +38 -37
- package/dist/plugins/spaces-home-control/services/space-media-activity.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-sensor-role.service.d.ts +4 -4
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-sensor-role.service.js +24 -23
- package/dist/plugins/spaces-home-control/services/space-sensor-role.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-sensor-state.service.d.ts +3 -3
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-sensor-state.service.js +19 -18
- package/dist/plugins/spaces-home-control/services/space-sensor-state.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-suggestion-heartbeat.service.d.ts +2 -2
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-suggestion-heartbeat.service.js +10 -9
- package/dist/plugins/spaces-home-control/services/space-suggestion-heartbeat.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-suggestion.service.d.ts +4 -3
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-suggestion.service.js +8 -7
- package/dist/plugins/spaces-home-control/services/space-suggestion.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-undo-history.service.d.ts +3 -3
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-undo-history.service.js +5 -5
- package/dist/plugins/spaces-home-control/services/space-undo-history.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/spaces-seeder.service.d.ts +2 -2
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/spaces-seeder.service.js +5 -5
- package/dist/plugins/spaces-home-control/services/spaces-seeder.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/spaces-home-control.constants.d.ts +297 -0
- package/dist/plugins/spaces-home-control/spaces-home-control.constants.js +1460 -0
- package/dist/plugins/spaces-home-control/spaces-home-control.constants.js.map +1 -0
- package/dist/plugins/spaces-home-control/spaces-home-control.openapi.d.ts +2 -0
- package/dist/plugins/spaces-home-control/spaces-home-control.openapi.js +155 -0
- package/dist/plugins/spaces-home-control/spaces-home-control.openapi.js.map +1 -0
- package/dist/plugins/spaces-home-control/spaces-home-control.plugin.d.ts +29 -0
- package/dist/plugins/spaces-home-control/spaces-home-control.plugin.js +334 -0
- package/dist/plugins/spaces-home-control/spaces-home-control.plugin.js.map +1 -0
- package/dist/plugins/spaces-home-control/spec/index.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/spec/intent-spec-loader.service.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/spec/intent-spec-loader.service.js +1 -1
- package/dist/plugins/spaces-home-control/spec/intent-spec-loader.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/spec/intent-spec.types.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/validators/at-least-one-setpoint.validator.js +2 -2
- package/dist/plugins/spaces-home-control/validators/at-least-one-setpoint.validator.js.map +1 -0
- package/dist/plugins/spaces-home-control/validators/setpoint-order-constraint.validator.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/validators/space-category-constraint.validator.js +1 -1
- package/dist/plugins/spaces-home-control/validators/space-category-constraint.validator.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/controllers/signage-announcements.controller.d.ts +18 -0
- package/dist/plugins/spaces-signage-info-panel/controllers/signage-announcements.controller.js +219 -0
- package/dist/plugins/spaces-signage-info-panel/controllers/signage-announcements.controller.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/dto/create-announcement.dto.d.ts +13 -0
- package/dist/plugins/spaces-signage-info-panel/dto/create-announcement.dto.js +143 -0
- package/dist/plugins/spaces-signage-info-panel/dto/create-announcement.dto.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/dto/create-signage-info-panel-space.dto.d.ts +13 -0
- package/dist/plugins/spaces-signage-info-panel/dto/create-signage-info-panel-space.dto.js +130 -0
- package/dist/plugins/spaces-signage-info-panel/dto/create-signage-info-panel-space.dto.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/dto/reorder-announcements.dto.d.ts +10 -0
- package/dist/plugins/spaces-signage-info-panel/dto/reorder-announcements.dto.js +78 -0
- package/dist/plugins/spaces-signage-info-panel/dto/reorder-announcements.dto.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/dto/update-announcement.dto.d.ts +12 -0
- package/dist/plugins/spaces-signage-info-panel/dto/update-announcement.dto.js +134 -0
- package/dist/plugins/spaces-signage-info-panel/dto/update-announcement.dto.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/dto/update-config.dto.d.ts +5 -0
- package/dist/plugins/spaces-signage-info-panel/dto/update-config.dto.js +34 -0
- package/dist/plugins/spaces-signage-info-panel/dto/update-config.dto.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/dto/update-signage-info-panel-space.dto.d.ts +13 -0
- package/dist/plugins/spaces-signage-info-panel/dto/update-signage-info-panel-space.dto.js +130 -0
- package/dist/plugins/spaces-signage-info-panel/dto/update-signage-info-panel-space.dto.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/entities/signage-announcement.entity.d.ts +13 -0
- package/dist/plugins/spaces-signage-info-panel/entities/signage-announcement.entity.js +161 -0
- package/dist/plugins/spaces-signage-info-panel/entities/signage-announcement.entity.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/entities/signage-info-panel-space.entity.d.ts +13 -0
- package/dist/plugins/spaces-signage-info-panel/entities/signage-info-panel-space.entity.js +147 -0
- package/dist/plugins/spaces-signage-info-panel/entities/signage-info-panel-space.entity.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/models/config.model.d.ts +5 -0
- package/dist/plugins/spaces-signage-info-panel/models/config.model.js +49 -0
- package/dist/plugins/spaces-signage-info-panel/models/config.model.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/models/signage-announcement-response.model.d.ts +8 -0
- package/dist/plugins/spaces-signage-info-panel/models/signage-announcement-response.model.js +46 -0
- package/dist/plugins/spaces-signage-info-panel/models/signage-announcement-response.model.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/services/signage-announcements.service.d.ts +28 -0
- package/dist/plugins/spaces-signage-info-panel/services/signage-announcements.service.js +181 -0
- package/dist/plugins/spaces-signage-info-panel/services/signage-announcements.service.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/services/signage-home-page.resolver.d.ts +4 -0
- package/dist/plugins/spaces-signage-info-panel/services/signage-home-page.resolver.js +20 -0
- package/dist/plugins/spaces-signage-info-panel/services/signage-home-page.resolver.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/services/signage-info-panel-reset.service.d.ts +14 -0
- package/dist/plugins/spaces-signage-info-panel/services/signage-info-panel-reset.service.js +59 -0
- package/dist/plugins/spaces-signage-info-panel/services/signage-info-panel-reset.service.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.constants.d.ts +17 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.constants.js +23 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.constants.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.exceptions.d.ts +9 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.exceptions.js +25 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.exceptions.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.openapi.d.ts +2 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.openapi.js +31 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.openapi.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.plugin.d.ts +23 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.plugin.js +159 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.plugin.js.map +1 -0
- package/dist/plugins/spaces-synthetic-entry/dto/create-entry-space.dto.d.ts +5 -0
- package/dist/plugins/spaces-synthetic-entry/dto/create-entry-space.dto.js +31 -0
- package/dist/plugins/spaces-synthetic-entry/dto/create-entry-space.dto.js.map +1 -0
- package/dist/plugins/spaces-synthetic-entry/dto/update-config.dto.d.ts +5 -0
- package/dist/plugins/spaces-synthetic-entry/dto/update-config.dto.js +34 -0
- package/dist/plugins/spaces-synthetic-entry/dto/update-config.dto.js.map +1 -0
- package/dist/plugins/spaces-synthetic-entry/dto/update-entry-space.dto.d.ts +5 -0
- package/dist/plugins/spaces-synthetic-entry/dto/update-entry-space.dto.js +31 -0
- package/dist/plugins/spaces-synthetic-entry/dto/update-entry-space.dto.js.map +1 -0
- package/dist/plugins/spaces-synthetic-entry/entities/entry-space.entity.d.ts +5 -0
- package/dist/plugins/spaces-synthetic-entry/entities/entry-space.entity.js +39 -0
- package/dist/plugins/spaces-synthetic-entry/entities/entry-space.entity.js.map +1 -0
- package/dist/plugins/spaces-synthetic-entry/models/config.model.d.ts +5 -0
- package/dist/plugins/spaces-synthetic-entry/models/config.model.js +49 -0
- package/dist/plugins/spaces-synthetic-entry/models/config.model.js.map +1 -0
- package/dist/plugins/spaces-synthetic-entry/spaces-synthetic-entry.constants.d.ts +7 -0
- package/dist/plugins/spaces-synthetic-entry/spaces-synthetic-entry.constants.js +11 -0
- package/dist/plugins/spaces-synthetic-entry/spaces-synthetic-entry.constants.js.map +1 -0
- package/dist/plugins/spaces-synthetic-entry/spaces-synthetic-entry.openapi.d.ts +2 -0
- package/dist/plugins/spaces-synthetic-entry/spaces-synthetic-entry.openapi.js +16 -0
- package/dist/plugins/spaces-synthetic-entry/spaces-synthetic-entry.openapi.js.map +1 -0
- package/dist/plugins/spaces-synthetic-entry/spaces-synthetic-entry.plugin.d.ts +15 -0
- package/dist/plugins/spaces-synthetic-entry/spaces-synthetic-entry.plugin.js +124 -0
- package/dist/plugins/spaces-synthetic-entry/spaces-synthetic-entry.plugin.js.map +1 -0
- package/dist/plugins/spaces-synthetic-master/dto/create-master-space.dto.d.ts +5 -0
- package/dist/plugins/spaces-synthetic-master/dto/create-master-space.dto.js +31 -0
- package/dist/plugins/spaces-synthetic-master/dto/create-master-space.dto.js.map +1 -0
- package/dist/plugins/spaces-synthetic-master/dto/update-config.dto.d.ts +5 -0
- package/dist/plugins/spaces-synthetic-master/dto/update-config.dto.js +34 -0
- package/dist/plugins/spaces-synthetic-master/dto/update-config.dto.js.map +1 -0
- package/dist/plugins/spaces-synthetic-master/dto/update-master-space.dto.d.ts +5 -0
- package/dist/plugins/spaces-synthetic-master/dto/update-master-space.dto.js +31 -0
- package/dist/plugins/spaces-synthetic-master/dto/update-master-space.dto.js.map +1 -0
- package/dist/plugins/spaces-synthetic-master/entities/master-space.entity.d.ts +5 -0
- package/dist/plugins/spaces-synthetic-master/entities/master-space.entity.js +39 -0
- package/dist/plugins/spaces-synthetic-master/entities/master-space.entity.js.map +1 -0
- package/dist/plugins/spaces-synthetic-master/models/config.model.d.ts +5 -0
- package/dist/plugins/spaces-synthetic-master/models/config.model.js +49 -0
- package/dist/plugins/spaces-synthetic-master/models/config.model.js.map +1 -0
- package/dist/plugins/spaces-synthetic-master/spaces-synthetic-master.constants.d.ts +7 -0
- package/dist/plugins/spaces-synthetic-master/spaces-synthetic-master.constants.js +11 -0
- package/dist/plugins/spaces-synthetic-master/spaces-synthetic-master.constants.js.map +1 -0
- package/dist/plugins/spaces-synthetic-master/spaces-synthetic-master.openapi.d.ts +2 -0
- package/dist/plugins/spaces-synthetic-master/spaces-synthetic-master.openapi.js +16 -0
- package/dist/plugins/spaces-synthetic-master/spaces-synthetic-master.openapi.js.map +1 -0
- package/dist/plugins/spaces-synthetic-master/spaces-synthetic-master.plugin.d.ts +15 -0
- package/dist/plugins/spaces-synthetic-master/spaces-synthetic-master.plugin.js +124 -0
- package/dist/plugins/spaces-synthetic-master/spaces-synthetic-master.plugin.js.map +1 -0
- package/dist/plugins/tiles-device-preview/tiles-device-preview.plugin.js +16 -22
- package/dist/plugins/tiles-device-preview/tiles-device-preview.plugin.js.map +1 -1
- package/dist/plugins/tiles-scene/tiles-scene.plugin.js +15 -21
- package/dist/plugins/tiles-scene/tiles-scene.plugin.js.map +1 -1
- package/dist/plugins/tiles-time/tiles-time.plugin.js +13 -19
- package/dist/plugins/tiles-time/tiles-time.plugin.js.map +1 -1
- package/dist/plugins/tiles-weather/tiles-weather.plugin.js +16 -19
- package/dist/plugins/tiles-weather/tiles-weather.plugin.js.map +1 -1
- package/dist/plugins/weather-open-meteo/weather-open-meteo.plugin.js +32 -21
- package/dist/plugins/weather-open-meteo/weather-open-meteo.plugin.js.map +1 -1
- package/dist/plugins/weather-openweathermap/weather-openweathermap.plugin.js +22 -23
- package/dist/plugins/weather-openweathermap/weather-openweathermap.plugin.js.map +1 -1
- package/dist/plugins/weather-openweathermap-onecall/weather-openweathermap-onecall.plugin.js +27 -23
- package/dist/plugins/weather-openweathermap-onecall/weather-openweathermap-onecall.plugin.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +10 -6
- package/dist/modules/spaces/dto/climate-intent.dto.js.map +0 -1
- package/dist/modules/spaces/dto/climate-role.dto.js.map +0 -1
- package/dist/modules/spaces/dto/covers-intent.dto.js.map +0 -1
- package/dist/modules/spaces/dto/covers-role.dto.js.map +0 -1
- package/dist/modules/spaces/dto/lighting-intent.dto.js.map +0 -1
- package/dist/modules/spaces/dto/lighting-role.dto.js.map +0 -1
- package/dist/modules/spaces/dto/media-activity-binding.dto.js.map +0 -1
- package/dist/modules/spaces/dto/sensor-role.dto.js.map +0 -1
- package/dist/modules/spaces/dto/status-widget.dto.js.map +0 -1
- package/dist/modules/spaces/dto/suggestion.dto.js.map +0 -1
- package/dist/modules/spaces/entities/space-active-media-activity.entity.d.ts +0 -12
- package/dist/modules/spaces/entities/space-active-media-activity.entity.js.map +0 -1
- package/dist/modules/spaces/entities/space-climate-role.entity.d.ts +0 -14
- package/dist/modules/spaces/entities/space-climate-role.entity.js.map +0 -1
- package/dist/modules/spaces/entities/space-covers-role.entity.d.ts +0 -14
- package/dist/modules/spaces/entities/space-covers-role.entity.js.map +0 -1
- package/dist/modules/spaces/entities/space-lighting-role.entity.d.ts +0 -14
- package/dist/modules/spaces/entities/space-lighting-role.entity.js.map +0 -1
- package/dist/modules/spaces/entities/space-media-activity-binding.entity.d.ts +0 -16
- package/dist/modules/spaces/entities/space-media-activity-binding.entity.js.map +0 -1
- package/dist/modules/spaces/entities/space-sensor-role.entity.d.ts +0 -14
- package/dist/modules/spaces/entities/space-sensor-role.entity.js.map +0 -1
- package/dist/modules/spaces/listeners/space-activity.listener.js.map +0 -1
- package/dist/modules/spaces/listeners/space-climate-state.listener.js.map +0 -1
- package/dist/modules/spaces/listeners/space-lighting-state.listener.js.map +0 -1
- package/dist/modules/spaces/listeners/space-sensor-state.listener.js.map +0 -1
- package/dist/modules/spaces/listeners/websocket-exchange.listener.js.map +0 -1
- package/dist/modules/spaces/models/derived-media-endpoint.model.js.map +0 -1
- package/dist/modules/spaces/models/media-activity-binding.model.js.map +0 -1
- package/dist/modules/spaces/models/media-activity.model.js.map +0 -1
- package/dist/modules/spaces/models/media-routing.model.js.map +0 -1
- package/dist/modules/spaces/services/__fixtures__/media-scenario-templates.js.map +0 -1
- package/dist/modules/spaces/services/__fixtures__/media-test-harness.js.map +0 -1
- package/dist/modules/spaces/services/climate-intent.service.js.map +0 -1
- package/dist/modules/spaces/services/covers-intent.service.js.map +0 -1
- package/dist/modules/spaces/services/derived-media-endpoint.service.js.map +0 -1
- package/dist/modules/spaces/services/lighting-intent.service.js.map +0 -1
- package/dist/modules/spaces/services/media-capability.service.js.map +0 -1
- package/dist/modules/spaces/services/space-climate-role.service.js.map +0 -1
- package/dist/modules/spaces/services/space-climate-state.service.js.map +0 -1
- package/dist/modules/spaces/services/space-context-snapshot.service.js.map +0 -1
- package/dist/modules/spaces/services/space-covers-role.service.js.map +0 -1
- package/dist/modules/spaces/services/space-covers-state.service.js.map +0 -1
- package/dist/modules/spaces/services/space-intent-base.service.js.map +0 -1
- package/dist/modules/spaces/services/space-intent.service.js.map +0 -1
- package/dist/modules/spaces/services/space-lighting-role.service.js.map +0 -1
- package/dist/modules/spaces/services/space-lighting-state.service.js.map +0 -1
- package/dist/modules/spaces/services/space-lighting-tool.service.js.map +0 -1
- package/dist/modules/spaces/services/space-media-activity-binding.service.js.map +0 -1
- package/dist/modules/spaces/services/space-media-activity.service.js.map +0 -1
- package/dist/modules/spaces/services/space-sensor-role.service.js.map +0 -1
- package/dist/modules/spaces/services/space-sensor-state.service.js.map +0 -1
- package/dist/modules/spaces/services/space-suggestion-heartbeat.service.js.map +0 -1
- package/dist/modules/spaces/services/space-suggestion.service.js.map +0 -1
- package/dist/modules/spaces/services/space-undo-history.service.js.map +0 -1
- package/dist/modules/spaces/services/spaces-seeder.service.js.map +0 -1
- package/dist/modules/spaces/spec/definitions/climate-intents.yaml +0 -94
- package/dist/modules/spaces/spec/definitions/covers-modes.yaml +0 -83
- package/dist/modules/spaces/spec/definitions/enums.yaml +0 -119
- package/dist/modules/spaces/spec/definitions/lighting-intents.yaml +0 -181
- package/dist/modules/spaces/spec/definitions/lighting-modes.yaml +0 -119
- package/dist/modules/spaces/spec/definitions/suggestions.yaml +0 -47
- package/dist/modules/spaces/spec/index.js.map +0 -1
- package/dist/modules/spaces/spec/intent-spec-loader.service.js.map +0 -1
- package/dist/modules/spaces/spec/intent-spec.types.js.map +0 -1
- package/dist/modules/spaces/validators/at-least-one-setpoint.validator.js.map +0 -1
- package/dist/modules/spaces/validators/setpoint-order-constraint.validator.js.map +0 -1
- package/dist/modules/spaces/validators/space-category-constraint.validator.js.map +0 -1
- package/dist/modules/storage/plugins/influx-v1/influx-v1.config.model.js.map +0 -1
- package/dist/modules/storage/plugins/influx-v1/influx-v1.constants.js.map +0 -1
- package/dist/modules/storage/plugins/influx-v1/influx-v1.module.d.ts +0 -17
- package/dist/modules/storage/plugins/influx-v1/influx-v1.module.js +0 -94
- package/dist/modules/storage/plugins/influx-v1/influx-v1.module.js.map +0 -1
- package/dist/modules/storage/plugins/influx-v1/influx-v1.openapi.js +0 -7
- package/dist/modules/storage/plugins/influx-v1/influx-v1.openapi.js.map +0 -1
- package/dist/modules/storage/plugins/influx-v1/influx-v1.plugin.js.map +0 -1
- package/dist/modules/storage/plugins/influx-v1/influx-v1.update-config.dto.js.map +0 -1
- package/dist/modules/storage/plugins/memory/in-memory-timeseries.store.js.map +0 -1
- package/dist/modules/storage/plugins/memory/influxql-parser.js.map +0 -1
- package/dist/modules/storage/plugins/memory/memory.config.model.js.map +0 -1
- package/dist/modules/storage/plugins/memory/memory.constants.js.map +0 -1
- package/dist/modules/storage/plugins/memory/memory.module.d.ts +0 -13
- package/dist/modules/storage/plugins/memory/memory.module.js +0 -75
- package/dist/modules/storage/plugins/memory/memory.module.js.map +0 -1
- package/dist/modules/storage/plugins/memory/memory.openapi.js +0 -7
- package/dist/modules/storage/plugins/memory/memory.openapi.js.map +0 -1
- package/dist/modules/storage/plugins/memory/memory.plugin.js.map +0 -1
- package/dist/modules/storage/plugins/memory/memory.update-config.dto.js.map +0 -1
- /package/dist/{modules/storage/plugins → plugins}/influx-v1/influx-v1.constants.d.ts +0 -0
- /package/dist/{modules/storage/plugins → plugins}/influx-v1/influx-v1.constants.js +0 -0
- /package/dist/{modules/storage/plugins/memory/memory.constants.d.ts → plugins/memory-storage/memory-storage.constants.d.ts} +0 -0
- /package/dist/{modules/storage/plugins/memory → plugins/memory-storage/services}/influxql-parser.d.ts +0 -0
- /package/dist/{modules/storage/plugins/memory → plugins/memory-storage/services}/influxql-parser.js +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/dto/status-widget.dto.d.ts +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/dto/status-widget.dto.js +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/services/__fixtures__/media-test-harness.js +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-intent-base.service.js +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-intent.service.d.ts +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-intent.service.js +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/spec/index.d.ts +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/spec/index.js +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/spec/intent-spec.types.d.ts +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/spec/intent-spec.types.js +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/validators/at-least-one-setpoint.validator.d.ts +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/validators/setpoint-order-constraint.validator.d.ts +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/validators/setpoint-order-constraint.validator.js +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/validators/space-category-constraint.validator.d.ts +0 -0
|
@@ -0,0 +1,1460 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CoversRole = exports.CLIMATE_INTENT_CATALOG = exports.LIGHTING_INTENT_CATALOG = exports.CLIMATE_MODE_META = exports.CLIMATE_ROLE_META = exports.LIGHTING_ROLE_META = exports.SETPOINT_DELTA_META = exports.BRIGHTNESS_DELTA_META = exports.LIGHTING_MODE_META = exports.IntentCategory = exports.LIGHTING_MODE_ORCHESTRATION = exports.SUGGESTION_EXPIRY_MS = exports.SUGGESTION_HEARTBEAT_INTERVAL_MS = exports.SUGGESTION_COOLDOWN_MS = exports.SuggestionType = exports.ALL_QUICK_ACTION_TYPES = exports.DEFAULT_QUICK_ACTIONS = exports.QuickActionType = exports.CLIMATE_SENSOR_CHANNEL_CATEGORIES = exports.CLIMATE_UNIVERSAL_ROLES = exports.CLIMATE_SENSOR_ROLES = exports.CLIMATE_CONTROL_ROLES = exports.ClimateRole = exports.LightingRole = exports.SETPOINT_CONSENSUS_TOLERANCE = exports.SETPOINT_PRECISION = exports.ABSOLUTE_MAX_SETPOINT = exports.ABSOLUTE_MIN_SETPOINT = exports.DEFAULT_MAX_SETPOINT = exports.DEFAULT_MIN_SETPOINT = exports.SETPOINT_DELTA_STEPS = exports.SetpointDelta = exports.CLIMATE_PRIMARY_DEVICE_CATEGORIES = exports.TEMPERATURE_AVERAGING_STRATEGY = exports.TemperatureAveragingStrategy = exports.ClimateMode = exports.ClimateIntentType = exports.BRIGHTNESS_DELTA_STEPS = exports.LIGHTING_MODE_BRIGHTNESS = exports.BrightnessDelta = exports.LightingMode = exports.LightingIntentType = exports.SPACE_CATEGORY_TEMPLATES = exports.SPACE_ZONE_CATEGORY_TEMPLATES = exports.SPACE_ROOM_CATEGORY_TEMPLATES = exports.EventType = exports.SPACES_HOME_CONTROL_PLUGIN_API_TAG_DESCRIPTION = exports.SPACES_HOME_CONTROL_PLUGIN_API_TAG_NAME = exports.SPACES_HOME_CONTROL_PLUGIN_NAME = exports.SPACES_HOME_CONTROL_PLUGIN_PREFIX = void 0;
|
|
4
|
+
exports.SAFETY_SENSOR_THRESHOLDS = exports.SENSOR_ROLE_META = exports.SENSOR_PRIMARY_PROPERTY_CANDIDATES = exports.SENSOR_ENERGY_CHANNEL_CATEGORIES = exports.SENSOR_AIR_QUALITY_CHANNEL_CATEGORIES = exports.SENSOR_SECURITY_CHANNEL_CATEGORIES = exports.SENSOR_SAFETY_CHANNEL_CATEGORIES = exports.SENSOR_ENVIRONMENT_CHANNEL_CATEGORIES = exports.SENSOR_CHANNEL_CATEGORIES = exports.SensorRole = exports.QUICK_ACTION_CATALOG = exports.INTENT_CATEGORY_CATALOG = exports.MEDIA_ENDPOINT_TYPE_META = exports.MediaCapabilityPermission = exports.MediaCapability = exports.MediaActivationState = exports.CONFIGURABLE_ACTIVITY_KEYS = exports.MediaActivityKey = exports.MediaEndpointType = exports.MEDIA_CHANNEL_CATEGORIES = exports.MEDIA_DEVICE_CATEGORIES = exports.COVERS_INTENT_CATALOG = exports.POSITION_DELTA_META = exports.COVERS_MODE_META = exports.COVERS_ROLE_META = exports.COVERS_MODE_ORCHESTRATION = exports.POSITION_DELTA_STEPS = exports.PositionDelta = exports.CoversMode = exports.CoversIntentType = void 0;
|
|
5
|
+
const devices_constants_1 = require("../../modules/devices/devices.constants");
|
|
6
|
+
const spaces_constants_1 = require("../../modules/spaces/spaces.constants");
|
|
7
|
+
exports.SPACES_HOME_CONTROL_PLUGIN_PREFIX = 'spaces-home-control';
|
|
8
|
+
exports.SPACES_HOME_CONTROL_PLUGIN_NAME = 'spaces-home-control-plugin';
|
|
9
|
+
exports.SPACES_HOME_CONTROL_PLUGIN_API_TAG_NAME = 'Spaces home control plugin';
|
|
10
|
+
exports.SPACES_HOME_CONTROL_PLUGIN_API_TAG_DESCRIPTION = 'Endpoints for the home-control space type. Contributes the built-in Room and Zone space types along with their lighting, climate, covers, sensor, and media role domains, intent catalog, suggestions, and undo history.';
|
|
11
|
+
var EventType;
|
|
12
|
+
(function (EventType) {
|
|
13
|
+
EventType["LIGHT_TARGET_CREATED"] = "SpacesModule.LightTarget.Created";
|
|
14
|
+
EventType["LIGHT_TARGET_UPDATED"] = "SpacesModule.LightTarget.Updated";
|
|
15
|
+
EventType["LIGHT_TARGET_DELETED"] = "SpacesModule.LightTarget.Deleted";
|
|
16
|
+
EventType["CLIMATE_TARGET_CREATED"] = "SpacesModule.ClimateTarget.Created";
|
|
17
|
+
EventType["CLIMATE_TARGET_UPDATED"] = "SpacesModule.ClimateTarget.Updated";
|
|
18
|
+
EventType["CLIMATE_TARGET_DELETED"] = "SpacesModule.ClimateTarget.Deleted";
|
|
19
|
+
EventType["LIGHTING_STATE_CHANGED"] = "SpacesModule.Space.LightingStateChanged";
|
|
20
|
+
EventType["CLIMATE_STATE_CHANGED"] = "SpacesModule.Space.ClimateStateChanged";
|
|
21
|
+
EventType["COVERS_STATE_CHANGED"] = "SpacesModule.Space.CoversStateChanged";
|
|
22
|
+
EventType["COVERS_TARGET_CREATED"] = "SpacesModule.CoversTarget.Created";
|
|
23
|
+
EventType["COVERS_TARGET_UPDATED"] = "SpacesModule.CoversTarget.Updated";
|
|
24
|
+
EventType["COVERS_TARGET_DELETED"] = "SpacesModule.CoversTarget.Deleted";
|
|
25
|
+
EventType["MEDIA_BINDING_CREATED"] = "SpacesModule.MediaBinding.Created";
|
|
26
|
+
EventType["MEDIA_BINDING_UPDATED"] = "SpacesModule.MediaBinding.Updated";
|
|
27
|
+
EventType["MEDIA_BINDING_DELETED"] = "SpacesModule.MediaBinding.Deleted";
|
|
28
|
+
EventType["MEDIA_ACTIVITY_ACTIVATING"] = "SpacesModule.MediaActivity.Activating";
|
|
29
|
+
EventType["MEDIA_ACTIVITY_ACTIVATED"] = "SpacesModule.MediaActivity.Activated";
|
|
30
|
+
EventType["MEDIA_ACTIVITY_FAILED"] = "SpacesModule.MediaActivity.Failed";
|
|
31
|
+
EventType["MEDIA_ACTIVITY_DEACTIVATED"] = "SpacesModule.MediaActivity.Deactivated";
|
|
32
|
+
EventType["MEDIA_ACTIVITY_STEP_PROGRESS"] = "SpacesModule.MediaActivity.StepProgress";
|
|
33
|
+
EventType["SENSOR_STATE_CHANGED"] = "SpacesModule.Space.SensorStateChanged";
|
|
34
|
+
EventType["SUGGESTION_CREATED"] = "SpacesModule.Suggestion.Created";
|
|
35
|
+
EventType["SENSOR_TARGET_CREATED"] = "SpacesModule.SensorTarget.Created";
|
|
36
|
+
EventType["SENSOR_TARGET_UPDATED"] = "SpacesModule.SensorTarget.Updated";
|
|
37
|
+
EventType["SENSOR_TARGET_DELETED"] = "SpacesModule.SensorTarget.Deleted";
|
|
38
|
+
})(EventType || (exports.EventType = EventType = {}));
|
|
39
|
+
exports.SPACE_ROOM_CATEGORY_TEMPLATES = {
|
|
40
|
+
[spaces_constants_1.SpaceRoomCategory.LIVING_ROOM]: {
|
|
41
|
+
icon: 'mdi:sofa',
|
|
42
|
+
description: 'Main living and entertainment area',
|
|
43
|
+
},
|
|
44
|
+
[spaces_constants_1.SpaceRoomCategory.BEDROOM]: {
|
|
45
|
+
icon: 'mdi:bed',
|
|
46
|
+
description: 'Sleeping and personal space',
|
|
47
|
+
},
|
|
48
|
+
[spaces_constants_1.SpaceRoomCategory.BATHROOM]: {
|
|
49
|
+
icon: 'mdi:shower',
|
|
50
|
+
description: 'Full bathroom with shower or bathtub',
|
|
51
|
+
},
|
|
52
|
+
[spaces_constants_1.SpaceRoomCategory.TOILET]: {
|
|
53
|
+
icon: 'mdi:toilet',
|
|
54
|
+
description: 'Toilet or half bathroom',
|
|
55
|
+
},
|
|
56
|
+
[spaces_constants_1.SpaceRoomCategory.KITCHEN]: {
|
|
57
|
+
icon: 'mdi:stove',
|
|
58
|
+
description: 'Food preparation and cooking area',
|
|
59
|
+
},
|
|
60
|
+
[spaces_constants_1.SpaceRoomCategory.DINING_ROOM]: {
|
|
61
|
+
icon: 'mdi:silverware-fork-knife',
|
|
62
|
+
description: 'Dining and eating area',
|
|
63
|
+
},
|
|
64
|
+
[spaces_constants_1.SpaceRoomCategory.OFFICE]: {
|
|
65
|
+
icon: 'mdi:desk',
|
|
66
|
+
description: 'Home office or work space',
|
|
67
|
+
},
|
|
68
|
+
[spaces_constants_1.SpaceRoomCategory.GARAGE]: {
|
|
69
|
+
icon: 'mdi:garage',
|
|
70
|
+
description: 'Vehicle storage and workshop area',
|
|
71
|
+
},
|
|
72
|
+
[spaces_constants_1.SpaceRoomCategory.HALLWAY]: {
|
|
73
|
+
icon: 'mdi:door-open',
|
|
74
|
+
description: 'Corridor and passage area',
|
|
75
|
+
},
|
|
76
|
+
[spaces_constants_1.SpaceRoomCategory.ENTRYWAY]: {
|
|
77
|
+
icon: 'mdi:door',
|
|
78
|
+
description: 'Main entrance and foyer area',
|
|
79
|
+
},
|
|
80
|
+
[spaces_constants_1.SpaceRoomCategory.LAUNDRY]: {
|
|
81
|
+
icon: 'mdi:washing-machine',
|
|
82
|
+
description: 'Laundry room with washer and dryer',
|
|
83
|
+
},
|
|
84
|
+
[spaces_constants_1.SpaceRoomCategory.UTILITY_ROOM]: {
|
|
85
|
+
icon: 'mdi:water-boiler',
|
|
86
|
+
description: 'Utility room with mechanical systems',
|
|
87
|
+
},
|
|
88
|
+
[spaces_constants_1.SpaceRoomCategory.STORAGE]: {
|
|
89
|
+
icon: 'mdi:package-variant-closed',
|
|
90
|
+
description: 'General storage space',
|
|
91
|
+
},
|
|
92
|
+
[spaces_constants_1.SpaceRoomCategory.CLOSET]: {
|
|
93
|
+
icon: 'mdi:wardrobe',
|
|
94
|
+
description: 'Walk-in closet or wardrobe room',
|
|
95
|
+
},
|
|
96
|
+
[spaces_constants_1.SpaceRoomCategory.PANTRY]: {
|
|
97
|
+
icon: 'mdi:food-variant',
|
|
98
|
+
description: 'Food storage and pantry',
|
|
99
|
+
},
|
|
100
|
+
[spaces_constants_1.SpaceRoomCategory.NURSERY]: {
|
|
101
|
+
icon: 'mdi:baby-carriage',
|
|
102
|
+
description: 'Baby or child room',
|
|
103
|
+
},
|
|
104
|
+
[spaces_constants_1.SpaceRoomCategory.GUEST_ROOM]: {
|
|
105
|
+
icon: 'mdi:account-multiple',
|
|
106
|
+
description: 'Guest bedroom or accommodation',
|
|
107
|
+
},
|
|
108
|
+
[spaces_constants_1.SpaceRoomCategory.GYM]: {
|
|
109
|
+
icon: 'mdi:dumbbell',
|
|
110
|
+
description: 'Home gym or exercise area',
|
|
111
|
+
},
|
|
112
|
+
[spaces_constants_1.SpaceRoomCategory.MEDIA_ROOM]: {
|
|
113
|
+
icon: 'mdi:television',
|
|
114
|
+
description: 'Home theater or media room',
|
|
115
|
+
},
|
|
116
|
+
[spaces_constants_1.SpaceRoomCategory.WORKSHOP]: {
|
|
117
|
+
icon: 'mdi:hammer-wrench',
|
|
118
|
+
description: 'DIY workshop or hobby area',
|
|
119
|
+
},
|
|
120
|
+
[spaces_constants_1.SpaceRoomCategory.OTHER]: {
|
|
121
|
+
icon: 'mdi:home',
|
|
122
|
+
description: 'Other or custom room',
|
|
123
|
+
},
|
|
124
|
+
};
|
|
125
|
+
exports.SPACE_ZONE_CATEGORY_TEMPLATES = {
|
|
126
|
+
[spaces_constants_1.SpaceZoneCategory.FLOOR_GROUND]: {
|
|
127
|
+
icon: 'mdi:home-floor-0',
|
|
128
|
+
description: 'Ground floor level',
|
|
129
|
+
},
|
|
130
|
+
[spaces_constants_1.SpaceZoneCategory.FLOOR_FIRST]: {
|
|
131
|
+
icon: 'mdi:home-floor-1',
|
|
132
|
+
description: 'First floor level',
|
|
133
|
+
},
|
|
134
|
+
[spaces_constants_1.SpaceZoneCategory.FLOOR_SECOND]: {
|
|
135
|
+
icon: 'mdi:home-floor-2',
|
|
136
|
+
description: 'Second floor level',
|
|
137
|
+
},
|
|
138
|
+
[spaces_constants_1.SpaceZoneCategory.FLOOR_BASEMENT]: {
|
|
139
|
+
icon: 'mdi:home-floor-b',
|
|
140
|
+
description: 'Basement level',
|
|
141
|
+
},
|
|
142
|
+
[spaces_constants_1.SpaceZoneCategory.FLOOR_ATTIC]: {
|
|
143
|
+
icon: 'mdi:home-roof',
|
|
144
|
+
description: 'Attic level',
|
|
145
|
+
},
|
|
146
|
+
[spaces_constants_1.SpaceZoneCategory.OUTDOOR_FRONT_YARD]: {
|
|
147
|
+
icon: 'mdi:home-import-outline',
|
|
148
|
+
description: 'Front yard area',
|
|
149
|
+
},
|
|
150
|
+
[spaces_constants_1.SpaceZoneCategory.OUTDOOR_BACKYARD]: {
|
|
151
|
+
icon: 'mdi:home-export-outline',
|
|
152
|
+
description: 'Backyard area',
|
|
153
|
+
},
|
|
154
|
+
[spaces_constants_1.SpaceZoneCategory.OUTDOOR_DRIVEWAY]: {
|
|
155
|
+
icon: 'mdi:road-variant',
|
|
156
|
+
description: 'Driveway and parking area',
|
|
157
|
+
},
|
|
158
|
+
[spaces_constants_1.SpaceZoneCategory.OUTDOOR_GARDEN]: {
|
|
159
|
+
icon: 'mdi:flower',
|
|
160
|
+
description: 'Garden and landscaped area',
|
|
161
|
+
},
|
|
162
|
+
[spaces_constants_1.SpaceZoneCategory.OUTDOOR_TERRACE]: {
|
|
163
|
+
icon: 'mdi:grill',
|
|
164
|
+
description: 'Terrace or patio area',
|
|
165
|
+
},
|
|
166
|
+
[spaces_constants_1.SpaceZoneCategory.OUTDOOR_BALCONY]: {
|
|
167
|
+
icon: 'mdi:balcony',
|
|
168
|
+
description: 'Balcony or veranda',
|
|
169
|
+
},
|
|
170
|
+
[spaces_constants_1.SpaceZoneCategory.OUTDOOR_WALKWAY]: {
|
|
171
|
+
icon: 'mdi:walk',
|
|
172
|
+
description: 'Outdoor walkway or path',
|
|
173
|
+
},
|
|
174
|
+
[spaces_constants_1.SpaceZoneCategory.SECURITY_PERIMETER]: {
|
|
175
|
+
icon: 'mdi:shield-home',
|
|
176
|
+
description: 'Security perimeter zone',
|
|
177
|
+
},
|
|
178
|
+
[spaces_constants_1.SpaceZoneCategory.UTILITY]: {
|
|
179
|
+
icon: 'mdi:tools',
|
|
180
|
+
description: 'Utility and service zone',
|
|
181
|
+
},
|
|
182
|
+
[spaces_constants_1.SpaceZoneCategory.OTHER]: {
|
|
183
|
+
icon: 'mdi:map-marker',
|
|
184
|
+
description: 'Other or custom zone',
|
|
185
|
+
},
|
|
186
|
+
};
|
|
187
|
+
exports.SPACE_CATEGORY_TEMPLATES = {
|
|
188
|
+
...exports.SPACE_ROOM_CATEGORY_TEMPLATES,
|
|
189
|
+
...exports.SPACE_ZONE_CATEGORY_TEMPLATES,
|
|
190
|
+
};
|
|
191
|
+
var LightingIntentType;
|
|
192
|
+
(function (LightingIntentType) {
|
|
193
|
+
LightingIntentType["OFF"] = "off";
|
|
194
|
+
LightingIntentType["ON"] = "on";
|
|
195
|
+
LightingIntentType["SET_MODE"] = "set_mode";
|
|
196
|
+
LightingIntentType["BRIGHTNESS_DELTA"] = "brightness_delta";
|
|
197
|
+
LightingIntentType["ROLE_ON"] = "role_on";
|
|
198
|
+
LightingIntentType["ROLE_OFF"] = "role_off";
|
|
199
|
+
LightingIntentType["ROLE_BRIGHTNESS"] = "role_brightness";
|
|
200
|
+
LightingIntentType["ROLE_COLOR"] = "role_color";
|
|
201
|
+
LightingIntentType["ROLE_COLOR_TEMP"] = "role_color_temp";
|
|
202
|
+
LightingIntentType["ROLE_WHITE"] = "role_white";
|
|
203
|
+
LightingIntentType["ROLE_SET"] = "role_set";
|
|
204
|
+
})(LightingIntentType || (exports.LightingIntentType = LightingIntentType = {}));
|
|
205
|
+
var LightingMode;
|
|
206
|
+
(function (LightingMode) {
|
|
207
|
+
LightingMode["OFF"] = "off";
|
|
208
|
+
LightingMode["WORK"] = "work";
|
|
209
|
+
LightingMode["RELAX"] = "relax";
|
|
210
|
+
LightingMode["NIGHT"] = "night";
|
|
211
|
+
})(LightingMode || (exports.LightingMode = LightingMode = {}));
|
|
212
|
+
var BrightnessDelta;
|
|
213
|
+
(function (BrightnessDelta) {
|
|
214
|
+
BrightnessDelta["SMALL"] = "small";
|
|
215
|
+
BrightnessDelta["MEDIUM"] = "medium";
|
|
216
|
+
BrightnessDelta["LARGE"] = "large";
|
|
217
|
+
})(BrightnessDelta || (exports.BrightnessDelta = BrightnessDelta = {}));
|
|
218
|
+
exports.LIGHTING_MODE_BRIGHTNESS = {
|
|
219
|
+
[LightingMode.OFF]: 0,
|
|
220
|
+
[LightingMode.WORK]: 100,
|
|
221
|
+
[LightingMode.RELAX]: 50,
|
|
222
|
+
[LightingMode.NIGHT]: 20,
|
|
223
|
+
};
|
|
224
|
+
exports.BRIGHTNESS_DELTA_STEPS = {
|
|
225
|
+
[BrightnessDelta.SMALL]: 10,
|
|
226
|
+
[BrightnessDelta.MEDIUM]: 25,
|
|
227
|
+
[BrightnessDelta.LARGE]: 50,
|
|
228
|
+
};
|
|
229
|
+
var ClimateIntentType;
|
|
230
|
+
(function (ClimateIntentType) {
|
|
231
|
+
ClimateIntentType["SETPOINT_DELTA"] = "setpoint_delta";
|
|
232
|
+
ClimateIntentType["SETPOINT_SET"] = "setpoint_set";
|
|
233
|
+
ClimateIntentType["SET_MODE"] = "set_mode";
|
|
234
|
+
ClimateIntentType["CLIMATE_SET"] = "climate_set";
|
|
235
|
+
})(ClimateIntentType || (exports.ClimateIntentType = ClimateIntentType = {}));
|
|
236
|
+
var ClimateMode;
|
|
237
|
+
(function (ClimateMode) {
|
|
238
|
+
ClimateMode["HEAT"] = "heat";
|
|
239
|
+
ClimateMode["COOL"] = "cool";
|
|
240
|
+
ClimateMode["AUTO"] = "auto";
|
|
241
|
+
ClimateMode["OFF"] = "off";
|
|
242
|
+
})(ClimateMode || (exports.ClimateMode = ClimateMode = {}));
|
|
243
|
+
var TemperatureAveragingStrategy;
|
|
244
|
+
(function (TemperatureAveragingStrategy) {
|
|
245
|
+
TemperatureAveragingStrategy["ALL_SOURCES"] = "all_sources";
|
|
246
|
+
TemperatureAveragingStrategy["PRIMARY_ONLY"] = "primary_only";
|
|
247
|
+
})(TemperatureAveragingStrategy || (exports.TemperatureAveragingStrategy = TemperatureAveragingStrategy = {}));
|
|
248
|
+
exports.TEMPERATURE_AVERAGING_STRATEGY = TemperatureAveragingStrategy.PRIMARY_ONLY;
|
|
249
|
+
exports.CLIMATE_PRIMARY_DEVICE_CATEGORIES = [
|
|
250
|
+
devices_constants_1.DeviceCategory.THERMOSTAT,
|
|
251
|
+
devices_constants_1.DeviceCategory.HEATING_UNIT,
|
|
252
|
+
devices_constants_1.DeviceCategory.AIR_CONDITIONER,
|
|
253
|
+
];
|
|
254
|
+
var SetpointDelta;
|
|
255
|
+
(function (SetpointDelta) {
|
|
256
|
+
SetpointDelta["SMALL"] = "small";
|
|
257
|
+
SetpointDelta["MEDIUM"] = "medium";
|
|
258
|
+
SetpointDelta["LARGE"] = "large";
|
|
259
|
+
})(SetpointDelta || (exports.SetpointDelta = SetpointDelta = {}));
|
|
260
|
+
exports.SETPOINT_DELTA_STEPS = {
|
|
261
|
+
[SetpointDelta.SMALL]: 0.5,
|
|
262
|
+
[SetpointDelta.MEDIUM]: 1.0,
|
|
263
|
+
[SetpointDelta.LARGE]: 2.0,
|
|
264
|
+
};
|
|
265
|
+
exports.DEFAULT_MIN_SETPOINT = 5;
|
|
266
|
+
exports.DEFAULT_MAX_SETPOINT = 35;
|
|
267
|
+
exports.ABSOLUTE_MIN_SETPOINT = -10;
|
|
268
|
+
exports.ABSOLUTE_MAX_SETPOINT = 50;
|
|
269
|
+
exports.SETPOINT_PRECISION = 0.5;
|
|
270
|
+
exports.SETPOINT_CONSENSUS_TOLERANCE = 0.5;
|
|
271
|
+
var LightingRole;
|
|
272
|
+
(function (LightingRole) {
|
|
273
|
+
LightingRole["MAIN"] = "main";
|
|
274
|
+
LightingRole["TASK"] = "task";
|
|
275
|
+
LightingRole["AMBIENT"] = "ambient";
|
|
276
|
+
LightingRole["ACCENT"] = "accent";
|
|
277
|
+
LightingRole["NIGHT"] = "night";
|
|
278
|
+
LightingRole["OTHER"] = "other";
|
|
279
|
+
LightingRole["HIDDEN"] = "hidden";
|
|
280
|
+
})(LightingRole || (exports.LightingRole = LightingRole = {}));
|
|
281
|
+
var ClimateRole;
|
|
282
|
+
(function (ClimateRole) {
|
|
283
|
+
ClimateRole["HEATING_ONLY"] = "heating_only";
|
|
284
|
+
ClimateRole["COOLING_ONLY"] = "cooling_only";
|
|
285
|
+
ClimateRole["AUTO"] = "auto";
|
|
286
|
+
ClimateRole["AUXILIARY"] = "auxiliary";
|
|
287
|
+
ClimateRole["SENSOR"] = "sensor";
|
|
288
|
+
ClimateRole["HIDDEN"] = "hidden";
|
|
289
|
+
})(ClimateRole || (exports.ClimateRole = ClimateRole = {}));
|
|
290
|
+
exports.CLIMATE_CONTROL_ROLES = [
|
|
291
|
+
ClimateRole.HEATING_ONLY,
|
|
292
|
+
ClimateRole.COOLING_ONLY,
|
|
293
|
+
ClimateRole.AUTO,
|
|
294
|
+
ClimateRole.AUXILIARY,
|
|
295
|
+
];
|
|
296
|
+
exports.CLIMATE_SENSOR_ROLES = [ClimateRole.SENSOR];
|
|
297
|
+
exports.CLIMATE_UNIVERSAL_ROLES = [ClimateRole.HIDDEN];
|
|
298
|
+
exports.CLIMATE_SENSOR_CHANNEL_CATEGORIES = [
|
|
299
|
+
devices_constants_1.ChannelCategory.TEMPERATURE,
|
|
300
|
+
devices_constants_1.ChannelCategory.HUMIDITY,
|
|
301
|
+
devices_constants_1.ChannelCategory.AIR_QUALITY,
|
|
302
|
+
devices_constants_1.ChannelCategory.AIR_PARTICULATE,
|
|
303
|
+
devices_constants_1.ChannelCategory.CARBON_DIOXIDE,
|
|
304
|
+
devices_constants_1.ChannelCategory.VOLATILE_ORGANIC_COMPOUNDS,
|
|
305
|
+
devices_constants_1.ChannelCategory.PRESSURE,
|
|
306
|
+
];
|
|
307
|
+
var QuickActionType;
|
|
308
|
+
(function (QuickActionType) {
|
|
309
|
+
QuickActionType["LIGHTING_OFF"] = "lighting_off";
|
|
310
|
+
QuickActionType["LIGHTING_WORK"] = "lighting_work";
|
|
311
|
+
QuickActionType["LIGHTING_RELAX"] = "lighting_relax";
|
|
312
|
+
QuickActionType["LIGHTING_NIGHT"] = "lighting_night";
|
|
313
|
+
QuickActionType["BRIGHTNESS_UP"] = "brightness_up";
|
|
314
|
+
QuickActionType["BRIGHTNESS_DOWN"] = "brightness_down";
|
|
315
|
+
QuickActionType["CLIMATE_UP"] = "climate_up";
|
|
316
|
+
QuickActionType["CLIMATE_DOWN"] = "climate_down";
|
|
317
|
+
})(QuickActionType || (exports.QuickActionType = QuickActionType = {}));
|
|
318
|
+
exports.DEFAULT_QUICK_ACTIONS = [
|
|
319
|
+
QuickActionType.LIGHTING_OFF,
|
|
320
|
+
QuickActionType.LIGHTING_WORK,
|
|
321
|
+
QuickActionType.LIGHTING_RELAX,
|
|
322
|
+
QuickActionType.LIGHTING_NIGHT,
|
|
323
|
+
];
|
|
324
|
+
exports.ALL_QUICK_ACTION_TYPES = Object.values(QuickActionType);
|
|
325
|
+
var SuggestionType;
|
|
326
|
+
(function (SuggestionType) {
|
|
327
|
+
SuggestionType["LIGHTING_RELAX"] = "lighting_relax";
|
|
328
|
+
SuggestionType["LIGHTING_NIGHT"] = "lighting_night";
|
|
329
|
+
SuggestionType["LIGHTING_OFF"] = "lighting_off";
|
|
330
|
+
})(SuggestionType || (exports.SuggestionType = SuggestionType = {}));
|
|
331
|
+
exports.SUGGESTION_COOLDOWN_MS = 30 * 60 * 1000;
|
|
332
|
+
exports.SUGGESTION_HEARTBEAT_INTERVAL_MS = 5 * 60 * 1000;
|
|
333
|
+
exports.SUGGESTION_EXPIRY_MS = 60 * 60 * 1000;
|
|
334
|
+
exports.LIGHTING_MODE_ORCHESTRATION = {
|
|
335
|
+
[LightingMode.OFF]: {
|
|
336
|
+
roles: {
|
|
337
|
+
[LightingRole.MAIN]: { on: false, brightness: null },
|
|
338
|
+
[LightingRole.TASK]: { on: false, brightness: null },
|
|
339
|
+
[LightingRole.AMBIENT]: { on: false, brightness: null },
|
|
340
|
+
[LightingRole.ACCENT]: { on: false, brightness: null },
|
|
341
|
+
[LightingRole.NIGHT]: { on: false, brightness: null },
|
|
342
|
+
[LightingRole.OTHER]: { on: false, brightness: null },
|
|
343
|
+
},
|
|
344
|
+
},
|
|
345
|
+
[LightingMode.WORK]: {
|
|
346
|
+
roles: {
|
|
347
|
+
[LightingRole.MAIN]: { on: true, brightness: 100 },
|
|
348
|
+
[LightingRole.TASK]: { on: true, brightness: 100 },
|
|
349
|
+
[LightingRole.AMBIENT]: { on: false, brightness: null },
|
|
350
|
+
[LightingRole.ACCENT]: { on: false, brightness: null },
|
|
351
|
+
[LightingRole.NIGHT]: { on: false, brightness: null },
|
|
352
|
+
[LightingRole.OTHER]: { on: false, brightness: null },
|
|
353
|
+
},
|
|
354
|
+
},
|
|
355
|
+
[LightingMode.RELAX]: {
|
|
356
|
+
roles: {
|
|
357
|
+
[LightingRole.MAIN]: { on: true, brightness: 50 },
|
|
358
|
+
[LightingRole.TASK]: { on: false, brightness: null },
|
|
359
|
+
[LightingRole.AMBIENT]: { on: true, brightness: 50 },
|
|
360
|
+
[LightingRole.ACCENT]: { on: true, brightness: 30 },
|
|
361
|
+
[LightingRole.NIGHT]: { on: false, brightness: null },
|
|
362
|
+
[LightingRole.OTHER]: { on: true, brightness: 50 },
|
|
363
|
+
},
|
|
364
|
+
},
|
|
365
|
+
[LightingMode.NIGHT]: {
|
|
366
|
+
roles: {
|
|
367
|
+
[LightingRole.MAIN]: { on: false, brightness: null },
|
|
368
|
+
[LightingRole.TASK]: { on: false, brightness: null },
|
|
369
|
+
[LightingRole.AMBIENT]: { on: false, brightness: null },
|
|
370
|
+
[LightingRole.ACCENT]: { on: false, brightness: null },
|
|
371
|
+
[LightingRole.NIGHT]: { on: true, brightness: 20 },
|
|
372
|
+
[LightingRole.OTHER]: { on: false, brightness: null },
|
|
373
|
+
},
|
|
374
|
+
fallbackRoles: [LightingRole.MAIN],
|
|
375
|
+
fallbackBrightness: 20,
|
|
376
|
+
},
|
|
377
|
+
};
|
|
378
|
+
var IntentCategory;
|
|
379
|
+
(function (IntentCategory) {
|
|
380
|
+
IntentCategory["LIGHTING"] = "lighting";
|
|
381
|
+
IntentCategory["CLIMATE"] = "climate";
|
|
382
|
+
IntentCategory["COVERS"] = "covers";
|
|
383
|
+
IntentCategory["MEDIA"] = "media";
|
|
384
|
+
})(IntentCategory || (exports.IntentCategory = IntentCategory = {}));
|
|
385
|
+
exports.LIGHTING_MODE_META = {
|
|
386
|
+
[LightingMode.OFF]: {
|
|
387
|
+
value: LightingMode.OFF,
|
|
388
|
+
label: 'Off',
|
|
389
|
+
description: 'All lights off',
|
|
390
|
+
icon: 'mdi:lightbulb-off',
|
|
391
|
+
},
|
|
392
|
+
[LightingMode.WORK]: {
|
|
393
|
+
value: LightingMode.WORK,
|
|
394
|
+
label: 'Work',
|
|
395
|
+
description: 'Bright lighting for focus and productivity',
|
|
396
|
+
icon: 'mdi:briefcase',
|
|
397
|
+
},
|
|
398
|
+
[LightingMode.RELAX]: {
|
|
399
|
+
value: LightingMode.RELAX,
|
|
400
|
+
label: 'Relax',
|
|
401
|
+
description: 'Soft ambient lighting for relaxation',
|
|
402
|
+
icon: 'mdi:sofa',
|
|
403
|
+
},
|
|
404
|
+
[LightingMode.NIGHT]: {
|
|
405
|
+
value: LightingMode.NIGHT,
|
|
406
|
+
label: 'Night',
|
|
407
|
+
description: 'Minimal lighting for nighttime',
|
|
408
|
+
icon: 'mdi:weather-night',
|
|
409
|
+
},
|
|
410
|
+
};
|
|
411
|
+
exports.BRIGHTNESS_DELTA_META = {
|
|
412
|
+
[BrightnessDelta.SMALL]: {
|
|
413
|
+
value: BrightnessDelta.SMALL,
|
|
414
|
+
label: 'Small',
|
|
415
|
+
description: `Adjust brightness by ${exports.BRIGHTNESS_DELTA_STEPS[BrightnessDelta.SMALL]}%`,
|
|
416
|
+
},
|
|
417
|
+
[BrightnessDelta.MEDIUM]: {
|
|
418
|
+
value: BrightnessDelta.MEDIUM,
|
|
419
|
+
label: 'Medium',
|
|
420
|
+
description: `Adjust brightness by ${exports.BRIGHTNESS_DELTA_STEPS[BrightnessDelta.MEDIUM]}%`,
|
|
421
|
+
},
|
|
422
|
+
[BrightnessDelta.LARGE]: {
|
|
423
|
+
value: BrightnessDelta.LARGE,
|
|
424
|
+
label: 'Large',
|
|
425
|
+
description: `Adjust brightness by ${exports.BRIGHTNESS_DELTA_STEPS[BrightnessDelta.LARGE]}%`,
|
|
426
|
+
},
|
|
427
|
+
};
|
|
428
|
+
exports.SETPOINT_DELTA_META = {
|
|
429
|
+
[SetpointDelta.SMALL]: {
|
|
430
|
+
value: SetpointDelta.SMALL,
|
|
431
|
+
label: 'Small',
|
|
432
|
+
description: `Adjust temperature by ${exports.SETPOINT_DELTA_STEPS[SetpointDelta.SMALL]}°`,
|
|
433
|
+
},
|
|
434
|
+
[SetpointDelta.MEDIUM]: {
|
|
435
|
+
value: SetpointDelta.MEDIUM,
|
|
436
|
+
label: 'Medium',
|
|
437
|
+
description: `Adjust temperature by ${exports.SETPOINT_DELTA_STEPS[SetpointDelta.MEDIUM]}°`,
|
|
438
|
+
},
|
|
439
|
+
[SetpointDelta.LARGE]: {
|
|
440
|
+
value: SetpointDelta.LARGE,
|
|
441
|
+
label: 'Large',
|
|
442
|
+
description: `Adjust temperature by ${exports.SETPOINT_DELTA_STEPS[SetpointDelta.LARGE]}°`,
|
|
443
|
+
},
|
|
444
|
+
};
|
|
445
|
+
exports.LIGHTING_ROLE_META = {
|
|
446
|
+
[LightingRole.MAIN]: {
|
|
447
|
+
value: LightingRole.MAIN,
|
|
448
|
+
label: 'Main',
|
|
449
|
+
description: 'Primary/ceiling lights',
|
|
450
|
+
icon: 'mdi:ceiling-light',
|
|
451
|
+
},
|
|
452
|
+
[LightingRole.TASK]: {
|
|
453
|
+
value: LightingRole.TASK,
|
|
454
|
+
label: 'Task',
|
|
455
|
+
description: 'Task/work lights (e.g., desk lamps)',
|
|
456
|
+
icon: 'mdi:desk-lamp',
|
|
457
|
+
},
|
|
458
|
+
[LightingRole.AMBIENT]: {
|
|
459
|
+
value: LightingRole.AMBIENT,
|
|
460
|
+
label: 'Ambient',
|
|
461
|
+
description: 'Ambient/mood lights (e.g., accent strips)',
|
|
462
|
+
icon: 'mdi:led-strip-variant',
|
|
463
|
+
},
|
|
464
|
+
[LightingRole.ACCENT]: {
|
|
465
|
+
value: LightingRole.ACCENT,
|
|
466
|
+
label: 'Accent',
|
|
467
|
+
description: 'Accent/decorative lights (e.g., wall sconces)',
|
|
468
|
+
icon: 'mdi:wall-sconce',
|
|
469
|
+
},
|
|
470
|
+
[LightingRole.NIGHT]: {
|
|
471
|
+
value: LightingRole.NIGHT,
|
|
472
|
+
label: 'Night',
|
|
473
|
+
description: 'Night/minimal lights',
|
|
474
|
+
icon: 'mdi:lightbulb-night',
|
|
475
|
+
},
|
|
476
|
+
[LightingRole.OTHER]: {
|
|
477
|
+
value: LightingRole.OTHER,
|
|
478
|
+
label: 'Other',
|
|
479
|
+
description: 'Unclassified lights',
|
|
480
|
+
icon: 'mdi:lightbulb',
|
|
481
|
+
},
|
|
482
|
+
[LightingRole.HIDDEN]: {
|
|
483
|
+
value: LightingRole.HIDDEN,
|
|
484
|
+
label: 'Hidden',
|
|
485
|
+
description: 'Hidden lights (excluded from UI)',
|
|
486
|
+
icon: 'mdi:eye-off',
|
|
487
|
+
},
|
|
488
|
+
};
|
|
489
|
+
exports.CLIMATE_ROLE_META = {
|
|
490
|
+
[ClimateRole.HEATING_ONLY]: {
|
|
491
|
+
value: ClimateRole.HEATING_ONLY,
|
|
492
|
+
label: 'Heating Only',
|
|
493
|
+
description: 'Device is used only for heating',
|
|
494
|
+
icon: 'mdi:fire',
|
|
495
|
+
},
|
|
496
|
+
[ClimateRole.COOLING_ONLY]: {
|
|
497
|
+
value: ClimateRole.COOLING_ONLY,
|
|
498
|
+
label: 'Cooling Only',
|
|
499
|
+
description: 'Device is used only for cooling',
|
|
500
|
+
icon: 'mdi:snowflake',
|
|
501
|
+
},
|
|
502
|
+
[ClimateRole.AUTO]: {
|
|
503
|
+
value: ClimateRole.AUTO,
|
|
504
|
+
label: 'Auto',
|
|
505
|
+
description: 'Device is used for both heating and cooling',
|
|
506
|
+
icon: 'mdi:thermostat-auto',
|
|
507
|
+
},
|
|
508
|
+
[ClimateRole.AUXILIARY]: {
|
|
509
|
+
value: ClimateRole.AUXILIARY,
|
|
510
|
+
label: 'Auxiliary',
|
|
511
|
+
description: 'Auxiliary climate device (e.g., floor heating, towel warmer)',
|
|
512
|
+
icon: 'mdi:radiator',
|
|
513
|
+
},
|
|
514
|
+
[ClimateRole.SENSOR]: {
|
|
515
|
+
value: ClimateRole.SENSOR,
|
|
516
|
+
label: 'Sensor',
|
|
517
|
+
description: 'Sensor is included in climate domain readings',
|
|
518
|
+
icon: 'mdi:thermometer',
|
|
519
|
+
},
|
|
520
|
+
[ClimateRole.HIDDEN]: {
|
|
521
|
+
value: ClimateRole.HIDDEN,
|
|
522
|
+
label: 'Hidden',
|
|
523
|
+
description: 'Device/sensor is excluded from climate domain',
|
|
524
|
+
icon: 'mdi:eye-off',
|
|
525
|
+
},
|
|
526
|
+
};
|
|
527
|
+
exports.CLIMATE_MODE_META = {
|
|
528
|
+
[ClimateMode.HEAT]: {
|
|
529
|
+
value: ClimateMode.HEAT,
|
|
530
|
+
label: 'Heat',
|
|
531
|
+
description: 'Heating mode - single setpoint for all heaters',
|
|
532
|
+
icon: 'mdi:fire',
|
|
533
|
+
},
|
|
534
|
+
[ClimateMode.COOL]: {
|
|
535
|
+
value: ClimateMode.COOL,
|
|
536
|
+
label: 'Cool',
|
|
537
|
+
description: 'Cooling mode - single setpoint for all coolers',
|
|
538
|
+
icon: 'mdi:snowflake',
|
|
539
|
+
},
|
|
540
|
+
[ClimateMode.AUTO]: {
|
|
541
|
+
value: ClimateMode.AUTO,
|
|
542
|
+
label: 'Auto',
|
|
543
|
+
description: 'Automatic mode - dual setpoints for heating (lower) and cooling (upper)',
|
|
544
|
+
icon: 'mdi:thermostat-auto',
|
|
545
|
+
},
|
|
546
|
+
[ClimateMode.OFF]: {
|
|
547
|
+
value: ClimateMode.OFF,
|
|
548
|
+
label: 'Off',
|
|
549
|
+
description: 'Turn off all climate devices',
|
|
550
|
+
icon: 'mdi:power-off',
|
|
551
|
+
},
|
|
552
|
+
};
|
|
553
|
+
exports.LIGHTING_INTENT_CATALOG = [
|
|
554
|
+
{
|
|
555
|
+
type: LightingIntentType.OFF,
|
|
556
|
+
label: 'Turn Off',
|
|
557
|
+
description: 'Turn off all lights in the space',
|
|
558
|
+
icon: 'mdi:lightbulb-off',
|
|
559
|
+
params: [],
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
type: LightingIntentType.ON,
|
|
563
|
+
label: 'Turn On',
|
|
564
|
+
description: 'Turn on all lights in the space',
|
|
565
|
+
icon: 'mdi:lightbulb-on',
|
|
566
|
+
params: [],
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
type: LightingIntentType.SET_MODE,
|
|
570
|
+
label: 'Set Mode',
|
|
571
|
+
description: 'Set a lighting mode (work/relax/night) with role-based brightness levels',
|
|
572
|
+
icon: 'mdi:lightbulb-group',
|
|
573
|
+
params: [
|
|
574
|
+
{
|
|
575
|
+
name: 'mode',
|
|
576
|
+
type: 'enum',
|
|
577
|
+
required: true,
|
|
578
|
+
description: 'The lighting mode to apply',
|
|
579
|
+
enumValues: Object.values(exports.LIGHTING_MODE_META),
|
|
580
|
+
},
|
|
581
|
+
],
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
type: LightingIntentType.BRIGHTNESS_DELTA,
|
|
585
|
+
label: 'Adjust Brightness',
|
|
586
|
+
description: 'Increase or decrease brightness of currently on lights',
|
|
587
|
+
icon: 'mdi:brightness-6',
|
|
588
|
+
params: [
|
|
589
|
+
{
|
|
590
|
+
name: 'delta',
|
|
591
|
+
type: 'enum',
|
|
592
|
+
required: true,
|
|
593
|
+
description: 'The step size for brightness adjustment',
|
|
594
|
+
enumValues: Object.values(exports.BRIGHTNESS_DELTA_META),
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
name: 'increase',
|
|
598
|
+
type: 'boolean',
|
|
599
|
+
required: true,
|
|
600
|
+
description: 'True to increase brightness, false to decrease',
|
|
601
|
+
},
|
|
602
|
+
],
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
type: LightingIntentType.ROLE_ON,
|
|
606
|
+
label: 'Turn Role On',
|
|
607
|
+
description: 'Turn on all lights with a specific role',
|
|
608
|
+
icon: 'mdi:lightbulb-on',
|
|
609
|
+
params: [
|
|
610
|
+
{
|
|
611
|
+
name: 'role',
|
|
612
|
+
type: 'enum',
|
|
613
|
+
required: true,
|
|
614
|
+
description: 'The lighting role to control',
|
|
615
|
+
enumValues: Object.values(exports.LIGHTING_ROLE_META).filter((r) => r.value !== LightingRole.HIDDEN),
|
|
616
|
+
},
|
|
617
|
+
],
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
type: LightingIntentType.ROLE_OFF,
|
|
621
|
+
label: 'Turn Role Off',
|
|
622
|
+
description: 'Turn off all lights with a specific role',
|
|
623
|
+
icon: 'mdi:lightbulb-off',
|
|
624
|
+
params: [
|
|
625
|
+
{
|
|
626
|
+
name: 'role',
|
|
627
|
+
type: 'enum',
|
|
628
|
+
required: true,
|
|
629
|
+
description: 'The lighting role to control',
|
|
630
|
+
enumValues: Object.values(exports.LIGHTING_ROLE_META).filter((r) => r.value !== LightingRole.HIDDEN),
|
|
631
|
+
},
|
|
632
|
+
],
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
type: LightingIntentType.ROLE_BRIGHTNESS,
|
|
636
|
+
label: 'Set Role Brightness',
|
|
637
|
+
description: 'Set brightness for all lights with a specific role',
|
|
638
|
+
icon: 'mdi:brightness-6',
|
|
639
|
+
params: [
|
|
640
|
+
{
|
|
641
|
+
name: 'role',
|
|
642
|
+
type: 'enum',
|
|
643
|
+
required: true,
|
|
644
|
+
description: 'The lighting role to control',
|
|
645
|
+
enumValues: Object.values(exports.LIGHTING_ROLE_META).filter((r) => r.value !== LightingRole.HIDDEN),
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
name: 'brightness',
|
|
649
|
+
type: 'number',
|
|
650
|
+
required: true,
|
|
651
|
+
description: 'Brightness level (0-100)',
|
|
652
|
+
minValue: 0,
|
|
653
|
+
maxValue: 100,
|
|
654
|
+
},
|
|
655
|
+
],
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
type: LightingIntentType.ROLE_COLOR,
|
|
659
|
+
label: 'Set Role Color',
|
|
660
|
+
description: 'Set color for all lights with a specific role that support color',
|
|
661
|
+
icon: 'mdi:palette',
|
|
662
|
+
params: [
|
|
663
|
+
{
|
|
664
|
+
name: 'role',
|
|
665
|
+
type: 'enum',
|
|
666
|
+
required: true,
|
|
667
|
+
description: 'The lighting role to control',
|
|
668
|
+
enumValues: Object.values(exports.LIGHTING_ROLE_META).filter((r) => r.value !== LightingRole.HIDDEN),
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
name: 'color',
|
|
672
|
+
type: 'string',
|
|
673
|
+
required: true,
|
|
674
|
+
description: 'Color as hex string (e.g., #ff6b35)',
|
|
675
|
+
},
|
|
676
|
+
],
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
type: LightingIntentType.ROLE_COLOR_TEMP,
|
|
680
|
+
label: 'Set Role Color Temperature',
|
|
681
|
+
description: 'Set color temperature for all lights with a specific role that support it',
|
|
682
|
+
icon: 'mdi:thermometer-lines',
|
|
683
|
+
params: [
|
|
684
|
+
{
|
|
685
|
+
name: 'role',
|
|
686
|
+
type: 'enum',
|
|
687
|
+
required: true,
|
|
688
|
+
description: 'The lighting role to control',
|
|
689
|
+
enumValues: Object.values(exports.LIGHTING_ROLE_META).filter((r) => r.value !== LightingRole.HIDDEN),
|
|
690
|
+
},
|
|
691
|
+
{
|
|
692
|
+
name: 'color_temperature',
|
|
693
|
+
type: 'number',
|
|
694
|
+
required: true,
|
|
695
|
+
description: 'Color temperature in Kelvin (e.g., 2700-6500)',
|
|
696
|
+
minValue: 1000,
|
|
697
|
+
maxValue: 10000,
|
|
698
|
+
},
|
|
699
|
+
],
|
|
700
|
+
},
|
|
701
|
+
{
|
|
702
|
+
type: LightingIntentType.ROLE_WHITE,
|
|
703
|
+
label: 'Set Role White Level',
|
|
704
|
+
description: 'Set white channel level for all lights with a specific role that support RGBW',
|
|
705
|
+
icon: 'mdi:lightbulb',
|
|
706
|
+
params: [
|
|
707
|
+
{
|
|
708
|
+
name: 'role',
|
|
709
|
+
type: 'enum',
|
|
710
|
+
required: true,
|
|
711
|
+
description: 'The lighting role to control',
|
|
712
|
+
enumValues: Object.values(exports.LIGHTING_ROLE_META).filter((r) => r.value !== LightingRole.HIDDEN),
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
name: 'white',
|
|
716
|
+
type: 'number',
|
|
717
|
+
required: true,
|
|
718
|
+
description: 'White level (0-100)',
|
|
719
|
+
minValue: 0,
|
|
720
|
+
maxValue: 100,
|
|
721
|
+
},
|
|
722
|
+
],
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
type: LightingIntentType.ROLE_SET,
|
|
726
|
+
label: 'Set Role Properties',
|
|
727
|
+
description: 'Set multiple properties at once for all lights with a specific role (on/off, brightness, color, temperature, white)',
|
|
728
|
+
icon: 'mdi:tune-variant',
|
|
729
|
+
params: [
|
|
730
|
+
{
|
|
731
|
+
name: 'role',
|
|
732
|
+
type: 'enum',
|
|
733
|
+
required: true,
|
|
734
|
+
description: 'The lighting role to control',
|
|
735
|
+
enumValues: Object.values(exports.LIGHTING_ROLE_META).filter((r) => r.value !== LightingRole.HIDDEN),
|
|
736
|
+
},
|
|
737
|
+
{
|
|
738
|
+
name: 'on',
|
|
739
|
+
type: 'boolean',
|
|
740
|
+
required: false,
|
|
741
|
+
description: 'Turn lights on (true) or off (false)',
|
|
742
|
+
},
|
|
743
|
+
{
|
|
744
|
+
name: 'brightness',
|
|
745
|
+
type: 'number',
|
|
746
|
+
required: false,
|
|
747
|
+
description: 'Brightness level (0-100)',
|
|
748
|
+
minValue: 0,
|
|
749
|
+
maxValue: 100,
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
name: 'color',
|
|
753
|
+
type: 'string',
|
|
754
|
+
required: false,
|
|
755
|
+
description: 'Color as hex string (e.g., #ff6b35)',
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
name: 'color_temperature',
|
|
759
|
+
type: 'number',
|
|
760
|
+
required: false,
|
|
761
|
+
description: 'Color temperature in Kelvin (e.g., 2700-6500)',
|
|
762
|
+
minValue: 1000,
|
|
763
|
+
maxValue: 10000,
|
|
764
|
+
},
|
|
765
|
+
{
|
|
766
|
+
name: 'white',
|
|
767
|
+
type: 'number',
|
|
768
|
+
required: false,
|
|
769
|
+
description: 'White level (0-100)',
|
|
770
|
+
minValue: 0,
|
|
771
|
+
maxValue: 100,
|
|
772
|
+
},
|
|
773
|
+
],
|
|
774
|
+
},
|
|
775
|
+
];
|
|
776
|
+
exports.CLIMATE_INTENT_CATALOG = [
|
|
777
|
+
{
|
|
778
|
+
type: ClimateIntentType.SETPOINT_DELTA,
|
|
779
|
+
label: 'Adjust Temperature',
|
|
780
|
+
description: 'Increase or decrease the target temperature based on current mode',
|
|
781
|
+
icon: 'mdi:thermometer',
|
|
782
|
+
params: [
|
|
783
|
+
{
|
|
784
|
+
name: 'delta',
|
|
785
|
+
type: 'enum',
|
|
786
|
+
required: true,
|
|
787
|
+
description: 'The step size for temperature adjustment',
|
|
788
|
+
enumValues: Object.values(exports.SETPOINT_DELTA_META),
|
|
789
|
+
},
|
|
790
|
+
{
|
|
791
|
+
name: 'increase',
|
|
792
|
+
type: 'boolean',
|
|
793
|
+
required: true,
|
|
794
|
+
description: 'True to increase temperature, false to decrease',
|
|
795
|
+
},
|
|
796
|
+
],
|
|
797
|
+
},
|
|
798
|
+
{
|
|
799
|
+
type: ClimateIntentType.SETPOINT_SET,
|
|
800
|
+
label: 'Set Temperature',
|
|
801
|
+
description: 'Set the target temperature. In HEAT/COOL mode sets single setpoint, in AUTO mode sets both heating and cooling setpoints.',
|
|
802
|
+
icon: 'mdi:thermometer-check',
|
|
803
|
+
params: [
|
|
804
|
+
{
|
|
805
|
+
name: 'value',
|
|
806
|
+
type: 'number',
|
|
807
|
+
required: true,
|
|
808
|
+
description: 'The target temperature in degrees Celsius (single setpoint for HEAT/COOL modes)',
|
|
809
|
+
minValue: exports.ABSOLUTE_MIN_SETPOINT,
|
|
810
|
+
maxValue: exports.ABSOLUTE_MAX_SETPOINT,
|
|
811
|
+
},
|
|
812
|
+
{
|
|
813
|
+
name: 'heatingSetpoint',
|
|
814
|
+
type: 'number',
|
|
815
|
+
required: false,
|
|
816
|
+
description: 'The heating setpoint (lower bound) for AUTO mode',
|
|
817
|
+
minValue: exports.ABSOLUTE_MIN_SETPOINT,
|
|
818
|
+
maxValue: exports.ABSOLUTE_MAX_SETPOINT,
|
|
819
|
+
},
|
|
820
|
+
{
|
|
821
|
+
name: 'coolingSetpoint',
|
|
822
|
+
type: 'number',
|
|
823
|
+
required: false,
|
|
824
|
+
description: 'The cooling setpoint (upper bound) for AUTO mode',
|
|
825
|
+
minValue: exports.ABSOLUTE_MIN_SETPOINT,
|
|
826
|
+
maxValue: exports.ABSOLUTE_MAX_SETPOINT,
|
|
827
|
+
},
|
|
828
|
+
],
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
type: ClimateIntentType.SET_MODE,
|
|
832
|
+
label: 'Set Climate Mode',
|
|
833
|
+
description: 'Change the climate operating mode (heat/cool/auto/off)',
|
|
834
|
+
icon: 'mdi:thermostat',
|
|
835
|
+
params: [
|
|
836
|
+
{
|
|
837
|
+
name: 'mode',
|
|
838
|
+
type: 'enum',
|
|
839
|
+
required: true,
|
|
840
|
+
description: 'The climate mode to set',
|
|
841
|
+
enumValues: Object.values(exports.CLIMATE_MODE_META),
|
|
842
|
+
},
|
|
843
|
+
],
|
|
844
|
+
},
|
|
845
|
+
{
|
|
846
|
+
type: ClimateIntentType.CLIMATE_SET,
|
|
847
|
+
label: 'Set Climate Properties',
|
|
848
|
+
description: 'Set multiple climate properties at once (mode, setpoints). Allows atomic updates of mode and temperature in a single call.',
|
|
849
|
+
icon: 'mdi:tune-variant',
|
|
850
|
+
params: [
|
|
851
|
+
{
|
|
852
|
+
name: 'mode',
|
|
853
|
+
type: 'enum',
|
|
854
|
+
required: false,
|
|
855
|
+
description: 'The climate mode to set (optional)',
|
|
856
|
+
enumValues: Object.values(exports.CLIMATE_MODE_META),
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
name: 'value',
|
|
860
|
+
type: 'number',
|
|
861
|
+
required: false,
|
|
862
|
+
description: 'The target temperature in degrees Celsius (single setpoint)',
|
|
863
|
+
minValue: exports.ABSOLUTE_MIN_SETPOINT,
|
|
864
|
+
maxValue: exports.ABSOLUTE_MAX_SETPOINT,
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
name: 'heatingSetpoint',
|
|
868
|
+
type: 'number',
|
|
869
|
+
required: false,
|
|
870
|
+
description: 'The heating setpoint (lower bound) for AUTO mode',
|
|
871
|
+
minValue: exports.ABSOLUTE_MIN_SETPOINT,
|
|
872
|
+
maxValue: exports.ABSOLUTE_MAX_SETPOINT,
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
name: 'coolingSetpoint',
|
|
876
|
+
type: 'number',
|
|
877
|
+
required: false,
|
|
878
|
+
description: 'The cooling setpoint (upper bound) for AUTO mode',
|
|
879
|
+
minValue: exports.ABSOLUTE_MIN_SETPOINT,
|
|
880
|
+
maxValue: exports.ABSOLUTE_MAX_SETPOINT,
|
|
881
|
+
},
|
|
882
|
+
],
|
|
883
|
+
},
|
|
884
|
+
];
|
|
885
|
+
var CoversRole;
|
|
886
|
+
(function (CoversRole) {
|
|
887
|
+
CoversRole["PRIMARY"] = "primary";
|
|
888
|
+
CoversRole["BLACKOUT"] = "blackout";
|
|
889
|
+
CoversRole["SHEER"] = "sheer";
|
|
890
|
+
CoversRole["OUTDOOR"] = "outdoor";
|
|
891
|
+
CoversRole["HIDDEN"] = "hidden";
|
|
892
|
+
})(CoversRole || (exports.CoversRole = CoversRole = {}));
|
|
893
|
+
var CoversIntentType;
|
|
894
|
+
(function (CoversIntentType) {
|
|
895
|
+
CoversIntentType["OPEN"] = "open";
|
|
896
|
+
CoversIntentType["CLOSE"] = "close";
|
|
897
|
+
CoversIntentType["STOP"] = "stop";
|
|
898
|
+
CoversIntentType["SET_POSITION"] = "set_position";
|
|
899
|
+
CoversIntentType["POSITION_DELTA"] = "position_delta";
|
|
900
|
+
CoversIntentType["ROLE_POSITION"] = "role_position";
|
|
901
|
+
CoversIntentType["SET_MODE"] = "set_mode";
|
|
902
|
+
})(CoversIntentType || (exports.CoversIntentType = CoversIntentType = {}));
|
|
903
|
+
var CoversMode;
|
|
904
|
+
(function (CoversMode) {
|
|
905
|
+
CoversMode["OPEN"] = "open";
|
|
906
|
+
CoversMode["CLOSED"] = "closed";
|
|
907
|
+
CoversMode["PRIVACY"] = "privacy";
|
|
908
|
+
CoversMode["DAYLIGHT"] = "daylight";
|
|
909
|
+
})(CoversMode || (exports.CoversMode = CoversMode = {}));
|
|
910
|
+
var PositionDelta;
|
|
911
|
+
(function (PositionDelta) {
|
|
912
|
+
PositionDelta["SMALL"] = "small";
|
|
913
|
+
PositionDelta["MEDIUM"] = "medium";
|
|
914
|
+
PositionDelta["LARGE"] = "large";
|
|
915
|
+
})(PositionDelta || (exports.PositionDelta = PositionDelta = {}));
|
|
916
|
+
exports.POSITION_DELTA_STEPS = {
|
|
917
|
+
[PositionDelta.SMALL]: 10,
|
|
918
|
+
[PositionDelta.MEDIUM]: 25,
|
|
919
|
+
[PositionDelta.LARGE]: 50,
|
|
920
|
+
};
|
|
921
|
+
exports.COVERS_MODE_ORCHESTRATION = {
|
|
922
|
+
[CoversMode.OPEN]: {
|
|
923
|
+
[CoversRole.PRIMARY]: { position: 100 },
|
|
924
|
+
[CoversRole.BLACKOUT]: { position: 100 },
|
|
925
|
+
[CoversRole.SHEER]: { position: 100 },
|
|
926
|
+
[CoversRole.OUTDOOR]: { position: 100 },
|
|
927
|
+
},
|
|
928
|
+
[CoversMode.CLOSED]: {
|
|
929
|
+
[CoversRole.PRIMARY]: { position: 0 },
|
|
930
|
+
[CoversRole.BLACKOUT]: { position: 0 },
|
|
931
|
+
[CoversRole.SHEER]: { position: 0 },
|
|
932
|
+
[CoversRole.OUTDOOR]: { position: 0 },
|
|
933
|
+
},
|
|
934
|
+
[CoversMode.PRIVACY]: {
|
|
935
|
+
[CoversRole.PRIMARY]: { position: 100 },
|
|
936
|
+
[CoversRole.BLACKOUT]: { position: 100 },
|
|
937
|
+
[CoversRole.SHEER]: { position: 50 },
|
|
938
|
+
[CoversRole.OUTDOOR]: { position: 100 },
|
|
939
|
+
},
|
|
940
|
+
[CoversMode.DAYLIGHT]: {
|
|
941
|
+
[CoversRole.PRIMARY]: { position: 75 },
|
|
942
|
+
[CoversRole.BLACKOUT]: { position: 100 },
|
|
943
|
+
[CoversRole.SHEER]: { position: 75 },
|
|
944
|
+
[CoversRole.OUTDOOR]: { position: 50 },
|
|
945
|
+
},
|
|
946
|
+
};
|
|
947
|
+
exports.COVERS_ROLE_META = {
|
|
948
|
+
[CoversRole.PRIMARY]: {
|
|
949
|
+
value: CoversRole.PRIMARY,
|
|
950
|
+
label: 'Primary',
|
|
951
|
+
description: 'Main window covering in the space',
|
|
952
|
+
icon: 'mdi:blinds',
|
|
953
|
+
},
|
|
954
|
+
[CoversRole.BLACKOUT]: {
|
|
955
|
+
value: CoversRole.BLACKOUT,
|
|
956
|
+
label: 'Blackout',
|
|
957
|
+
description: 'Light-blocking covers for sleep or movie',
|
|
958
|
+
icon: 'mdi:blinds-horizontal-closed',
|
|
959
|
+
},
|
|
960
|
+
[CoversRole.SHEER]: {
|
|
961
|
+
value: CoversRole.SHEER,
|
|
962
|
+
label: 'Sheer',
|
|
963
|
+
description: 'Semi-transparent covers for privacy',
|
|
964
|
+
icon: 'mdi:blinds-vertical',
|
|
965
|
+
},
|
|
966
|
+
[CoversRole.OUTDOOR]: {
|
|
967
|
+
value: CoversRole.OUTDOOR,
|
|
968
|
+
label: 'Outdoor',
|
|
969
|
+
description: 'External shutters or awnings',
|
|
970
|
+
icon: 'mdi:window-shutter',
|
|
971
|
+
},
|
|
972
|
+
[CoversRole.HIDDEN]: {
|
|
973
|
+
value: CoversRole.HIDDEN,
|
|
974
|
+
label: 'Hidden',
|
|
975
|
+
description: 'Excluded from space-level control',
|
|
976
|
+
icon: 'mdi:eye-off',
|
|
977
|
+
},
|
|
978
|
+
};
|
|
979
|
+
exports.COVERS_MODE_META = {
|
|
980
|
+
[CoversMode.OPEN]: {
|
|
981
|
+
value: CoversMode.OPEN,
|
|
982
|
+
label: 'Open',
|
|
983
|
+
description: 'All covers fully open',
|
|
984
|
+
icon: 'mdi:blinds-open',
|
|
985
|
+
},
|
|
986
|
+
[CoversMode.CLOSED]: {
|
|
987
|
+
value: CoversMode.CLOSED,
|
|
988
|
+
label: 'Closed',
|
|
989
|
+
description: 'All covers fully closed',
|
|
990
|
+
icon: 'mdi:blinds',
|
|
991
|
+
},
|
|
992
|
+
[CoversMode.PRIVACY]: {
|
|
993
|
+
value: CoversMode.PRIVACY,
|
|
994
|
+
label: 'Privacy',
|
|
995
|
+
description: 'Sheer covers down for privacy while allowing light',
|
|
996
|
+
icon: 'mdi:blinds-vertical-closed',
|
|
997
|
+
},
|
|
998
|
+
[CoversMode.DAYLIGHT]: {
|
|
999
|
+
value: CoversMode.DAYLIGHT,
|
|
1000
|
+
label: 'Daylight',
|
|
1001
|
+
description: 'Optimized for natural light',
|
|
1002
|
+
icon: 'mdi:white-balance-sunny',
|
|
1003
|
+
},
|
|
1004
|
+
};
|
|
1005
|
+
exports.POSITION_DELTA_META = {
|
|
1006
|
+
[PositionDelta.SMALL]: {
|
|
1007
|
+
value: PositionDelta.SMALL,
|
|
1008
|
+
label: 'Small',
|
|
1009
|
+
description: `Adjust position by ${exports.POSITION_DELTA_STEPS[PositionDelta.SMALL]}%`,
|
|
1010
|
+
},
|
|
1011
|
+
[PositionDelta.MEDIUM]: {
|
|
1012
|
+
value: PositionDelta.MEDIUM,
|
|
1013
|
+
label: 'Medium',
|
|
1014
|
+
description: `Adjust position by ${exports.POSITION_DELTA_STEPS[PositionDelta.MEDIUM]}%`,
|
|
1015
|
+
},
|
|
1016
|
+
[PositionDelta.LARGE]: {
|
|
1017
|
+
value: PositionDelta.LARGE,
|
|
1018
|
+
label: 'Large',
|
|
1019
|
+
description: `Adjust position by ${exports.POSITION_DELTA_STEPS[PositionDelta.LARGE]}%`,
|
|
1020
|
+
},
|
|
1021
|
+
};
|
|
1022
|
+
exports.COVERS_INTENT_CATALOG = [
|
|
1023
|
+
{
|
|
1024
|
+
type: CoversIntentType.OPEN,
|
|
1025
|
+
label: 'Open All',
|
|
1026
|
+
description: 'Open all covers in the space',
|
|
1027
|
+
icon: 'mdi:blinds-open',
|
|
1028
|
+
params: [],
|
|
1029
|
+
},
|
|
1030
|
+
{
|
|
1031
|
+
type: CoversIntentType.CLOSE,
|
|
1032
|
+
label: 'Close All',
|
|
1033
|
+
description: 'Close all covers in the space',
|
|
1034
|
+
icon: 'mdi:blinds',
|
|
1035
|
+
params: [],
|
|
1036
|
+
},
|
|
1037
|
+
{
|
|
1038
|
+
type: CoversIntentType.STOP,
|
|
1039
|
+
label: 'Stop',
|
|
1040
|
+
description: 'Stop all covers movement',
|
|
1041
|
+
icon: 'mdi:stop',
|
|
1042
|
+
params: [],
|
|
1043
|
+
},
|
|
1044
|
+
{
|
|
1045
|
+
type: CoversIntentType.SET_POSITION,
|
|
1046
|
+
label: 'Set Position',
|
|
1047
|
+
description: 'Set all covers to a specific position (0-100)',
|
|
1048
|
+
icon: 'mdi:blinds-horizontal',
|
|
1049
|
+
params: [
|
|
1050
|
+
{
|
|
1051
|
+
name: 'position',
|
|
1052
|
+
type: 'number',
|
|
1053
|
+
required: true,
|
|
1054
|
+
description: 'Position percentage (0=closed, 100=open)',
|
|
1055
|
+
minValue: 0,
|
|
1056
|
+
maxValue: 100,
|
|
1057
|
+
},
|
|
1058
|
+
],
|
|
1059
|
+
},
|
|
1060
|
+
{
|
|
1061
|
+
type: CoversIntentType.POSITION_DELTA,
|
|
1062
|
+
label: 'Adjust Position',
|
|
1063
|
+
description: 'Increase or decrease cover positions',
|
|
1064
|
+
icon: 'mdi:arrow-up-down',
|
|
1065
|
+
params: [
|
|
1066
|
+
{
|
|
1067
|
+
name: 'delta',
|
|
1068
|
+
type: 'enum',
|
|
1069
|
+
required: true,
|
|
1070
|
+
description: 'The step size for position adjustment',
|
|
1071
|
+
enumValues: Object.values(exports.POSITION_DELTA_META),
|
|
1072
|
+
},
|
|
1073
|
+
{
|
|
1074
|
+
name: 'increase',
|
|
1075
|
+
type: 'boolean',
|
|
1076
|
+
required: true,
|
|
1077
|
+
description: 'True to open more (increase position), false to close more (decrease position)',
|
|
1078
|
+
},
|
|
1079
|
+
],
|
|
1080
|
+
},
|
|
1081
|
+
{
|
|
1082
|
+
type: CoversIntentType.ROLE_POSITION,
|
|
1083
|
+
label: 'Set Role Position',
|
|
1084
|
+
description: 'Set position for covers with a specific role',
|
|
1085
|
+
icon: 'mdi:blinds-horizontal',
|
|
1086
|
+
params: [
|
|
1087
|
+
{
|
|
1088
|
+
name: 'role',
|
|
1089
|
+
type: 'enum',
|
|
1090
|
+
required: true,
|
|
1091
|
+
description: 'The covers role to control',
|
|
1092
|
+
enumValues: Object.values(exports.COVERS_ROLE_META).filter((r) => r.value !== CoversRole.HIDDEN),
|
|
1093
|
+
},
|
|
1094
|
+
{
|
|
1095
|
+
name: 'position',
|
|
1096
|
+
type: 'number',
|
|
1097
|
+
required: true,
|
|
1098
|
+
description: 'Position percentage (0=closed, 100=open)',
|
|
1099
|
+
minValue: 0,
|
|
1100
|
+
maxValue: 100,
|
|
1101
|
+
},
|
|
1102
|
+
],
|
|
1103
|
+
},
|
|
1104
|
+
{
|
|
1105
|
+
type: CoversIntentType.SET_MODE,
|
|
1106
|
+
label: 'Set Mode',
|
|
1107
|
+
description: 'Set a covers mode (open/closed/privacy/daylight) with role-based positions',
|
|
1108
|
+
icon: 'mdi:window-shutter-settings',
|
|
1109
|
+
params: [
|
|
1110
|
+
{
|
|
1111
|
+
name: 'mode',
|
|
1112
|
+
type: 'enum',
|
|
1113
|
+
required: true,
|
|
1114
|
+
description: 'The covers mode to apply',
|
|
1115
|
+
enumValues: Object.values(exports.COVERS_MODE_META),
|
|
1116
|
+
},
|
|
1117
|
+
],
|
|
1118
|
+
},
|
|
1119
|
+
];
|
|
1120
|
+
exports.MEDIA_DEVICE_CATEGORIES = [
|
|
1121
|
+
devices_constants_1.DeviceCategory.MEDIA,
|
|
1122
|
+
devices_constants_1.DeviceCategory.SPEAKER,
|
|
1123
|
+
devices_constants_1.DeviceCategory.TELEVISION,
|
|
1124
|
+
devices_constants_1.DeviceCategory.AV_RECEIVER,
|
|
1125
|
+
devices_constants_1.DeviceCategory.SET_TOP_BOX,
|
|
1126
|
+
devices_constants_1.DeviceCategory.GAME_CONSOLE,
|
|
1127
|
+
devices_constants_1.DeviceCategory.PROJECTOR,
|
|
1128
|
+
devices_constants_1.DeviceCategory.STREAMING_SERVICE,
|
|
1129
|
+
];
|
|
1130
|
+
exports.MEDIA_CHANNEL_CATEGORIES = [
|
|
1131
|
+
devices_constants_1.ChannelCategory.SWITCHER,
|
|
1132
|
+
devices_constants_1.ChannelCategory.SPEAKER,
|
|
1133
|
+
devices_constants_1.ChannelCategory.TELEVISION,
|
|
1134
|
+
devices_constants_1.ChannelCategory.PROJECTOR,
|
|
1135
|
+
devices_constants_1.ChannelCategory.MEDIA_INPUT,
|
|
1136
|
+
devices_constants_1.ChannelCategory.MEDIA_PLAYBACK,
|
|
1137
|
+
];
|
|
1138
|
+
var MediaEndpointType;
|
|
1139
|
+
(function (MediaEndpointType) {
|
|
1140
|
+
MediaEndpointType["DISPLAY"] = "display";
|
|
1141
|
+
MediaEndpointType["AUDIO_OUTPUT"] = "audio_output";
|
|
1142
|
+
MediaEndpointType["SOURCE"] = "source";
|
|
1143
|
+
MediaEndpointType["REMOTE_TARGET"] = "remote_target";
|
|
1144
|
+
})(MediaEndpointType || (exports.MediaEndpointType = MediaEndpointType = {}));
|
|
1145
|
+
var MediaActivityKey;
|
|
1146
|
+
(function (MediaActivityKey) {
|
|
1147
|
+
MediaActivityKey["WATCH"] = "watch";
|
|
1148
|
+
MediaActivityKey["LISTEN"] = "listen";
|
|
1149
|
+
MediaActivityKey["GAMING"] = "gaming";
|
|
1150
|
+
MediaActivityKey["BACKGROUND"] = "background";
|
|
1151
|
+
MediaActivityKey["OFF"] = "off";
|
|
1152
|
+
})(MediaActivityKey || (exports.MediaActivityKey = MediaActivityKey = {}));
|
|
1153
|
+
exports.CONFIGURABLE_ACTIVITY_KEYS = [
|
|
1154
|
+
MediaActivityKey.WATCH,
|
|
1155
|
+
MediaActivityKey.LISTEN,
|
|
1156
|
+
MediaActivityKey.GAMING,
|
|
1157
|
+
MediaActivityKey.BACKGROUND,
|
|
1158
|
+
];
|
|
1159
|
+
var MediaActivationState;
|
|
1160
|
+
(function (MediaActivationState) {
|
|
1161
|
+
MediaActivationState["ACTIVATING"] = "activating";
|
|
1162
|
+
MediaActivationState["ACTIVE"] = "active";
|
|
1163
|
+
MediaActivationState["FAILED"] = "failed";
|
|
1164
|
+
MediaActivationState["DEACTIVATED"] = "deactivated";
|
|
1165
|
+
})(MediaActivationState || (exports.MediaActivationState = MediaActivationState = {}));
|
|
1166
|
+
var MediaCapability;
|
|
1167
|
+
(function (MediaCapability) {
|
|
1168
|
+
MediaCapability["POWER"] = "power";
|
|
1169
|
+
MediaCapability["VOLUME"] = "volume";
|
|
1170
|
+
MediaCapability["MUTE"] = "mute";
|
|
1171
|
+
MediaCapability["PLAYBACK"] = "playback";
|
|
1172
|
+
MediaCapability["PLAYBACK_STATE"] = "playback_state";
|
|
1173
|
+
MediaCapability["INPUT"] = "input";
|
|
1174
|
+
MediaCapability["REMOTE"] = "remote";
|
|
1175
|
+
MediaCapability["TRACK_METADATA"] = "track_metadata";
|
|
1176
|
+
})(MediaCapability || (exports.MediaCapability = MediaCapability = {}));
|
|
1177
|
+
var MediaCapabilityPermission;
|
|
1178
|
+
(function (MediaCapabilityPermission) {
|
|
1179
|
+
MediaCapabilityPermission["READ"] = "read";
|
|
1180
|
+
MediaCapabilityPermission["WRITE"] = "write";
|
|
1181
|
+
MediaCapabilityPermission["READ_WRITE"] = "read_write";
|
|
1182
|
+
})(MediaCapabilityPermission || (exports.MediaCapabilityPermission = MediaCapabilityPermission = {}));
|
|
1183
|
+
exports.MEDIA_ENDPOINT_TYPE_META = {
|
|
1184
|
+
[MediaEndpointType.DISPLAY]: {
|
|
1185
|
+
value: MediaEndpointType.DISPLAY,
|
|
1186
|
+
label: 'Display',
|
|
1187
|
+
description: 'Visual output device (TV, projector)',
|
|
1188
|
+
icon: 'mdi:television',
|
|
1189
|
+
},
|
|
1190
|
+
[MediaEndpointType.AUDIO_OUTPUT]: {
|
|
1191
|
+
value: MediaEndpointType.AUDIO_OUTPUT,
|
|
1192
|
+
label: 'Audio Output',
|
|
1193
|
+
description: 'Audio output device (receiver, speaker)',
|
|
1194
|
+
icon: 'mdi:speaker',
|
|
1195
|
+
},
|
|
1196
|
+
[MediaEndpointType.SOURCE]: {
|
|
1197
|
+
value: MediaEndpointType.SOURCE,
|
|
1198
|
+
label: 'Source',
|
|
1199
|
+
description: 'Media content source (streamer, console)',
|
|
1200
|
+
icon: 'mdi:play-box',
|
|
1201
|
+
},
|
|
1202
|
+
[MediaEndpointType.REMOTE_TARGET]: {
|
|
1203
|
+
value: MediaEndpointType.REMOTE_TARGET,
|
|
1204
|
+
label: 'Remote Target',
|
|
1205
|
+
description: 'Device that accepts remote commands',
|
|
1206
|
+
icon: 'mdi:remote',
|
|
1207
|
+
},
|
|
1208
|
+
};
|
|
1209
|
+
exports.INTENT_CATEGORY_CATALOG = [
|
|
1210
|
+
{
|
|
1211
|
+
category: IntentCategory.LIGHTING,
|
|
1212
|
+
label: 'Lighting',
|
|
1213
|
+
description: 'Control lights in the space with modes and brightness adjustments',
|
|
1214
|
+
icon: 'mdi:lightbulb-group',
|
|
1215
|
+
intents: exports.LIGHTING_INTENT_CATALOG,
|
|
1216
|
+
},
|
|
1217
|
+
{
|
|
1218
|
+
category: IntentCategory.CLIMATE,
|
|
1219
|
+
label: 'Climate',
|
|
1220
|
+
description: 'Control temperature and climate settings in the space',
|
|
1221
|
+
icon: 'mdi:thermostat',
|
|
1222
|
+
intents: exports.CLIMATE_INTENT_CATALOG,
|
|
1223
|
+
},
|
|
1224
|
+
{
|
|
1225
|
+
category: IntentCategory.COVERS,
|
|
1226
|
+
label: 'Covers',
|
|
1227
|
+
description: 'Control window coverings (blinds, curtains, shutters) with modes and position adjustments',
|
|
1228
|
+
icon: 'mdi:blinds',
|
|
1229
|
+
intents: exports.COVERS_INTENT_CATALOG,
|
|
1230
|
+
},
|
|
1231
|
+
];
|
|
1232
|
+
exports.QUICK_ACTION_CATALOG = [
|
|
1233
|
+
{
|
|
1234
|
+
type: QuickActionType.LIGHTING_OFF,
|
|
1235
|
+
label: 'Lights Off',
|
|
1236
|
+
description: 'Turn off all lights',
|
|
1237
|
+
icon: 'mdi:lightbulb-off',
|
|
1238
|
+
category: IntentCategory.LIGHTING,
|
|
1239
|
+
},
|
|
1240
|
+
{
|
|
1241
|
+
type: QuickActionType.LIGHTING_WORK,
|
|
1242
|
+
label: 'Work Mode',
|
|
1243
|
+
description: 'Bright lighting for focus',
|
|
1244
|
+
icon: 'mdi:briefcase',
|
|
1245
|
+
category: IntentCategory.LIGHTING,
|
|
1246
|
+
},
|
|
1247
|
+
{
|
|
1248
|
+
type: QuickActionType.LIGHTING_RELAX,
|
|
1249
|
+
label: 'Relax Mode',
|
|
1250
|
+
description: 'Soft ambient lighting',
|
|
1251
|
+
icon: 'mdi:sofa',
|
|
1252
|
+
category: IntentCategory.LIGHTING,
|
|
1253
|
+
},
|
|
1254
|
+
{
|
|
1255
|
+
type: QuickActionType.LIGHTING_NIGHT,
|
|
1256
|
+
label: 'Night Mode',
|
|
1257
|
+
description: 'Minimal lighting',
|
|
1258
|
+
icon: 'mdi:weather-night',
|
|
1259
|
+
category: IntentCategory.LIGHTING,
|
|
1260
|
+
},
|
|
1261
|
+
{
|
|
1262
|
+
type: QuickActionType.BRIGHTNESS_UP,
|
|
1263
|
+
label: 'Brighter',
|
|
1264
|
+
description: 'Increase brightness',
|
|
1265
|
+
icon: 'mdi:brightness-5',
|
|
1266
|
+
category: IntentCategory.LIGHTING,
|
|
1267
|
+
},
|
|
1268
|
+
{
|
|
1269
|
+
type: QuickActionType.BRIGHTNESS_DOWN,
|
|
1270
|
+
label: 'Dimmer',
|
|
1271
|
+
description: 'Decrease brightness',
|
|
1272
|
+
icon: 'mdi:brightness-4',
|
|
1273
|
+
category: IntentCategory.LIGHTING,
|
|
1274
|
+
},
|
|
1275
|
+
{
|
|
1276
|
+
type: QuickActionType.CLIMATE_UP,
|
|
1277
|
+
label: 'Warmer',
|
|
1278
|
+
description: 'Increase temperature',
|
|
1279
|
+
icon: 'mdi:thermometer-plus',
|
|
1280
|
+
category: IntentCategory.CLIMATE,
|
|
1281
|
+
},
|
|
1282
|
+
{
|
|
1283
|
+
type: QuickActionType.CLIMATE_DOWN,
|
|
1284
|
+
label: 'Cooler',
|
|
1285
|
+
description: 'Decrease temperature',
|
|
1286
|
+
icon: 'mdi:thermometer-minus',
|
|
1287
|
+
category: IntentCategory.CLIMATE,
|
|
1288
|
+
},
|
|
1289
|
+
];
|
|
1290
|
+
var SensorRole;
|
|
1291
|
+
(function (SensorRole) {
|
|
1292
|
+
SensorRole["ENVIRONMENT"] = "environment";
|
|
1293
|
+
SensorRole["SAFETY"] = "safety";
|
|
1294
|
+
SensorRole["SECURITY"] = "security";
|
|
1295
|
+
SensorRole["AIR_QUALITY"] = "air_quality";
|
|
1296
|
+
SensorRole["ENERGY"] = "energy";
|
|
1297
|
+
SensorRole["OTHER"] = "other";
|
|
1298
|
+
SensorRole["HIDDEN"] = "hidden";
|
|
1299
|
+
})(SensorRole || (exports.SensorRole = SensorRole = {}));
|
|
1300
|
+
exports.SENSOR_CHANNEL_CATEGORIES = [
|
|
1301
|
+
devices_constants_1.ChannelCategory.TEMPERATURE,
|
|
1302
|
+
devices_constants_1.ChannelCategory.HUMIDITY,
|
|
1303
|
+
devices_constants_1.ChannelCategory.PRESSURE,
|
|
1304
|
+
devices_constants_1.ChannelCategory.ILLUMINANCE,
|
|
1305
|
+
devices_constants_1.ChannelCategory.SMOKE,
|
|
1306
|
+
devices_constants_1.ChannelCategory.GAS,
|
|
1307
|
+
devices_constants_1.ChannelCategory.LEAK,
|
|
1308
|
+
devices_constants_1.ChannelCategory.CARBON_MONOXIDE,
|
|
1309
|
+
devices_constants_1.ChannelCategory.CARBON_DIOXIDE,
|
|
1310
|
+
devices_constants_1.ChannelCategory.MOTION,
|
|
1311
|
+
devices_constants_1.ChannelCategory.OCCUPANCY,
|
|
1312
|
+
devices_constants_1.ChannelCategory.CONTACT,
|
|
1313
|
+
devices_constants_1.ChannelCategory.AIR_QUALITY,
|
|
1314
|
+
devices_constants_1.ChannelCategory.AIR_PARTICULATE,
|
|
1315
|
+
devices_constants_1.ChannelCategory.NITROGEN_DIOXIDE,
|
|
1316
|
+
devices_constants_1.ChannelCategory.OZONE,
|
|
1317
|
+
devices_constants_1.ChannelCategory.SULPHUR_DIOXIDE,
|
|
1318
|
+
devices_constants_1.ChannelCategory.VOLATILE_ORGANIC_COMPOUNDS,
|
|
1319
|
+
devices_constants_1.ChannelCategory.ELECTRICAL_ENERGY,
|
|
1320
|
+
devices_constants_1.ChannelCategory.ELECTRICAL_POWER,
|
|
1321
|
+
devices_constants_1.ChannelCategory.BATTERY,
|
|
1322
|
+
];
|
|
1323
|
+
exports.SENSOR_ENVIRONMENT_CHANNEL_CATEGORIES = [
|
|
1324
|
+
devices_constants_1.ChannelCategory.TEMPERATURE,
|
|
1325
|
+
devices_constants_1.ChannelCategory.HUMIDITY,
|
|
1326
|
+
devices_constants_1.ChannelCategory.PRESSURE,
|
|
1327
|
+
devices_constants_1.ChannelCategory.ILLUMINANCE,
|
|
1328
|
+
];
|
|
1329
|
+
exports.SENSOR_SAFETY_CHANNEL_CATEGORIES = [
|
|
1330
|
+
devices_constants_1.ChannelCategory.SMOKE,
|
|
1331
|
+
devices_constants_1.ChannelCategory.GAS,
|
|
1332
|
+
devices_constants_1.ChannelCategory.LEAK,
|
|
1333
|
+
devices_constants_1.ChannelCategory.CARBON_MONOXIDE,
|
|
1334
|
+
];
|
|
1335
|
+
exports.SENSOR_SECURITY_CHANNEL_CATEGORIES = [
|
|
1336
|
+
devices_constants_1.ChannelCategory.MOTION,
|
|
1337
|
+
devices_constants_1.ChannelCategory.OCCUPANCY,
|
|
1338
|
+
devices_constants_1.ChannelCategory.CONTACT,
|
|
1339
|
+
];
|
|
1340
|
+
exports.SENSOR_AIR_QUALITY_CHANNEL_CATEGORIES = [
|
|
1341
|
+
devices_constants_1.ChannelCategory.AIR_QUALITY,
|
|
1342
|
+
devices_constants_1.ChannelCategory.AIR_PARTICULATE,
|
|
1343
|
+
devices_constants_1.ChannelCategory.CARBON_DIOXIDE,
|
|
1344
|
+
devices_constants_1.ChannelCategory.NITROGEN_DIOXIDE,
|
|
1345
|
+
devices_constants_1.ChannelCategory.OZONE,
|
|
1346
|
+
devices_constants_1.ChannelCategory.SULPHUR_DIOXIDE,
|
|
1347
|
+
devices_constants_1.ChannelCategory.VOLATILE_ORGANIC_COMPOUNDS,
|
|
1348
|
+
];
|
|
1349
|
+
exports.SENSOR_ENERGY_CHANNEL_CATEGORIES = [
|
|
1350
|
+
devices_constants_1.ChannelCategory.ELECTRICAL_ENERGY,
|
|
1351
|
+
devices_constants_1.ChannelCategory.ELECTRICAL_POWER,
|
|
1352
|
+
];
|
|
1353
|
+
exports.SENSOR_PRIMARY_PROPERTY_CANDIDATES = {
|
|
1354
|
+
[devices_constants_1.ChannelCategory.TEMPERATURE]: [{ category: devices_constants_1.PropertyCategory.TEMPERATURE, unit: '°C' }],
|
|
1355
|
+
[devices_constants_1.ChannelCategory.HUMIDITY]: [{ category: devices_constants_1.PropertyCategory.HUMIDITY, unit: '%' }],
|
|
1356
|
+
[devices_constants_1.ChannelCategory.PRESSURE]: [{ category: devices_constants_1.PropertyCategory.PRESSURE, unit: 'hPa' }],
|
|
1357
|
+
[devices_constants_1.ChannelCategory.ILLUMINANCE]: [
|
|
1358
|
+
{ category: devices_constants_1.PropertyCategory.ILLUMINANCE, unit: 'lux' },
|
|
1359
|
+
{ category: devices_constants_1.PropertyCategory.LEVEL, unit: null },
|
|
1360
|
+
],
|
|
1361
|
+
[devices_constants_1.ChannelCategory.MOTION]: [{ category: devices_constants_1.PropertyCategory.DETECTED, unit: null }],
|
|
1362
|
+
[devices_constants_1.ChannelCategory.OCCUPANCY]: [{ category: devices_constants_1.PropertyCategory.DETECTED, unit: null }],
|
|
1363
|
+
[devices_constants_1.ChannelCategory.CONTACT]: [{ category: devices_constants_1.PropertyCategory.DETECTED, unit: null }],
|
|
1364
|
+
[devices_constants_1.ChannelCategory.SMOKE]: [{ category: devices_constants_1.PropertyCategory.DETECTED, unit: null }],
|
|
1365
|
+
[devices_constants_1.ChannelCategory.LEAK]: [{ category: devices_constants_1.PropertyCategory.DETECTED, unit: null }],
|
|
1366
|
+
[devices_constants_1.ChannelCategory.GAS]: [
|
|
1367
|
+
{ category: devices_constants_1.PropertyCategory.DETECTED, unit: null },
|
|
1368
|
+
{ category: devices_constants_1.PropertyCategory.STATUS, unit: null },
|
|
1369
|
+
{ category: devices_constants_1.PropertyCategory.CONCENTRATION, unit: 'ppm' },
|
|
1370
|
+
],
|
|
1371
|
+
[devices_constants_1.ChannelCategory.CARBON_DIOXIDE]: [
|
|
1372
|
+
{ category: devices_constants_1.PropertyCategory.CONCENTRATION, unit: 'ppm' },
|
|
1373
|
+
{ category: devices_constants_1.PropertyCategory.DETECTED, unit: null },
|
|
1374
|
+
],
|
|
1375
|
+
[devices_constants_1.ChannelCategory.CARBON_MONOXIDE]: [
|
|
1376
|
+
{ category: devices_constants_1.PropertyCategory.CONCENTRATION, unit: 'ppm' },
|
|
1377
|
+
{ category: devices_constants_1.PropertyCategory.DETECTED, unit: null },
|
|
1378
|
+
],
|
|
1379
|
+
[devices_constants_1.ChannelCategory.NITROGEN_DIOXIDE]: [
|
|
1380
|
+
{ category: devices_constants_1.PropertyCategory.CONCENTRATION, unit: 'µg/m³' },
|
|
1381
|
+
{ category: devices_constants_1.PropertyCategory.DETECTED, unit: null },
|
|
1382
|
+
{ category: devices_constants_1.PropertyCategory.LEVEL, unit: null },
|
|
1383
|
+
],
|
|
1384
|
+
[devices_constants_1.ChannelCategory.OZONE]: [
|
|
1385
|
+
{ category: devices_constants_1.PropertyCategory.CONCENTRATION, unit: 'µg/m³' },
|
|
1386
|
+
{ category: devices_constants_1.PropertyCategory.DETECTED, unit: null },
|
|
1387
|
+
{ category: devices_constants_1.PropertyCategory.LEVEL, unit: null },
|
|
1388
|
+
],
|
|
1389
|
+
[devices_constants_1.ChannelCategory.SULPHUR_DIOXIDE]: [
|
|
1390
|
+
{ category: devices_constants_1.PropertyCategory.CONCENTRATION, unit: 'µg/m³' },
|
|
1391
|
+
{ category: devices_constants_1.PropertyCategory.DETECTED, unit: null },
|
|
1392
|
+
{ category: devices_constants_1.PropertyCategory.LEVEL, unit: null },
|
|
1393
|
+
],
|
|
1394
|
+
[devices_constants_1.ChannelCategory.VOLATILE_ORGANIC_COMPOUNDS]: [
|
|
1395
|
+
{ category: devices_constants_1.PropertyCategory.CONCENTRATION, unit: 'µg/m³' },
|
|
1396
|
+
{ category: devices_constants_1.PropertyCategory.DETECTED, unit: null },
|
|
1397
|
+
{ category: devices_constants_1.PropertyCategory.LEVEL, unit: null },
|
|
1398
|
+
],
|
|
1399
|
+
[devices_constants_1.ChannelCategory.AIR_QUALITY]: [
|
|
1400
|
+
{ category: devices_constants_1.PropertyCategory.AQI, unit: 'AQI' },
|
|
1401
|
+
{ category: devices_constants_1.PropertyCategory.LEVEL, unit: null },
|
|
1402
|
+
],
|
|
1403
|
+
[devices_constants_1.ChannelCategory.AIR_PARTICULATE]: [
|
|
1404
|
+
{ category: devices_constants_1.PropertyCategory.CONCENTRATION, unit: 'µg/m³' },
|
|
1405
|
+
{ category: devices_constants_1.PropertyCategory.DETECTED, unit: null },
|
|
1406
|
+
],
|
|
1407
|
+
[devices_constants_1.ChannelCategory.ELECTRICAL_POWER]: [{ category: devices_constants_1.PropertyCategory.POWER, unit: 'W' }],
|
|
1408
|
+
[devices_constants_1.ChannelCategory.ELECTRICAL_ENERGY]: [{ category: devices_constants_1.PropertyCategory.CONSUMPTION, unit: 'kWh' }],
|
|
1409
|
+
[devices_constants_1.ChannelCategory.BATTERY]: [{ category: devices_constants_1.PropertyCategory.PERCENTAGE, unit: '%' }],
|
|
1410
|
+
};
|
|
1411
|
+
exports.SENSOR_ROLE_META = {
|
|
1412
|
+
[SensorRole.ENVIRONMENT]: {
|
|
1413
|
+
value: SensorRole.ENVIRONMENT,
|
|
1414
|
+
label: 'Environment',
|
|
1415
|
+
description: 'Environmental sensors (temperature, humidity, pressure, light)',
|
|
1416
|
+
icon: 'mdi:thermometer',
|
|
1417
|
+
},
|
|
1418
|
+
[SensorRole.SAFETY]: {
|
|
1419
|
+
value: SensorRole.SAFETY,
|
|
1420
|
+
label: 'Safety',
|
|
1421
|
+
description: 'Safety sensors (smoke, gas, leak, carbon monoxide)',
|
|
1422
|
+
icon: 'mdi:shield-alert',
|
|
1423
|
+
},
|
|
1424
|
+
[SensorRole.SECURITY]: {
|
|
1425
|
+
value: SensorRole.SECURITY,
|
|
1426
|
+
label: 'Security',
|
|
1427
|
+
description: 'Security sensors (motion, occupancy, contact)',
|
|
1428
|
+
icon: 'mdi:motion-sensor',
|
|
1429
|
+
},
|
|
1430
|
+
[SensorRole.AIR_QUALITY]: {
|
|
1431
|
+
value: SensorRole.AIR_QUALITY,
|
|
1432
|
+
label: 'Air Quality',
|
|
1433
|
+
description: 'Air quality sensors (AQI, CO2, VOC, particulates)',
|
|
1434
|
+
icon: 'mdi:air-filter',
|
|
1435
|
+
},
|
|
1436
|
+
[SensorRole.ENERGY]: {
|
|
1437
|
+
value: SensorRole.ENERGY,
|
|
1438
|
+
label: 'Energy',
|
|
1439
|
+
description: 'Energy monitoring sensors (power, consumption)',
|
|
1440
|
+
icon: 'mdi:lightning-bolt',
|
|
1441
|
+
},
|
|
1442
|
+
[SensorRole.OTHER]: {
|
|
1443
|
+
value: SensorRole.OTHER,
|
|
1444
|
+
label: 'Other',
|
|
1445
|
+
description: 'Unclassified sensors',
|
|
1446
|
+
icon: 'mdi:chart-line',
|
|
1447
|
+
},
|
|
1448
|
+
[SensorRole.HIDDEN]: {
|
|
1449
|
+
value: SensorRole.HIDDEN,
|
|
1450
|
+
label: 'Hidden',
|
|
1451
|
+
description: 'Hidden sensors (excluded from UI)',
|
|
1452
|
+
icon: 'mdi:eye-off',
|
|
1453
|
+
},
|
|
1454
|
+
};
|
|
1455
|
+
exports.SAFETY_SENSOR_THRESHOLDS = {
|
|
1456
|
+
CARBON_MONOXIDE_PPM: 50,
|
|
1457
|
+
GAS_DETECTION_PPM: 0,
|
|
1458
|
+
DEFAULT_NUMERIC_THRESHOLD: 0,
|
|
1459
|
+
};
|
|
1460
|
+
//# sourceMappingURL=spaces-home-control.constants.js.map
|