@fastybird/smart-panel-backend 1.1.0-alpha.5 → 1.1.0-alpha.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.module.js +9 -1
- package/dist/app.module.js.map +1 -1
- package/dist/common/utils/cancellable-exec.utils.d.ts +5 -0
- package/dist/common/utils/cancellable-exec.utils.js +34 -0
- package/dist/common/utils/cancellable-exec.utils.js.map +1 -0
- package/dist/common/utils/remote-access-observation.utils.d.ts +11 -0
- package/dist/common/utils/remote-access-observation.utils.js +89 -0
- package/dist/common/utils/remote-access-observation.utils.js.map +1 -0
- package/dist/dataSource.js +1 -0
- package/dist/dataSource.js.map +1 -1
- package/dist/migrations/1000000000026-AddHardwareInputCategories.d.ts +7 -0
- package/dist/migrations/1000000000026-AddHardwareInputCategories.js +364 -0
- package/dist/migrations/1000000000026-AddHardwareInputCategories.js.map +1 -0
- package/dist/modules/auth/auth.module.js +4 -0
- package/dist/modules/auth/auth.module.js.map +1 -1
- package/dist/modules/auth/guards/auth.guard.js +8 -21
- package/dist/modules/auth/guards/auth.guard.js.map +1 -1
- package/dist/modules/auth/services/token-metadata.service.d.ts +42 -0
- package/dist/modules/auth/services/token-metadata.service.js +202 -0
- package/dist/modules/auth/services/token-metadata.service.js.map +1 -0
- package/dist/modules/auth/services/token-usage.service.d.ts +22 -0
- package/dist/modules/auth/services/token-usage.service.js +93 -0
- package/dist/modules/auth/services/token-usage.service.js.map +1 -0
- package/dist/modules/auth/services/tokens.service.d.ts +10 -3
- package/dist/modules/auth/services/tokens.service.js +26 -10
- package/dist/modules/auth/services/tokens.service.js.map +1 -1
- package/dist/modules/devices/controllers/channels.controller.d.ts +5 -1
- package/dist/modules/devices/controllers/channels.controller.js +34 -2
- package/dist/modules/devices/controllers/channels.controller.js.map +1 -1
- package/dist/modules/devices/controllers/channels.properties.controller.js +21 -4
- package/dist/modules/devices/controllers/channels.properties.controller.js.map +1 -1
- package/dist/modules/devices/controllers/devices.channels.controller.d.ts +5 -1
- package/dist/modules/devices/controllers/devices.channels.controller.js +38 -2
- package/dist/modules/devices/controllers/devices.channels.controller.js.map +1 -1
- package/dist/modules/devices/controllers/devices.channels.properties.controller.js +21 -4
- package/dist/modules/devices/controllers/devices.channels.properties.controller.js.map +1 -1
- package/dist/modules/devices/devices.constants.d.ts +6 -0
- package/dist/modules/devices/devices.constants.js +6 -0
- package/dist/modules/devices/devices.constants.js.map +1 -1
- package/dist/modules/devices/devices.module.js +27 -0
- package/dist/modules/devices/devices.module.js.map +1 -1
- package/dist/modules/devices/devices.openapi.d.ts +3 -1
- package/dist/modules/devices/devices.openapi.js +7 -0
- package/dist/modules/devices/devices.openapi.js.map +1 -1
- package/dist/modules/devices/dto/channel-input-occurrence.dto.d.ts +10 -0
- package/dist/modules/devices/dto/channel-input-occurrence.dto.js +99 -0
- package/dist/modules/devices/dto/channel-input-occurrence.dto.js.map +1 -0
- package/dist/modules/devices/dto/property-command.dto.js +2 -8
- package/dist/modules/devices/dto/property-command.dto.js.map +1 -1
- package/dist/modules/devices/models/channel-input-capabilities.model.d.ts +20 -0
- package/dist/modules/devices/models/channel-input-capabilities.model.js +111 -0
- package/dist/modules/devices/models/channel-input-capabilities.model.js.map +1 -0
- package/dist/modules/devices/models/channel-input-occurrence.model.d.ts +22 -0
- package/dist/modules/devices/models/channel-input-occurrence.model.js +154 -0
- package/dist/modules/devices/models/channel-input-occurrence.model.js.map +1 -0
- package/dist/modules/devices/services/channel-input-deduplication.service.d.ts +17 -0
- package/dist/modules/devices/services/channel-input-deduplication.service.js +88 -0
- package/dist/modules/devices/services/channel-input-deduplication.service.js.map +1 -0
- package/dist/modules/devices/services/channel-input-occurrences.service.d.ts +21 -0
- package/dist/modules/devices/services/channel-input-occurrences.service.js +163 -0
- package/dist/modules/devices/services/channel-input-occurrences.service.js.map +1 -0
- package/dist/modules/devices/services/channels.properties.service.d.ts +32 -3
- package/dist/modules/devices/services/channels.properties.service.js +360 -51
- package/dist/modules/devices/services/channels.properties.service.js.map +1 -1
- package/dist/modules/devices/services/channels.service.d.ts +1 -0
- package/dist/modules/devices/services/channels.service.js +52 -38
- package/dist/modules/devices/services/channels.service.js.map +1 -1
- package/dist/modules/devices/services/command-latency-trace-collector.service.d.ts +101 -0
- package/dist/modules/devices/services/command-latency-trace-collector.service.js +451 -0
- package/dist/modules/devices/services/command-latency-trace-collector.service.js.map +1 -0
- package/dist/modules/devices/services/device-command-graph.service.d.ts +18 -0
- package/dist/modules/devices/services/device-command-graph.service.js +92 -0
- package/dist/modules/devices/services/device-command-graph.service.js.map +1 -0
- package/dist/modules/devices/services/device-structure-lock.service.d.ts +10 -2
- package/dist/modules/devices/services/device-structure-lock.service.js +86 -7
- package/dist/modules/devices/services/device-structure-lock.service.js.map +1 -1
- package/dist/modules/devices/services/devices.service.d.ts +2 -0
- package/dist/modules/devices/services/devices.service.js +78 -64
- package/dist/modules/devices/services/devices.service.js.map +1 -1
- package/dist/modules/devices/services/module-reset.service.d.ts +3 -1
- package/dist/modules/devices/services/module-reset.service.js +21 -16
- package/dist/modules/devices/services/module-reset.service.js.map +1 -1
- package/dist/modules/devices/services/platform.registry.service.d.ts +2 -2
- package/dist/modules/devices/services/platform.registry.service.js.map +1 -1
- package/dist/modules/devices/services/property-command-dispatch.service.d.ts +47 -0
- package/dist/modules/devices/services/property-command-dispatch.service.js +231 -0
- package/dist/modules/devices/services/property-command-dispatch.service.js.map +1 -0
- package/dist/modules/devices/services/property-command-window.service.d.ts +71 -0
- package/dist/modules/devices/services/property-command-window.service.js +206 -0
- package/dist/modules/devices/services/property-command-window.service.js.map +1 -0
- package/dist/modules/devices/services/property-command.service.d.ts +26 -7
- package/dist/modules/devices/services/property-command.service.js +95 -28
- package/dist/modules/devices/services/property-command.service.js.map +1 -1
- package/dist/modules/devices/services/property-metadata.service.d.ts +38 -0
- package/dist/modules/devices/services/property-metadata.service.js +210 -0
- package/dist/modules/devices/services/property-metadata.service.js.map +1 -0
- package/dist/modules/devices/services/property-state-coordinator.service.d.ts +4 -0
- package/dist/modules/devices/services/property-state-coordinator.service.js +35 -0
- package/dist/modules/devices/services/property-state-coordinator.service.js.map +1 -0
- package/dist/modules/devices/services/property-value-lock.service.d.ts +4 -1
- package/dist/modules/devices/services/property-value-lock.service.js +16 -2
- package/dist/modules/devices/services/property-value-lock.service.js.map +1 -1
- package/dist/modules/devices/services/property-value.service.d.ts +3 -0
- package/dist/modules/devices/services/property-value.service.js +29 -5
- package/dist/modules/devices/services/property-value.service.js.map +1 -1
- package/dist/modules/devices/utils/device-graph-query.utils.d.ts +3 -0
- package/dist/modules/devices/utils/device-graph-query.utils.js +23 -0
- package/dist/modules/devices/utils/device-graph-query.utils.js.map +1 -0
- package/dist/modules/devices/utils/schema.utils.js +1 -1
- package/dist/modules/devices/utils/schema.utils.js.map +1 -1
- package/dist/modules/devices/validators/channel-exists-constraint.validator.d.ts +1 -3
- package/dist/modules/devices/validators/channel-exists-constraint.validator.js +3 -14
- package/dist/modules/devices/validators/channel-exists-constraint.validator.js.map +1 -1
- package/dist/modules/devices/validators/channel-property-exists-constraint.validator.d.ts +1 -3
- package/dist/modules/devices/validators/channel-property-exists-constraint.validator.js +3 -14
- package/dist/modules/devices/validators/channel-property-exists-constraint.validator.js.map +1 -1
- package/dist/modules/devices/validators/device-exists-constraint.validator.js +1 -2
- package/dist/modules/devices/validators/device-exists-constraint.validator.js.map +1 -1
- package/dist/modules/devices/validators/property-command-target-constraint.validator.d.ts +9 -0
- package/dist/modules/devices/validators/property-command-target-constraint.validator.js +58 -0
- package/dist/modules/devices/validators/property-command-target-constraint.validator.js.map +1 -0
- package/dist/modules/mdns/services/mdns.service.js +3 -1
- package/dist/modules/mdns/services/mdns.service.js.map +1 -1
- package/dist/modules/platform/platforms/abstract.platform.d.ts +2 -1
- package/dist/modules/platform/platforms/abstract.platform.js +2 -1
- package/dist/modules/platform/platforms/abstract.platform.js.map +1 -1
- package/dist/modules/platform/platforms/raspberry.platform.js +5 -10
- package/dist/modules/platform/platforms/raspberry.platform.js.map +1 -1
- package/dist/modules/platform/utils/linux-network-interface.utils.d.ts +3 -0
- package/dist/modules/platform/utils/linux-network-interface.utils.js +48 -0
- package/dist/modules/platform/utils/linux-network-interface.utils.js.map +1 -0
- package/dist/modules/remote-access/controllers/remote-access.controller.js +11 -6
- package/dist/modules/remote-access/controllers/remote-access.controller.js.map +1 -1
- package/dist/modules/remote-access/models/provider.model.d.ts +3 -0
- package/dist/modules/remote-access/models/provider.model.js +23 -0
- package/dist/modules/remote-access/models/provider.model.js.map +1 -1
- package/dist/modules/remote-access/models/status.model.d.ts +2 -0
- package/dist/modules/remote-access/models/status.model.js +18 -1
- package/dist/modules/remote-access/models/status.model.js.map +1 -1
- package/dist/modules/remote-access/models/urls.model.d.ts +2 -0
- package/dist/modules/remote-access/models/urls.model.js +17 -0
- package/dist/modules/remote-access/models/urls.model.js.map +1 -1
- package/dist/modules/remote-access/platforms/remote-access-provider.platform.d.ts +18 -1
- package/dist/modules/remote-access/remote-access.constants.d.ts +2 -1
- package/dist/modules/remote-access/remote-access.constants.js +2 -1
- package/dist/modules/remote-access/remote-access.constants.js.map +1 -1
- package/dist/modules/remote-access/services/remote-access-proxy-contribution.service.d.ts +1 -0
- package/dist/modules/remote-access/services/remote-access-proxy-contribution.service.js +4 -1
- package/dist/modules/remote-access/services/remote-access-proxy-contribution.service.js.map +1 -1
- package/dist/modules/remote-access/services/remote-access-status.service.d.ts +40 -8
- package/dist/modules/remote-access/services/remote-access-status.service.js +314 -65
- package/dist/modules/remote-access/services/remote-access-status.service.js.map +1 -1
- package/dist/modules/remote-access/services/remote-access-url.service.d.ts +2 -2
- package/dist/modules/remote-access/services/remote-access-url.service.js +4 -2
- package/dist/modules/remote-access/services/remote-access-url.service.js.map +1 -1
- package/dist/modules/spaces/services/module-reset.service.d.ts +5 -1
- package/dist/modules/spaces/services/module-reset.service.js +10 -2
- package/dist/modules/spaces/services/module-reset.service.js.map +1 -1
- package/dist/modules/spaces/services/space-activity.service.d.ts +14 -0
- package/dist/modules/spaces/services/space-activity.service.js +56 -0
- package/dist/modules/spaces/services/space-activity.service.js.map +1 -0
- package/dist/modules/spaces/spaces.module.js +5 -0
- package/dist/modules/spaces/spaces.module.js.map +1 -1
- package/dist/modules/spaces/subscribers/space-activity.subscriber.d.ts +17 -0
- package/dist/modules/spaces/subscribers/space-activity.subscriber.js +89 -0
- package/dist/modules/spaces/subscribers/space-activity.subscriber.js.map +1 -0
- package/dist/modules/storage/services/storage-write-buffer.d.ts +17 -0
- package/dist/modules/storage/services/storage-write-buffer.js +67 -0
- package/dist/modules/storage/services/storage-write-buffer.js.map +1 -0
- package/dist/modules/storage/services/storage.service.d.ts +9 -2
- package/dist/modules/storage/services/storage.service.js +54 -1
- package/dist/modules/storage/services/storage.service.js.map +1 -1
- package/dist/modules/system/scripts/update-worker.sh +1168 -61
- package/dist/modules/system/services/privileged-worker.service.d.ts +3 -0
- package/dist/modules/system/services/privileged-worker.service.js +62 -27
- package/dist/modules/system/services/privileged-worker.service.js.map +1 -1
- package/dist/modules/system/services/system.service.d.ts +2 -0
- package/dist/modules/system/services/system.service.js +22 -1
- package/dist/modules/system/services/system.service.js.map +1 -1
- package/dist/modules/system/services/update-executor.service.d.ts +20 -2
- package/dist/modules/system/services/update-executor.service.js +272 -26
- package/dist/modules/system/services/update-executor.service.js.map +1 -1
- package/dist/modules/websocket/gateway/websocket.gateway.d.ts +4 -1
- package/dist/modules/websocket/gateway/websocket.gateway.js +29 -5
- package/dist/modules/websocket/gateway/websocket.gateway.js.map +1 -1
- package/dist/modules/websocket/services/command-acknowledgement-trace.service.d.ts +143 -0
- package/dist/modules/websocket/services/command-acknowledgement-trace.service.js +523 -0
- package/dist/modules/websocket/services/command-acknowledgement-trace.service.js.map +1 -0
- package/dist/modules/websocket/services/ws-auth.service.js +12 -35
- package/dist/modules/websocket/services/ws-auth.service.js.map +1 -1
- package/dist/modules/websocket/websocket.module.js +9 -1
- package/dist/modules/websocket/websocket.module.js.map +1 -1
- package/dist/plugins/devices-home-assistant/devices-home-assistant.openapi.d.ts +2 -2
- package/dist/plugins/devices-home-assistant/devices-home-assistant.plugin.d.ts +6 -1
- package/dist/plugins/devices-home-assistant/devices-home-assistant.plugin.js +16 -1
- package/dist/plugins/devices-home-assistant/devices-home-assistant.plugin.js.map +1 -1
- package/dist/plugins/devices-home-assistant/dto/mapping-preview.dto.d.ts +1 -0
- package/dist/plugins/devices-home-assistant/dto/mapping-preview.dto.js +11 -0
- package/dist/plugins/devices-home-assistant/dto/mapping-preview.dto.js.map +1 -1
- package/dist/plugins/devices-home-assistant/mappers/button.entity.mapper.service.d.ts +19 -0
- package/dist/plugins/devices-home-assistant/mappers/button.entity.mapper.service.js +51 -0
- package/dist/plugins/devices-home-assistant/mappers/button.entity.mapper.service.js.map +1 -0
- package/dist/plugins/devices-home-assistant/mappings/definitions/entity-mappings.yaml +56 -7
- package/dist/plugins/devices-home-assistant/models/mapping-preview.model.d.ts +1 -0
- package/dist/plugins/devices-home-assistant/models/mapping-preview.model.js +11 -0
- package/dist/plugins/devices-home-assistant/models/mapping-preview.model.js.map +1 -1
- package/dist/plugins/devices-home-assistant/services/device-adoption.service.js +17 -0
- package/dist/plugins/devices-home-assistant/services/device-adoption.service.js.map +1 -1
- package/dist/plugins/devices-home-assistant/services/ha-mdns-discoverer.service.js +3 -1
- package/dist/plugins/devices-home-assistant/services/ha-mdns-discoverer.service.js.map +1 -1
- package/dist/plugins/devices-home-assistant/services/home-assistant-raw-event.service.d.ts +27 -0
- package/dist/plugins/devices-home-assistant/services/home-assistant-raw-event.service.js +271 -0
- package/dist/plugins/devices-home-assistant/services/home-assistant-raw-event.service.js.map +1 -0
- package/dist/plugins/devices-home-assistant/services/home-assistant.ws.service.d.ts +2 -2
- package/dist/plugins/devices-home-assistant/services/home-assistant.ws.service.js +33 -14
- package/dist/plugins/devices-home-assistant/services/home-assistant.ws.service.js.map +1 -1
- package/dist/plugins/devices-home-assistant/services/mapping-preview.service.js +24 -4
- package/dist/plugins/devices-home-assistant/services/mapping-preview.service.js.map +1 -1
- package/dist/plugins/devices-home-assistant/services/state-changed.event.service.d.ts +4 -1
- package/dist/plugins/devices-home-assistant/services/state-changed.event.service.js +84 -5
- package/dist/plugins/devices-home-assistant/services/state-changed.event.service.js.map +1 -1
- package/dist/plugins/devices-home-assistant/services/wizard.service.js +1 -0
- package/dist/plugins/devices-home-assistant/services/wizard.service.js.map +1 -1
- package/dist/plugins/devices-home-assistant/utils/ha-event.utils.d.ts +2 -0
- package/dist/plugins/devices-home-assistant/utils/ha-event.utils.js +50 -0
- package/dist/plugins/devices-home-assistant/utils/ha-event.utils.js.map +1 -0
- package/dist/plugins/devices-homekit/listeners/homekit-event.listener.d.ts +4 -1
- package/dist/plugins/devices-homekit/listeners/homekit-event.listener.js +39 -4
- package/dist/plugins/devices-homekit/listeners/homekit-event.listener.js.map +1 -1
- package/dist/plugins/devices-homekit/mappers/base.mapper.js +30 -6
- package/dist/plugins/devices-homekit/mappers/base.mapper.js.map +1 -1
- package/dist/plugins/devices-homekit/mappers/button.mapper.d.ts +15 -0
- package/dist/plugins/devices-homekit/mappers/button.mapper.js +143 -0
- package/dist/plugins/devices-homekit/mappers/button.mapper.js.map +1 -0
- package/dist/plugins/devices-homekit/mappers/characteristic-write.d.ts +2 -0
- package/dist/plugins/devices-homekit/mappers/characteristic-write.js +17 -0
- package/dist/plugins/devices-homekit/mappers/characteristic-write.js.map +1 -0
- package/dist/plugins/devices-homekit/mappers/homekit-mapper.interface.d.ts +17 -1
- package/dist/plugins/devices-homekit/mappers/thermostat-coordinator.d.ts +7 -0
- package/dist/plugins/devices-homekit/mappers/thermostat-coordinator.js +96 -84
- package/dist/plugins/devices-homekit/mappers/thermostat-coordinator.js.map +1 -1
- package/dist/plugins/devices-homekit/services/homekit-bridge.service.js +2 -0
- package/dist/plugins/devices-homekit/services/homekit-bridge.service.js.map +1 -1
- package/dist/plugins/devices-homekit/services/homekit-mapper-registry.service.d.ts +5 -1
- package/dist/plugins/devices-homekit/services/homekit-mapper-registry.service.js +42 -0
- package/dist/plugins/devices-homekit/services/homekit-mapper-registry.service.js.map +1 -1
- package/dist/plugins/devices-homekit/utils/ciao-receive-guard.d.ts +1 -0
- package/dist/plugins/devices-homekit/utils/ciao-receive-guard.js +36 -0
- package/dist/plugins/devices-homekit/utils/ciao-receive-guard.js.map +1 -0
- package/dist/plugins/devices-homey/mappings/definitions/channels.yaml +50 -0
- package/dist/plugins/devices-homey/mappings/definitions/devices.yaml +18 -0
- package/dist/plugins/devices-homey/mappings/definitions/properties.yaml +55 -0
- package/dist/plugins/devices-homey/mappings/device-support.js +10 -0
- package/dist/plugins/devices-homey/mappings/device-support.js.map +1 -1
- package/dist/plugins/devices-homey/mappings/mapping-loader.service.d.ts +1 -0
- package/dist/plugins/devices-homey/mappings/mapping-loader.service.js +66 -8
- package/dist/plugins/devices-homey/mappings/mapping-loader.service.js.map +1 -1
- package/dist/plugins/devices-homey/models/inventory.model.d.ts +2 -1
- package/dist/plugins/devices-homey/models/inventory.model.js +1 -0
- package/dist/plugins/devices-homey/models/inventory.model.js.map +1 -1
- package/dist/plugins/devices-homey/models/mapping-preview.model.d.ts +1 -0
- package/dist/plugins/devices-homey/models/mapping-preview.model.js +1 -0
- package/dist/plugins/devices-homey/models/mapping-preview.model.js.map +1 -1
- package/dist/plugins/devices-homey/services/homey-mapping-preview.service.js +7 -0
- package/dist/plugins/devices-homey/services/homey-mapping-preview.service.js.map +1 -1
- package/dist/plugins/devices-homey/services/homey-synchronizer.service.d.ts +3 -1
- package/dist/plugins/devices-homey/services/homey-synchronizer.service.js +37 -6
- package/dist/plugins/devices-homey/services/homey-synchronizer.service.js.map +1 -1
- package/dist/plugins/devices-reterminal/services/reterminal-button.service.d.ts +7 -3
- package/dist/plugins/devices-reterminal/services/reterminal-button.service.js +63 -17
- package/dist/plugins/devices-reterminal/services/reterminal-button.service.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/delegates/delegates-manager.service.d.ts +36 -3
- package/dist/plugins/devices-shelly-ng/delegates/delegates-manager.service.js +707 -42
- 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 +11 -1
- package/dist/plugins/devices-shelly-ng/delegates/shelly-device.delegate.js +100 -10
- package/dist/plugins/devices-shelly-ng/delegates/shelly-device.delegate.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/devices-shelly-ng.constants.js +3 -2
- package/dist/plugins/devices-shelly-ng/devices-shelly-ng.constants.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/devices-shelly-ng.plugin.js +2 -0
- package/dist/plugins/devices-shelly-ng/devices-shelly-ng.plugin.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/mappings/definitions/inputs.yaml +80 -0
- package/dist/plugins/devices-shelly-ng/mappings/mapping-loader.service.js +7 -1
- package/dist/plugins/devices-shelly-ng/mappings/mapping-loader.service.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/mappings/mapping.types.d.ts +6 -3
- package/dist/plugins/devices-shelly-ng/mappings/schema/mapping-schema.json +5 -0
- package/dist/plugins/devices-shelly-ng/services/device-manager.service.js +153 -8
- package/dist/plugins/devices-shelly-ng/services/device-manager.service.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/services/poll-placement-diagnostics.service.d.ts +51 -0
- package/dist/plugins/devices-shelly-ng/services/poll-placement-diagnostics.service.js +549 -0
- package/dist/plugins/devices-shelly-ng/services/poll-placement-diagnostics.service.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-ng.service.d.ts +15 -2
- package/dist/plugins/devices-shelly-ng/services/shelly-ng.service.js +140 -35
- 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.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 +1 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-ws-server.service.js +14 -4
- package/dist/plugins/devices-shelly-ng/services/shelly-ws-server.service.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/devices-shelly-v1.constants.d.ts +2 -0
- package/dist/plugins/devices-shelly-v1/devices-shelly-v1.constants.js +66 -4
- package/dist/plugins/devices-shelly-v1/devices-shelly-v1.constants.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/devices-shelly-v1.plugin.js +2 -0
- package/dist/plugins/devices-shelly-v1/devices-shelly-v1.plugin.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/platforms/shelly-v1.device.platform.js +7 -0
- 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 +3 -1
- package/dist/plugins/devices-shelly-v1/services/device-mapper.service.js +20 -2
- package/dist/plugins/devices-shelly-v1/services/device-mapper.service.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/services/shelly-v1-input-tracker.service.d.ts +16 -0
- package/dist/plugins/devices-shelly-v1/services/shelly-v1-input-tracker.service.js +107 -0
- package/dist/plugins/devices-shelly-v1/services/shelly-v1-input-tracker.service.js.map +1 -0
- package/dist/plugins/devices-shelly-v1/services/shelly-v1.service.d.ts +7 -1
- package/dist/plugins/devices-shelly-v1/services/shelly-v1.service.js +98 -3
- package/dist/plugins/devices-shelly-v1/services/shelly-v1.service.js.map +1 -1
- package/dist/plugins/devices-third-party/controllers/third-party-inputs.controller.d.ts +17 -0
- package/dist/plugins/devices-third-party/controllers/third-party-inputs.controller.js +205 -0
- package/dist/plugins/devices-third-party/controllers/third-party-inputs.controller.js.map +1 -0
- package/dist/plugins/devices-third-party/devices-third-party.openapi.d.ts +1 -1
- package/dist/plugins/devices-third-party/devices-third-party.plugin.js +2 -1
- package/dist/plugins/devices-third-party/devices-third-party.plugin.js.map +1 -1
- package/dist/plugins/devices-third-party/dto/report-input-occurrence-response.dto.d.ts +5 -0
- package/dist/plugins/devices-third-party/dto/report-input-occurrence-response.dto.js +50 -0
- package/dist/plugins/devices-third-party/dto/report-input-occurrence-response.dto.js.map +1 -0
- package/dist/plugins/devices-third-party/dto/report-input-occurrence.dto.d.ts +8 -0
- package/dist/plugins/devices-third-party/dto/report-input-occurrence.dto.js +81 -0
- package/dist/plugins/devices-third-party/dto/report-input-occurrence.dto.js.map +1 -0
- package/dist/plugins/devices-third-party/platforms/third-party-device.platform.js +19 -4
- package/dist/plugins/devices-third-party/platforms/third-party-device.platform.js.map +1 -1
- package/dist/plugins/devices-virtual/listeners/virtual-projection.listener.d.ts +2 -0
- package/dist/plugins/devices-virtual/listeners/virtual-projection.listener.js +57 -0
- package/dist/plugins/devices-virtual/listeners/virtual-projection.listener.js.map +1 -1
- package/dist/plugins/devices-virtual/platforms/virtual-device.platform.d.ts +3 -8
- package/dist/plugins/devices-virtual/platforms/virtual-device.platform.js +6 -31
- package/dist/plugins/devices-virtual/platforms/virtual-device.platform.js.map +1 -1
- package/dist/plugins/devices-wled/services/wled-mdns-discoverer.service.js +3 -1
- package/dist/plugins/devices-wled/services/wled-mdns-discoverer.service.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/devices-zigbee2mqtt.constants.d.ts +3 -0
- package/dist/plugins/devices-zigbee2mqtt/devices-zigbee2mqtt.constants.js +41 -5
- package/dist/plugins/devices-zigbee2mqtt/devices-zigbee2mqtt.constants.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/interfaces/zigbee2mqtt.interface.d.ts +7 -1
- package/dist/plugins/devices-zigbee2mqtt/mappings/config-driven.converter.js +16 -15
- package/dist/plugins/devices-zigbee2mqtt/mappings/config-driven.converter.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/mappings/definitions/remotes.yaml +505 -74
- package/dist/plugins/devices-zigbee2mqtt/mappings/schema/mapping-schema.json +3 -3
- package/dist/plugins/devices-zigbee2mqtt/mappings/transformers/transformer.types.d.ts +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/base-client-adapter.d.ts +8 -2
- package/dist/plugins/devices-zigbee2mqtt/services/base-client-adapter.js +6 -5
- package/dist/plugins/devices-zigbee2mqtt/services/base-client-adapter.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/device-adoption.service.js +18 -11
- package/dist/plugins/devices-zigbee2mqtt/services/device-adoption.service.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/device-mapper.service.d.ts +9 -3
- package/dist/plugins/devices-zigbee2mqtt/services/device-mapper.service.js +166 -3
- package/dist/plugins/devices-zigbee2mqtt/services/device-mapper.service.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/mqtt-client-adapter.service.js +5 -2
- package/dist/plugins/devices-zigbee2mqtt/services/mqtt-client-adapter.service.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/zigbee2mqtt.service.d.ts +1 -0
- package/dist/plugins/devices-zigbee2mqtt/services/zigbee2mqtt.service.js +44 -4
- package/dist/plugins/devices-zigbee2mqtt/services/zigbee2mqtt.service.js.map +1 -1
- package/dist/plugins/influx-v1/services/influx-v1-managed.service.js +2 -2
- package/dist/plugins/influx-v1/services/influx-v1-managed.service.js.map +1 -1
- package/dist/plugins/influx-v2/services/influx-v2-managed.service.js +2 -2
- package/dist/plugins/influx-v2/services/influx-v2-managed.service.js.map +1 -1
- package/dist/plugins/memory-storage/services/memory-storage-managed.service.js +2 -2
- package/dist/plugins/memory-storage/services/memory-storage-managed.service.js.map +1 -1
- package/dist/plugins/remote-access-cloudflare-tunnel/controllers/setup.controller.d.ts +19 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/controllers/setup.controller.js +159 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/controllers/setup.controller.js.map +1 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/controllers/status.controller.d.ts +13 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/controllers/status.controller.js +99 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/controllers/status.controller.js.map +1 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/dto/update-config.dto.d.ts +9 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/dto/update-config.dto.js +94 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/dto/update-config.dto.js.map +1 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/models/config.model.d.ts +9 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/models/config.model.js +92 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/models/config.model.js.map +1 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/models/install.model.d.ts +7 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/models/install.model.js +48 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/models/install.model.js.map +1 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/models/status.model.d.ts +44 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/models/status.model.js +369 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/models/status.model.js.map +1 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/remote-access-cloudflare-tunnel.constants.d.ts +24 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/remote-access-cloudflare-tunnel.constants.js +27 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/remote-access-cloudflare-tunnel.constants.js.map +1 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/remote-access-cloudflare-tunnel.exceptions.d.ts +8 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/remote-access-cloudflare-tunnel.exceptions.js +19 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/remote-access-cloudflare-tunnel.exceptions.js.map +1 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/remote-access-cloudflare-tunnel.openapi.d.ts +4 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/remote-access-cloudflare-tunnel.openapi.js +20 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/remote-access-cloudflare-tunnel.openapi.js.map +1 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/remote-access-cloudflare-tunnel.plugin.d.ts +21 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/remote-access-cloudflare-tunnel.plugin.js +135 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/remote-access-cloudflare-tunnel.plugin.js.map +1 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/scripts/cloudflared-setup.sh +185 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/services/cloudflare-tunnel-managed.service.d.ts +100 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/services/cloudflare-tunnel-managed.service.js +564 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/services/cloudflare-tunnel-managed.service.js.map +1 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/services/cloudflare-tunnel-provider.service.d.ts +22 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/services/cloudflare-tunnel-provider.service.js +43 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/services/cloudflare-tunnel-provider.service.js.map +1 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/services/cloudflare-tunnel-setup.service.d.ts +38 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/services/cloudflare-tunnel-setup.service.js +147 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/services/cloudflare-tunnel-setup.service.js.map +1 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/services/cloudflared-cli.service.d.ts +15 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/services/cloudflared-cli.service.js +55 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/services/cloudflared-cli.service.js.map +1 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/services/cloudflared-metrics.service.d.ts +8 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/services/cloudflared-metrics.service.js +49 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/services/cloudflared-metrics.service.js.map +1 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/services/cloudflared-process.service.d.ts +27 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/services/cloudflared-process.service.js +139 -0
- package/dist/plugins/remote-access-cloudflare-tunnel/services/cloudflared-process.service.js.map +1 -0
- package/dist/plugins/remote-access-tailscale/controllers/setup.controller.d.ts +11 -6
- package/dist/plugins/remote-access-tailscale/controllers/setup.controller.js +115 -25
- package/dist/plugins/remote-access-tailscale/controllers/setup.controller.js.map +1 -1
- package/dist/plugins/remote-access-tailscale/controllers/status.controller.d.ts +6 -5
- package/dist/plugins/remote-access-tailscale/controllers/status.controller.js +26 -16
- package/dist/plugins/remote-access-tailscale/controllers/status.controller.js.map +1 -1
- package/dist/plugins/remote-access-tailscale/models/status.model.d.ts +16 -0
- package/dist/plugins/remote-access-tailscale/models/status.model.js +100 -1
- package/dist/plugins/remote-access-tailscale/models/status.model.js.map +1 -1
- package/dist/plugins/remote-access-tailscale/remote-access-tailscale.constants.d.ts +3 -0
- package/dist/plugins/remote-access-tailscale/remote-access-tailscale.constants.js +4 -1
- package/dist/plugins/remote-access-tailscale/remote-access-tailscale.constants.js.map +1 -1
- package/dist/plugins/remote-access-tailscale/remote-access-tailscale.exceptions.d.ts +17 -1
- package/dist/plugins/remote-access-tailscale/remote-access-tailscale.exceptions.js +33 -1
- package/dist/plugins/remote-access-tailscale/remote-access-tailscale.exceptions.js.map +1 -1
- package/dist/plugins/remote-access-tailscale/remote-access-tailscale.openapi.d.ts +2 -2
- package/dist/plugins/remote-access-tailscale/remote-access-tailscale.openapi.js +1 -0
- package/dist/plugins/remote-access-tailscale/remote-access-tailscale.openapi.js.map +1 -1
- package/dist/plugins/remote-access-tailscale/remote-access-tailscale.plugin.js +3 -1
- package/dist/plugins/remote-access-tailscale/remote-access-tailscale.plugin.js.map +1 -1
- package/dist/plugins/remote-access-tailscale/scripts/tailscale-setup.sh +2 -1
- package/dist/plugins/remote-access-tailscale/services/tailscale-cli.service.d.ts +8 -4
- package/dist/plugins/remote-access-tailscale/services/tailscale-cli.service.js +58 -14
- package/dist/plugins/remote-access-tailscale/services/tailscale-cli.service.js.map +1 -1
- package/dist/plugins/remote-access-tailscale/services/tailscale-login.service.d.ts +8 -3
- package/dist/plugins/remote-access-tailscale/services/tailscale-login.service.js +175 -151
- package/dist/plugins/remote-access-tailscale/services/tailscale-login.service.js.map +1 -1
- package/dist/plugins/remote-access-tailscale/services/tailscale-node-managed.service.d.ts +54 -7
- package/dist/plugins/remote-access-tailscale/services/tailscale-node-managed.service.js +528 -109
- package/dist/plugins/remote-access-tailscale/services/tailscale-node-managed.service.js.map +1 -1
- package/dist/plugins/remote-access-tailscale/services/tailscale-operation-coordinator.service.d.ts +33 -0
- package/dist/plugins/remote-access-tailscale/services/tailscale-operation-coordinator.service.js +167 -0
- package/dist/plugins/remote-access-tailscale/services/tailscale-operation-coordinator.service.js.map +1 -0
- package/dist/plugins/remote-access-tailscale/services/tailscale-provider.service.d.ts +13 -1
- package/dist/plugins/remote-access-tailscale/services/tailscale-provider.service.js +8 -2
- package/dist/plugins/remote-access-tailscale/services/tailscale-provider.service.js.map +1 -1
- package/dist/plugins/remote-access-tailscale/services/tailscale-serve.service.d.ts +1 -1
- package/dist/plugins/remote-access-tailscale/services/tailscale-serve.service.js +7 -6
- package/dist/plugins/remote-access-tailscale/services/tailscale-serve.service.js.map +1 -1
- package/dist/plugins/remote-access-tailscale/services/tailscale-setup.service.d.ts +1 -3
- package/dist/plugins/remote-access-tailscale/services/tailscale-setup.service.js +10 -11
- package/dist/plugins/remote-access-tailscale/services/tailscale-setup.service.js.map +1 -1
- package/dist/plugins/remote-access-tailscale/utils/tailscale-control.utils.d.ts +5 -0
- package/dist/plugins/remote-access-tailscale/utils/tailscale-control.utils.js +36 -0
- package/dist/plugins/remote-access-tailscale/utils/tailscale-control.utils.js.map +1 -0
- package/dist/plugins/scenes-local/platforms/local-scene.platform.d.ts +3 -1
- package/dist/plugins/scenes-local/platforms/local-scene.platform.js +12 -7
- package/dist/plugins/scenes-local/platforms/local-scene.platform.js.map +1 -1
- package/dist/plugins/simulator/controllers/simulator.controller.d.ts +8 -2
- package/dist/plugins/simulator/controllers/simulator.controller.js +102 -2
- package/dist/plugins/simulator/controllers/simulator.controller.js.map +1 -1
- package/dist/plugins/simulator/dto/simulate-occurrence.dto.d.ts +12 -0
- package/dist/plugins/simulator/dto/simulate-occurrence.dto.js +122 -0
- package/dist/plugins/simulator/dto/simulate-occurrence.dto.js.map +1 -0
- package/dist/plugins/simulator/models/simulator-response.model.d.ts +12 -0
- package/dist/plugins/simulator/models/simulator-response.model.js +84 -1
- package/dist/plugins/simulator/models/simulator-response.model.js.map +1 -1
- package/dist/plugins/simulator/scenarios/definitions/small-apartment.yaml +78 -0
- package/dist/plugins/simulator/services/scenario-executor.service.js +3 -1
- package/dist/plugins/simulator/services/scenario-executor.service.js.map +1 -1
- package/dist/plugins/simulator/services/simulation.service.js +10 -1
- package/dist/plugins/simulator/services/simulation.service.js.map +1 -1
- package/dist/plugins/simulator/simulator.openapi.d.ts +3 -2
- package/dist/plugins/simulator/simulator.openapi.js +5 -0
- package/dist/plugins/simulator/simulator.openapi.js.map +1 -1
- package/dist/plugins/simulator/simulators/device-simulator.interface.d.ts +2 -0
- package/dist/plugins/simulator/simulators/device-simulator.interface.js +83 -0
- package/dist/plugins/simulator/simulators/device-simulator.interface.js.map +1 -1
- package/dist/plugins/simulator/simulators/index.d.ts +1 -0
- package/dist/plugins/simulator/simulators/index.js +1 -0
- package/dist/plugins/simulator/simulators/index.js.map +1 -1
- package/dist/plugins/simulator/simulators/input-controller.simulator.d.ts +10 -0
- package/dist/plugins/simulator/simulators/input-controller.simulator.js +57 -0
- package/dist/plugins/simulator/simulators/input-controller.simulator.js.map +1 -0
- package/dist/plugins/simulator/simulators/lighting.simulator.js +1 -0
- package/dist/plugins/simulator/simulators/lighting.simulator.js.map +1 -1
- package/dist/plugins/spaces-home-control/listeners/space-activity.listener.d.ts +6 -7
- package/dist/plugins/spaces-home-control/listeners/space-activity.listener.js +19 -44
- package/dist/plugins/spaces-home-control/listeners/space-activity.listener.js.map +1 -1
- package/dist/plugins/spaces-home-control/listeners/space-climate-state.listener.d.ts +4 -4
- package/dist/plugins/spaces-home-control/listeners/space-climate-state.listener.js +9 -22
- package/dist/plugins/spaces-home-control/listeners/space-climate-state.listener.js.map +1 -1
- package/dist/plugins/spaces-home-control/listeners/space-lighting-state.listener.d.ts +4 -4
- package/dist/plugins/spaces-home-control/listeners/space-lighting-state.listener.js +9 -22
- package/dist/plugins/spaces-home-control/listeners/space-lighting-state.listener.js.map +1 -1
- package/dist/plugins/spaces-home-control/listeners/space-sensor-state.listener.d.ts +4 -4
- package/dist/plugins/spaces-home-control/listeners/space-sensor-state.listener.js +9 -22
- package/dist/plugins/spaces-home-control/listeners/space-sensor-state.listener.js.map +1 -1
- package/dist/plugins/spaces-home-control/services/climate-intent.service.d.ts +3 -1
- package/dist/plugins/spaces-home-control/services/climate-intent.service.js +6 -3
- package/dist/plugins/spaces-home-control/services/climate-intent.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/services/covers-intent.service.d.ts +3 -1
- package/dist/plugins/spaces-home-control/services/covers-intent.service.js +6 -3
- package/dist/plugins/spaces-home-control/services/covers-intent.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/services/lighting-intent.service.d.ts +3 -1
- package/dist/plugins/spaces-home-control/services/lighting-intent.service.js +7 -4
- package/dist/plugins/spaces-home-control/services/lighting-intent.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/services/space-climate-state.service.d.ts +3 -5
- package/dist/plugins/spaces-home-control/services/space-climate-state.service.js +9 -12
- package/dist/plugins/spaces-home-control/services/space-climate-state.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/services/space-lighting-state.service.d.ts +3 -5
- package/dist/plugins/spaces-home-control/services/space-lighting-state.service.js +7 -10
- package/dist/plugins/spaces-home-control/services/space-lighting-state.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/services/space-media-activity.service.d.ts +3 -1
- package/dist/plugins/spaces-home-control/services/space-media-activity.service.js +11 -5
- package/dist/plugins/spaces-home-control/services/space-media-activity.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/services/space-sensor-state.service.d.ts +3 -5
- package/dist/plugins/spaces-home-control/services/space-sensor-state.service.js +7 -10
- package/dist/plugins/spaces-home-control/services/space-sensor-state.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/services/space-state-read.service.d.ts +47 -0
- package/dist/plugins/spaces-home-control/services/space-state-read.service.js +262 -0
- package/dist/plugins/spaces-home-control/services/space-state-read.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/space-undo-history.service.d.ts +3 -1
- package/dist/plugins/spaces-home-control/services/space-undo-history.service.js +8 -5
- package/dist/plugins/spaces-home-control/services/space-undo-history.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/spaces-home-control.plugin.js +4 -0
- package/dist/plugins/spaces-home-control/spaces-home-control.plugin.js.map +1 -1
- package/dist/spec/channels.d.ts +51 -1
- package/dist/spec/channels.js +64 -1
- package/dist/spec/channels.js.map +1 -1
- package/dist/spec/devices.d.ts +155 -2
- package/dist/spec/devices.js +161 -2
- package/dist/spec/devices.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"space-state-read.service.js","sourceRoot":"","sources":["../../../../src/plugins/spaces-home-control/services/space-state-read.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCASiB;AAEjB,2CAA6D;AAC7D,2CAA+C;AAE/C,qEAAiE;AACjE,6FAAwF;AACxF,qFAA+F;AAC/F,iHAA2G;AAC3G,2GAAsG;AACtG,0FAAqF;AACrF,gFAA4E;AAC5E,+EAAqE;AACrE,iFAAoF;AACpF,qFAA+E;AAC/E,uFAAiF;AACjF,mFAA6E;AAEhE,QAAA,0BAA0B,GAAG,GAAG,CAAC;AAcvC,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IASjC,YACkB,UAAsB,EACtB,QAAiC,EAC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services/devices.service';
|
|
3
3
|
import { PlatformRegistryService } from '../../../modules/devices/services/platform.registry.service';
|
|
4
|
+
import { PropertyCommandDispatchService } from '../../../modules/devices/services/property-command-dispatch.service';
|
|
4
5
|
import { SpacesService } from '../../../modules/spaces/services/spaces.service';
|
|
5
6
|
import { SpaceContextSnapshot } from './space-context-snapshot.service';
|
|
6
7
|
export interface UndoEntry {
|
|
@@ -21,11 +22,12 @@ export declare class SpaceUndoHistoryService implements OnModuleDestroy {
|
|
|
21
22
|
private readonly spacesService;
|
|
22
23
|
private readonly devicesService;
|
|
23
24
|
private readonly platformRegistryService;
|
|
25
|
+
private readonly propertyCommandDispatchService;
|
|
24
26
|
private readonly logger;
|
|
25
27
|
private readonly config;
|
|
26
28
|
private readonly undoStacks;
|
|
27
29
|
private cleanupTimer;
|
|
28
|
-
constructor(spacesService: SpacesService, devicesService: DevicesService, platformRegistryService: PlatformRegistryService);
|
|
30
|
+
constructor(spacesService: SpacesService, devicesService: DevicesService, platformRegistryService: PlatformRegistryService, propertyCommandDispatchService: PropertyCommandDispatchService);
|
|
29
31
|
onModuleDestroy(): void;
|
|
30
32
|
getEntryTtlMs(): number;
|
|
31
33
|
pushSnapshot(snapshot: SpaceContextSnapshot, actionDescription: string, intentCategory: 'lighting' | 'climate' | 'covers' | 'media'): UndoEntry;
|
|
@@ -15,6 +15,7 @@ const extension_logger_service_1 = require("../../../common/logger/extension-log
|
|
|
15
15
|
const devices_constants_1 = require("../../../modules/devices/devices.constants");
|
|
16
16
|
const devices_service_1 = require("../../../modules/devices/services/devices.service");
|
|
17
17
|
const platform_registry_service_1 = require("../../../modules/devices/services/platform.registry.service");
|
|
18
|
+
const property_command_dispatch_service_1 = require("../../../modules/devices/services/property-command-dispatch.service");
|
|
18
19
|
const spaces_service_1 = require("../../../modules/spaces/services/spaces.service");
|
|
19
20
|
const spaces_constants_1 = require("../../../modules/spaces/spaces.constants");
|
|
20
21
|
const DEFAULT_CONFIG = {
|
|
@@ -22,10 +23,11 @@ const DEFAULT_CONFIG = {
|
|
|
22
23
|
entryTtlMs: 5 * 60 * 1000,
|
|
23
24
|
};
|
|
24
25
|
let SpaceUndoHistoryService = class SpaceUndoHistoryService {
|
|
25
|
-
constructor(spacesService, devicesService, platformRegistryService) {
|
|
26
|
+
constructor(spacesService, devicesService, platformRegistryService, propertyCommandDispatchService) {
|
|
26
27
|
this.spacesService = spacesService;
|
|
27
28
|
this.devicesService = devicesService;
|
|
28
29
|
this.platformRegistryService = platformRegistryService;
|
|
30
|
+
this.propertyCommandDispatchService = propertyCommandDispatchService;
|
|
29
31
|
this.logger = (0, extension_logger_service_1.createExtensionLogger)(spaces_constants_1.SPACES_MODULE_NAME, 'SpaceUndoHistoryService');
|
|
30
32
|
this.config = DEFAULT_CONFIG;
|
|
31
33
|
this.undoStacks = new Map();
|
|
@@ -152,7 +154,7 @@ let SpaceUndoHistoryService = class SpaceUndoHistoryService {
|
|
|
152
154
|
if (commands.length === 0) {
|
|
153
155
|
return true;
|
|
154
156
|
}
|
|
155
|
-
const success = await
|
|
157
|
+
const { success } = await this.propertyCommandDispatchService.dispatchBatch(commands);
|
|
156
158
|
if (!success) {
|
|
157
159
|
this.logger.error(`Failed to restore light state deviceId=${device.id}`);
|
|
158
160
|
return false;
|
|
@@ -197,7 +199,7 @@ let SpaceUndoHistoryService = class SpaceUndoHistoryService {
|
|
|
197
199
|
property: setpointProperty,
|
|
198
200
|
value: setpointToRestore,
|
|
199
201
|
};
|
|
200
|
-
const success = await
|
|
202
|
+
const { success } = await this.propertyCommandDispatchService.dispatchBatch([command]);
|
|
201
203
|
if (!success) {
|
|
202
204
|
this.logger.error(`Failed to restore climate state deviceId=${device.id}`);
|
|
203
205
|
return { restored: false, failed: true };
|
|
@@ -236,7 +238,7 @@ let SpaceUndoHistoryService = class SpaceUndoHistoryService {
|
|
|
236
238
|
property: positionProperty,
|
|
237
239
|
value: coverState.position,
|
|
238
240
|
};
|
|
239
|
-
const success = await
|
|
241
|
+
const { success } = await this.propertyCommandDispatchService.dispatchBatch([command]);
|
|
240
242
|
if (!success) {
|
|
241
243
|
this.logger.error(`Failed to restore cover state deviceId=${device.id}`);
|
|
242
244
|
return false;
|
|
@@ -337,6 +339,7 @@ exports.SpaceUndoHistoryService = SpaceUndoHistoryService = __decorate([
|
|
|
337
339
|
(0, common_1.Injectable)(),
|
|
338
340
|
__metadata("design:paramtypes", [spaces_service_1.SpacesService,
|
|
339
341
|
devices_service_1.DevicesService,
|
|
340
|
-
platform_registry_service_1.PlatformRegistryService
|
|
342
|
+
platform_registry_service_1.PlatformRegistryService,
|
|
343
|
+
property_command_dispatch_service_1.PropertyCommandDispatchService])
|
|
341
344
|
], SpaceUndoHistoryService);
|
|
342
345
|
//# sourceMappingURL=space-undo-history.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"space-undo-history.service.js","sourceRoot":"","sources":["../../../../src/plugins/spaces-home-control/services/space-undo-history.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA6D;AAE7D,8FAAwF;AACxF,kFAA+F;AAG/F,uFAAmF;AACnF,2GAAsG;AACtG,oFAAgF;AAChF,+EAA8E;AAoD9E,MAAM,cAAc,GAAsB;IACzC,kBAAkB,EAAE,CAAC;IACrB,UAAU,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI;CACzB,CAAC;AAiBK,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAUnC,YACkB,aAA4B,EAC5B,cAA8B,EAC9B,uBAAgD;QAFhD,kBAAa,GAAb,aAAa,CAAe;QAC5B,mBAAc,GAAd,cAAc,CAAgB;QAC9B,4BAAuB,GAAvB,uBAAuB,CAAyB;QAZjD,WAAM,GAAG,IAAA,gDAAqB,EAAC,qCAAkB,EAAE,yBAAyB,CAAC,CAAC;QAC9E,WAAM,GAAsB,cAAc,CAAC;QAG3C,eAAU,GAAG,IAAI,GAAG,EAAuB,CAAC;QAGrD,iBAAY,GAA0B,IAAI,CAAC;QAQlD,IAAI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GAAG,YAAY,CAAC,MAAM,CAAC;gBAEnD,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;oBAC/B,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;gBACjC,CAAC;qBAAM,CAAC;oBACP,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;gBAC5C,CAAC;YACF,CAAC;QACF,CAAC;QAED,IAAI,YAAY,GAAG,CAAC,EAAE,CAAC;QAEvB,CAAC;IACF,CAAC;IAKO,UAAU;QACjB,OAAO,QAAQ,IAAI,CAAC,GAAG,EAAE,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC;IACxE,CAAC;CACD,CAAA;AA1gBY,0DAAuB;kCAAvB,uBAAuB;IADnC,IAAA,mBAAU,GAAE;qCAYqB,8BAAa;QACZ,gCAAc;QACL,mDAAuB;GAbtD,uBAAuB,CA0gBnC"}
|
|
1
|
+
{"version":3,"file":"space-undo-history.service.js","sourceRoot":"","sources":["../../../../src/plugins/spaces-home-control/services/space-undo-history.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA6D;AAE7D,8FAAwF;AACxF,kFAA+F;AAG/F,uFAAmF;AACnF,2GAAsG;AACtG,2HAAqH;AACrH,oFAAgF;AAChF,+EAA8E;AAoD9E,MAAM,cAAc,GAAsB;IACzC,kBAAkB,EAAE,CAAC;IACrB,UAAU,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI;CACzB,CAAC;AAiBK,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAUnC,YACkB,aAA4B,EAC5B,cAA8B,EAC9B,uBAAgD,EAChD,8BAA8D;QAH9D,kBAAa,GAAb,aAAa,CAAe;QAC5B,mBAAc,GAAd,cAAc,CAAgB;QAC9B,4BAAuB,GAAvB,uBAAuB,CAA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O,EAAE,KAAK,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC;YAE1D,MAAM,YAAY,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;YAErE,IAAI,YAAY,CAAC,MAAM,KAAK,KAAK,CAAC,MAAM,EAAE,CAAC;gBAC1C,YAAY,IAAI,KAAK,CAAC,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC;gBAEnD,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;oBAC/B,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;gBACjC,CAAC;qBAAM,CAAC;oBACP,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;gBAC5C,CAAC;YACF,CAAC;QACF,CAAC;QAED,IAAI,YAAY,GAAG,CAAC,EAAE,CAAC;QAEvB,CAAC;IACF,CAAC;IAKO,UAAU;QACjB,OAAO,QAAQ,IAAI,CAAC,GAAG,EAAE,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC;IACxE,CAAC;CACD,CAAA;AA3gBY,0DAAuB;kCAAvB,uBAAuB;IADnC,IAAA,mBAAU,GAAE;qCAYqB,8BAAa;QACZ,gCAAc;QACL,mDAAuB;QAChB,kEAA8B;GAdpE,uBAAuB,CA2gBnC"}
|
|
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.SpacesHomeControlPlugin = void 0;
|
|
13
13
|
const common_1 = require("@nestjs/common");
|
|
14
|
+
const config_1 = require("@nestjs/config");
|
|
14
15
|
const typeorm_1 = require("@nestjs/typeorm");
|
|
15
16
|
const plugins_type_mapper_service_1 = require("../../modules/config/services/plugins-type-mapper.service");
|
|
16
17
|
const devices_module_1 = require("../../modules/devices/devices.module");
|
|
@@ -75,6 +76,7 @@ const space_media_activity_binding_service_1 = require("./services/space-media-a
|
|
|
75
76
|
const space_media_activity_service_1 = require("./services/space-media-activity.service");
|
|
76
77
|
const space_sensor_role_service_1 = require("./services/space-sensor-role.service");
|
|
77
78
|
const space_sensor_state_service_1 = require("./services/space-sensor-state.service");
|
|
79
|
+
const space_state_read_service_1 = require("./services/space-state-read.service");
|
|
78
80
|
const space_suggestion_heartbeat_service_1 = require("./services/space-suggestion-heartbeat.service");
|
|
79
81
|
const space_suggestion_service_1 = require("./services/space-suggestion.service");
|
|
80
82
|
const space_undo_history_service_1 = require("./services/space-undo-history.service");
|
|
@@ -240,6 +242,7 @@ exports.SpacesHomeControlPlugin = SpacesHomeControlPlugin = __decorate([
|
|
|
240
242
|
(0, common_1.Global)(),
|
|
241
243
|
(0, common_1.Module)({
|
|
242
244
|
imports: [
|
|
245
|
+
config_1.ConfigModule,
|
|
243
246
|
typeorm_1.TypeOrmModule.forFeature([
|
|
244
247
|
space_entity_1.SpaceEntity,
|
|
245
248
|
room_space_entity_1.RoomSpaceEntity,
|
|
@@ -281,6 +284,7 @@ exports.SpacesHomeControlPlugin = SpacesHomeControlPlugin = __decorate([
|
|
|
281
284
|
space_covers_role_service_1.SpaceCoversRoleService,
|
|
282
285
|
space_lighting_role_service_1.SpaceLightingRoleService,
|
|
283
286
|
space_sensor_role_service_1.SpaceSensorRoleService,
|
|
287
|
+
space_state_read_service_1.SpaceStateReadService,
|
|
284
288
|
space_climate_state_service_1.SpaceClimateStateService,
|
|
285
289
|
space_covers_state_service_1.SpaceCoversStateService,
|
|
286
290
|
space_lighting_state_service_1.SpaceLightingStateService,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spaces-home-control.plugin.js","sourceRoot":"","sources":["../../../src/plugins/spaces-home-control/spaces-home-control.plugin.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA8D;AAC9D,6CAAgD;AAEhD,2GAAqG;AACrG,yEAAqE;AACrE,kFAA4F;AAC5F,4EAAwE;AACxE,yIAAiI;AACjI,kFAA8E;AAC9E,6FAAyF;AACzF,uHAAiH;AACjH,yEAAqE;AACrE,sEAA+D;AAC/D,6FAAwF;AACxF,gFAA2E;AAC3E,gFAA2E;AAC3E,6EAAyE;AACzE,mHAA4G;AAC5G,yGAAmG;AACnG,4EAAiF;AACjF,sEAAkE;AAClE,0FAA4E;AAC5E,kHAA6G;AAC7G,oHAA8G;AAC9G,yEAAqE;AACrE,gHAA0G;AAC1G,mEAA+D;AAC/D,+EAA2E;AAE3E,uFAAgF;AAChF,+DAAiF;AACjF,uFAAgF;AAChF,oEAA+D;AAC/D,sGAA+F;AAC/F,oFAA8E;AAC9E,kFAA4E;AAC5E,sFAAgF;AAChF,wGAAiG;AACjG,kFAA4E;AAC5E,oEAA+D;AAC/D,iFAA4E;AAC5E,2FAAqF;AACrF,6FAAuF;AACvF,yFAAmF;AACnF,yFAAoF;AACpF,wDAAqE;AACrE,8EAAyE;AACzE,4EAAuE;AACvE,8FAAwF;AACxF,gGAAyF;AACzF,wFAAkF;AAClF,gFAA2E;AAC3E,kFAA6E;AAC7E,sFAAgF;AAChF,wFAAkF;AAClF,8FAAwF;AACxF,oFAA8E;AAC9E,sFAAgF;AAChF,oFAA8E;AAC9E,0EAAqE;AACrE,wFAAkF;AAClF,0FAAoF;AACpF,wFAAkF;AAClF,0GAAmG;AACnG,0FAAoF;AACpF,oFAA8E;AAC9E,sFAAgF;AAChF,sGAAgG;AAChG,kFAA6E;AAC7E,sFAAgF;AAChF,4EAAuE;AACvE,mFAIyC;AACzC,+EAAgG;AAChG,iCAAiD;
|
|
1
|
+
{"version":3,"file":"spaces-home-control.plugin.js","sourceRoot":"","sources":["../../../src/plugins/spaces-home-control/spaces-home-control.plugin.ts"],"names":[],"mappings":";;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ACtB,yCAAkB;YAElB,oDAAuB;YACvB,kDAAsB;YACtB,sDAAwB;YACxB,kDAAsB;YACtB,gDAAqB;YAErB,sDAAwB;YACxB,oDAAuB;YACvB,wDAAyB;YACzB,oDAAuB;YAEvB,4DAA2B;YAC3B,iDAAsB;YACtB,uEAAgC;YAChC,wDAAyB;YAEzB,4DAA2B;YAC3B,sDAAwB;YACxB,oEAA+B;YAC/B,iDAAsB;YACtB,oDAAuB;YACvB,2CAAmB;SACnB;QACD,WAAW,EAAE,EAAE;QACf,OAAO,EAAE;YACR,sDAAwB;YACxB,8BAAuB;YACvB,6CAAoB;YACpB,2CAAmB;YACnB,+CAAqB;YACrB,kDAAsB;YACtB,yCAAkB;YAClB,oDAAuB;YACvB,kDAAsB;YACtB,sDAAwB;YACxB,kDAAsB;YACtB,sDAAwB;YACxB,oDAAuB;YACvB,wDAAyB;YACzB,oDAAuB;YACvB,4DAA2B;YAC3B,iDAAsB;YACtB,uEAAgC;YAChC,wDAAyB;YACzB,4DAA2B;YAC3B,sDAAwB;YACxB,oEAA+B;YAC/B,iDAAsB;YACtB,oDAAuB;SACvB;KACD,CAAC;qCAG+B,sDAAwB;QACrB,8DAA4B;QACtB,6DAA4B;QAChC,sCAAiB;QACb,8DAA4B;QACpB,gFAAoC;QACtC,6DAA2B;QACtC,oDAAuB;QACnB,6DAA2B;QACnC,2CAAmB;QACnB,2CAAmB;QACX,4DAA2B;QAC9B,sDAAwB;QACjB,oEAA+B;GAf/D,uBAAuB,CAyMnC"}
|
package/dist/spec/channels.d.ts
CHANGED
|
@@ -2584,7 +2584,7 @@ export declare const channelsSchema: {
|
|
|
2584
2584
|
readonly permissions: readonly ["ev"];
|
|
2585
2585
|
readonly data_type: "enum";
|
|
2586
2586
|
readonly unit: any;
|
|
2587
|
-
readonly format: readonly ["press", "long_press", "double_press"];
|
|
2587
|
+
readonly format: readonly ["press", "long_press", "double_press", "triple_press", "down", "up"];
|
|
2588
2588
|
};
|
|
2589
2589
|
readonly detected: {
|
|
2590
2590
|
readonly category: "detected";
|
|
@@ -2604,6 +2604,56 @@ export declare const channelsSchema: {
|
|
|
2604
2604
|
};
|
|
2605
2605
|
};
|
|
2606
2606
|
};
|
|
2607
|
+
readonly binary_input: {
|
|
2608
|
+
readonly category: "binary_input";
|
|
2609
|
+
readonly properties: {
|
|
2610
|
+
readonly state: {
|
|
2611
|
+
readonly category: "state";
|
|
2612
|
+
readonly required: true;
|
|
2613
|
+
readonly permissions: readonly ["ro"];
|
|
2614
|
+
readonly data_type: "bool";
|
|
2615
|
+
readonly unit: any;
|
|
2616
|
+
readonly format: any;
|
|
2617
|
+
};
|
|
2618
|
+
readonly active: {
|
|
2619
|
+
readonly category: "active";
|
|
2620
|
+
readonly required: false;
|
|
2621
|
+
readonly permissions: readonly ["ro"];
|
|
2622
|
+
readonly data_type: "bool";
|
|
2623
|
+
readonly unit: any;
|
|
2624
|
+
readonly format: any;
|
|
2625
|
+
};
|
|
2626
|
+
};
|
|
2627
|
+
};
|
|
2628
|
+
readonly analog_input: {
|
|
2629
|
+
readonly category: "analog_input";
|
|
2630
|
+
readonly properties: {
|
|
2631
|
+
readonly value: {
|
|
2632
|
+
readonly category: "value";
|
|
2633
|
+
readonly required: true;
|
|
2634
|
+
readonly permissions: readonly ["ro"];
|
|
2635
|
+
readonly data_type: "float";
|
|
2636
|
+
readonly unit: any;
|
|
2637
|
+
readonly format: any;
|
|
2638
|
+
};
|
|
2639
|
+
readonly unit: {
|
|
2640
|
+
readonly category: "unit";
|
|
2641
|
+
readonly required: false;
|
|
2642
|
+
readonly permissions: readonly ["ro"];
|
|
2643
|
+
readonly data_type: "string";
|
|
2644
|
+
readonly unit: any;
|
|
2645
|
+
readonly format: any;
|
|
2646
|
+
};
|
|
2647
|
+
readonly active: {
|
|
2648
|
+
readonly category: "active";
|
|
2649
|
+
readonly required: false;
|
|
2650
|
+
readonly permissions: readonly ["ro"];
|
|
2651
|
+
readonly data_type: "bool";
|
|
2652
|
+
readonly unit: any;
|
|
2653
|
+
readonly format: any;
|
|
2654
|
+
};
|
|
2655
|
+
};
|
|
2656
|
+
};
|
|
2607
2657
|
readonly indicator: {
|
|
2608
2658
|
readonly category: "indicator";
|
|
2609
2659
|
readonly properties: {
|
package/dist/spec/channels.js
CHANGED
|
@@ -3896,7 +3896,10 @@ exports.channelsSchema = {
|
|
|
3896
3896
|
"format": [
|
|
3897
3897
|
"press",
|
|
3898
3898
|
"long_press",
|
|
3899
|
-
"double_press"
|
|
3899
|
+
"double_press",
|
|
3900
|
+
"triple_press",
|
|
3901
|
+
"down",
|
|
3902
|
+
"up"
|
|
3900
3903
|
]
|
|
3901
3904
|
},
|
|
3902
3905
|
"detected": {
|
|
@@ -3921,6 +3924,66 @@ exports.channelsSchema = {
|
|
|
3921
3924
|
}
|
|
3922
3925
|
}
|
|
3923
3926
|
},
|
|
3927
|
+
"binary_input": {
|
|
3928
|
+
"category": "binary_input",
|
|
3929
|
+
"properties": {
|
|
3930
|
+
"state": {
|
|
3931
|
+
"category": "state",
|
|
3932
|
+
"required": true,
|
|
3933
|
+
"permissions": [
|
|
3934
|
+
"ro"
|
|
3935
|
+
],
|
|
3936
|
+
"data_type": "bool",
|
|
3937
|
+
"unit": null,
|
|
3938
|
+
"format": null
|
|
3939
|
+
},
|
|
3940
|
+
"active": {
|
|
3941
|
+
"category": "active",
|
|
3942
|
+
"required": false,
|
|
3943
|
+
"permissions": [
|
|
3944
|
+
"ro"
|
|
3945
|
+
],
|
|
3946
|
+
"data_type": "bool",
|
|
3947
|
+
"unit": null,
|
|
3948
|
+
"format": null
|
|
3949
|
+
}
|
|
3950
|
+
}
|
|
3951
|
+
},
|
|
3952
|
+
"analog_input": {
|
|
3953
|
+
"category": "analog_input",
|
|
3954
|
+
"properties": {
|
|
3955
|
+
"value": {
|
|
3956
|
+
"category": "value",
|
|
3957
|
+
"required": true,
|
|
3958
|
+
"permissions": [
|
|
3959
|
+
"ro"
|
|
3960
|
+
],
|
|
3961
|
+
"data_type": "float",
|
|
3962
|
+
"unit": null,
|
|
3963
|
+
"format": null
|
|
3964
|
+
},
|
|
3965
|
+
"unit": {
|
|
3966
|
+
"category": "unit",
|
|
3967
|
+
"required": false,
|
|
3968
|
+
"permissions": [
|
|
3969
|
+
"ro"
|
|
3970
|
+
],
|
|
3971
|
+
"data_type": "string",
|
|
3972
|
+
"unit": null,
|
|
3973
|
+
"format": null
|
|
3974
|
+
},
|
|
3975
|
+
"active": {
|
|
3976
|
+
"category": "active",
|
|
3977
|
+
"required": false,
|
|
3978
|
+
"permissions": [
|
|
3979
|
+
"ro"
|
|
3980
|
+
],
|
|
3981
|
+
"data_type": "bool",
|
|
3982
|
+
"unit": null,
|
|
3983
|
+
"format": null
|
|
3984
|
+
}
|
|
3985
|
+
}
|
|
3986
|
+
},
|
|
3924
3987
|
"indicator": {
|
|
3925
3988
|
"category": "indicator",
|
|
3926
3989
|
"properties": {
|