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,9 +6,21 @@ const motionSensorSettings_1 = require("./motionSensorSettings");
|
|
|
6
6
|
class CameraSettings extends motionSensorSettings_1.MotionSensorSettings {
|
|
7
7
|
constructor() {
|
|
8
8
|
super(...arguments);
|
|
9
|
+
/**
|
|
10
|
+
* Whether to alert detected persons via telegram.
|
|
11
|
+
*/
|
|
9
12
|
this.alertPersonOnTelegram = false;
|
|
13
|
+
/**
|
|
14
|
+
* Whether to ignore all movement except for persons.
|
|
15
|
+
*/
|
|
10
16
|
this.movementDetectionOnPersonOnly = false;
|
|
17
|
+
/**
|
|
18
|
+
* Whether to also react on movement off dogs.
|
|
19
|
+
*/
|
|
11
20
|
this.movementDetectionOnDogsToo = false;
|
|
21
|
+
/**
|
|
22
|
+
* Whether the camera has audio.
|
|
23
|
+
*/
|
|
12
24
|
this.hasAudio = false;
|
|
13
25
|
}
|
|
14
26
|
fromPartialObject(data) {
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { ActuatorSettings } from './actuatorSettings';
|
|
2
2
|
export declare class DachsDeviceSettings extends ActuatorSettings {
|
|
3
|
+
/**
|
|
4
|
+
* The refresh interval in ms to pull the data from the device.
|
|
5
|
+
*/
|
|
3
6
|
refreshInterval: number;
|
|
4
7
|
fromPartialObject(data: Partial<DachsDeviceSettings>): void;
|
|
5
8
|
protected toJSON(): Partial<DachsDeviceSettings>;
|
|
@@ -6,6 +6,9 @@ const actuatorSettings_1 = require("./actuatorSettings");
|
|
|
6
6
|
class DachsDeviceSettings extends actuatorSettings_1.ActuatorSettings {
|
|
7
7
|
constructor() {
|
|
8
8
|
super(...arguments);
|
|
9
|
+
/**
|
|
10
|
+
* The refresh interval in ms to pull the data from the device.
|
|
11
|
+
*/
|
|
9
12
|
this.refreshInterval = 30000;
|
|
10
13
|
}
|
|
11
14
|
fromPartialObject(data) {
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
import { ExcessEnergyConsumerSettings } from '../excessEnergyConsumerSettings';
|
|
2
2
|
import { ObjectSettings } from '../objectSettings';
|
|
3
|
+
import { BlockAutomaticSettings } from '../blockAutomaticSettings';
|
|
3
4
|
export declare abstract class DeviceSettings extends ObjectSettings {
|
|
5
|
+
/**
|
|
6
|
+
* Any device could be an energy consumer, so we have to provide the settings for it
|
|
7
|
+
* @default undefined
|
|
8
|
+
*/
|
|
4
9
|
energySettings: ExcessEnergyConsumerSettings | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* Any device could be an {@link iTemporaryDisableAutomatic} device, so we have to provide the settings for it
|
|
12
|
+
* @default undefined
|
|
13
|
+
*/
|
|
14
|
+
blockAutomaticSettings: BlockAutomaticSettings | undefined;
|
|
5
15
|
fromPartialObject(_obj: Partial<DeviceSettings>): void;
|
|
6
16
|
protected toJSON(): Partial<DeviceSettings>;
|
|
7
17
|
}
|
|
@@ -4,10 +4,20 @@ exports.DeviceSettings = void 0;
|
|
|
4
4
|
const excessEnergyConsumerSettings_1 = require("../excessEnergyConsumerSettings");
|
|
5
5
|
const objectSettings_1 = require("../objectSettings");
|
|
6
6
|
const server_1 = require("../../server");
|
|
7
|
+
const blockAutomaticSettings_1 = require("../blockAutomaticSettings");
|
|
7
8
|
class DeviceSettings extends objectSettings_1.ObjectSettings {
|
|
8
9
|
constructor() {
|
|
9
10
|
super(...arguments);
|
|
11
|
+
/**
|
|
12
|
+
* Any device could be an energy consumer, so we have to provide the settings for it
|
|
13
|
+
* @default undefined
|
|
14
|
+
*/
|
|
10
15
|
this.energySettings = undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Any device could be an {@link iTemporaryDisableAutomatic} device, so we have to provide the settings for it
|
|
18
|
+
* @default undefined
|
|
19
|
+
*/
|
|
20
|
+
this.blockAutomaticSettings = undefined;
|
|
11
21
|
}
|
|
12
22
|
fromPartialObject(_obj) {
|
|
13
23
|
if (_obj.energySettings) {
|
|
@@ -16,6 +26,12 @@ class DeviceSettings extends objectSettings_1.ObjectSettings {
|
|
|
16
26
|
}
|
|
17
27
|
this.energySettings.fromPartialObject(_obj.energySettings);
|
|
18
28
|
}
|
|
29
|
+
if (_obj.blockAutomaticSettings) {
|
|
30
|
+
if (this.blockAutomaticSettings === undefined) {
|
|
31
|
+
this.blockAutomaticSettings = new blockAutomaticSettings_1.BlockAutomaticSettings();
|
|
32
|
+
}
|
|
33
|
+
this.blockAutomaticSettings.fromPartialObject(_obj.blockAutomaticSettings);
|
|
34
|
+
}
|
|
19
35
|
super.fromPartialObject(_obj);
|
|
20
36
|
}
|
|
21
37
|
toJSON() {
|
|
@@ -1,9 +1,29 @@
|
|
|
1
1
|
import { ActuatorSettings } from './actuatorSettings';
|
|
2
2
|
export declare class DimmerSettings extends ActuatorSettings {
|
|
3
|
+
/**
|
|
4
|
+
* The desired brightness of the light during the night.
|
|
5
|
+
* @default 50
|
|
6
|
+
*/
|
|
3
7
|
nightBrightness: number;
|
|
8
|
+
/**
|
|
9
|
+
* The desired brightness of the light during the dawn.
|
|
10
|
+
* @default 75
|
|
11
|
+
*/
|
|
4
12
|
dawnBrightness: number;
|
|
13
|
+
/**
|
|
14
|
+
* The desired brightness of the light during the dusk.
|
|
15
|
+
* @default 75
|
|
16
|
+
*/
|
|
5
17
|
duskBrightness: number;
|
|
18
|
+
/**
|
|
19
|
+
* The desired brightness of the light during the day.
|
|
20
|
+
* @default 100
|
|
21
|
+
*/
|
|
6
22
|
dayBrightness: number;
|
|
23
|
+
/**
|
|
24
|
+
* Some LED dimmers have a turn on threshold, which is the minimum brightness to turn on.
|
|
25
|
+
* Hoffmation afterwards dims down the light to the desired brightness.
|
|
26
|
+
*/
|
|
7
27
|
turnOnThreshhold: number;
|
|
8
28
|
fromPartialObject(data: Partial<DimmerSettings>): void;
|
|
9
29
|
protected toJSON(): Partial<DimmerSettings>;
|
|
@@ -6,10 +6,30 @@ const server_1 = require("../../server");
|
|
|
6
6
|
class DimmerSettings extends actuatorSettings_1.ActuatorSettings {
|
|
7
7
|
constructor() {
|
|
8
8
|
super(...arguments);
|
|
9
|
+
/**
|
|
10
|
+
* The desired brightness of the light during the night.
|
|
11
|
+
* @default 50
|
|
12
|
+
*/
|
|
9
13
|
this.nightBrightness = 50;
|
|
14
|
+
/**
|
|
15
|
+
* The desired brightness of the light during the dawn.
|
|
16
|
+
* @default 75
|
|
17
|
+
*/
|
|
10
18
|
this.dawnBrightness = 75;
|
|
19
|
+
/**
|
|
20
|
+
* The desired brightness of the light during the dusk.
|
|
21
|
+
* @default 75
|
|
22
|
+
*/
|
|
11
23
|
this.duskBrightness = 75;
|
|
24
|
+
/**
|
|
25
|
+
* The desired brightness of the light during the day.
|
|
26
|
+
* @default 100
|
|
27
|
+
*/
|
|
12
28
|
this.dayBrightness = 100;
|
|
29
|
+
/**
|
|
30
|
+
* Some LED dimmers have a turn on threshold, which is the minimum brightness to turn on.
|
|
31
|
+
* Hoffmation afterwards dims down the light to the desired brightness.
|
|
32
|
+
*/
|
|
13
33
|
this.turnOnThreshhold = -1;
|
|
14
34
|
}
|
|
15
35
|
fromPartialObject(data) {
|
|
@@ -2,7 +2,6 @@ import { DeviceSettings } from './deviceSettings';
|
|
|
2
2
|
export declare class GarageDoorOpenerSettings extends DeviceSettings {
|
|
3
3
|
/**
|
|
4
4
|
* In case the sensor detects open door instead of closed
|
|
5
|
-
* @type {boolean}
|
|
6
5
|
*/
|
|
7
6
|
invertSensor: boolean;
|
|
8
7
|
fromPartialObject(data: Partial<GarageDoorOpenerSettings>): void;
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import { DeviceSettings } from './deviceSettings';
|
|
2
2
|
export declare class HandleSettings extends DeviceSettings {
|
|
3
|
+
/**
|
|
4
|
+
* Whether to inform the user when the handle is opened.
|
|
5
|
+
*/
|
|
3
6
|
informOnOpen: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Whether to inform the user when the handle (and respectivly the window) is not helping in regards to the outside temperature being beneficial for the inside temperature.
|
|
9
|
+
*/
|
|
4
10
|
informNotHelping: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Whether to inform the user when the handle (and respectivly the window) is helping in regards to the outside temperature being beneficial for the inside temperature.
|
|
13
|
+
*/
|
|
5
14
|
informIsHelping: boolean;
|
|
6
15
|
fromPartialObject(data: Partial<HandleSettings>): void;
|
|
7
16
|
protected toJSON(): Partial<HandleSettings>;
|
|
@@ -6,8 +6,17 @@ const deviceSettings_1 = require("./deviceSettings");
|
|
|
6
6
|
class HandleSettings extends deviceSettings_1.DeviceSettings {
|
|
7
7
|
constructor() {
|
|
8
8
|
super(...arguments);
|
|
9
|
+
/**
|
|
10
|
+
* Whether to inform the user when the handle is opened.
|
|
11
|
+
*/
|
|
9
12
|
this.informOnOpen = true;
|
|
13
|
+
/**
|
|
14
|
+
* Whether to inform the user when the handle (and respectivly the window) is not helping in regards to the outside temperature being beneficial for the inside temperature.
|
|
15
|
+
*/
|
|
10
16
|
this.informNotHelping = true;
|
|
17
|
+
/**
|
|
18
|
+
* Whether to inform the user when the handle (and respectivly the window) is helping in regards to the outside temperature being beneficial for the inside temperature.
|
|
19
|
+
*/
|
|
11
20
|
this.informIsHelping = true;
|
|
12
21
|
}
|
|
13
22
|
fromPartialObject(data) {
|
|
@@ -1,38 +1,50 @@
|
|
|
1
1
|
import { DeviceSettings } from './deviceSettings';
|
|
2
2
|
export declare class HeaterSettings extends DeviceSettings {
|
|
3
|
+
/**
|
|
4
|
+
* Whether this device should be in automatic mode
|
|
5
|
+
* @default true
|
|
6
|
+
*/
|
|
3
7
|
automaticMode: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Whether this device should use it's own temperature or just rely on the room temperature (e.g. for a floor heating system being in a different room)
|
|
10
|
+
* @default true
|
|
11
|
+
*/
|
|
4
12
|
useOwnTemperatur: boolean;
|
|
5
13
|
/**
|
|
6
14
|
* Whether this device should be controlled using only valve position
|
|
7
|
-
*
|
|
8
|
-
* @
|
|
15
|
+
* @default false
|
|
16
|
+
* @warning Only certain devices allow direct controlling of valve Position
|
|
9
17
|
*/
|
|
10
18
|
controlByPid: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Whether this device should be controlled by offsetting the device temperature and it's target temperature.
|
|
21
|
+
* @default false
|
|
22
|
+
* @remark This is mainly needed for devices not allowing a separate control of valve position or temperature.
|
|
23
|
+
*/
|
|
11
24
|
controlByTempDiff: boolean;
|
|
12
25
|
/**
|
|
13
26
|
* Whether this device should turn off at Start of summer season and only heat in winter
|
|
14
|
-
* @
|
|
27
|
+
* @default true
|
|
15
28
|
*/
|
|
16
29
|
seasonalTurnOffActive: boolean;
|
|
17
30
|
/**
|
|
18
|
-
*
|
|
19
31
|
* The day in a year after which SeasonalHeater should be turned off completly
|
|
20
|
-
* @
|
|
32
|
+
* @default 99 (Roughly in April)
|
|
21
33
|
*/
|
|
22
34
|
seasonTurnOffDay: number;
|
|
23
35
|
/**
|
|
24
36
|
* The day in a year after which SeasonalHeater should be turned to automatic
|
|
25
|
-
* @
|
|
37
|
+
* @default 267 (Roughly in September)
|
|
26
38
|
*/
|
|
27
39
|
seasonTurnOnDay: number;
|
|
28
40
|
/**
|
|
29
41
|
* In case of pid Control the forced minimum percentage for this heater valve
|
|
30
|
-
* @
|
|
42
|
+
* @default 1
|
|
31
43
|
*/
|
|
32
44
|
pidForcedMinimum: number;
|
|
33
45
|
/**
|
|
34
|
-
* Whether this
|
|
35
|
-
* @
|
|
46
|
+
* Whether this Heater should be turned off for some time manually
|
|
47
|
+
* @default false
|
|
36
48
|
*/
|
|
37
49
|
manualDisabled: boolean;
|
|
38
50
|
fromPartialObject(data: Partial<HeaterSettings>): void;
|
|
@@ -6,39 +6,51 @@ const server_1 = require("../../server");
|
|
|
6
6
|
class HeaterSettings extends deviceSettings_1.DeviceSettings {
|
|
7
7
|
constructor() {
|
|
8
8
|
super(...arguments);
|
|
9
|
+
/**
|
|
10
|
+
* Whether this device should be in automatic mode
|
|
11
|
+
* @default true
|
|
12
|
+
*/
|
|
9
13
|
this.automaticMode = true;
|
|
14
|
+
/**
|
|
15
|
+
* Whether this device should use it's own temperature or just rely on the room temperature (e.g. for a floor heating system being in a different room)
|
|
16
|
+
* @default true
|
|
17
|
+
*/
|
|
10
18
|
this.useOwnTemperatur = true;
|
|
11
19
|
/**
|
|
12
20
|
* Whether this device should be controlled using only valve position
|
|
13
|
-
*
|
|
14
|
-
* @
|
|
21
|
+
* @default false
|
|
22
|
+
* @warning Only certain devices allow direct controlling of valve Position
|
|
15
23
|
*/
|
|
16
24
|
this.controlByPid = false;
|
|
25
|
+
/**
|
|
26
|
+
* Whether this device should be controlled by offsetting the device temperature and it's target temperature.
|
|
27
|
+
* @default false
|
|
28
|
+
* @remark This is mainly needed for devices not allowing a separate control of valve position or temperature.
|
|
29
|
+
*/
|
|
17
30
|
this.controlByTempDiff = false;
|
|
18
31
|
/**
|
|
19
32
|
* Whether this device should turn off at Start of summer season and only heat in winter
|
|
20
|
-
* @
|
|
33
|
+
* @default true
|
|
21
34
|
*/
|
|
22
35
|
this.seasonalTurnOffActive = true;
|
|
23
36
|
/**
|
|
24
|
-
*
|
|
25
37
|
* The day in a year after which SeasonalHeater should be turned off completly
|
|
26
|
-
* @
|
|
38
|
+
* @default 99 (Roughly in April)
|
|
27
39
|
*/
|
|
28
40
|
this.seasonTurnOffDay = 99;
|
|
29
41
|
/**
|
|
30
42
|
* The day in a year after which SeasonalHeater should be turned to automatic
|
|
31
|
-
* @
|
|
43
|
+
* @default 267 (Roughly in September)
|
|
32
44
|
*/
|
|
33
45
|
this.seasonTurnOnDay = 267;
|
|
34
46
|
/**
|
|
35
47
|
* In case of pid Control the forced minimum percentage for this heater valve
|
|
36
|
-
* @
|
|
48
|
+
* @default 1
|
|
37
49
|
*/
|
|
38
50
|
this.pidForcedMinimum = 1;
|
|
39
51
|
/**
|
|
40
|
-
* Whether this
|
|
41
|
-
* @
|
|
52
|
+
* Whether this Heater should be turned off for some time manually
|
|
53
|
+
* @default false
|
|
42
54
|
*/
|
|
43
55
|
this.manualDisabled = false;
|
|
44
56
|
}
|
|
@@ -1,22 +1,88 @@
|
|
|
1
1
|
import { DimmerSettings } from './dimmerSettings';
|
|
2
2
|
export declare class LedSettings extends DimmerSettings {
|
|
3
|
+
/**
|
|
4
|
+
* The default color for the LED if none was given.
|
|
5
|
+
* @default '#fbbc32' (Warm yellow)
|
|
6
|
+
*/
|
|
3
7
|
static fallbackColor: string;
|
|
8
|
+
/**
|
|
9
|
+
* The default color for the LED if none was given.
|
|
10
|
+
*/
|
|
4
11
|
defaultColor: string;
|
|
12
|
+
/**
|
|
13
|
+
* @inheritDoc
|
|
14
|
+
* @default false
|
|
15
|
+
*/
|
|
5
16
|
dayOn: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
* @default 100
|
|
20
|
+
*/
|
|
6
21
|
dayBrightness: number;
|
|
22
|
+
/**
|
|
23
|
+
* The desired color of the light during the day.
|
|
24
|
+
*/
|
|
7
25
|
dayColor: string;
|
|
26
|
+
/**
|
|
27
|
+
* The desired color temperature of the light during the day.
|
|
28
|
+
* @default -1 (Not set)
|
|
29
|
+
*/
|
|
8
30
|
dayColorTemp: number;
|
|
31
|
+
/**
|
|
32
|
+
* @inheritDoc
|
|
33
|
+
* @default true
|
|
34
|
+
*/
|
|
9
35
|
dawnOn: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* @inheritDoc
|
|
38
|
+
* @default 50
|
|
39
|
+
*/
|
|
10
40
|
dawnBrightness: number;
|
|
41
|
+
/**
|
|
42
|
+
* The desired color of the light during the dawn.
|
|
43
|
+
*/
|
|
11
44
|
dawnColor: string;
|
|
45
|
+
/**
|
|
46
|
+
* The desired color temperature of the light during the dawn.
|
|
47
|
+
* @default -1 (Not set)
|
|
48
|
+
*/
|
|
12
49
|
dawnColorTemp: number;
|
|
50
|
+
/**
|
|
51
|
+
* @inheritDoc
|
|
52
|
+
* @default true
|
|
53
|
+
*/
|
|
13
54
|
duskOn: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* @inheritDoc
|
|
57
|
+
* @default 50
|
|
58
|
+
*/
|
|
14
59
|
duskBrightness: number;
|
|
60
|
+
/**
|
|
61
|
+
* The desired color of the light during the dusk.
|
|
62
|
+
*/
|
|
15
63
|
duskColor: string;
|
|
64
|
+
/**
|
|
65
|
+
* The desired color temperature of the light during the dusk.
|
|
66
|
+
* @default -1 (Not set)
|
|
67
|
+
*/
|
|
16
68
|
duskColorTemp: number;
|
|
69
|
+
/**
|
|
70
|
+
* @inheritDoc
|
|
71
|
+
* @default true
|
|
72
|
+
*/
|
|
17
73
|
nightOn: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* @inheritDoc
|
|
76
|
+
* @default 2
|
|
77
|
+
*/
|
|
18
78
|
nightBrightness: number;
|
|
79
|
+
/**
|
|
80
|
+
* The desired color of the light during the night.
|
|
81
|
+
*/
|
|
19
82
|
nightColor: string;
|
|
83
|
+
/**
|
|
84
|
+
* The desired color temperature of the light during the night.
|
|
85
|
+
*/
|
|
20
86
|
nightColorTemp: number;
|
|
21
87
|
fromPartialObject(data: Partial<LedSettings>): void;
|
|
22
88
|
protected toJSON(): Partial<LedSettings>;
|
|
@@ -6,43 +6,97 @@ const server_1 = require("../../server");
|
|
|
6
6
|
class LedSettings extends dimmerSettings_1.DimmerSettings {
|
|
7
7
|
constructor() {
|
|
8
8
|
super(...arguments);
|
|
9
|
+
/**
|
|
10
|
+
* The default color for the LED if none was given.
|
|
11
|
+
*/
|
|
9
12
|
this.defaultColor = LedSettings.fallbackColor;
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
* @default false
|
|
16
|
+
*/
|
|
10
17
|
this.dayOn = false;
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
* @default 100
|
|
21
|
+
*/
|
|
11
22
|
this.dayBrightness = 100;
|
|
23
|
+
/**
|
|
24
|
+
* The desired color of the light during the day.
|
|
25
|
+
*/
|
|
12
26
|
this.dayColor = this.defaultColor;
|
|
27
|
+
/**
|
|
28
|
+
* The desired color temperature of the light during the day.
|
|
29
|
+
* @default -1 (Not set)
|
|
30
|
+
*/
|
|
13
31
|
this.dayColorTemp = -1;
|
|
32
|
+
/**
|
|
33
|
+
* @inheritDoc
|
|
34
|
+
* @default true
|
|
35
|
+
*/
|
|
14
36
|
this.dawnOn = true;
|
|
37
|
+
/**
|
|
38
|
+
* @inheritDoc
|
|
39
|
+
* @default 50
|
|
40
|
+
*/
|
|
15
41
|
this.dawnBrightness = 50;
|
|
42
|
+
/**
|
|
43
|
+
* The desired color of the light during the dawn.
|
|
44
|
+
*/
|
|
16
45
|
this.dawnColor = this.defaultColor;
|
|
46
|
+
/**
|
|
47
|
+
* The desired color temperature of the light during the dawn.
|
|
48
|
+
* @default -1 (Not set)
|
|
49
|
+
*/
|
|
17
50
|
this.dawnColorTemp = -1;
|
|
51
|
+
/**
|
|
52
|
+
* @inheritDoc
|
|
53
|
+
* @default true
|
|
54
|
+
*/
|
|
18
55
|
this.duskOn = true;
|
|
56
|
+
/**
|
|
57
|
+
* @inheritDoc
|
|
58
|
+
* @default 50
|
|
59
|
+
*/
|
|
19
60
|
this.duskBrightness = 50;
|
|
61
|
+
/**
|
|
62
|
+
* The desired color of the light during the dusk.
|
|
63
|
+
*/
|
|
20
64
|
this.duskColor = this.defaultColor;
|
|
65
|
+
/**
|
|
66
|
+
* The desired color temperature of the light during the dusk.
|
|
67
|
+
* @default -1 (Not set)
|
|
68
|
+
*/
|
|
21
69
|
this.duskColorTemp = -1;
|
|
70
|
+
/**
|
|
71
|
+
* @inheritDoc
|
|
72
|
+
* @default true
|
|
73
|
+
*/
|
|
22
74
|
this.nightOn = true;
|
|
75
|
+
/**
|
|
76
|
+
* @inheritDoc
|
|
77
|
+
* @default 2
|
|
78
|
+
*/
|
|
23
79
|
this.nightBrightness = 2;
|
|
80
|
+
/**
|
|
81
|
+
* The desired color of the light during the night.
|
|
82
|
+
*/
|
|
24
83
|
this.nightColor = '#ff5500';
|
|
84
|
+
/**
|
|
85
|
+
* The desired color temperature of the light during the night.
|
|
86
|
+
*/
|
|
25
87
|
this.nightColorTemp = -1;
|
|
26
88
|
}
|
|
27
89
|
fromPartialObject(data) {
|
|
28
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p
|
|
29
|
-
this.
|
|
30
|
-
this.
|
|
31
|
-
this.
|
|
32
|
-
this.
|
|
33
|
-
this.
|
|
34
|
-
this.
|
|
35
|
-
this.
|
|
36
|
-
this.
|
|
37
|
-
this.
|
|
38
|
-
this.nightOn = (_k = data.nightOn) !== null && _k !== void 0 ? _k : this.nightOn;
|
|
39
|
-
this.nightBrightness = (_l = data.nightBrightness) !== null && _l !== void 0 ? _l : this.nightBrightness;
|
|
40
|
-
this.nightColorTemp = (_m = data.nightColorTemp) !== null && _m !== void 0 ? _m : this.nightColorTemp;
|
|
41
|
-
this.defaultColor = (_p = server_1.Utils.formatHex((_o = data.defaultColor) !== null && _o !== void 0 ? _o : this.defaultColor)) !== null && _p !== void 0 ? _p : LedSettings.fallbackColor;
|
|
42
|
-
this.dayColor = (_r = server_1.Utils.formatHex((_q = data.dayColor) !== null && _q !== void 0 ? _q : this.dayColor)) !== null && _r !== void 0 ? _r : LedSettings.fallbackColor;
|
|
43
|
-
this.dawnColor = (_t = server_1.Utils.formatHex((_s = data.dawnColor) !== null && _s !== void 0 ? _s : this.dawnColor)) !== null && _t !== void 0 ? _t : LedSettings.fallbackColor;
|
|
44
|
-
this.duskColor = (_v = server_1.Utils.formatHex((_u = data.duskColor) !== null && _u !== void 0 ? _u : this.duskColor)) !== null && _v !== void 0 ? _v : LedSettings.fallbackColor;
|
|
45
|
-
this.nightColor = (_x = server_1.Utils.formatHex((_w = data.nightColor) !== null && _w !== void 0 ? _w : this.nightColor)) !== null && _x !== void 0 ? _x : LedSettings.fallbackColor;
|
|
90
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
91
|
+
this.dayColorTemp = (_a = data.dayColorTemp) !== null && _a !== void 0 ? _a : this.dayColorTemp;
|
|
92
|
+
this.dawnColorTemp = (_b = data.dawnColorTemp) !== null && _b !== void 0 ? _b : this.dawnColorTemp;
|
|
93
|
+
this.duskColorTemp = (_c = data.duskColorTemp) !== null && _c !== void 0 ? _c : this.duskColorTemp;
|
|
94
|
+
this.nightColorTemp = (_d = data.nightColorTemp) !== null && _d !== void 0 ? _d : this.nightColorTemp;
|
|
95
|
+
this.defaultColor = (_f = server_1.Utils.formatHex((_e = data.defaultColor) !== null && _e !== void 0 ? _e : this.defaultColor)) !== null && _f !== void 0 ? _f : LedSettings.fallbackColor;
|
|
96
|
+
this.dayColor = (_h = server_1.Utils.formatHex((_g = data.dayColor) !== null && _g !== void 0 ? _g : this.dayColor)) !== null && _h !== void 0 ? _h : LedSettings.fallbackColor;
|
|
97
|
+
this.dawnColor = (_k = server_1.Utils.formatHex((_j = data.dawnColor) !== null && _j !== void 0 ? _j : this.dawnColor)) !== null && _k !== void 0 ? _k : LedSettings.fallbackColor;
|
|
98
|
+
this.duskColor = (_m = server_1.Utils.formatHex((_l = data.duskColor) !== null && _l !== void 0 ? _l : this.duskColor)) !== null && _m !== void 0 ? _m : LedSettings.fallbackColor;
|
|
99
|
+
this.nightColor = (_p = server_1.Utils.formatHex((_o = data.nightColor) !== null && _o !== void 0 ? _o : this.nightColor)) !== null && _p !== void 0 ? _p : LedSettings.fallbackColor;
|
|
46
100
|
super.fromPartialObject(data);
|
|
47
101
|
}
|
|
48
102
|
toJSON() {
|
|
@@ -50,4 +104,8 @@ class LedSettings extends dimmerSettings_1.DimmerSettings {
|
|
|
50
104
|
}
|
|
51
105
|
}
|
|
52
106
|
exports.LedSettings = LedSettings;
|
|
107
|
+
/**
|
|
108
|
+
* The default color for the LED if none was given.
|
|
109
|
+
* @default '#fbbc32' (Warm yellow)
|
|
110
|
+
*/
|
|
53
111
|
LedSettings.fallbackColor = '#fbbc32';
|
|
@@ -2,9 +2,13 @@ import { DeviceSettings } from './deviceSettings';
|
|
|
2
2
|
export declare class MotionSensorSettings extends DeviceSettings {
|
|
3
3
|
/**
|
|
4
4
|
* If set to false, a detected movement on this sensor will block certain alarms on windows in this room
|
|
5
|
-
* @
|
|
5
|
+
* @default true
|
|
6
6
|
*/
|
|
7
7
|
seesWindow: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* If set to true, this sensor will not trigger the night alarm in case of detected movement
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
8
12
|
excludeFromNightAlarm: boolean;
|
|
9
13
|
fromPartialObject(data: Partial<MotionSensorSettings>): void;
|
|
10
14
|
protected toJSON(): Partial<MotionSensorSettings>;
|
|
@@ -8,9 +8,13 @@ class MotionSensorSettings extends deviceSettings_1.DeviceSettings {
|
|
|
8
8
|
super(...arguments);
|
|
9
9
|
/**
|
|
10
10
|
* If set to false, a detected movement on this sensor will block certain alarms on windows in this room
|
|
11
|
-
* @
|
|
11
|
+
* @default true
|
|
12
12
|
*/
|
|
13
13
|
this.seesWindow = true;
|
|
14
|
+
/**
|
|
15
|
+
* If set to true, this sensor will not trigger the night alarm in case of detected movement
|
|
16
|
+
* @default false
|
|
17
|
+
*/
|
|
14
18
|
this.excludeFromNightAlarm = false;
|
|
15
19
|
}
|
|
16
20
|
fromPartialObject(data) {
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { DeviceSettings } from './deviceSettings';
|
|
2
2
|
export declare class SceneSettings extends DeviceSettings {
|
|
3
|
+
/**
|
|
4
|
+
* The default turn off timeout in ms for the scene or undefined if not desired.
|
|
5
|
+
* @default undefined (No timeout)
|
|
6
|
+
*/
|
|
3
7
|
defaultTurnOffTimeout?: number;
|
|
4
8
|
fromPartialObject(data: Partial<SceneSettings>): void;
|
|
5
9
|
protected toJSON(): Partial<SceneSettings>;
|
|
@@ -1,21 +1,29 @@
|
|
|
1
1
|
import { DeviceSettings } from './deviceSettings';
|
|
2
2
|
export declare class ShutterSettings extends DeviceSettings {
|
|
3
|
+
/**
|
|
4
|
+
* The time in ms it takes for the shutter to move to the top.
|
|
5
|
+
* @default -1 (Not set)
|
|
6
|
+
*/
|
|
3
7
|
msTilTop: number;
|
|
8
|
+
/**
|
|
9
|
+
* The time in ms it takes for the shutter to move to the bottom.
|
|
10
|
+
* @default -1 (Not set)
|
|
11
|
+
*/
|
|
4
12
|
msTilBot: number;
|
|
5
13
|
/**
|
|
6
14
|
* The direction this shutter is facing (0 = North, 180 = South)
|
|
7
|
-
* @
|
|
15
|
+
* @default 180 (Worst case scenario being south)
|
|
8
16
|
*/
|
|
9
17
|
direction: number;
|
|
10
18
|
/**
|
|
11
19
|
* The desired position, when the shutter should perform a heat reduction.
|
|
12
|
-
* @
|
|
20
|
+
* @default 40
|
|
13
21
|
*/
|
|
14
22
|
heatReductionPosition: number;
|
|
15
23
|
/**
|
|
16
24
|
* Some shutter give no position feedback on their own, so by knowing the durations in either direction,
|
|
17
25
|
* we can programmatically trigger the callbacks.
|
|
18
|
-
* @
|
|
26
|
+
* @default false
|
|
19
27
|
*/
|
|
20
28
|
triggerPositionUpdateByTime: boolean;
|
|
21
29
|
fromPartialObject(data: Partial<ShutterSettings>): void;
|
|
@@ -6,22 +6,30 @@ const server_1 = require("../../server");
|
|
|
6
6
|
class ShutterSettings extends deviceSettings_1.DeviceSettings {
|
|
7
7
|
constructor() {
|
|
8
8
|
super(...arguments);
|
|
9
|
+
/**
|
|
10
|
+
* The time in ms it takes for the shutter to move to the top.
|
|
11
|
+
* @default -1 (Not set)
|
|
12
|
+
*/
|
|
9
13
|
this.msTilTop = -1;
|
|
14
|
+
/**
|
|
15
|
+
* The time in ms it takes for the shutter to move to the bottom.
|
|
16
|
+
* @default -1 (Not set)
|
|
17
|
+
*/
|
|
10
18
|
this.msTilBot = -1;
|
|
11
19
|
/**
|
|
12
20
|
* The direction this shutter is facing (0 = North, 180 = South)
|
|
13
|
-
* @
|
|
21
|
+
* @default 180 (Worst case scenario being south)
|
|
14
22
|
*/
|
|
15
23
|
this.direction = 180;
|
|
16
24
|
/**
|
|
17
25
|
* The desired position, when the shutter should perform a heat reduction.
|
|
18
|
-
* @
|
|
26
|
+
* @default 40
|
|
19
27
|
*/
|
|
20
28
|
this.heatReductionPosition = 40;
|
|
21
29
|
/**
|
|
22
30
|
* Some shutter give no position feedback on their own, so by knowing the durations in either direction,
|
|
23
31
|
* we can programmatically trigger the callbacks.
|
|
24
|
-
* @
|
|
32
|
+
* @default false
|
|
25
33
|
*/
|
|
26
34
|
this.triggerPositionUpdateByTime = false;
|
|
27
35
|
}
|