hoffmation-base 3.0.0-alpha.8 → 3.0.0-alpha.81
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/lib/index.d.ts +5 -1
- package/lib/index.js +28 -25
- package/lib/liquid-pid.d.ts +2 -5
- package/lib/liquid-pid.js +3 -5
- package/lib/models/action/baseAction.d.ts +4 -0
- package/lib/models/action/baseAction.js +10 -0
- package/lib/models/action/batteryLevelChangeAction.d.ts +13 -0
- package/lib/models/action/batteryLevelChangeAction.js +14 -0
- package/lib/models/action/humiditySensorChangeAction.d.ts +16 -0
- package/lib/models/action/humiditySensorChangeAction.js +15 -0
- package/lib/models/action/index.d.ts +9 -0
- package/lib/models/action/index.js +29 -0
- package/lib/models/action/motionSensorAction.d.ts +16 -0
- package/lib/models/action/motionSensorAction.js +15 -0
- package/lib/models/action/presenceGroupAnyMovementAction.d.ts +7 -0
- package/lib/models/action/presenceGroupAnyMovementAction.js +13 -0
- package/lib/models/action/presenceGroupFirstEnterAction.d.ts +7 -0
- package/lib/models/action/presenceGroupFirstEnterAction.js +13 -0
- package/lib/models/action/presenceGroupLastLeftAction.d.ts +7 -0
- package/lib/models/action/presenceGroupLastLeftAction.js +13 -0
- package/lib/models/action/shutterPositionChangedAction.d.ts +13 -0
- package/lib/models/action/shutterPositionChangedAction.js +15 -0
- package/lib/models/action/temperatureSensorChangeAction.d.ts +16 -0
- package/lib/models/action/temperatureSensorChangeAction.js +15 -0
- package/lib/models/base64Image.d.ts +0 -1
- package/lib/models/blockAutomaticSettings.d.ts +23 -0
- package/lib/models/blockAutomaticSettings.js +19 -0
- package/lib/models/command/ShutterSetLevelCommand.d.ts +9 -1
- package/lib/models/command/ShutterSetLevelCommand.js +9 -1
- package/lib/models/command/WindowRestoreDesiredPositionCommand.d.ts +7 -1
- package/lib/models/command/WindowRestoreDesiredPositionCommand.js +7 -1
- package/lib/models/command/WindowSetDesiredPositionCommand.d.ts +11 -2
- package/lib/models/command/WindowSetDesiredPositionCommand.js +11 -2
- package/lib/models/command/WindowSetRolloByWeatherStatusCommand.d.ts +7 -1
- package/lib/models/command/WindowSetRolloByWeatherStatusCommand.js +7 -1
- package/lib/models/command/actuatorSetStateCommand.d.ts +18 -3
- package/lib/models/command/actuatorSetStateCommand.js +15 -6
- package/lib/models/command/actuatorToggleCommand.d.ts +7 -2
- package/lib/models/command/actuatorToggleCommand.js +7 -4
- package/lib/models/command/actuatorWriteStateToDeviceCommand.d.ts +8 -1
- package/lib/models/command/actuatorWriteStateToDeviceCommand.js +12 -1
- package/lib/models/command/baseCommand.d.ts +23 -2
- package/lib/models/command/baseCommand.js +41 -1
- package/lib/models/command/blockAutomaticCommand.d.ts +32 -0
- package/lib/models/command/blockAutomaticCommand.js +40 -0
- package/lib/models/command/blockAutomaticLiftBlockCommand.d.ts +18 -0
- package/lib/models/command/blockAutomaticLiftBlockCommand.js +23 -0
- package/lib/models/command/blockAutomaticUntilCommand.d.ts +27 -0
- package/lib/models/command/blockAutomaticUntilCommand.js +32 -0
- package/lib/models/command/commandSource.d.ts +19 -0
- package/lib/models/command/commandSource.js +20 -0
- package/lib/models/command/commandType.d.ts +11 -0
- package/lib/models/command/commandType.js +11 -0
- package/lib/models/command/dimmerSetLightCommand.d.ts +13 -8
- package/lib/models/command/dimmerSetLightCommand.js +20 -14
- package/lib/models/command/floorSetAllShuttersCommand.d.ts +6 -5
- package/lib/models/command/floorSetAllShuttersCommand.js +6 -5
- package/lib/models/command/index.d.ts +3 -0
- package/lib/models/command/index.js +7 -1
- package/lib/models/command/lampSetLightCommand.d.ts +13 -2
- package/lib/models/command/lampSetLightCommand.js +15 -4
- package/lib/models/command/lampSetTimeBasedCommand.d.ts +15 -8
- package/lib/models/command/lampSetTimeBasedCommand.js +9 -11
- package/lib/models/command/lampToggleLightCommand.d.ts +7 -6
- package/lib/models/command/lampToggleLightCommand.js +7 -6
- package/lib/models/command/ledSetLightCommand.d.ts +21 -11
- package/lib/models/command/ledSetLightCommand.js +27 -17
- package/lib/models/command/lightGroupSwitchTimeConditionalCommand.d.ts +8 -1
- package/lib/models/command/lightGroupSwitchTimeConditionalCommand.js +8 -1
- package/lib/models/command/restoreTargetAutomaticValueCommand.d.ts +7 -2
- package/lib/models/command/restoreTargetAutomaticValueCommand.js +7 -4
- package/lib/models/command/roomRestoreLightCommand.d.ts +7 -1
- package/lib/models/command/roomRestoreLightCommand.js +7 -1
- package/lib/models/command/roomRestoreShutterPositionCommand.d.ts +8 -1
- package/lib/models/command/roomRestoreShutterPositionCommand.js +8 -1
- package/lib/models/command/roomSetLightTimeBasedCommand.d.ts +5 -4
- package/lib/models/command/roomSetLightTimeBasedCommand.js +5 -4
- package/lib/models/command/shutterSunriseUpCommand.d.ts +7 -1
- package/lib/models/command/shutterSunriseUpCommand.js +7 -1
- package/lib/models/command/shutterSunsetDownCommand.d.ts +7 -1
- package/lib/models/command/shutterSunsetDownCommand.js +7 -1
- package/lib/models/command/wledSetLightCommand.d.ts +16 -2
- package/lib/models/command/wledSetLightCommand.js +23 -7
- package/lib/models/connectionCallbacks.d.ts +4 -4
- package/lib/models/connectionCallbacks.js +1 -0
- package/lib/models/deviceConfig.d.ts +3 -3
- package/lib/models/deviceSettings/acSettings.d.ts +23 -5
- package/lib/models/deviceSettings/acSettings.js +28 -8
- package/lib/models/deviceSettings/actuatorSettings.d.ts +13 -4
- package/lib/models/deviceSettings/actuatorSettings.js +19 -9
- package/lib/models/deviceSettings/cameraSettings.d.ts +12 -0
- package/lib/models/deviceSettings/cameraSettings.js +12 -0
- package/lib/models/deviceSettings/dachsSettings.d.ts +23 -0
- package/lib/models/deviceSettings/dachsSettings.js +29 -1
- package/lib/models/deviceSettings/deviceSettings.d.ts +10 -0
- package/lib/models/deviceSettings/deviceSettings.js +16 -0
- package/lib/models/deviceSettings/dimmerSettings.d.ts +20 -0
- package/lib/models/deviceSettings/dimmerSettings.js +20 -0
- package/lib/models/deviceSettings/garageDoorOpenerSettings.d.ts +0 -1
- package/lib/models/deviceSettings/garageDoorOpenerSettings.js +0 -1
- package/lib/models/deviceSettings/handleSettings.d.ts +9 -0
- package/lib/models/deviceSettings/handleSettings.js +9 -0
- package/lib/models/deviceSettings/heaterSettings.d.ts +21 -9
- package/lib/models/deviceSettings/heaterSettings.js +21 -9
- package/lib/models/deviceSettings/ledSettings.d.ts +66 -0
- package/lib/models/deviceSettings/ledSettings.js +76 -18
- package/lib/models/deviceSettings/motionSensorSettings.d.ts +5 -1
- package/lib/models/deviceSettings/motionSensorSettings.js +5 -1
- package/lib/models/deviceSettings/sceneSettings.d.ts +4 -0
- package/lib/models/deviceSettings/shutterSettings.d.ts +11 -3
- package/lib/models/deviceSettings/shutterSettings.js +11 -3
- package/lib/models/deviceSettings/sonosDeviceSettings.d.ts +4 -0
- package/lib/models/deviceSettings/sonosDeviceSettings.js +4 -0
- package/lib/models/deviceSettings/tvSettings.d.ts +4 -0
- package/lib/models/deviceSettings/victronDeviceSettings.d.ts +34 -0
- package/lib/models/deviceSettings/victronDeviceSettings.js +34 -0
- package/lib/models/deviceSettings/wledSettings.d.ts +48 -0
- package/lib/models/deviceSettings/wledSettings.js +37 -13
- package/lib/models/groupSettings/heatGroupSettings.d.ts +12 -1
- package/lib/models/groupSettings/heatGroupSettings.js +12 -1
- package/lib/models/iIdHolder.d.ts +18 -0
- package/lib/models/index.d.ts +2 -1
- package/lib/models/index.js +4 -1
- package/lib/models/objectSettings.d.ts +5 -2
- package/lib/models/objectSettings.js +2 -2
- package/lib/models/persistence/EnergyCalculation.d.ts +27 -0
- package/lib/models/persistence/EnergyCalculation.js +30 -4
- package/lib/models/persistence/index.d.ts +0 -2
- package/lib/models/persistence/index.js +0 -2
- package/lib/models/rooms/RoomBase.d.ts +12 -1
- package/lib/models/rooms/RoomBase.js +17 -8
- package/lib/models/rooms/RoomSettings/RoomInitializationSettings.d.ts +2 -1
- package/lib/models/rooms/RoomSettings/RoomInitializationSettings.js +2 -2
- package/lib/models/rooms/RoomSettings/RoomSettingsController.d.ts +10 -1
- package/lib/models/rooms/RoomSettings/RoomSettingsController.js +2 -2
- package/lib/models/rooms/RoomSettings/iRoomDefaultSettings.d.ts +53 -3
- package/lib/models/rooms/RoomSettings/iRoomInitializationSettings.d.ts +10 -1
- package/lib/models/rooms/RoomSettings/roomDeviceAddingSettings.d.ts +4 -1
- package/lib/models/rooms/RoomSettings/roomDeviceAddingSettings.js +3 -0
- package/lib/models/rooms/RoomSettings/roomSettings.d.ts +55 -0
- package/lib/models/rooms/RoomSettings/roomSettings.js +55 -0
- package/lib/models/rooms/iRoomBase.d.ts +39 -0
- package/lib/models/rooms/iRoomImportEnforcer.d.ts +8 -0
- package/lib/models/timeCallback.d.ts +7 -0
- package/lib/models/timeCallback.js +16 -6
- package/lib/server/config/heatingMode.d.ts +2 -1
- package/lib/server/config/heatingMode.js +2 -1
- package/lib/server/config/iAsusConfig.d.ts +15 -0
- package/lib/server/config/iBlockAutomaticHandlerDefaults.d.ts +23 -0
- package/lib/server/config/iBlueIrisSettings.d.ts +14 -0
- package/lib/server/config/iBluetoothTrackingSettings.d.ts +9 -0
- package/lib/server/config/iConfig.d.ts +94 -6
- package/lib/server/config/iDachsSettings.d.ts +16 -0
- package/lib/server/config/iDaikinSettings.d.ts +17 -0
- package/lib/server/config/iEnergyManagerSettings.d.ts +13 -0
- package/lib/server/config/iEspresenseSettings.d.ts +10 -0
- package/lib/server/config/iGoveeSettings.d.ts +9 -0
- package/lib/server/config/iGoveeSettings.js +2 -0
- package/lib/server/config/iHeaterSettings.d.ts +8 -0
- package/lib/server/config/iIobrokerSettigns.d.ts +8 -0
- package/lib/server/config/iLogSettings.d.ts +40 -1
- package/lib/server/config/iMp3Settings.d.ts +10 -0
- package/lib/server/config/iMuellSettings.d.ts +7 -0
- package/lib/server/config/iNewsSettings.d.ts +13 -0
- package/lib/server/config/iPersistenceSettings.d.ts +10 -0
- package/lib/server/config/iPollySettings.d.ts +22 -0
- package/lib/server/config/iRestSettings.d.ts +10 -0
- package/lib/server/config/iSonosSettings.d.ts +14 -0
- package/lib/server/config/iTelegramSettings.d.ts +17 -0
- package/lib/server/config/iTibberSettings.d.ts +10 -0
- package/lib/server/config/iTimePair.d.ts +9 -0
- package/lib/server/config/iTimeSettings.d.ts +9 -0
- package/lib/server/config/iTranslationSettings.d.ts +10 -0
- package/lib/server/config/iUnifiConnectionOptions.d.ts +31 -0
- package/lib/server/config/iUnifiSettings.d.ts +8 -0
- package/lib/server/config/iVictronSettings.d.ts +14 -0
- package/lib/server/config/iWeatherSettings.d.ts +13 -0
- package/lib/server/config/index.d.ts +2 -0
- package/lib/server/devices/DeviceCapability.d.ts +1 -0
- package/lib/server/devices/DeviceCapability.js +1 -0
- package/lib/server/devices/DeviceInfo.d.ts +9 -0
- package/lib/server/devices/DeviceInfo.js +6 -0
- package/lib/server/devices/Griffe.js +1 -2
- package/lib/server/devices/Heizgruppen.js +2 -2
- package/lib/server/devices/IoBrokerBaseDevice.d.ts +34 -18
- package/lib/server/devices/IoBrokerBaseDevice.js +37 -21
- package/lib/server/devices/IoBrokerDeviceInfo.d.ts +8 -6
- package/lib/server/devices/IoBrokerDeviceInfo.js +50 -46
- package/lib/server/devices/baseDeviceInterfaces/iAcDevice.d.ts +41 -3
- package/lib/server/devices/baseDeviceInterfaces/iActuator.d.ts +18 -0
- package/lib/server/devices/baseDeviceInterfaces/iBaseDevice.d.ts +26 -1
- package/lib/server/devices/baseDeviceInterfaces/iBatteryDevice.d.ts +21 -4
- package/lib/server/devices/baseDeviceInterfaces/iBluetoothDetector.d.ts +15 -7
- package/lib/server/devices/baseDeviceInterfaces/iButtonSwitch.d.ts +42 -0
- package/lib/server/devices/baseDeviceInterfaces/iCameraDevice.d.ts +46 -3
- package/lib/server/devices/baseDeviceInterfaces/iDimmableLamp.d.ts +17 -2
- package/lib/server/devices/baseDeviceInterfaces/iEnergyManager.d.ts +36 -2
- package/lib/server/devices/baseDeviceInterfaces/iExcessEnergyConsumer.d.ts +30 -2
- package/lib/server/devices/baseDeviceInterfaces/iGarageDoorOpener.d.ts +21 -0
- package/lib/server/devices/baseDeviceInterfaces/iHandleSensor.d.ts +24 -0
- package/lib/server/devices/baseDeviceInterfaces/iHeater.d.ts +40 -5
- package/lib/server/devices/baseDeviceInterfaces/iHumiditySensor.d.ts +21 -2
- package/lib/server/devices/baseDeviceInterfaces/iIlluminationSensor.d.ts +11 -0
- package/lib/server/devices/baseDeviceInterfaces/iLamp.d.ts +7 -2
- package/lib/server/devices/baseDeviceInterfaces/iLedRgbCct.d.ts +20 -0
- package/lib/server/devices/baseDeviceInterfaces/iLoadMeter.d.ts +5 -0
- package/lib/server/devices/baseDeviceInterfaces/iMagnetSensor.d.ts +31 -0
- package/lib/server/devices/baseDeviceInterfaces/iMagnetSensor.js +2 -0
- package/lib/server/devices/baseDeviceInterfaces/iMotionSensor.d.ts +23 -3
- package/lib/server/devices/baseDeviceInterfaces/iRoomDevice.d.ts +6 -0
- package/lib/server/devices/baseDeviceInterfaces/iScene.d.ts +31 -2
- package/lib/server/devices/baseDeviceInterfaces/iShutter.d.ts +25 -1
- package/lib/server/devices/baseDeviceInterfaces/iSmokeDetectorDevice.d.ts +12 -0
- package/lib/server/devices/baseDeviceInterfaces/iSpeaker.d.ts +30 -0
- package/lib/server/devices/baseDeviceInterfaces/iTemperatureSensor.d.ts +32 -3
- package/lib/server/devices/baseDeviceInterfaces/iTemporaryDisableAutomatic.d.ts +13 -0
- package/lib/server/devices/baseDeviceInterfaces/iTvDevice.d.ts +20 -0
- package/lib/server/devices/baseDeviceInterfaces/iVibrationSensor.d.ts +24 -5
- package/lib/server/devices/baseDeviceInterfaces/index.d.ts +1 -0
- package/lib/server/devices/blueIris/cameraDevice.d.ts +49 -34
- package/lib/server/devices/blueIris/cameraDevice.js +75 -75
- package/lib/server/devices/button/button.d.ts +0 -1
- package/lib/server/devices/button/button.js +0 -4
- package/lib/server/devices/button/buttonCallback.d.ts +5 -0
- package/lib/server/devices/button/buttonCallback.js +10 -0
- package/lib/server/devices/button/buttonCapabilities.d.ts +12 -0
- package/lib/server/devices/button/buttonCapabilities.js +12 -0
- package/lib/server/devices/button/index.d.ts +1 -0
- package/lib/server/devices/button/index.js +3 -0
- package/lib/server/devices/dachs/dachs.d.ts +46 -11
- package/lib/server/devices/dachs/dachs.js +113 -23
- package/lib/server/devices/dachs/dachsTemperatureSensor.d.ts +22 -4
- package/lib/server/devices/dachs/dachsTemperatureSensor.js +23 -5
- package/lib/server/devices/dachs/interfaces/DachsClientOptions.d.ts +30 -0
- package/lib/server/devices/dachs/interfaces/KeyListEntity.d.ts +0 -8
- package/lib/server/devices/dachs/interfaces/KeyListEntity.js +0 -8
- package/lib/server/devices/dachs/interfaces/dachsInfluxDataPoint.d.ts +12 -0
- package/lib/server/devices/dachs/interfaces/influxDbConnectionOptions.d.ts +21 -1
- package/lib/server/devices/dachs/lib/dachsHttpClient.d.ts +5 -2
- package/lib/server/devices/dachs/lib/dachsHttpClient.js +5 -4
- package/lib/server/devices/device-cluster.d.ts +4 -1
- package/lib/server/devices/device-cluster.js +9 -4
- package/lib/server/devices/deviceType.d.ts +5 -0
- package/lib/server/devices/deviceType.js +5 -0
- package/lib/server/devices/deviceUpdater.d.ts +0 -3
- package/lib/server/devices/deviceUpdater.js +26 -4
- package/lib/server/devices/devices.d.ts +53 -7
- package/lib/server/devices/devices.js +78 -17
- package/lib/server/devices/espresense/detectedBluetoothDevice.d.ts +13 -0
- package/lib/server/devices/espresense/detectedBluetoothDevice.js +14 -1
- package/lib/server/devices/espresense/espresenseDevice.d.ts +31 -1
- package/lib/server/devices/espresense/espresenseDevice.js +28 -4
- package/lib/server/devices/espresense/trackedDistanceData.d.ts +12 -0
- package/lib/server/devices/espresense/trackedDistanceData.js +3 -0
- package/lib/server/devices/espresense/trilateration.d.ts +7 -0
- package/lib/server/devices/espresense/trilateration.js +7 -0
- package/lib/server/devices/espresense/trilaterationBasePoint.d.ts +6 -0
- package/lib/server/devices/espresense/trilaterationBasePoint.js +3 -0
- package/lib/server/devices/espresense/trilaterationPoint.d.ts +1 -1
- package/lib/server/devices/espresense/trilaterationPoint.js +3 -1
- package/lib/server/devices/groups/Window.d.ts +14 -3
- package/lib/server/devices/groups/Window.js +28 -11
- package/lib/server/devices/groups/base-group.d.ts +4 -0
- package/lib/server/devices/groups/base-group.js +3 -0
- package/lib/server/devices/groups/heatGroup.d.ts +8 -6
- package/lib/server/devices/groups/heatGroup.js +11 -11
- package/lib/server/devices/groups/lightGroup.d.ts +10 -2
- package/lib/server/devices/groups/lightGroup.js +20 -39
- package/lib/server/devices/groups/presenceGroup.d.ts +17 -6
- package/lib/server/devices/groups/presenceGroup.js +73 -63
- package/lib/server/devices/groups/tasterGroup.js +6 -6
- package/lib/server/devices/groups/windowGroup.d.ts +16 -1
- package/lib/server/devices/groups/windowGroup.js +22 -7
- package/lib/server/devices/hmIPDevices/hmIpAccessPoint.d.ts +1 -0
- package/lib/server/devices/hmIPDevices/hmIpAccessPoint.js +1 -0
- package/lib/server/devices/hmIPDevices/hmIpBewegung.d.ts +9 -6
- package/lib/server/devices/hmIPDevices/hmIpBewegung.js +10 -11
- package/lib/server/devices/hmIPDevices/hmIpDevice.d.ts +1 -2
- package/lib/server/devices/hmIPDevices/hmIpDevice.js +2 -3
- package/lib/server/devices/hmIPDevices/hmIpGriff.d.ts +36 -5
- package/lib/server/devices/hmIPDevices/hmIpGriff.js +76 -33
- package/lib/server/devices/hmIPDevices/hmIpHeizgruppe.d.ts +25 -6
- package/lib/server/devices/hmIPDevices/hmIpHeizgruppe.js +27 -14
- package/lib/server/devices/hmIPDevices/hmIpHeizung.d.ts +13 -3
- package/lib/server/devices/hmIPDevices/hmIpHeizung.js +33 -12
- package/lib/server/devices/hmIPDevices/hmIpLampe.d.ts +7 -1
- package/lib/server/devices/hmIPDevices/hmIpLampe.js +11 -7
- package/lib/server/devices/hmIPDevices/hmIpPraezenz.d.ts +19 -9
- package/lib/server/devices/hmIPDevices/hmIpPraezenz.js +33 -11
- package/lib/server/devices/hmIPDevices/hmIpRoll.d.ts +4 -2
- package/lib/server/devices/hmIPDevices/hmIpRoll.js +25 -23
- package/lib/server/devices/hmIPDevices/hmIpTaster.d.ts +28 -4
- package/lib/server/devices/hmIPDevices/hmIpTaster.js +37 -8
- package/lib/server/devices/hmIPDevices/hmIpTherm.d.ts +11 -1
- package/lib/server/devices/hmIPDevices/hmIpTherm.js +26 -5
- package/lib/server/devices/hmIPDevices/hmIpTuer.d.ts +9 -1
- package/lib/server/devices/hmIPDevices/hmIpTuer.js +17 -4
- package/lib/server/devices/hmIPDevices/hmIpWippe.d.ts +27 -0
- package/lib/server/devices/hmIPDevices/hmIpWippe.js +3 -0
- package/lib/server/devices/iDeviceUpdater.d.ts +14 -0
- package/lib/server/devices/index.d.ts +8 -2
- package/lib/server/devices/index.js +11 -2
- package/lib/server/devices/jsObject/jsObjectEnergyManager.d.ts +5 -1
- package/lib/server/devices/jsObject/jsObjectEnergyManager.js +9 -3
- package/lib/server/devices/nameAmountValuePair.d.ts +5 -0
- package/lib/server/devices/nameAmountValuePair.js +10 -0
- package/lib/server/devices/scene/room-scene.d.ts +23 -7
- package/lib/server/devices/scene/room-scene.js +18 -4
- package/lib/server/devices/sharedFunctions/lampUtils.d.ts +11 -2
- package/lib/server/devices/sharedFunctions/lampUtils.js +79 -25
- package/lib/server/devices/shelly/index.d.ts +1 -0
- package/lib/server/devices/shelly/index.js +3 -1
- package/lib/server/devices/shelly/shellyActuator.d.ts +33 -0
- package/lib/server/devices/shelly/shellyActuator.js +84 -0
- package/lib/server/devices/shelly/shellyDevice.d.ts +2 -1
- package/lib/server/devices/shelly/shellyDevice.js +2 -1
- package/lib/server/devices/shelly/shellyTrv.d.ts +37 -18
- package/lib/server/devices/shelly/shellyTrv.js +66 -45
- package/lib/server/devices/smartGarden/index.d.ts +6 -0
- package/lib/server/devices/smartGarden/index.js +22 -0
- package/lib/server/devices/smartGarden/smartGardenDevice.d.ts +33 -0
- package/lib/server/devices/smartGarden/smartGardenDevice.js +98 -0
- package/lib/server/devices/smartGarden/smartGardenDeviceRegistrationInfo.d.ts +9 -0
- package/lib/server/devices/smartGarden/smartGardenDeviceRegistrationInfo.js +13 -0
- package/lib/server/devices/smartGarden/smartGardenMower.d.ts +35 -0
- package/lib/server/devices/smartGarden/smartGardenMower.js +107 -0
- package/lib/server/devices/smartGarden/smartGardenSensor.d.ts +42 -0
- package/lib/server/devices/smartGarden/smartGardenSensor.js +119 -0
- package/lib/server/devices/smartGarden/smartGardenService.d.ts +7 -0
- package/lib/server/devices/smartGarden/smartGardenService.js +52 -0
- package/lib/server/devices/smartGarden/smartGardenValve.d.ts +36 -0
- package/lib/server/devices/smartGarden/smartGardenValve.js +105 -0
- package/lib/server/devices/tuya/tuyaDevice.d.ts +2 -1
- package/lib/server/devices/tuya/tuyaDevice.js +2 -1
- package/lib/server/devices/tuya/tuyaGarageOpener.d.ts +3 -0
- package/lib/server/devices/tuya/tuyaGarageOpener.js +3 -0
- package/lib/server/devices/tv/samsungTv.d.ts +1 -0
- package/lib/server/devices/tv/samsungTv.js +1 -0
- package/lib/server/devices/tv/tvDevice.d.ts +7 -1
- package/lib/server/devices/tv/tvDevice.js +4 -3
- package/lib/server/devices/velux/index.d.ts +4 -0
- package/lib/server/devices/velux/index.js +11 -0
- package/lib/server/devices/velux/veluxDevice.d.ts +13 -0
- package/lib/server/devices/velux/veluxDevice.js +43 -0
- package/lib/server/devices/velux/veluxDeviceRegistrationInfo.d.ts +9 -0
- package/lib/server/devices/velux/veluxDeviceRegistrationInfo.js +13 -0
- package/lib/server/devices/velux/veluxService.d.ts +7 -0
- package/lib/server/devices/velux/veluxService.js +44 -0
- package/lib/server/devices/velux/veluxShutter.d.ts +27 -0
- package/lib/server/devices/velux/veluxShutter.js +122 -0
- package/lib/server/devices/wledDevice.d.ts +15 -3
- package/lib/server/devices/wledDevice.js +42 -16
- package/lib/server/devices/zigbee/BaseDevices/ZigbeeActuator.d.ts +17 -4
- package/lib/server/devices/zigbee/BaseDevices/ZigbeeActuator.js +30 -15
- package/lib/server/devices/zigbee/BaseDevices/index.d.ts +1 -0
- package/lib/server/devices/zigbee/BaseDevices/index.js +3 -0
- package/lib/server/devices/zigbee/BaseDevices/zigbeeDevice.d.ts +4 -5
- package/lib/server/devices/zigbee/BaseDevices/zigbeeDevice.js +8 -17
- package/lib/server/devices/zigbee/BaseDevices/zigbeeDimmer.d.ts +10 -25
- package/lib/server/devices/zigbee/BaseDevices/zigbeeDimmer.js +25 -60
- package/lib/server/devices/zigbee/BaseDevices/zigbeeHeater.d.ts +34 -14
- package/lib/server/devices/zigbee/BaseDevices/zigbeeHeater.js +60 -34
- package/lib/server/devices/zigbee/BaseDevices/zigbeeLamp.d.ts +16 -0
- package/lib/server/devices/zigbee/BaseDevices/zigbeeLamp.js +35 -0
- package/lib/server/devices/zigbee/BaseDevices/zigbeeLedRGBCCT.d.ts +7 -7
- package/lib/server/devices/zigbee/BaseDevices/zigbeeLedRGBCCT.js +14 -14
- package/lib/server/devices/zigbee/BaseDevices/zigbeeMagnetContact.d.ts +26 -7
- package/lib/server/devices/zigbee/BaseDevices/zigbeeMagnetContact.js +52 -22
- package/lib/server/devices/zigbee/BaseDevices/zigbeeMotionSensor.d.ts +30 -15
- package/lib/server/devices/zigbee/BaseDevices/zigbeeMotionSensor.js +62 -38
- package/lib/server/devices/zigbee/BaseDevices/zigbeeShutter.d.ts +12 -4
- package/lib/server/devices/zigbee/BaseDevices/zigbeeShutter.js +28 -19
- package/lib/server/devices/zigbee/BaseDevices/zigbeeSwitch.d.ts +9 -1
- package/lib/server/devices/zigbee/BaseDevices/zigbeeSwitch.js +8 -1
- package/lib/server/devices/zigbee/zigbeeAqaraMagnetContact.d.ts +1 -0
- package/lib/server/devices/zigbee/zigbeeAqaraMagnetContact.js +1 -0
- package/lib/server/devices/zigbee/zigbeeAqaraOpple3Switch.d.ts +16 -0
- package/lib/server/devices/zigbee/zigbeeAqaraOpple3Switch.js +16 -0
- package/lib/server/devices/zigbee/zigbeeAquaraMotion.d.ts +6 -0
- package/lib/server/devices/zigbee/zigbeeAquaraMotion.js +7 -3
- package/lib/server/devices/zigbee/zigbeeAquaraVibra.d.ts +58 -11
- package/lib/server/devices/zigbee/zigbeeAquaraVibra.js +115 -27
- package/lib/server/devices/zigbee/zigbeeAquaraWater.d.ts +28 -9
- package/lib/server/devices/zigbee/zigbeeAquaraWater.js +54 -30
- package/lib/server/devices/zigbee/zigbeeBlitzShp.d.ts +15 -5
- package/lib/server/devices/zigbee/zigbeeBlitzShp.js +22 -14
- package/lib/server/devices/zigbee/zigbeeEuroHeater.d.ts +10 -4
- package/lib/server/devices/zigbee/zigbeeEuroHeater.js +16 -10
- package/lib/server/devices/zigbee/zigbeeHeimanSmoke.d.ts +34 -8
- package/lib/server/devices/zigbee/zigbeeHeimanSmoke.js +58 -20
- package/lib/server/devices/zigbee/zigbeeIkeaShutter.d.ts +1 -0
- package/lib/server/devices/zigbee/zigbeeIkeaShutter.js +2 -1
- package/lib/server/devices/zigbee/zigbeeIkeaSteckdose.d.ts +2 -0
- package/lib/server/devices/zigbee/zigbeeIkeaSteckdose.js +3 -1
- package/lib/server/devices/zigbee/zigbeeIlluActuator.d.ts +1 -2
- package/lib/server/devices/zigbee/zigbeeIlluActuator.js +2 -11
- package/lib/server/devices/zigbee/zigbeeIlluDimmer.d.ts +1 -1
- package/lib/server/devices/zigbee/zigbeeIlluDimmer.js +1 -1
- package/lib/server/devices/zigbee/zigbeeIlluLampe.d.ts +3 -10
- package/lib/server/devices/zigbee/zigbeeIlluLampe.js +3 -32
- package/lib/server/devices/zigbee/zigbeeIlluLedRGBCCT.d.ts +1 -1
- package/lib/server/devices/zigbee/zigbeeIlluLedRGBCCT.js +1 -1
- package/lib/server/devices/zigbee/zigbeeIlluShutter.d.ts +1 -0
- package/lib/server/devices/zigbee/zigbeeIlluShutter.js +5 -4
- package/lib/server/devices/zigbee/zigbeeInnr142C.d.ts +1 -1
- package/lib/server/devices/zigbee/zigbeeInnr142C.js +1 -1
- package/lib/server/devices/zigbee/zigbeeLinkindLedRgbCct.d.ts +1 -1
- package/lib/server/devices/zigbee/zigbeeLinkindLedRgbCct.js +1 -1
- package/lib/server/devices/zigbee/zigbeeOsramDimmer.d.ts +1 -1
- package/lib/server/devices/zigbee/zigbeeOsramDimmer.js +1 -1
- package/lib/server/devices/zigbee/zigbeeSMaBiTMagnetContact.d.ts +1 -0
- package/lib/server/devices/zigbee/zigbeeSMaBiTMagnetContact.js +1 -0
- package/lib/server/devices/zigbee/zigbeeSonoffMotion.d.ts +1 -0
- package/lib/server/devices/zigbee/zigbeeSonoffMotion.js +1 -0
- package/lib/server/devices/zigbee/zigbeeSonoffTemp.d.ts +34 -9
- package/lib/server/devices/zigbee/zigbeeSonoffTemp.js +50 -13
- package/lib/server/devices/zigbee/zigbeeTuyaValve.d.ts +10 -3
- package/lib/server/devices/zigbee/zigbeeTuyaValve.js +11 -6
- package/lib/server/devices/zigbee/zigbeeUbisysActuator.d.ts +9 -2
- package/lib/server/devices/zigbee/zigbeeUbisysActuator.js +10 -8
- package/lib/server/devices/zigbee/zigbeeUbisysLampe.d.ts +8 -9
- package/lib/server/devices/zigbee/zigbeeUbisysLampe.js +14 -24
- package/lib/server/devices/zigbee/zigbeeUbisysShutter.d.ts +1 -0
- package/lib/server/devices/zigbee/zigbeeUbisysShutter.js +2 -1
- package/lib/server/ioBroker/connection.d.ts +21 -22
- package/lib/server/ioBroker/connection.js +37 -28
- package/lib/server/ioBroker/ioBroker.main.d.ts +3 -0
- package/lib/server/ioBroker/ioBroker.main.js +12 -5
- package/lib/server/ioBroker/iobrokerConnectionLogging.d.ts +3 -0
- package/lib/server/ioBroker/iobrokerConnectionLogging.js +4 -0
- package/lib/server/ioBroker/socketIOConnectOptions.d.ts +2 -2
- package/lib/server/ioBroker/socketIOConnectOptions.js +1 -0
- package/lib/server/ioBroker/socketIOVisCommand.d.ts +5 -1
- package/lib/server/ioBroker/socketIOVisCommand.js +1 -0
- package/lib/server/services/ShutterService.js +7 -6
- package/lib/server/services/Sonos/OwnSonosDevices.d.ts +3 -0
- package/lib/server/services/Sonos/OwnSonosDevices.js +3 -0
- package/lib/server/services/Sonos/mp3-server.d.ts +3 -1
- package/lib/server/services/Sonos/mp3-server.js +3 -1
- package/lib/server/services/Sonos/own-sonos-device.d.ts +4 -1
- package/lib/server/services/Sonos/own-sonos-device.js +4 -4
- package/lib/server/services/Sonos/polly-service.d.ts +7 -1
- package/lib/server/services/Sonos/polly-service.js +10 -8
- package/lib/server/services/Sonos/sonos-service.d.ts +1 -5
- package/lib/server/services/Sonos/sonos-service.js +18 -17
- package/lib/server/services/Telegram/telegram-Commands.js +5 -5
- package/lib/server/services/Telegram/telegram-service.d.ts +2 -1
- package/lib/server/services/Telegram/telegram-service.js +8 -3
- package/lib/server/services/Translation/IRessourceObject.d.ts +13 -0
- package/lib/server/services/Translation/IRessourceObject.js +2 -0
- package/lib/server/services/Translation/iRessources.d.ts +1 -4
- package/lib/server/services/Translation/index.d.ts +1 -0
- package/lib/server/services/Translation/res.d.ts +34 -19
- package/lib/server/services/Translation/res.js +34 -19
- package/lib/server/services/ac/ac-device.d.ts +50 -9
- package/lib/server/services/ac/ac-device.js +115 -41
- package/lib/server/services/ac/daikin-service.js +4 -3
- package/lib/server/services/ac/own-ac-devices.d.ts +3 -0
- package/lib/server/services/ac/own-ac-devices.js +3 -0
- package/lib/server/services/ac/own-daikin-device.d.ts +25 -0
- package/lib/server/services/ac/own-daikin-device.js +40 -7
- package/lib/server/services/api/api-service.d.ts +118 -53
- package/lib/server/services/api/api-service.js +170 -80
- package/lib/server/services/blockAutomaticHandler.d.ts +13 -8
- package/lib/server/services/blockAutomaticHandler.js +34 -15
- package/lib/server/services/calendar/index.d.ts +1 -0
- package/lib/server/services/calendar/index.js +3 -0
- package/lib/server/services/calendar/muell-tonne.d.ts +11 -1
- package/lib/server/services/calendar/muell-tonne.js +10 -0
- package/lib/server/services/calendar/m/303/274ll-service.d.ts +23 -8
- package/lib/server/services/calendar/m/303/274ll-service.js +11 -5
- package/lib/server/services/calendar/name-date-pair.d.ts +5 -0
- package/lib/server/services/calendar/name-date-pair.js +10 -0
- package/lib/server/services/dbo/iPersist.d.ts +103 -0
- package/lib/server/services/dbo/postgreSqlPersist.d.ts +23 -0
- package/lib/server/services/dbo/postgreSqlPersist.js +28 -5
- package/lib/server/services/file-info.d.ts +5 -0
- package/lib/server/services/file-info.js +10 -0
- package/lib/server/services/govee/govee-device-data.d.ts +25 -0
- package/lib/server/services/govee/govee-device-data.js +2 -0
- package/lib/server/services/govee/govee-service.d.ts +7 -9
- package/lib/server/services/govee/govee-service.js +73 -48
- package/lib/server/services/govee/own-govee-device.d.ts +19 -17
- package/lib/server/services/govee/own-govee-device.js +58 -58
- package/lib/server/services/govee/own-govee-devices.d.ts +3 -0
- package/lib/server/services/govee/own-govee-devices.js +3 -0
- package/lib/server/services/https-service.d.ts +3 -2
- package/lib/server/services/https-service.js +4 -3
- package/lib/server/services/index.d.ts +1 -0
- package/lib/server/services/index.js +3 -0
- package/lib/server/services/log-service/index.d.ts +1 -0
- package/lib/server/services/log-service/index.js +3 -0
- package/lib/server/services/log-service/log-debug-type.d.ts +13 -0
- package/lib/server/services/log-service/log-debug-type.js +17 -0
- package/lib/server/services/log-service/log-filter-data.d.ts +21 -12
- package/lib/server/services/log-service/log-filter-data.js +6 -15
- package/lib/server/services/log-service/log-service.d.ts +17 -4
- package/lib/server/services/log-service/log-service.js +30 -17
- package/lib/server/services/news-service.d.ts +9 -7
- package/lib/server/services/news-service.js +14 -15
- package/lib/server/services/room-service/room-service.d.ts +20 -4
- package/lib/server/services/room-service/room-service.js +26 -10
- package/lib/server/services/settings-service.d.ts +6 -2
- package/lib/server/services/settings-service.js +3 -2
- package/lib/server/services/time-callback-service.js +1 -1
- package/lib/server/services/utils/RGB.d.ts +6 -0
- package/lib/server/services/utils/RGB.js +11 -0
- package/lib/server/services/utils/catchEmResult.d.ts +5 -0
- package/lib/server/services/utils/catchEmResult.js +10 -0
- package/lib/server/services/utils/energy-consumer-state-change.d.ts +6 -0
- package/lib/server/services/utils/energy-consumer-state-change.js +10 -0
- package/lib/server/services/utils/energy-manager-utils.d.ts +3 -14
- package/lib/server/services/utils/energy-manager-utils.js +2 -2
- package/lib/server/services/utils/iDisposeable.d.ts +6 -0
- package/lib/server/services/utils/index.d.ts +4 -1
- package/lib/server/services/utils/index.js +8 -1
- package/lib/server/services/utils/{ringstorage.d.ts → ringStorage.d.ts} +1 -1
- package/lib/server/services/utils/{ringstorage.js → ringStorage.js} +3 -3
- package/lib/server/services/utils/utils.d.ts +9 -14
- package/lib/server/services/victron/victron-device.d.ts +27 -10
- package/lib/server/services/victron/victron-device.js +94 -25
- package/lib/server/services/weather/index.d.ts +2 -0
- package/lib/server/services/weather/index.js +3 -0
- package/lib/server/services/weather/rain-next-minutes-info.d.ts +5 -0
- package/lib/server/services/weather/rain-next-minutes-info.js +10 -0
- package/lib/server/services/weather/weather-current.d.ts +0 -2
- package/lib/server/services/weather/weather-feelsLike.d.ts +15 -0
- package/lib/server/services/weather/weather-response.d.ts +16 -0
- package/lib/server/services/weather/weather-response.js +2 -0
- package/lib/server/services/weather/weather-service.d.ts +16 -18
- package/lib/server/services/weather/weather-service.js +37 -22
- package/lib/server/services/weather/weather-temp.d.ts +21 -0
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +27 -29
- package/lib/models/iTemperaturDataPoint.d.ts +0 -9
- package/lib/models/persistence/RoomDetailInfo.d.ts +0 -6
- package/lib/models/persistence/RoomDetailInfo.js +0 -11
- package/lib/models/persistence/temperaturDataPoint.d.ts +0 -10
- package/lib/models/persistence/temperaturDataPoint.js +0 -14
- /package/lib/{models/iTemperaturDataPoint.js → server/config/iBlockAutomaticHandlerDefaults.js} +0 -0
|
@@ -4,10 +4,19 @@ exports.WindowSetDesiredPositionCommand = void 0;
|
|
|
4
4
|
const baseCommand_1 = require("./baseCommand");
|
|
5
5
|
const commandType_1 = require("./commandType");
|
|
6
6
|
class WindowSetDesiredPositionCommand extends baseCommand_1.BaseCommand {
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Command to set the desired position of the shutter of a window
|
|
9
|
+
* @param source - The source of the command
|
|
10
|
+
* @param position - The desired position of the shutter (0 closed, 100 open)
|
|
11
|
+
* @param reason - You can provide a reason for clarification
|
|
12
|
+
* @param applyNewPosition - Whether this new position should be applied immediately
|
|
13
|
+
*/
|
|
14
|
+
constructor(source, position, reason = '', applyNewPosition = true) {
|
|
8
15
|
super(source, reason);
|
|
9
16
|
this.position = position;
|
|
10
|
-
this.
|
|
17
|
+
this.applyNewPosition = applyNewPosition;
|
|
18
|
+
/** @inheritDoc */
|
|
19
|
+
this.type = commandType_1.CommandType.WindowSetDesiredPositionCommand;
|
|
11
20
|
}
|
|
12
21
|
}
|
|
13
22
|
exports.WindowSetDesiredPositionCommand = WindowSetDesiredPositionCommand;
|
|
@@ -2,6 +2,12 @@ import { BaseCommand } from './baseCommand';
|
|
|
2
2
|
import { CommandSource } from './commandSource';
|
|
3
3
|
import { CommandType } from './commandType';
|
|
4
4
|
export declare class WindowSetRolloByWeatherStatusCommand extends BaseCommand {
|
|
5
|
-
|
|
5
|
+
/** @inheritDoc */
|
|
6
|
+
type: CommandType;
|
|
7
|
+
/**
|
|
8
|
+
* Command to set the desired position of the shutter of a window based on the weather status
|
|
9
|
+
* @param source - The source of the command
|
|
10
|
+
* @param reason - You can provide a reason for clarification
|
|
11
|
+
*/
|
|
6
12
|
constructor(source: CommandSource | BaseCommand, reason?: string);
|
|
7
13
|
}
|
|
@@ -4,9 +4,15 @@ exports.WindowSetRolloByWeatherStatusCommand = void 0;
|
|
|
4
4
|
const baseCommand_1 = require("./baseCommand");
|
|
5
5
|
const commandType_1 = require("./commandType");
|
|
6
6
|
class WindowSetRolloByWeatherStatusCommand extends baseCommand_1.BaseCommand {
|
|
7
|
+
/**
|
|
8
|
+
* Command to set the desired position of the shutter of a window based on the weather status
|
|
9
|
+
* @param source - The source of the command
|
|
10
|
+
* @param reason - You can provide a reason for clarification
|
|
11
|
+
*/
|
|
7
12
|
constructor(source, reason = '') {
|
|
8
13
|
super(source, reason);
|
|
9
|
-
|
|
14
|
+
/** @inheritDoc */
|
|
15
|
+
this.type = commandType_1.CommandType.WindowSetRolloByWeatherStatusCommand;
|
|
10
16
|
}
|
|
11
17
|
}
|
|
12
18
|
exports.WindowSetRolloByWeatherStatusCommand = WindowSetRolloByWeatherStatusCommand;
|
|
@@ -3,11 +3,26 @@ import { CommandSource } from './commandSource';
|
|
|
3
3
|
import { CommandType } from './commandType';
|
|
4
4
|
import { ActuatorToggleCommand } from './actuatorToggleCommand';
|
|
5
5
|
import { iActuator } from '../../server';
|
|
6
|
+
import { BlockAutomaticCommand } from './blockAutomaticCommand';
|
|
6
7
|
export declare class ActuatorSetStateCommand extends BaseCommand {
|
|
7
8
|
readonly on: boolean;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
/** @inheritDoc */
|
|
10
|
+
type: CommandType;
|
|
11
|
+
/**
|
|
12
|
+
* The command to disable automatic actions for a specific duration.
|
|
13
|
+
* Null = no automatic actions will be disabled.
|
|
14
|
+
* Undefined = use device or global default
|
|
15
|
+
*/
|
|
16
|
+
disableAutomaticCommand: BlockAutomaticCommand | null | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Command to set the state of an actuator
|
|
19
|
+
* @param source - The source of the command
|
|
20
|
+
* @param on - The new state of the actuator
|
|
21
|
+
* @param reason - You can provide a reason for clarification
|
|
22
|
+
* @param disableAutomatic - If provided, the device will remain in the desired state for the given disable action.
|
|
23
|
+
* If unset the default value in accordance to settings will be used
|
|
24
|
+
*/
|
|
25
|
+
constructor(source: CommandSource | BaseCommand, on: boolean, reason?: string, disableAutomatic?: BlockAutomaticCommand | null);
|
|
11
26
|
get logMessage(): string;
|
|
12
27
|
static byActuatorAndToggleCommand(device: iActuator, c: ActuatorToggleCommand): ActuatorSetStateCommand;
|
|
13
28
|
}
|
|
@@ -4,19 +4,28 @@ exports.ActuatorSetStateCommand = void 0;
|
|
|
4
4
|
const baseCommand_1 = require("./baseCommand");
|
|
5
5
|
const commandType_1 = require("./commandType");
|
|
6
6
|
class ActuatorSetStateCommand extends baseCommand_1.BaseCommand {
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Command to set the state of an actuator
|
|
9
|
+
* @param source - The source of the command
|
|
10
|
+
* @param on - The new state of the actuator
|
|
11
|
+
* @param reason - You can provide a reason for clarification
|
|
12
|
+
* @param disableAutomatic - If provided, the device will remain in the desired state for the given disable action.
|
|
13
|
+
* If unset the default value in accordance to settings will be used
|
|
14
|
+
*/
|
|
15
|
+
constructor(source, on, reason = '', disableAutomatic) {
|
|
8
16
|
super(source, reason);
|
|
9
17
|
this.on = on;
|
|
10
|
-
|
|
11
|
-
this.
|
|
18
|
+
/** @inheritDoc */
|
|
19
|
+
this.type = commandType_1.CommandType.ActuatorSetStateCommand;
|
|
20
|
+
this.disableAutomaticCommand = disableAutomatic;
|
|
12
21
|
}
|
|
13
22
|
get logMessage() {
|
|
14
|
-
|
|
23
|
+
var _a;
|
|
24
|
+
return `Actuator setState to ${this.on} with disableCommand ${(_a = this.disableAutomaticCommand) === null || _a === void 0 ? void 0 : _a.logMessage} for reason: ${this.reasonTrace}`;
|
|
15
25
|
}
|
|
16
26
|
static byActuatorAndToggleCommand(device, c) {
|
|
17
27
|
const newVal = device.queuedValue !== null ? !device.queuedValue : !device.actuatorOn;
|
|
18
|
-
|
|
19
|
-
return new ActuatorSetStateCommand(c, newVal, 'Due to ActuatorToggle', timeout);
|
|
28
|
+
return new ActuatorSetStateCommand(c, newVal, 'Due to ActuatorToggle', c.isForceAction ? undefined : null);
|
|
20
29
|
}
|
|
21
30
|
}
|
|
22
31
|
exports.ActuatorSetStateCommand = ActuatorSetStateCommand;
|
|
@@ -2,7 +2,12 @@ import { CommandType } from './commandType';
|
|
|
2
2
|
import { BaseCommand } from './baseCommand';
|
|
3
3
|
import { CommandSource } from './commandSource';
|
|
4
4
|
export declare class ActuatorToggleCommand extends BaseCommand {
|
|
5
|
-
|
|
5
|
+
/** @inheritDoc */
|
|
6
|
+
type: CommandType;
|
|
7
|
+
/**
|
|
8
|
+
* Command to toggle the state of an actuator
|
|
9
|
+
* @param source - The source of the command
|
|
10
|
+
* @param reason - You can provide a reason for clarification
|
|
11
|
+
*/
|
|
6
12
|
constructor(source: CommandSource | BaseCommand, reason?: string);
|
|
7
|
-
get logMessage(): string;
|
|
8
13
|
}
|
|
@@ -4,12 +4,15 @@ exports.ActuatorToggleCommand = void 0;
|
|
|
4
4
|
const commandType_1 = require("./commandType");
|
|
5
5
|
const baseCommand_1 = require("./baseCommand");
|
|
6
6
|
class ActuatorToggleCommand extends baseCommand_1.BaseCommand {
|
|
7
|
+
/**
|
|
8
|
+
* Command to toggle the state of an actuator
|
|
9
|
+
* @param source - The source of the command
|
|
10
|
+
* @param reason - You can provide a reason for clarification
|
|
11
|
+
*/
|
|
7
12
|
constructor(source, reason = '') {
|
|
8
13
|
super(source, reason);
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
get logMessage() {
|
|
12
|
-
return `Actuator toggle for reason: ${this.reasonTrace}`;
|
|
14
|
+
/** @inheritDoc */
|
|
15
|
+
this.type = commandType_1.CommandType.ActuatorToggleCommand;
|
|
13
16
|
}
|
|
14
17
|
}
|
|
15
18
|
exports.ActuatorToggleCommand = ActuatorToggleCommand;
|
|
@@ -3,7 +3,14 @@ import { CommandType } from './commandType';
|
|
|
3
3
|
import { CommandSource } from './commandSource';
|
|
4
4
|
export declare class ActuatorWriteStateToDeviceCommand extends BaseCommand {
|
|
5
5
|
readonly stateValue: boolean;
|
|
6
|
-
|
|
6
|
+
/** @inheritDoc */
|
|
7
|
+
type: CommandType;
|
|
8
|
+
/**
|
|
9
|
+
* Command to write the state of an actuator to the device
|
|
10
|
+
* @param source - The source of the command
|
|
11
|
+
* @param stateValue - The new state of the actuator
|
|
12
|
+
* @param reason - You can provide a reason for clarification
|
|
13
|
+
*/
|
|
7
14
|
constructor(source: CommandSource | BaseCommand, stateValue: boolean, reason?: string);
|
|
8
15
|
get logMessage(): string;
|
|
9
16
|
}
|
|
@@ -3,13 +3,24 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ActuatorWriteStateToDeviceCommand = void 0;
|
|
4
4
|
const baseCommand_1 = require("./baseCommand");
|
|
5
5
|
const commandType_1 = require("./commandType");
|
|
6
|
+
const actuatorSetStateCommand_1 = require("./actuatorSetStateCommand");
|
|
6
7
|
class ActuatorWriteStateToDeviceCommand extends baseCommand_1.BaseCommand {
|
|
8
|
+
/**
|
|
9
|
+
* Command to write the state of an actuator to the device
|
|
10
|
+
* @param source - The source of the command
|
|
11
|
+
* @param stateValue - The new state of the actuator
|
|
12
|
+
* @param reason - You can provide a reason for clarification
|
|
13
|
+
*/
|
|
7
14
|
constructor(source, stateValue, reason = '') {
|
|
8
15
|
super(source, reason);
|
|
9
16
|
this.stateValue = stateValue;
|
|
10
|
-
|
|
17
|
+
/** @inheritDoc */
|
|
18
|
+
this.type = commandType_1.CommandType.ActuatorWriteStateToDeviceCommand;
|
|
11
19
|
}
|
|
12
20
|
get logMessage() {
|
|
21
|
+
if (this.source instanceof actuatorSetStateCommand_1.ActuatorSetStateCommand) {
|
|
22
|
+
return `Actuator Write StateToDevice original Log-message: ${this.source.logMessage}`;
|
|
23
|
+
}
|
|
13
24
|
return `Actuator writeStateToDevice(${this.stateValue}) for reason: ${this.reasonTrace}`;
|
|
14
25
|
}
|
|
15
26
|
}
|
|
@@ -3,10 +3,31 @@ import { CommandType } from './commandType';
|
|
|
3
3
|
export declare abstract class BaseCommand {
|
|
4
4
|
readonly source: CommandSource | BaseCommand;
|
|
5
5
|
readonly reason: string;
|
|
6
|
+
/**
|
|
7
|
+
* The timestamp of the command being created
|
|
8
|
+
*/
|
|
6
9
|
readonly timestamp: Date;
|
|
7
|
-
|
|
8
|
-
|
|
10
|
+
/**
|
|
11
|
+
* The type of this command to be used for comparison.
|
|
12
|
+
*
|
|
13
|
+
* For checking if any command in the stack is of a specific type, use the {@link containsType} method.
|
|
14
|
+
*/
|
|
15
|
+
abstract type: CommandType;
|
|
16
|
+
/**
|
|
17
|
+
* If set, this will be used in regards to checking if this is a force/manual/automatic action.
|
|
18
|
+
* @type {CommandSource | undefined} The source of the command
|
|
19
|
+
*/
|
|
20
|
+
overrideCommandSource: CommandSource | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Base class for all commands
|
|
23
|
+
* @param source - The source of the command
|
|
24
|
+
* @param reason - You can provide a reason for clarification
|
|
25
|
+
*/
|
|
26
|
+
protected constructor(source?: CommandSource | BaseCommand, reason?: string);
|
|
27
|
+
get isAutomaticAction(): boolean;
|
|
9
28
|
get isForceAction(): boolean;
|
|
29
|
+
get isManual(): boolean;
|
|
10
30
|
get isInitial(): boolean;
|
|
11
31
|
get reasonTrace(): string;
|
|
32
|
+
containsType(type: CommandType): boolean;
|
|
12
33
|
}
|
|
@@ -3,29 +3,69 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.BaseCommand = void 0;
|
|
4
4
|
const commandSource_1 = require("./commandSource");
|
|
5
5
|
class BaseCommand {
|
|
6
|
+
/**
|
|
7
|
+
* Base class for all commands
|
|
8
|
+
* @param source - The source of the command
|
|
9
|
+
* @param reason - You can provide a reason for clarification
|
|
10
|
+
*/
|
|
6
11
|
constructor(source = commandSource_1.CommandSource.Unknown, reason = '') {
|
|
7
12
|
this.source = source;
|
|
8
13
|
this.reason = reason;
|
|
9
14
|
this.timestamp = new Date();
|
|
10
15
|
}
|
|
16
|
+
get isAutomaticAction() {
|
|
17
|
+
if (this.overrideCommandSource !== undefined) {
|
|
18
|
+
return this.overrideCommandSource === commandSource_1.CommandSource.Automatic;
|
|
19
|
+
}
|
|
20
|
+
if (this.source instanceof BaseCommand) {
|
|
21
|
+
return this.source.isAutomaticAction;
|
|
22
|
+
}
|
|
23
|
+
return this.source === commandSource_1.CommandSource.Automatic;
|
|
24
|
+
}
|
|
11
25
|
get isForceAction() {
|
|
26
|
+
if (this.overrideCommandSource !== undefined) {
|
|
27
|
+
return (this.overrideCommandSource === commandSource_1.CommandSource.Manual ||
|
|
28
|
+
this.overrideCommandSource === commandSource_1.CommandSource.API ||
|
|
29
|
+
this.overrideCommandSource === commandSource_1.CommandSource.Force);
|
|
30
|
+
}
|
|
12
31
|
if (this.source instanceof BaseCommand) {
|
|
13
32
|
return this.source.isForceAction;
|
|
14
33
|
}
|
|
15
34
|
return (this.source === commandSource_1.CommandSource.Manual || this.source === commandSource_1.CommandSource.API || this.source === commandSource_1.CommandSource.Force);
|
|
16
35
|
}
|
|
36
|
+
get isManual() {
|
|
37
|
+
if (this.overrideCommandSource !== undefined) {
|
|
38
|
+
return this.overrideCommandSource === commandSource_1.CommandSource.Manual || this.overrideCommandSource === commandSource_1.CommandSource.API;
|
|
39
|
+
}
|
|
40
|
+
if (this.source instanceof BaseCommand) {
|
|
41
|
+
return this.source.isManual;
|
|
42
|
+
}
|
|
43
|
+
return this.source === commandSource_1.CommandSource.Manual || this.source === commandSource_1.CommandSource.API;
|
|
44
|
+
}
|
|
17
45
|
get isInitial() {
|
|
46
|
+
if (this.overrideCommandSource !== undefined) {
|
|
47
|
+
return this.overrideCommandSource === commandSource_1.CommandSource.Initial;
|
|
48
|
+
}
|
|
18
49
|
if (this.source instanceof BaseCommand) {
|
|
19
50
|
return this.source.isInitial;
|
|
20
51
|
}
|
|
21
52
|
return this.source === commandSource_1.CommandSource.Initial;
|
|
22
53
|
}
|
|
23
54
|
get reasonTrace() {
|
|
24
|
-
const ownPart = this.reason !== '' ? `${this.
|
|
55
|
+
const ownPart = this.reason !== '' ? `${this.type}("${this.reason}")` : `${this.type}`;
|
|
25
56
|
if (typeof this.source === 'object') {
|
|
26
57
|
return `${this.source.reasonTrace} -> ${ownPart}`;
|
|
27
58
|
}
|
|
28
59
|
return `CommandType("${commandSource_1.CommandSource[this.source]}") stack => ${ownPart}`;
|
|
29
60
|
}
|
|
61
|
+
containsType(type) {
|
|
62
|
+
if (this.type === type) {
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
if (this.source instanceof BaseCommand) {
|
|
66
|
+
return this.source.containsType(type);
|
|
67
|
+
}
|
|
68
|
+
return false;
|
|
69
|
+
}
|
|
30
70
|
}
|
|
31
71
|
exports.BaseCommand = BaseCommand;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { CommandType } from './commandType';
|
|
2
|
+
import { CommandSource } from './commandSource';
|
|
3
|
+
import { CollisionSolving } from '../collisionSolving';
|
|
4
|
+
import { BaseCommand } from './baseCommand';
|
|
5
|
+
import { DeviceSettings } from '../deviceSettings';
|
|
6
|
+
export declare class BlockAutomaticCommand extends BaseCommand {
|
|
7
|
+
/** @inheritDoc */
|
|
8
|
+
type: CommandType;
|
|
9
|
+
/**
|
|
10
|
+
* Whether the device should revert to automatic afterward.
|
|
11
|
+
*/
|
|
12
|
+
readonly revertToAutomaticAtBlockLift: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* The duration in milliseconds for the automatic actions to be disabled.
|
|
15
|
+
*/
|
|
16
|
+
readonly durationMS: number;
|
|
17
|
+
/**
|
|
18
|
+
* The action to take if a block is already active.
|
|
19
|
+
*/
|
|
20
|
+
readonly onCollideAction: CollisionSolving;
|
|
21
|
+
/**
|
|
22
|
+
* Command to disable automatic actions for a specific duration.
|
|
23
|
+
* @param source - The source of the command.
|
|
24
|
+
* @param durationMS - The duration in milliseconds for the automatic actions to be disabled --> If unset the default value will be used {@link SettingsService.settings.blockAutomaticHandlerDefaults.blockAutomaticDurationMS}
|
|
25
|
+
* @param reason - You can provide an individual reason here for debugging purpose.
|
|
26
|
+
* @param onCollideAction - The action to take if a block is already active. --> Default: {@link SettingsService.settings.blockAutomaticHandlerDefaults.defaultCollisionSolving}
|
|
27
|
+
* @param revertToAutomaticAtBlockLift - Whether the device should revert to automatic afterward. --> Default: {@link SettingsService.settings.blockAutomaticHandlerDefaults.revertToAutomaticAtBlockLift}
|
|
28
|
+
*/
|
|
29
|
+
constructor(source: CommandSource | BaseCommand, durationMS?: number, reason?: string, onCollideAction?: CollisionSolving, revertToAutomaticAtBlockLift?: boolean);
|
|
30
|
+
get logMessage(): string;
|
|
31
|
+
static fromDeviceSettings(c: BaseCommand, deviceSettings: DeviceSettings): BlockAutomaticCommand | null;
|
|
32
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BlockAutomaticCommand = void 0;
|
|
4
|
+
const commandType_1 = require("./commandType");
|
|
5
|
+
const collisionSolving_1 = require("../collisionSolving");
|
|
6
|
+
const baseCommand_1 = require("./baseCommand");
|
|
7
|
+
const server_1 = require("../../server");
|
|
8
|
+
class BlockAutomaticCommand extends baseCommand_1.BaseCommand {
|
|
9
|
+
/**
|
|
10
|
+
* Command to disable automatic actions for a specific duration.
|
|
11
|
+
* @param source - The source of the command.
|
|
12
|
+
* @param durationMS - The duration in milliseconds for the automatic actions to be disabled --> If unset the default value will be used {@link SettingsService.settings.blockAutomaticHandlerDefaults.blockAutomaticDurationMS}
|
|
13
|
+
* @param reason - You can provide an individual reason here for debugging purpose.
|
|
14
|
+
* @param onCollideAction - The action to take if a block is already active. --> Default: {@link SettingsService.settings.blockAutomaticHandlerDefaults.defaultCollisionSolving}
|
|
15
|
+
* @param revertToAutomaticAtBlockLift - Whether the device should revert to automatic afterward. --> Default: {@link SettingsService.settings.blockAutomaticHandlerDefaults.revertToAutomaticAtBlockLift}
|
|
16
|
+
*/
|
|
17
|
+
constructor(source, durationMS, reason = '', onCollideAction, revertToAutomaticAtBlockLift) {
|
|
18
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
19
|
+
super(source, reason);
|
|
20
|
+
/** @inheritDoc */
|
|
21
|
+
this.type = commandType_1.CommandType.BlockAutomaticCommand;
|
|
22
|
+
this.durationMS =
|
|
23
|
+
(_c = durationMS !== null && durationMS !== void 0 ? durationMS : (_b = (_a = server_1.SettingsService.settings) === null || _a === void 0 ? void 0 : _a.blockAutomaticHandlerDefaults) === null || _b === void 0 ? void 0 : _b.blockAutomaticDurationMS) !== null && _c !== void 0 ? _c : 30 * 60 * 1000;
|
|
24
|
+
this.revertToAutomaticAtBlockLift =
|
|
25
|
+
(_f = revertToAutomaticAtBlockLift !== null && revertToAutomaticAtBlockLift !== void 0 ? revertToAutomaticAtBlockLift : (_e = (_d = server_1.SettingsService.settings) === null || _d === void 0 ? void 0 : _d.blockAutomaticHandlerDefaults) === null || _e === void 0 ? void 0 : _e.revertToAutomaticAtBlockLift) !== null && _f !== void 0 ? _f : true;
|
|
26
|
+
this.onCollideAction =
|
|
27
|
+
(_j = onCollideAction !== null && onCollideAction !== void 0 ? onCollideAction : (_h = (_g = server_1.SettingsService.settings) === null || _g === void 0 ? void 0 : _g.blockAutomaticHandlerDefaults) === null || _h === void 0 ? void 0 : _h.defaultCollisionSolving) !== null && _j !== void 0 ? _j : collisionSolving_1.CollisionSolving.overrideIfGreater;
|
|
28
|
+
}
|
|
29
|
+
get logMessage() {
|
|
30
|
+
return `BlockAutomatic for ${this.durationMS}ms with onCollideAction ${this.onCollideAction} for reason: ${this.reasonTrace}`;
|
|
31
|
+
}
|
|
32
|
+
static fromDeviceSettings(c, deviceSettings) {
|
|
33
|
+
var _a, _b, _c, _d;
|
|
34
|
+
if ((_a = deviceSettings.blockAutomaticSettings) === null || _a === void 0 ? void 0 : _a.dontBlockAutomaticIfNotProvided) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
return new BlockAutomaticCommand(c, (_b = deviceSettings.blockAutomaticSettings) === null || _b === void 0 ? void 0 : _b.blockAutomaticDurationMS, '', (_c = deviceSettings.blockAutomaticSettings) === null || _c === void 0 ? void 0 : _c.defaultCollisionSolving, (_d = deviceSettings.blockAutomaticSettings) === null || _d === void 0 ? void 0 : _d.revertToAutomaticAtBlockLift);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.BlockAutomaticCommand = BlockAutomaticCommand;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CommandType } from './commandType';
|
|
2
|
+
import { CommandSource } from './commandSource';
|
|
3
|
+
import { BaseCommand } from './baseCommand';
|
|
4
|
+
export declare class BlockAutomaticLiftBlockCommand extends BaseCommand {
|
|
5
|
+
/** @inheritDoc */
|
|
6
|
+
type: CommandType;
|
|
7
|
+
/**
|
|
8
|
+
* Whether the device should revert to desired automatic value.
|
|
9
|
+
*/
|
|
10
|
+
readonly revertToAutomatic: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Command to lift a block --> Restore the automatic actions.
|
|
13
|
+
* @param source - The source of the command.
|
|
14
|
+
* @param reason - You can provide an individual reason here for debugging purpose.
|
|
15
|
+
* @param revertToAutomatic - Whether the device should revert to automatic afterward. --> Default: {@link SettingsService.settings.blockAutomaticHandlerDefaults.revertToAutomaticAtBlockLift}
|
|
16
|
+
*/
|
|
17
|
+
constructor(source: CommandSource | BaseCommand, reason?: string, revertToAutomatic?: boolean);
|
|
18
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BlockAutomaticLiftBlockCommand = void 0;
|
|
4
|
+
const commandType_1 = require("./commandType");
|
|
5
|
+
const baseCommand_1 = require("./baseCommand");
|
|
6
|
+
const server_1 = require("../../server");
|
|
7
|
+
class BlockAutomaticLiftBlockCommand extends baseCommand_1.BaseCommand {
|
|
8
|
+
/**
|
|
9
|
+
* Command to lift a block --> Restore the automatic actions.
|
|
10
|
+
* @param source - The source of the command.
|
|
11
|
+
* @param reason - You can provide an individual reason here for debugging purpose.
|
|
12
|
+
* @param revertToAutomatic - Whether the device should revert to automatic afterward. --> Default: {@link SettingsService.settings.blockAutomaticHandlerDefaults.revertToAutomaticAtBlockLift}
|
|
13
|
+
*/
|
|
14
|
+
constructor(source, reason = '', revertToAutomatic) {
|
|
15
|
+
var _a, _b, _c;
|
|
16
|
+
super(source, reason);
|
|
17
|
+
/** @inheritDoc */
|
|
18
|
+
this.type = commandType_1.CommandType.BlockAutomaticLiftBlockCommand;
|
|
19
|
+
this.revertToAutomatic =
|
|
20
|
+
(_c = revertToAutomatic !== null && revertToAutomatic !== void 0 ? revertToAutomatic : (_b = (_a = server_1.SettingsService.settings) === null || _a === void 0 ? void 0 : _a.blockAutomaticHandlerDefaults) === null || _b === void 0 ? void 0 : _b.revertToAutomaticAtBlockLift) !== null && _c !== void 0 ? _c : true;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.BlockAutomaticLiftBlockCommand = BlockAutomaticLiftBlockCommand;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { CommandType } from './commandType';
|
|
2
|
+
import { CommandSource } from './commandSource';
|
|
3
|
+
import { CollisionSolving } from '../collisionSolving';
|
|
4
|
+
import { BaseCommand } from './baseCommand';
|
|
5
|
+
export declare class BlockAutomaticUntilCommand extends BaseCommand {
|
|
6
|
+
targetDate: Date;
|
|
7
|
+
/** @inheritDoc */
|
|
8
|
+
type: CommandType;
|
|
9
|
+
/**
|
|
10
|
+
* The action to take if a block is already active.
|
|
11
|
+
*/
|
|
12
|
+
readonly onCollideAction: CollisionSolving;
|
|
13
|
+
/**
|
|
14
|
+
* Whether the device should revert to automatic afterward.
|
|
15
|
+
*/
|
|
16
|
+
readonly revertToAutomaticAtBlockLift: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Command to disable automatic actions until a specific date.
|
|
19
|
+
* @param source - The source of the command.
|
|
20
|
+
* @param targetDate - The date until the automatic actions will be disabled.
|
|
21
|
+
* @param reason - You can provide an individual reason here for debugging purpose.
|
|
22
|
+
* @param onCollideAction - The action to take if a block is already active. --> Default: {@link SettingsService.settings.blockAutomaticHandlerDefaults.defaultCollisionSolving}
|
|
23
|
+
* @param revertToAutomaticAtBlockLift - Whether the device should revert to automatic afterward. --> Default: {@link SettingsService.settings.blockAutomaticHandlerDefaults.revertToAutomaticAtBlockLift}
|
|
24
|
+
*/
|
|
25
|
+
constructor(source: CommandSource | BaseCommand, targetDate: Date, reason?: string, onCollideAction?: CollisionSolving, revertToAutomaticAtBlockLift?: boolean);
|
|
26
|
+
get logMessage(): string;
|
|
27
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BlockAutomaticUntilCommand = void 0;
|
|
4
|
+
const commandType_1 = require("./commandType");
|
|
5
|
+
const collisionSolving_1 = require("../collisionSolving");
|
|
6
|
+
const baseCommand_1 = require("./baseCommand");
|
|
7
|
+
const server_1 = require("../../server");
|
|
8
|
+
class BlockAutomaticUntilCommand extends baseCommand_1.BaseCommand {
|
|
9
|
+
/**
|
|
10
|
+
* Command to disable automatic actions until a specific date.
|
|
11
|
+
* @param source - The source of the command.
|
|
12
|
+
* @param targetDate - The date until the automatic actions will be disabled.
|
|
13
|
+
* @param reason - You can provide an individual reason here for debugging purpose.
|
|
14
|
+
* @param onCollideAction - The action to take if a block is already active. --> Default: {@link SettingsService.settings.blockAutomaticHandlerDefaults.defaultCollisionSolving}
|
|
15
|
+
* @param revertToAutomaticAtBlockLift - Whether the device should revert to automatic afterward. --> Default: {@link SettingsService.settings.blockAutomaticHandlerDefaults.revertToAutomaticAtBlockLift}
|
|
16
|
+
*/
|
|
17
|
+
constructor(source, targetDate, reason = '', onCollideAction, revertToAutomaticAtBlockLift) {
|
|
18
|
+
var _a, _b, _c, _d, _e, _f;
|
|
19
|
+
super(source, reason);
|
|
20
|
+
this.targetDate = targetDate;
|
|
21
|
+
/** @inheritDoc */
|
|
22
|
+
this.type = commandType_1.CommandType.BlockAutomaticUntilCommand;
|
|
23
|
+
this.onCollideAction =
|
|
24
|
+
(_c = onCollideAction !== null && onCollideAction !== void 0 ? onCollideAction : (_b = (_a = server_1.SettingsService.settings) === null || _a === void 0 ? void 0 : _a.blockAutomaticHandlerDefaults) === null || _b === void 0 ? void 0 : _b.defaultCollisionSolving) !== null && _c !== void 0 ? _c : collisionSolving_1.CollisionSolving.overrideIfGreater;
|
|
25
|
+
this.revertToAutomaticAtBlockLift =
|
|
26
|
+
(_f = revertToAutomaticAtBlockLift !== null && revertToAutomaticAtBlockLift !== void 0 ? revertToAutomaticAtBlockLift : (_e = (_d = server_1.SettingsService.settings) === null || _d === void 0 ? void 0 : _d.blockAutomaticHandlerDefaults) === null || _e === void 0 ? void 0 : _e.revertToAutomaticAtBlockLift) !== null && _f !== void 0 ? _f : true;
|
|
27
|
+
}
|
|
28
|
+
get logMessage() {
|
|
29
|
+
return `Block automatic until ${this.targetDate.toLocaleString('de-DE')}, reason: ${this.reasonTrace}`;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.BlockAutomaticUntilCommand = BlockAutomaticUntilCommand;
|
|
@@ -1,8 +1,27 @@
|
|
|
1
1
|
export declare enum CommandSource {
|
|
2
|
+
/**
|
|
3
|
+
* In case of unclear command stack/source this should be used.
|
|
4
|
+
*/
|
|
2
5
|
Unknown = 0,
|
|
6
|
+
/**
|
|
7
|
+
* This should mark all startup commands, as this allows devices to treat this correctly.
|
|
8
|
+
*/
|
|
3
9
|
Initial = 1,
|
|
10
|
+
/**
|
|
11
|
+
* This should mark all commands that are executed as an automatic response to a certain action/change.
|
|
12
|
+
*/
|
|
4
13
|
Automatic = 2,
|
|
14
|
+
/**
|
|
15
|
+
* This should mark all commands that are executed by a user thus having a higher priority than other automatic commands.
|
|
16
|
+
*/
|
|
5
17
|
Manual = 3,
|
|
18
|
+
/**
|
|
19
|
+
* This should mark all commands that are executed by an API call.
|
|
20
|
+
* !WARNING! API could be an automatic call, but also a manual call e.g. using hoffmation-ios or homebridge-hoffmation --> So this is a higher priority than Automatic but still lower than manual/force.
|
|
21
|
+
*/
|
|
6
22
|
API = 4,
|
|
23
|
+
/**
|
|
24
|
+
* This should mark all commands that have highest priority, thus overruling/ignoring certain controls/safety mechanisms.
|
|
25
|
+
*/
|
|
7
26
|
Force = 5
|
|
8
27
|
}
|
|
@@ -1,12 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CommandSource = void 0;
|
|
4
|
+
// Definition: Enum for command source.
|
|
4
5
|
var CommandSource;
|
|
5
6
|
(function (CommandSource) {
|
|
7
|
+
/**
|
|
8
|
+
* In case of unclear command stack/source this should be used.
|
|
9
|
+
*/
|
|
6
10
|
CommandSource[CommandSource["Unknown"] = 0] = "Unknown";
|
|
11
|
+
/**
|
|
12
|
+
* This should mark all startup commands, as this allows devices to treat this correctly.
|
|
13
|
+
*/
|
|
7
14
|
CommandSource[CommandSource["Initial"] = 1] = "Initial";
|
|
15
|
+
/**
|
|
16
|
+
* This should mark all commands that are executed as an automatic response to a certain action/change.
|
|
17
|
+
*/
|
|
8
18
|
CommandSource[CommandSource["Automatic"] = 2] = "Automatic";
|
|
19
|
+
/**
|
|
20
|
+
* This should mark all commands that are executed by a user thus having a higher priority than other automatic commands.
|
|
21
|
+
*/
|
|
9
22
|
CommandSource[CommandSource["Manual"] = 3] = "Manual";
|
|
23
|
+
/**
|
|
24
|
+
* This should mark all commands that are executed by an API call.
|
|
25
|
+
* !WARNING! API could be an automatic call, but also a manual call e.g. using hoffmation-ios or homebridge-hoffmation --> So this is a higher priority than Automatic but still lower than manual/force.
|
|
26
|
+
*/
|
|
10
27
|
CommandSource[CommandSource["API"] = 4] = "API";
|
|
28
|
+
/**
|
|
29
|
+
* This should mark all commands that have highest priority, thus overruling/ignoring certain controls/safety mechanisms.
|
|
30
|
+
*/
|
|
11
31
|
CommandSource[CommandSource["Force"] = 5] = "Force";
|
|
12
32
|
})(CommandSource || (exports.CommandSource = CommandSource = {}));
|
|
@@ -1,21 +1,32 @@
|
|
|
1
1
|
export declare enum CommandType {
|
|
2
|
+
BatteryManagerLevelChangeAction = "BatteryManagerLevelChangeAction",
|
|
3
|
+
BlockAutomaticLiftBlockCommand = "BlockAutomaticLiftBlockCommand",
|
|
4
|
+
BlockAutomaticCommand = "BlockAutomaticCommand",
|
|
5
|
+
BlockAutomaticUntilCommand = "BlockAutomaticUntilCommand",
|
|
2
6
|
ActuatorToggleCommand = "ActuatorToggleCommand",
|
|
3
7
|
ActuatorSetStateCommand = "ActuatorSetStateCommand",
|
|
4
8
|
ActuatorRestoreTargetAutomaticValueCommand = "ActuatorRestoreTargetAutomaticValueCommand",
|
|
5
9
|
ActuatorWriteStateToDeviceCommand = "ActuatorWriteStateToDeviceCommand",
|
|
6
10
|
DimmerSetLightCommand = "DimmerSetLightCommand",
|
|
7
11
|
FloorSetAllShuttersCommand = "FloorSetAllShuttersCommand",
|
|
12
|
+
HumiditySensorChangeAction = "HumiditySensorChangeAction",
|
|
8
13
|
LampSetLightCommand = "LampSetLightCommand",
|
|
9
14
|
LampSetTimeBasedCommand = "LampSetTimeBasedCommand",
|
|
10
15
|
LampToggleLightCommand = "LampToggleLightCommand",
|
|
11
16
|
LedSetLightCommand = "LedSetLightCommand",
|
|
12
17
|
LightGroupSwitchTimeConditional = "LightGroupSwitchTimeConditional",
|
|
18
|
+
MotionSensorAction = "MotionSensorAction",
|
|
19
|
+
PresenceGroupAnyMovementAction = "PresenceGroupAnyMovementAction",
|
|
20
|
+
PresenceGroupFirstEnterAction = "PresenceGroupFirstEnterAction",
|
|
21
|
+
PresenceGroupLastLeftAction = "PresenceGroupLastLeftAction",
|
|
13
22
|
RoomRestoreShutterPositionCommand = "RoomRestoreShutterPositionCommand",
|
|
14
23
|
RoomRestoreLightCommand = "RoomRestoreLightCommand",
|
|
15
24
|
RoomSetLightTimeBasedCommand = "RoomSetLightTimeBasedCommand",
|
|
25
|
+
ShutterPositionChangedAction = "ShutterPositionChangedAction",
|
|
16
26
|
ShutterSetLevelCommand = "ShutterSetLevelCommand",
|
|
17
27
|
ShutterSunriseUpCommand = "ShutterSunriseUpCommand",
|
|
18
28
|
SunsetDownCommand = "SunsetDownCommand",
|
|
29
|
+
TemperatureSensorChangeAction = "TemperatureSensorChangeAction",
|
|
19
30
|
WindowRestoreDesiredPositionCommand = "WindowRestoreDesiredPositionCommand",
|
|
20
31
|
WindowSetDesiredPositionCommand = "WindowSetDesiredPositionCommand",
|
|
21
32
|
WindowSetRolloByWeatherStatusCommand = "WindowSetRolloByWeatherStatusCommand",
|
|
@@ -3,23 +3,34 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.CommandType = void 0;
|
|
4
4
|
var CommandType;
|
|
5
5
|
(function (CommandType) {
|
|
6
|
+
CommandType["BatteryManagerLevelChangeAction"] = "BatteryManagerLevelChangeAction";
|
|
7
|
+
CommandType["BlockAutomaticLiftBlockCommand"] = "BlockAutomaticLiftBlockCommand";
|
|
8
|
+
CommandType["BlockAutomaticCommand"] = "BlockAutomaticCommand";
|
|
9
|
+
CommandType["BlockAutomaticUntilCommand"] = "BlockAutomaticUntilCommand";
|
|
6
10
|
CommandType["ActuatorToggleCommand"] = "ActuatorToggleCommand";
|
|
7
11
|
CommandType["ActuatorSetStateCommand"] = "ActuatorSetStateCommand";
|
|
8
12
|
CommandType["ActuatorRestoreTargetAutomaticValueCommand"] = "ActuatorRestoreTargetAutomaticValueCommand";
|
|
9
13
|
CommandType["ActuatorWriteStateToDeviceCommand"] = "ActuatorWriteStateToDeviceCommand";
|
|
10
14
|
CommandType["DimmerSetLightCommand"] = "DimmerSetLightCommand";
|
|
11
15
|
CommandType["FloorSetAllShuttersCommand"] = "FloorSetAllShuttersCommand";
|
|
16
|
+
CommandType["HumiditySensorChangeAction"] = "HumiditySensorChangeAction";
|
|
12
17
|
CommandType["LampSetLightCommand"] = "LampSetLightCommand";
|
|
13
18
|
CommandType["LampSetTimeBasedCommand"] = "LampSetTimeBasedCommand";
|
|
14
19
|
CommandType["LampToggleLightCommand"] = "LampToggleLightCommand";
|
|
15
20
|
CommandType["LedSetLightCommand"] = "LedSetLightCommand";
|
|
16
21
|
CommandType["LightGroupSwitchTimeConditional"] = "LightGroupSwitchTimeConditional";
|
|
22
|
+
CommandType["MotionSensorAction"] = "MotionSensorAction";
|
|
23
|
+
CommandType["PresenceGroupAnyMovementAction"] = "PresenceGroupAnyMovementAction";
|
|
24
|
+
CommandType["PresenceGroupFirstEnterAction"] = "PresenceGroupFirstEnterAction";
|
|
25
|
+
CommandType["PresenceGroupLastLeftAction"] = "PresenceGroupLastLeftAction";
|
|
17
26
|
CommandType["RoomRestoreShutterPositionCommand"] = "RoomRestoreShutterPositionCommand";
|
|
18
27
|
CommandType["RoomRestoreLightCommand"] = "RoomRestoreLightCommand";
|
|
19
28
|
CommandType["RoomSetLightTimeBasedCommand"] = "RoomSetLightTimeBasedCommand";
|
|
29
|
+
CommandType["ShutterPositionChangedAction"] = "ShutterPositionChangedAction";
|
|
20
30
|
CommandType["ShutterSetLevelCommand"] = "ShutterSetLevelCommand";
|
|
21
31
|
CommandType["ShutterSunriseUpCommand"] = "ShutterSunriseUpCommand";
|
|
22
32
|
CommandType["SunsetDownCommand"] = "SunsetDownCommand";
|
|
33
|
+
CommandType["TemperatureSensorChangeAction"] = "TemperatureSensorChangeAction";
|
|
23
34
|
CommandType["WindowRestoreDesiredPositionCommand"] = "WindowRestoreDesiredPositionCommand";
|
|
24
35
|
CommandType["WindowSetDesiredPositionCommand"] = "WindowSetDesiredPositionCommand";
|
|
25
36
|
CommandType["WindowSetRolloByWeatherStatusCommand"] = "WindowSetRolloByWeatherStatusCommand";
|