hoffmation-base 3.0.0-alpha.3 → 3.0.0-alpha.30
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 +20 -20
- package/lib/liquid-pid.d.ts +2 -5
- package/lib/liquid-pid.js +3 -5
- package/lib/models/blockAutomaticSettings.d.ts +23 -0
- package/lib/models/blockAutomaticSettings.js +19 -0
- package/lib/models/command/ShutterSetLevelCommand.d.ts +8 -0
- package/lib/models/command/ShutterSetLevelCommand.js +9 -1
- package/lib/models/command/WindowRestoreDesiredPositionCommand.d.ts +6 -0
- package/lib/models/command/WindowRestoreDesiredPositionCommand.js +6 -0
- package/lib/models/command/WindowSetDesiredPositionCommand.d.ts +7 -0
- package/lib/models/command/WindowSetDesiredPositionCommand.js +7 -0
- package/lib/models/command/WindowSetRolloByWeatherStatusCommand.d.ts +6 -0
- package/lib/models/command/WindowSetRolloByWeatherStatusCommand.js +6 -0
- package/lib/models/command/actuatorSetStateCommand.d.ts +17 -2
- package/lib/models/command/actuatorSetStateCommand.js +15 -6
- package/lib/models/command/actuatorToggleCommand.d.ts +6 -1
- package/lib/models/command/actuatorToggleCommand.js +6 -3
- package/lib/models/command/actuatorWriteStateToDeviceCommand.d.ts +8 -1
- package/lib/models/command/actuatorWriteStateToDeviceCommand.js +13 -2
- package/lib/models/command/baseCommand.d.ts +22 -1
- package/lib/models/command/baseCommand.js +43 -9
- 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 +26 -0
- package/lib/models/command/blockAutomaticUntilCommand.js +29 -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 +3 -0
- package/lib/models/command/commandType.js +3 -0
- package/lib/models/command/dimmerSetLightCommand.d.ts +12 -7
- package/lib/models/command/dimmerSetLightCommand.js +19 -13
- package/lib/models/command/floorSetAllShuttersCommand.d.ts +5 -4
- package/lib/models/command/floorSetAllShuttersCommand.js +5 -4
- package/lib/models/command/index.d.ts +3 -0
- package/lib/models/command/index.js +7 -1
- package/lib/models/command/lampSetLightCommand.d.ts +12 -1
- package/lib/models/command/lampSetLightCommand.js +14 -3
- package/lib/models/command/lampSetTimeBasedCommand.d.ts +14 -7
- package/lib/models/command/lampSetTimeBasedCommand.js +8 -10
- package/lib/models/command/lampToggleLightCommand.d.ts +6 -5
- package/lib/models/command/lampToggleLightCommand.js +7 -6
- package/lib/models/command/ledSetLightCommand.d.ts +20 -10
- package/lib/models/command/ledSetLightCommand.js +26 -16
- package/lib/models/command/lightGroupSwitchTimeConditionalCommand.d.ts +7 -0
- package/lib/models/command/lightGroupSwitchTimeConditionalCommand.js +7 -0
- package/lib/models/command/restoreTargetAutomaticValueCommand.d.ts +6 -1
- package/lib/models/command/restoreTargetAutomaticValueCommand.js +6 -3
- package/lib/models/command/roomRestoreLightCommand.d.ts +6 -0
- package/lib/models/command/roomRestoreLightCommand.js +6 -0
- package/lib/models/command/roomRestoreShutterPositionCommand.d.ts +7 -0
- package/lib/models/command/roomRestoreShutterPositionCommand.js +7 -0
- package/lib/models/command/roomSetLightTimeBasedCommand.d.ts +4 -3
- package/lib/models/command/roomSetLightTimeBasedCommand.js +4 -3
- package/lib/models/command/shutterSunriseUpCommand.d.ts +6 -0
- package/lib/models/command/shutterSunriseUpCommand.js +6 -0
- package/lib/models/command/shutterSunsetDownCommand.d.ts +6 -0
- package/lib/models/command/shutterSunsetDownCommand.js +6 -0
- package/lib/models/command/wledSetLightCommand.d.ts +15 -1
- package/lib/models/command/wledSetLightCommand.js +22 -6
- 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 +19 -5
- package/lib/models/deviceSettings/acSettings.js +23 -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 +3 -0
- package/lib/models/deviceSettings/dachsSettings.js +3 -0
- 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 +1 -1
- package/lib/models/index.js +3 -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 +5 -3
- 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 +9 -0
- package/lib/models/rooms/RoomSettings/RoomSettingsController.js +1 -1
- 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 +6 -3
- 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 +92 -5
- 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/iHeaterSettings.d.ts +8 -0
- package/lib/server/config/iIobrokerSettigns.d.ts +8 -0
- package/lib/server/config/iLogSettings.d.ts +36 -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 +10 -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 +1 -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 +2 -2
- package/lib/server/devices/IoBrokerDeviceInfo.js +6 -4
- 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 +12 -1
- 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 +32 -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 -4
- package/lib/server/devices/baseDeviceInterfaces/iHumiditySensor.d.ts +19 -0
- package/lib/server/devices/baseDeviceInterfaces/iIlluminationSensor.d.ts +11 -0
- package/lib/server/devices/baseDeviceInterfaces/iLamp.d.ts +9 -0
- 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 +21 -1
- package/lib/server/devices/baseDeviceInterfaces/iRoomDevice.d.ts +6 -0
- package/lib/server/devices/baseDeviceInterfaces/iScene.d.ts +31 -1
- package/lib/server/devices/baseDeviceInterfaces/iShutter.d.ts +24 -0
- 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 +30 -1
- 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 +47 -32
- 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 +31 -9
- package/lib/server/devices/dachs/dachs.js +27 -17
- package/lib/server/devices/dachs/dachsTemperatureSensor.d.ts +20 -1
- package/lib/server/devices/dachs/dachsTemperatureSensor.js +20 -3
- 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 +1 -1
- package/lib/server/devices/dachs/lib/dachsHttpClient.js +2 -2
- package/lib/server/devices/device-cluster.d.ts +3 -0
- package/lib/server/devices/device-cluster.js +1 -1
- package/lib/server/devices/deviceUpdater.d.ts +0 -3
- package/lib/server/devices/deviceUpdater.js +1 -4
- package/lib/server/devices/devices.d.ts +43 -7
- package/lib/server/devices/devices.js +42 -6
- 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 +7 -1
- package/lib/server/devices/groups/Window.js +16 -8
- 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 +14 -13
- package/lib/server/devices/groups/presenceGroup.d.ts +0 -1
- package/lib/server/devices/groups/presenceGroup.js +0 -1
- package/lib/server/devices/groups/tasterGroup.js +6 -6
- package/lib/server/devices/groups/windowGroup.d.ts +11 -1
- package/lib/server/devices/groups/windowGroup.js +6 -6
- 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 +7 -4
- package/lib/server/devices/hmIPDevices/hmIpBewegung.js +9 -10
- 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 +27 -5
- package/lib/server/devices/hmIPDevices/hmIpGriff.js +59 -37
- package/lib/server/devices/hmIPDevices/hmIpHeizgruppe.d.ts +22 -2
- package/lib/server/devices/hmIPDevices/hmIpHeizgruppe.js +23 -10
- package/lib/server/devices/hmIPDevices/hmIpHeizung.d.ts +1 -0
- package/lib/server/devices/hmIPDevices/hmIpHeizung.js +1 -0
- package/lib/server/devices/hmIPDevices/hmIpLampe.d.ts +6 -0
- package/lib/server/devices/hmIPDevices/hmIpLampe.js +7 -3
- package/lib/server/devices/hmIPDevices/hmIpPraezenz.d.ts +3 -1
- package/lib/server/devices/hmIPDevices/hmIpPraezenz.js +4 -2
- package/lib/server/devices/hmIPDevices/hmIpRoll.d.ts +2 -0
- package/lib/server/devices/hmIPDevices/hmIpRoll.js +7 -5
- package/lib/server/devices/hmIPDevices/hmIpTaster.d.ts +15 -0
- package/lib/server/devices/hmIPDevices/hmIpTaster.js +9 -0
- package/lib/server/devices/hmIPDevices/hmIpTherm.d.ts +1 -0
- package/lib/server/devices/hmIPDevices/hmIpTherm.js +1 -0
- 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 +1 -0
- package/lib/server/devices/index.js +3 -0
- package/lib/server/devices/jsObject/jsObjectEnergyManager.d.ts +3 -1
- package/lib/server/devices/jsObject/jsObjectEnergyManager.js +5 -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 -6
- package/lib/server/devices/scene/room-scene.js +18 -4
- package/lib/server/devices/sharedFunctions/lampUtils.d.ts +1 -0
- package/lib/server/devices/sharedFunctions/lampUtils.js +44 -19
- 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 +28 -16
- package/lib/server/devices/shelly/shellyTrv.js +46 -45
- 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/wledDevice.d.ts +16 -2
- package/lib/server/devices/wledDevice.js +35 -12
- package/lib/server/devices/zigbee/BaseDevices/ZigbeeActuator.d.ts +15 -3
- package/lib/server/devices/zigbee/BaseDevices/ZigbeeActuator.js +23 -9
- 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 +15 -22
- package/lib/server/devices/zigbee/BaseDevices/zigbeeDimmer.d.ts +8 -23
- package/lib/server/devices/zigbee/BaseDevices/zigbeeDimmer.js +21 -61
- package/lib/server/devices/zigbee/BaseDevices/zigbeeHeater.d.ts +17 -4
- package/lib/server/devices/zigbee/BaseDevices/zigbeeHeater.js +17 -11
- package/lib/server/devices/zigbee/BaseDevices/zigbeeLamp.d.ts +20 -0
- package/lib/server/devices/zigbee/BaseDevices/zigbeeLamp.js +47 -0
- package/lib/server/devices/zigbee/BaseDevices/zigbeeLedRGBCCT.d.ts +9 -8
- package/lib/server/devices/zigbee/BaseDevices/zigbeeLedRGBCCT.js +15 -13
- package/lib/server/devices/zigbee/BaseDevices/zigbeeMagnetContact.d.ts +12 -2
- package/lib/server/devices/zigbee/BaseDevices/zigbeeMagnetContact.js +11 -1
- package/lib/server/devices/zigbee/BaseDevices/zigbeeMotionSensor.d.ts +20 -12
- package/lib/server/devices/zigbee/BaseDevices/zigbeeMotionSensor.js +45 -41
- package/lib/server/devices/zigbee/BaseDevices/zigbeeShutter.d.ts +10 -0
- package/lib/server/devices/zigbee/BaseDevices/zigbeeShutter.js +16 -6
- 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 +49 -11
- package/lib/server/devices/zigbee/zigbeeAquaraVibra.js +98 -30
- package/lib/server/devices/zigbee/zigbeeAquaraWater.d.ts +12 -1
- package/lib/server/devices/zigbee/zigbeeAquaraWater.js +15 -11
- 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 +19 -1
- package/lib/server/devices/zigbee/zigbeeHeimanSmoke.js +25 -7
- package/lib/server/devices/zigbee/zigbeeIkeaShutter.d.ts +1 -0
- package/lib/server/devices/zigbee/zigbeeIkeaShutter.js +1 -0
- 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/zigbeeIlluLampe.d.ts +4 -10
- package/lib/server/devices/zigbee/zigbeeIlluLampe.js +4 -32
- package/lib/server/devices/zigbee/zigbeeIlluShutter.d.ts +1 -0
- package/lib/server/devices/zigbee/zigbeeIlluShutter.js +1 -0
- 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 +17 -0
- package/lib/server/devices/zigbee/zigbeeSonoffTemp.js +18 -1
- 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 +9 -9
- package/lib/server/devices/zigbee/zigbeeUbisysLampe.js +15 -24
- package/lib/server/devices/zigbee/zigbeeUbisysShutter.d.ts +1 -0
- package/lib/server/devices/zigbee/zigbeeUbisysShutter.js +1 -0
- package/lib/server/ioBroker/connection.d.ts +21 -20
- 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 +4 -3
- 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 +6 -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 +0 -5
- package/lib/server/services/Sonos/sonos-service.js +6 -10
- 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 +48 -6
- package/lib/server/services/ac/ac-device.js +83 -33
- 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 +17 -0
- package/lib/server/services/ac/own-daikin-device.js +32 -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 +11 -8
- package/lib/server/services/blockAutomaticHandler.js +29 -13
- 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-service.d.ts +1 -5
- package/lib/server/services/govee/govee-service.js +3 -5
- package/lib/server/services/govee/own-govee-device.d.ts +17 -12
- package/lib/server/services/govee/own-govee-device.js +20 -24
- 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 +12 -0
- package/lib/server/services/log-service/log-debug-type.js +16 -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 -13
- package/lib/server/services/victron/victron-device.d.ts +6 -2
- package/lib/server/services/victron/victron-device.js +12 -9
- 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 +15 -18
- package/lib/server/services/weather/weather-service.js +32 -22
- package/lib/server/services/weather/weather-temp.d.ts +21 -0
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -7
- 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
|
@@ -6,35 +6,45 @@ const dimmerSetLightCommand_1 = require("./dimmerSetLightCommand");
|
|
|
6
6
|
const timeCallback_1 = require("../timeCallback");
|
|
7
7
|
class LedSetLightCommand extends dimmerSetLightCommand_1.DimmerSetLightCommand {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
* @param
|
|
11
|
-
* @param
|
|
12
|
-
* @param
|
|
13
|
-
* @param
|
|
14
|
-
*
|
|
15
|
-
* @param
|
|
16
|
-
* @param
|
|
17
|
-
* @param
|
|
9
|
+
* Command to set the light-state of a Led-Device
|
|
10
|
+
* @param source - The source of the command
|
|
11
|
+
* @param on - The desired state-value
|
|
12
|
+
* @param reason - You can provide a reason for clarity
|
|
13
|
+
* @param disableAutomatic - If provided, the device will remain in the desired state for the given disable action.
|
|
14
|
+
* If undefined the default value will be used in case it's a non automatic action: {@link SettingsService.settings.blockAutomaticHandlerDefaults}
|
|
15
|
+
* @param brightness - The desired brightness
|
|
16
|
+
* @param transitionTime - The transition time during turnOn/turnOff
|
|
17
|
+
* @param color - The desired color in 6 digit hex Code
|
|
18
|
+
* @param colorTemp - The desired color Temperature (0 = more White)
|
|
18
19
|
*/
|
|
19
|
-
constructor(source, on, reason = '',
|
|
20
|
-
super(source, on, reason,
|
|
20
|
+
constructor(source, on, reason = '', disableAutomatic, brightness, transitionTime, color = '', colorTemp = -1) {
|
|
21
|
+
super(source, on, reason, disableAutomatic, brightness, transitionTime);
|
|
21
22
|
this.color = color;
|
|
22
23
|
this.colorTemp = colorTemp;
|
|
24
|
+
/** @inheritDoc */
|
|
23
25
|
this._commandType = commandType_1.CommandType.LedSetLightCommand;
|
|
24
26
|
}
|
|
27
|
+
/** @inheritDoc */
|
|
25
28
|
get logMessage() {
|
|
26
|
-
|
|
29
|
+
var _a;
|
|
30
|
+
return `Led setLight to state: ${this.on}, blockAutomatic: ${(_a = this.disableAutomaticCommand) === null || _a === void 0 ? void 0 : _a.logMessage}, brightness: ${this.brightness}, color: ${this.color}, colorTemp: ${this.colorTemp} for reason: ${this.reasonTrace}`;
|
|
27
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* Create a LedSetLightCommand based on a LampSetTimeBasedCommand and LedSettings by respecting the time of day
|
|
34
|
+
* @param settings - The settings for the Led
|
|
35
|
+
* @param c - The command to base the LedSetLightCommand on
|
|
36
|
+
* @returns The created LedSetLightCommand
|
|
37
|
+
*/
|
|
28
38
|
static byTimeBased(settings, c) {
|
|
29
39
|
switch (c.time) {
|
|
30
40
|
case timeCallback_1.TimeOfDay.Daylight:
|
|
31
|
-
return new LedSetLightCommand(c, settings.dayOn, '', c.
|
|
41
|
+
return new LedSetLightCommand(c, settings.dayOn, '', c.disableAutomaticCommand, settings.dayBrightness, undefined, settings.dayColor, settings.dayColorTemp);
|
|
32
42
|
case timeCallback_1.TimeOfDay.BeforeSunrise:
|
|
33
|
-
return new LedSetLightCommand(c, settings.dawnOn, '', c.
|
|
43
|
+
return new LedSetLightCommand(c, settings.dawnOn, '', c.disableAutomaticCommand, settings.dawnBrightness, undefined, settings.dawnColor, settings.dawnColorTemp);
|
|
34
44
|
case timeCallback_1.TimeOfDay.AfterSunset:
|
|
35
|
-
return new LedSetLightCommand(c, settings.duskOn, '', c.
|
|
45
|
+
return new LedSetLightCommand(c, settings.duskOn, '', c.disableAutomaticCommand, settings.duskBrightness, undefined, settings.duskColor, settings.duskColorTemp);
|
|
36
46
|
case timeCallback_1.TimeOfDay.Night:
|
|
37
|
-
return new LedSetLightCommand(c, settings.nightOn, '', c.
|
|
47
|
+
return new LedSetLightCommand(c, settings.nightOn, '', c.disableAutomaticCommand, settings.nightBrightness, undefined, settings.nightColor, settings.nightColorTemp);
|
|
38
48
|
}
|
|
39
49
|
}
|
|
40
50
|
}
|
|
@@ -4,6 +4,13 @@ import { CommandSource } from './commandSource';
|
|
|
4
4
|
import { TimeOfDay } from '../timeCallback';
|
|
5
5
|
export declare class LightGroupSwitchTimeConditionalCommand extends BaseCommand {
|
|
6
6
|
readonly time: TimeOfDay;
|
|
7
|
+
/** @inheritDoc */
|
|
7
8
|
_commandType: CommandType;
|
|
9
|
+
/**
|
|
10
|
+
* Command to switch a light group in accordance to a specific time of the day
|
|
11
|
+
* @param source - The source of the command
|
|
12
|
+
* @param time - The time of the day to switch the light group
|
|
13
|
+
* @param reason - You can provide a reason for clarification
|
|
14
|
+
*/
|
|
8
15
|
constructor(source: CommandSource | BaseCommand, time: TimeOfDay, reason?: string);
|
|
9
16
|
}
|
|
@@ -4,9 +4,16 @@ exports.LightGroupSwitchTimeConditionalCommand = void 0;
|
|
|
4
4
|
const baseCommand_1 = require("./baseCommand");
|
|
5
5
|
const commandType_1 = require("./commandType");
|
|
6
6
|
class LightGroupSwitchTimeConditionalCommand extends baseCommand_1.BaseCommand {
|
|
7
|
+
/**
|
|
8
|
+
* Command to switch a light group in accordance to a specific time of the day
|
|
9
|
+
* @param source - The source of the command
|
|
10
|
+
* @param time - The time of the day to switch the light group
|
|
11
|
+
* @param reason - You can provide a reason for clarification
|
|
12
|
+
*/
|
|
7
13
|
constructor(source, time, reason = '') {
|
|
8
14
|
super(source, reason);
|
|
9
15
|
this.time = time;
|
|
16
|
+
/** @inheritDoc */
|
|
10
17
|
this._commandType = commandType_1.CommandType.LightGroupSwitchTimeConditional;
|
|
11
18
|
}
|
|
12
19
|
}
|
|
@@ -2,7 +2,12 @@ import { BaseCommand } from './baseCommand';
|
|
|
2
2
|
import { CommandSource } from './commandSource';
|
|
3
3
|
import { CommandType } from './commandType';
|
|
4
4
|
export declare class RestoreTargetAutomaticValueCommand extends BaseCommand {
|
|
5
|
+
/** @inheritDoc */
|
|
5
6
|
_commandType: CommandType;
|
|
7
|
+
/**
|
|
8
|
+
* Command to restore the target automatic value 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.RestoreTargetAutomaticValueCommand = void 0;
|
|
|
4
4
|
const baseCommand_1 = require("./baseCommand");
|
|
5
5
|
const commandType_1 = require("./commandType");
|
|
6
6
|
class RestoreTargetAutomaticValueCommand extends baseCommand_1.BaseCommand {
|
|
7
|
+
/**
|
|
8
|
+
* Command to restore the target automatic value 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);
|
|
14
|
+
/** @inheritDoc */
|
|
9
15
|
this._commandType = commandType_1.CommandType.ActuatorRestoreTargetAutomaticValueCommand;
|
|
10
16
|
}
|
|
11
|
-
get logMessage() {
|
|
12
|
-
return `Actuator restore target automatic value from ${this.source} for reason: ${this.reasonTrace}`;
|
|
13
|
-
}
|
|
14
17
|
}
|
|
15
18
|
exports.RestoreTargetAutomaticValueCommand = RestoreTargetAutomaticValueCommand;
|
|
@@ -2,6 +2,12 @@ import { BaseCommand } from './baseCommand';
|
|
|
2
2
|
import { CommandType } from './commandType';
|
|
3
3
|
import { CommandSource } from './commandSource';
|
|
4
4
|
export declare class RoomRestoreLightCommand extends BaseCommand {
|
|
5
|
+
/** @inheritDoc */
|
|
5
6
|
_commandType: CommandType;
|
|
7
|
+
/**
|
|
8
|
+
* Command to restore the normal automatic light-state of a room
|
|
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,8 +4,14 @@ exports.RoomRestoreLightCommand = void 0;
|
|
|
4
4
|
const baseCommand_1 = require("./baseCommand");
|
|
5
5
|
const commandType_1 = require("./commandType");
|
|
6
6
|
class RoomRestoreLightCommand extends baseCommand_1.BaseCommand {
|
|
7
|
+
/**
|
|
8
|
+
* Command to restore the normal automatic light-state of a room
|
|
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);
|
|
14
|
+
/** @inheritDoc */
|
|
9
15
|
this._commandType = commandType_1.CommandType.RoomRestoreLightCommand;
|
|
10
16
|
}
|
|
11
17
|
}
|
|
@@ -3,6 +3,13 @@ import { BaseCommand } from './baseCommand';
|
|
|
3
3
|
import { CommandType } from './commandType';
|
|
4
4
|
export declare class RoomRestoreShutterPositionCommand extends BaseCommand {
|
|
5
5
|
readonly recalc: boolean;
|
|
6
|
+
/** @inheritDoc */
|
|
6
7
|
_commandType: CommandType;
|
|
8
|
+
/**
|
|
9
|
+
* Command to restore the normal automatic shutter position of a room
|
|
10
|
+
* @param source - The source of the command
|
|
11
|
+
* @param recalc - Whether to recalculate the shutter position
|
|
12
|
+
* @param reason - You can provide a reason for clarification
|
|
13
|
+
*/
|
|
7
14
|
constructor(source: CommandSource | BaseCommand, recalc?: boolean, reason?: string);
|
|
8
15
|
}
|
|
@@ -4,9 +4,16 @@ exports.RoomRestoreShutterPositionCommand = void 0;
|
|
|
4
4
|
const baseCommand_1 = require("./baseCommand");
|
|
5
5
|
const commandType_1 = require("./commandType");
|
|
6
6
|
class RoomRestoreShutterPositionCommand extends baseCommand_1.BaseCommand {
|
|
7
|
+
/**
|
|
8
|
+
* Command to restore the normal automatic shutter position of a room
|
|
9
|
+
* @param source - The source of the command
|
|
10
|
+
* @param recalc - Whether to recalculate the shutter position
|
|
11
|
+
* @param reason - You can provide a reason for clarification
|
|
12
|
+
*/
|
|
7
13
|
constructor(source, recalc = false, reason = '') {
|
|
8
14
|
super(source, reason);
|
|
9
15
|
this.recalc = recalc;
|
|
16
|
+
/** @inheritDoc */
|
|
10
17
|
this._commandType = commandType_1.CommandType.RoomRestoreShutterPositionCommand;
|
|
11
18
|
}
|
|
12
19
|
}
|
|
@@ -3,12 +3,13 @@ import { CommandType } from './commandType';
|
|
|
3
3
|
import { CommandSource } from './commandSource';
|
|
4
4
|
export declare class RoomSetLightTimeBasedCommand extends BaseCommand {
|
|
5
5
|
readonly movementDependant: boolean;
|
|
6
|
+
/** @inheritDoc */
|
|
6
7
|
_commandType: CommandType;
|
|
7
8
|
/**
|
|
8
9
|
* Sets the light based on the current time, rollo Position and room Settings
|
|
9
|
-
* @param source
|
|
10
|
-
* @param movementDependant Only turn light on if there was a movement in the same room
|
|
11
|
-
* @param reason
|
|
10
|
+
* @param source - The source of the command
|
|
11
|
+
* @param movementDependant - Only turn light on if there was a movement in the same room
|
|
12
|
+
* @param reason - You can provide a reason for clarity
|
|
12
13
|
*/
|
|
13
14
|
constructor(source: CommandSource | BaseCommand, movementDependant?: boolean, reason?: string);
|
|
14
15
|
}
|
|
@@ -6,13 +6,14 @@ const commandType_1 = require("./commandType");
|
|
|
6
6
|
class RoomSetLightTimeBasedCommand extends baseCommand_1.BaseCommand {
|
|
7
7
|
/**
|
|
8
8
|
* Sets the light based on the current time, rollo Position and room Settings
|
|
9
|
-
* @param source
|
|
10
|
-
* @param movementDependant Only turn light on if there was a movement in the same room
|
|
11
|
-
* @param reason
|
|
9
|
+
* @param source - The source of the command
|
|
10
|
+
* @param movementDependant - Only turn light on if there was a movement in the same room
|
|
11
|
+
* @param reason - You can provide a reason for clarity
|
|
12
12
|
*/
|
|
13
13
|
constructor(source, movementDependant = false, reason = '') {
|
|
14
14
|
super(source, reason);
|
|
15
15
|
this.movementDependant = movementDependant;
|
|
16
|
+
/** @inheritDoc */
|
|
16
17
|
this._commandType = commandType_1.CommandType.RoomSetLightTimeBasedCommand;
|
|
17
18
|
}
|
|
18
19
|
}
|
|
@@ -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 ShutterSunriseUpCommand extends BaseCommand {
|
|
5
|
+
/** @inheritDoc */
|
|
5
6
|
_commandType: CommandType;
|
|
7
|
+
/**
|
|
8
|
+
* Command to perform actions when the shutter should be opened due to sunrise
|
|
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,8 +4,14 @@ exports.ShutterSunriseUpCommand = void 0;
|
|
|
4
4
|
const baseCommand_1 = require("./baseCommand");
|
|
5
5
|
const commandType_1 = require("./commandType");
|
|
6
6
|
class ShutterSunriseUpCommand extends baseCommand_1.BaseCommand {
|
|
7
|
+
/**
|
|
8
|
+
* Command to perform actions when the shutter should be opened due to sunrise
|
|
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);
|
|
14
|
+
/** @inheritDoc */
|
|
9
15
|
this._commandType = commandType_1.CommandType.ShutterSunriseUpCommand;
|
|
10
16
|
}
|
|
11
17
|
}
|
|
@@ -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 ShutterSunsetDownCommand extends BaseCommand {
|
|
5
|
+
/** @inheritDoc */
|
|
5
6
|
_commandType: CommandType;
|
|
7
|
+
/**
|
|
8
|
+
* Command to perform actions when the shutter is closing due to sunset
|
|
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,8 +4,14 @@ exports.ShutterSunsetDownCommand = void 0;
|
|
|
4
4
|
const baseCommand_1 = require("./baseCommand");
|
|
5
5
|
const commandType_1 = require("./commandType");
|
|
6
6
|
class ShutterSunsetDownCommand extends baseCommand_1.BaseCommand {
|
|
7
|
+
/**
|
|
8
|
+
* Command to perform actions when the shutter is closing due to sunset
|
|
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);
|
|
14
|
+
/** @inheritDoc */
|
|
9
15
|
this._commandType = commandType_1.CommandType.SunsetDownCommand;
|
|
10
16
|
}
|
|
11
17
|
}
|
|
@@ -4,9 +4,23 @@ import { BaseCommand } from './baseCommand';
|
|
|
4
4
|
import { DimmerSetLightCommand } from './dimmerSetLightCommand';
|
|
5
5
|
import { WledSettings } from '../deviceSettings';
|
|
6
6
|
import { LampSetTimeBasedCommand } from './lampSetTimeBasedCommand';
|
|
7
|
+
import { BlockAutomaticCommand } from './blockAutomaticCommand';
|
|
7
8
|
export declare class WledSetLightCommand extends DimmerSetLightCommand {
|
|
8
9
|
preset?: number | undefined;
|
|
10
|
+
/** @inheritDoc */
|
|
9
11
|
_commandType: CommandType;
|
|
10
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Command to set the light state of a WLED device
|
|
14
|
+
* @param source - The source of the command
|
|
15
|
+
* @param on - The desired state of the light
|
|
16
|
+
* @param reason - You can provide a reason for clarification
|
|
17
|
+
* @param disableAutomatic - If provided, the device will remain in the desired state for the given disable action.
|
|
18
|
+
* If undefined the default value will be used in case it's a non automatic action: {@link SettingsService.settings.blockAutomaticHandlerDefaults}
|
|
19
|
+
* @param brightness - The brightness of the light
|
|
20
|
+
* @param transitionTime - The time in milliseconds the transition should take
|
|
21
|
+
* @param preset - The preset to use
|
|
22
|
+
*/
|
|
23
|
+
constructor(source: CommandSource | BaseCommand, on: boolean, reason?: string, disableAutomatic?: BlockAutomaticCommand | null, brightness?: number, transitionTime?: number, preset?: number | undefined);
|
|
24
|
+
get logMessage(): string;
|
|
11
25
|
static byTimeBased(settings: WledSettings, c: LampSetTimeBasedCommand): WledSetLightCommand;
|
|
12
26
|
}
|
|
@@ -5,21 +5,37 @@ const commandType_1 = require("./commandType");
|
|
|
5
5
|
const dimmerSetLightCommand_1 = require("./dimmerSetLightCommand");
|
|
6
6
|
const timeCallback_1 = require("../timeCallback");
|
|
7
7
|
class WledSetLightCommand extends dimmerSetLightCommand_1.DimmerSetLightCommand {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Command to set the light state of a WLED device
|
|
10
|
+
* @param source - The source of the command
|
|
11
|
+
* @param on - The desired state of the light
|
|
12
|
+
* @param reason - You can provide a reason for clarification
|
|
13
|
+
* @param disableAutomatic - If provided, the device will remain in the desired state for the given disable action.
|
|
14
|
+
* If undefined the default value will be used in case it's a non automatic action: {@link SettingsService.settings.blockAutomaticHandlerDefaults}
|
|
15
|
+
* @param brightness - The brightness of the light
|
|
16
|
+
* @param transitionTime - The time in milliseconds the transition should take
|
|
17
|
+
* @param preset - The preset to use
|
|
18
|
+
*/
|
|
19
|
+
constructor(source, on, reason = '', disableAutomatic, brightness = -1, transitionTime = -1, preset) {
|
|
20
|
+
super(source, on, reason, disableAutomatic, brightness, transitionTime);
|
|
10
21
|
this.preset = preset;
|
|
22
|
+
/** @inheritDoc */
|
|
11
23
|
this._commandType = commandType_1.CommandType.WledSetLightCommand;
|
|
12
24
|
}
|
|
25
|
+
get logMessage() {
|
|
26
|
+
var _a;
|
|
27
|
+
return `Dimmer setLight to ${this.on} with Brightness ${this.brightness}, disabelAutomatic ${(_a = this.disableAutomaticCommand) === null || _a === void 0 ? void 0 : _a.logMessage} and preset ${this.preset} for reason: ${this.reasonTrace}`;
|
|
28
|
+
}
|
|
13
29
|
static byTimeBased(settings, c) {
|
|
14
30
|
switch (c.time) {
|
|
15
31
|
case timeCallback_1.TimeOfDay.Daylight:
|
|
16
|
-
return new WledSetLightCommand(c, settings.dayOn, '', c.
|
|
32
|
+
return new WledSetLightCommand(c, settings.dayOn, '', c.disableAutomaticCommand, settings.dayBrightness, undefined, settings.dayPreset);
|
|
17
33
|
case timeCallback_1.TimeOfDay.BeforeSunrise:
|
|
18
|
-
return new WledSetLightCommand(c, settings.dawnOn, '', c.
|
|
34
|
+
return new WledSetLightCommand(c, settings.dawnOn, '', c.disableAutomaticCommand, settings.dawnBrightness, undefined, settings.dawnPreset);
|
|
19
35
|
case timeCallback_1.TimeOfDay.AfterSunset:
|
|
20
|
-
return new WledSetLightCommand(c, settings.duskOn, '', c.
|
|
36
|
+
return new WledSetLightCommand(c, settings.duskOn, '', c.disableAutomaticCommand, settings.duskBrightness, undefined, settings.duskPreset);
|
|
21
37
|
case timeCallback_1.TimeOfDay.Night:
|
|
22
|
-
return new WledSetLightCommand(c, settings.nightOn, '', c.
|
|
38
|
+
return new WledSetLightCommand(c, settings.nightOn, '', c.disableAutomaticCommand, settings.nightBrightness, undefined, settings.nightPreset);
|
|
23
39
|
default:
|
|
24
40
|
throw new Error(`TimeOfDay ${c.time} not supported`);
|
|
25
41
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare class ConnectionCallbacks {
|
|
2
|
-
onAuth?:
|
|
3
|
-
onCommand?(pInstance: string, pCommand: string | number | boolean |
|
|
2
|
+
onAuth?: unknown;
|
|
3
|
+
onCommand?(pInstance: string, pCommand: string | number | boolean | unknown[] | Record<string, unknown> | null, pData: unknown): boolean;
|
|
4
4
|
onConnChange?(pState: boolean): void;
|
|
5
|
-
onError
|
|
5
|
+
onError?(error: unknown): void;
|
|
6
6
|
onObjectChange?(pId: string, pObj: ioBroker.Object): void;
|
|
7
|
-
onRefresh?:
|
|
7
|
+
onRefresh?: unknown;
|
|
8
8
|
onUpdate?(id: string, state: ioBroker.State): void;
|
|
9
9
|
}
|
|
@@ -1,29 +1,43 @@
|
|
|
1
1
|
import { DeviceSettings } from './deviceSettings';
|
|
2
2
|
import { ExcessEnergyConsumerSettings } from '../excessEnergyConsumerSettings';
|
|
3
3
|
export declare class AcSettings extends DeviceSettings {
|
|
4
|
+
/** The energy consumer settings for this AC */
|
|
4
5
|
energySettings: ExcessEnergyConsumerSettings;
|
|
6
|
+
/**
|
|
7
|
+
* The earliest hour the AC can be turned on
|
|
8
|
+
*/
|
|
5
9
|
minimumHours: number;
|
|
10
|
+
/**
|
|
11
|
+
* The earliest minute the AC can be turned on within the hour {@link minimumHours}
|
|
12
|
+
*/
|
|
6
13
|
minimumMinutes: number;
|
|
14
|
+
/**
|
|
15
|
+
* The latest hour the AC can be turned on
|
|
16
|
+
*/
|
|
7
17
|
maximumHours: number;
|
|
18
|
+
/**
|
|
19
|
+
* The latest minute the AC can be turned on within the hour {@link maximumHours}
|
|
20
|
+
*/
|
|
8
21
|
maximumMinutes: number;
|
|
9
22
|
/**
|
|
10
23
|
* Heating can be forbidden completly e.g. for summer season
|
|
11
|
-
* @type {boolean}
|
|
12
24
|
*/
|
|
13
25
|
heatingAllowed: boolean;
|
|
14
26
|
/**
|
|
15
27
|
* Whether we should ignore the room temperature and let the AC decide on its own
|
|
16
|
-
* @type {boolean}
|
|
17
28
|
*/
|
|
18
|
-
|
|
29
|
+
useOwnTemperature: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Whether the AC should use automatic mode to decide on its own whether to heat or cool
|
|
32
|
+
* @warning This can result in excessive energy consumption, as overshooting the temperature can result in the AC switching to the opposite mode
|
|
33
|
+
*/
|
|
34
|
+
useAutomatic: boolean;
|
|
19
35
|
/**
|
|
20
36
|
* Whether we should turn off AC-Cooling when someone is in the room
|
|
21
|
-
* @type {boolean}
|
|
22
37
|
*/
|
|
23
38
|
noCoolingOnMovement: boolean;
|
|
24
39
|
/**
|
|
25
40
|
* Whether this AC should be turned off for some time manually
|
|
26
|
-
* @type {boolean}
|
|
27
41
|
*/
|
|
28
42
|
manualDisabled: boolean;
|
|
29
43
|
fromPartialObject(data: Partial<AcSettings>): void;
|
|
@@ -7,42 +7,57 @@ const excessEnergyConsumerSettings_1 = require("../excessEnergyConsumerSettings"
|
|
|
7
7
|
class AcSettings extends deviceSettings_1.DeviceSettings {
|
|
8
8
|
constructor() {
|
|
9
9
|
super(...arguments);
|
|
10
|
+
/** The energy consumer settings for this AC */
|
|
10
11
|
this.energySettings = new excessEnergyConsumerSettings_1.ExcessEnergyConsumerSettings();
|
|
12
|
+
/**
|
|
13
|
+
* The earliest hour the AC can be turned on
|
|
14
|
+
*/
|
|
11
15
|
this.minimumHours = 0;
|
|
16
|
+
/**
|
|
17
|
+
* The earliest minute the AC can be turned on within the hour {@link minimumHours}
|
|
18
|
+
*/
|
|
12
19
|
this.minimumMinutes = 0;
|
|
20
|
+
/**
|
|
21
|
+
* The latest hour the AC can be turned on
|
|
22
|
+
*/
|
|
13
23
|
this.maximumHours = 24;
|
|
24
|
+
/**
|
|
25
|
+
* The latest minute the AC can be turned on within the hour {@link maximumHours}
|
|
26
|
+
*/
|
|
14
27
|
this.maximumMinutes = 0;
|
|
15
28
|
/**
|
|
16
29
|
* Heating can be forbidden completly e.g. for summer season
|
|
17
|
-
* @type {boolean}
|
|
18
30
|
*/
|
|
19
31
|
this.heatingAllowed = false;
|
|
20
32
|
/**
|
|
21
33
|
* Whether we should ignore the room temperature and let the AC decide on its own
|
|
22
|
-
* @type {boolean}
|
|
23
34
|
*/
|
|
24
|
-
this.
|
|
35
|
+
this.useOwnTemperature = false;
|
|
36
|
+
/**
|
|
37
|
+
* Whether the AC should use automatic mode to decide on its own whether to heat or cool
|
|
38
|
+
* @warning This can result in excessive energy consumption, as overshooting the temperature can result in the AC switching to the opposite mode
|
|
39
|
+
*/
|
|
40
|
+
this.useAutomatic = false;
|
|
25
41
|
/**
|
|
26
42
|
* Whether we should turn off AC-Cooling when someone is in the room
|
|
27
|
-
* @type {boolean}
|
|
28
43
|
*/
|
|
29
44
|
this.noCoolingOnMovement = false;
|
|
30
45
|
/**
|
|
31
46
|
* Whether this AC should be turned off for some time manually
|
|
32
|
-
* @type {boolean}
|
|
33
47
|
*/
|
|
34
48
|
this.manualDisabled = false;
|
|
35
49
|
}
|
|
36
50
|
fromPartialObject(data) {
|
|
37
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
51
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
38
52
|
this.minimumHours = (_a = data.minimumHours) !== null && _a !== void 0 ? _a : this.minimumHours;
|
|
39
53
|
this.minimumMinutes = (_b = data.minimumMinutes) !== null && _b !== void 0 ? _b : this.minimumMinutes;
|
|
40
54
|
this.maximumHours = (_c = data.maximumHours) !== null && _c !== void 0 ? _c : this.maximumHours;
|
|
41
55
|
this.maximumMinutes = (_d = data.maximumMinutes) !== null && _d !== void 0 ? _d : this.maximumMinutes;
|
|
42
56
|
this.heatingAllowed = (_e = data.heatingAllowed) !== null && _e !== void 0 ? _e : this.heatingAllowed;
|
|
43
57
|
this.noCoolingOnMovement = (_f = data.noCoolingOnMovement) !== null && _f !== void 0 ? _f : this.noCoolingOnMovement;
|
|
44
|
-
this.
|
|
45
|
-
this.
|
|
58
|
+
this.useOwnTemperature = (_g = data.useOwnTemperature) !== null && _g !== void 0 ? _g : this.useOwnTemperature;
|
|
59
|
+
this.useAutomatic = (_h = data.useAutomatic) !== null && _h !== void 0 ? _h : this.useAutomatic;
|
|
60
|
+
this.manualDisabled = (_j = data.manualDisabled) !== null && _j !== void 0 ? _j : this.manualDisabled;
|
|
46
61
|
super.fromPartialObject(data);
|
|
47
62
|
}
|
|
48
63
|
toJSON() {
|
|
@@ -1,28 +1,37 @@
|
|
|
1
1
|
import { DeviceSettings } from './deviceSettings';
|
|
2
2
|
export declare class ActuatorSettings extends DeviceSettings {
|
|
3
|
+
/**
|
|
4
|
+
* Whether to turn on the device at dawn in time-based commands or automatic.
|
|
5
|
+
*/
|
|
3
6
|
dawnOn: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Whether to turn on the device at dusk in time-based commands or automatic.
|
|
9
|
+
*/
|
|
4
10
|
duskOn: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Whether to turn on the device at night in time-based commands or automatic.
|
|
13
|
+
*/
|
|
5
14
|
nightOn: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Whether to turn on the device at day in time-based commands or automatic.
|
|
17
|
+
*/
|
|
18
|
+
dayOn: boolean;
|
|
6
19
|
/**
|
|
7
20
|
* Indicates if this device controls e.g. an Eltako, which has it's own Turn Off Time logic.
|
|
8
|
-
* @type {boolean}
|
|
9
21
|
*/
|
|
10
22
|
isStromStoss: boolean;
|
|
11
23
|
/**
|
|
12
24
|
* Whether after manually turning off a previously manually turned on device, fall back to automatic mode.
|
|
13
25
|
* Instead of switching to a forced off state.
|
|
14
|
-
* @type {boolean}
|
|
15
26
|
*/
|
|
16
27
|
resetToAutomaticOnForceOffAfterForceOn: boolean;
|
|
17
28
|
/**
|
|
18
29
|
* If this is an Actuator controling a time based relais,
|
|
19
30
|
* this indicates the time after which we retrigger the relais.
|
|
20
|
-
* @type {number}
|
|
21
31
|
*/
|
|
22
32
|
stromStossResendTime: number;
|
|
23
33
|
/**
|
|
24
34
|
* Whether to include this device in the ambient light option.
|
|
25
|
-
* @type {boolean}
|
|
26
35
|
*/
|
|
27
36
|
includeInAmbientLight: boolean;
|
|
28
37
|
fromPartialObject(data: Partial<ActuatorSettings>): void;
|
|
@@ -6,42 +6,52 @@ const server_1 = require("../../server");
|
|
|
6
6
|
class ActuatorSettings extends deviceSettings_1.DeviceSettings {
|
|
7
7
|
constructor() {
|
|
8
8
|
super(...arguments);
|
|
9
|
+
/**
|
|
10
|
+
* Whether to turn on the device at dawn in time-based commands or automatic.
|
|
11
|
+
*/
|
|
9
12
|
this.dawnOn = true;
|
|
13
|
+
/**
|
|
14
|
+
* Whether to turn on the device at dusk in time-based commands or automatic.
|
|
15
|
+
*/
|
|
10
16
|
this.duskOn = true;
|
|
17
|
+
/**
|
|
18
|
+
* Whether to turn on the device at night in time-based commands or automatic.
|
|
19
|
+
*/
|
|
11
20
|
this.nightOn = true;
|
|
21
|
+
/**
|
|
22
|
+
* Whether to turn on the device at day in time-based commands or automatic.
|
|
23
|
+
*/
|
|
24
|
+
this.dayOn = false;
|
|
12
25
|
/**
|
|
13
26
|
* Indicates if this device controls e.g. an Eltako, which has it's own Turn Off Time logic.
|
|
14
|
-
* @type {boolean}
|
|
15
27
|
*/
|
|
16
28
|
this.isStromStoss = false;
|
|
17
29
|
/**
|
|
18
30
|
* Whether after manually turning off a previously manually turned on device, fall back to automatic mode.
|
|
19
31
|
* Instead of switching to a forced off state.
|
|
20
|
-
* @type {boolean}
|
|
21
32
|
*/
|
|
22
33
|
this.resetToAutomaticOnForceOffAfterForceOn = true;
|
|
23
34
|
/**
|
|
24
35
|
* If this is an Actuator controling a time based relais,
|
|
25
36
|
* this indicates the time after which we retrigger the relais.
|
|
26
|
-
* @type {number}
|
|
27
37
|
*/
|
|
28
38
|
this.stromStossResendTime = 180;
|
|
29
39
|
/**
|
|
30
40
|
* Whether to include this device in the ambient light option.
|
|
31
|
-
* @type {boolean}
|
|
32
41
|
*/
|
|
33
42
|
this.includeInAmbientLight = false;
|
|
34
43
|
}
|
|
35
44
|
fromPartialObject(data) {
|
|
36
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
45
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
37
46
|
this.dawnOn = (_a = data.dawnOn) !== null && _a !== void 0 ? _a : this.dawnOn;
|
|
38
47
|
this.duskOn = (_b = data.duskOn) !== null && _b !== void 0 ? _b : this.duskOn;
|
|
39
48
|
this.nightOn = (_c = data.nightOn) !== null && _c !== void 0 ? _c : this.nightOn;
|
|
40
|
-
this.
|
|
41
|
-
this.
|
|
49
|
+
this.dayOn = (_d = data.dayOn) !== null && _d !== void 0 ? _d : this.dayOn;
|
|
50
|
+
this.isStromStoss = (_e = data.isStromStoss) !== null && _e !== void 0 ? _e : this.isStromStoss;
|
|
51
|
+
this.stromStossResendTime = (_f = data.stromStossResendTime) !== null && _f !== void 0 ? _f : this.stromStossResendTime;
|
|
42
52
|
this.resetToAutomaticOnForceOffAfterForceOn =
|
|
43
|
-
(
|
|
44
|
-
this.includeInAmbientLight = (
|
|
53
|
+
(_g = data.resetToAutomaticOnForceOffAfterForceOn) !== null && _g !== void 0 ? _g : this.resetToAutomaticOnForceOffAfterForceOn;
|
|
54
|
+
this.includeInAmbientLight = (_h = data.includeInAmbientLight) !== null && _h !== void 0 ? _h : this.includeInAmbientLight;
|
|
45
55
|
super.fromPartialObject(data);
|
|
46
56
|
}
|
|
47
57
|
toJSON() {
|
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
import { MotionSensorSettings } from './motionSensorSettings';
|
|
2
2
|
export declare class CameraSettings extends MotionSensorSettings {
|
|
3
|
+
/**
|
|
4
|
+
* Whether to alert detected persons via telegram.
|
|
5
|
+
*/
|
|
3
6
|
alertPersonOnTelegram: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Whether to ignore all movement except for persons.
|
|
9
|
+
*/
|
|
4
10
|
movementDetectionOnPersonOnly: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Whether to also react on movement off dogs.
|
|
13
|
+
*/
|
|
5
14
|
movementDetectionOnDogsToo: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Whether the camera has audio.
|
|
17
|
+
*/
|
|
6
18
|
hasAudio: boolean;
|
|
7
19
|
fromPartialObject(data: Partial<CameraSettings>): void;
|
|
8
20
|
protected toJSON(): Partial<MotionSensorSettings>;
|