hoffmation-base 3.0.0-alpha.23 → 3.0.0-alpha.24

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.
Files changed (440) hide show
  1. package/lib/index.d.ts +5 -1
  2. package/lib/index.js +20 -20
  3. package/lib/liquid-pid.js +1 -0
  4. package/lib/models/blockAutomaticSettings.d.ts +23 -0
  5. package/lib/models/blockAutomaticSettings.js +19 -0
  6. package/lib/models/command/ShutterSetLevelCommand.d.ts +1 -0
  7. package/lib/models/command/ShutterSetLevelCommand.js +1 -0
  8. package/lib/models/command/WindowRestoreDesiredPositionCommand.d.ts +1 -0
  9. package/lib/models/command/WindowRestoreDesiredPositionCommand.js +1 -0
  10. package/lib/models/command/WindowSetDesiredPositionCommand.d.ts +1 -0
  11. package/lib/models/command/WindowSetDesiredPositionCommand.js +1 -0
  12. package/lib/models/command/WindowSetRolloByWeatherStatusCommand.d.ts +1 -0
  13. package/lib/models/command/WindowSetRolloByWeatherStatusCommand.js +1 -0
  14. package/lib/models/command/actuatorSetStateCommand.d.ts +11 -3
  15. package/lib/models/command/actuatorSetStateCommand.js +8 -6
  16. package/lib/models/command/actuatorToggleCommand.d.ts +1 -1
  17. package/lib/models/command/actuatorToggleCommand.js +1 -3
  18. package/lib/models/command/actuatorWriteStateToDeviceCommand.d.ts +1 -0
  19. package/lib/models/command/actuatorWriteStateToDeviceCommand.js +1 -0
  20. package/lib/models/command/baseCommand.d.ts +8 -0
  21. package/lib/models/command/blockAutomaticCommand.d.ts +20 -5
  22. package/lib/models/command/blockAutomaticCommand.js +23 -5
  23. package/lib/models/command/blockAutomaticLiftBlockCommand.d.ts +7 -1
  24. package/lib/models/command/blockAutomaticLiftBlockCommand.js +7 -1
  25. package/lib/models/command/blockAutomaticUntilCommand.d.ts +12 -3
  26. package/lib/models/command/blockAutomaticUntilCommand.js +10 -3
  27. package/lib/models/command/dimmerSetLightCommand.d.ts +6 -2
  28. package/lib/models/command/dimmerSetLightCommand.js +12 -8
  29. package/lib/models/command/floorSetAllShuttersCommand.d.ts +1 -0
  30. package/lib/models/command/floorSetAllShuttersCommand.js +1 -0
  31. package/lib/models/command/lampSetLightCommand.d.ts +6 -2
  32. package/lib/models/command/lampSetLightCommand.js +8 -4
  33. package/lib/models/command/lampSetTimeBasedCommand.d.ts +11 -4
  34. package/lib/models/command/lampSetTimeBasedCommand.js +5 -7
  35. package/lib/models/command/lampToggleLightCommand.d.ts +1 -0
  36. package/lib/models/command/lampToggleLightCommand.js +1 -0
  37. package/lib/models/command/ledSetLightCommand.d.ts +6 -2
  38. package/lib/models/command/ledSetLightCommand.js +12 -8
  39. package/lib/models/command/lightGroupSwitchTimeConditionalCommand.d.ts +1 -0
  40. package/lib/models/command/lightGroupSwitchTimeConditionalCommand.js +1 -0
  41. package/lib/models/command/restoreTargetAutomaticValueCommand.d.ts +1 -1
  42. package/lib/models/command/restoreTargetAutomaticValueCommand.js +1 -3
  43. package/lib/models/command/roomRestoreLightCommand.d.ts +1 -0
  44. package/lib/models/command/roomRestoreLightCommand.js +1 -0
  45. package/lib/models/command/roomRestoreShutterPositionCommand.d.ts +1 -0
  46. package/lib/models/command/roomRestoreShutterPositionCommand.js +1 -0
  47. package/lib/models/command/roomSetLightTimeBasedCommand.d.ts +1 -0
  48. package/lib/models/command/roomSetLightTimeBasedCommand.js +1 -0
  49. package/lib/models/command/shutterSunriseUpCommand.d.ts +1 -0
  50. package/lib/models/command/shutterSunriseUpCommand.js +1 -0
  51. package/lib/models/command/shutterSunsetDownCommand.d.ts +1 -0
  52. package/lib/models/command/shutterSunsetDownCommand.js +1 -0
  53. package/lib/models/command/wledSetLightCommand.d.ts +5 -2
  54. package/lib/models/command/wledSetLightCommand.js +11 -8
  55. package/lib/models/connectionCallbacks.js +1 -0
  56. package/lib/models/deviceSettings/acSettings.d.ts +14 -1
  57. package/lib/models/deviceSettings/acSettings.js +14 -1
  58. package/lib/models/deviceSettings/cameraSettings.d.ts +12 -0
  59. package/lib/models/deviceSettings/cameraSettings.js +12 -0
  60. package/lib/models/deviceSettings/dachsSettings.d.ts +3 -0
  61. package/lib/models/deviceSettings/dachsSettings.js +3 -0
  62. package/lib/models/deviceSettings/deviceSettings.d.ts +10 -0
  63. package/lib/models/deviceSettings/deviceSettings.js +16 -0
  64. package/lib/models/deviceSettings/dimmerSettings.d.ts +20 -0
  65. package/lib/models/deviceSettings/dimmerSettings.js +20 -0
  66. package/lib/models/deviceSettings/handleSettings.d.ts +9 -0
  67. package/lib/models/deviceSettings/handleSettings.js +9 -0
  68. package/lib/models/deviceSettings/heaterSettings.d.ts +21 -3
  69. package/lib/models/deviceSettings/heaterSettings.js +21 -3
  70. package/lib/models/deviceSettings/ledSettings.d.ts +66 -0
  71. package/lib/models/deviceSettings/ledSettings.js +66 -0
  72. package/lib/models/deviceSettings/motionSensorSettings.d.ts +5 -0
  73. package/lib/models/deviceSettings/motionSensorSettings.js +5 -0
  74. package/lib/models/deviceSettings/sceneSettings.d.ts +4 -0
  75. package/lib/models/deviceSettings/shutterSettings.d.ts +11 -0
  76. package/lib/models/deviceSettings/shutterSettings.js +11 -0
  77. package/lib/models/deviceSettings/sonosDeviceSettings.d.ts +4 -0
  78. package/lib/models/deviceSettings/sonosDeviceSettings.js +4 -0
  79. package/lib/models/deviceSettings/tvSettings.d.ts +4 -0
  80. package/lib/models/deviceSettings/victronDeviceSettings.d.ts +34 -0
  81. package/lib/models/deviceSettings/victronDeviceSettings.js +34 -0
  82. package/lib/models/deviceSettings/wledSettings.d.ts +48 -0
  83. package/lib/models/deviceSettings/wledSettings.js +32 -0
  84. package/lib/models/groupSettings/heatGroupSettings.d.ts +9 -0
  85. package/lib/models/groupSettings/heatGroupSettings.js +9 -0
  86. package/lib/models/iIdHolder.d.ts +15 -3
  87. package/lib/models/index.d.ts +1 -1
  88. package/lib/models/index.js +3 -1
  89. package/lib/models/objectSettings.d.ts +3 -0
  90. package/lib/models/persistence/EnergyCalculation.d.ts +27 -0
  91. package/lib/models/persistence/EnergyCalculation.js +30 -4
  92. package/lib/models/persistence/index.d.ts +0 -2
  93. package/lib/models/persistence/index.js +0 -2
  94. package/lib/models/rooms/RoomBase.d.ts +10 -0
  95. package/lib/models/rooms/RoomBase.js +1 -0
  96. package/lib/models/rooms/RoomSettings/RoomInitializationSettings.d.ts +2 -1
  97. package/lib/models/rooms/RoomSettings/RoomInitializationSettings.js +2 -2
  98. package/lib/models/rooms/RoomSettings/RoomSettingsController.d.ts +9 -0
  99. package/lib/models/rooms/RoomSettings/RoomSettingsController.js +1 -1
  100. package/lib/models/rooms/RoomSettings/iRoomDefaultSettings.d.ts +53 -3
  101. package/lib/models/rooms/RoomSettings/iRoomInitializationSettings.d.ts +10 -1
  102. package/lib/models/rooms/RoomSettings/roomDeviceAddingSettings.d.ts +4 -1
  103. package/lib/models/rooms/RoomSettings/roomDeviceAddingSettings.js +3 -0
  104. package/lib/models/rooms/RoomSettings/roomSettings.d.ts +55 -0
  105. package/lib/models/rooms/RoomSettings/roomSettings.js +55 -0
  106. package/lib/models/rooms/iRoomBase.d.ts +24 -2
  107. package/lib/models/rooms/iRoomImportEnforcer.d.ts +4 -0
  108. package/lib/models/timeCallback.d.ts +7 -0
  109. package/lib/models/timeCallback.js +4 -1
  110. package/lib/server/config/iAsusConfig.d.ts +15 -0
  111. package/lib/server/config/iBlockAutomaticHandlerDefaults.d.ts +23 -0
  112. package/lib/server/config/iBlueIrisSettings.d.ts +14 -0
  113. package/lib/server/config/iBluetoothTrackingSettings.d.ts +9 -0
  114. package/lib/server/config/iConfig.d.ts +88 -6
  115. package/lib/server/config/iDachsSettings.d.ts +16 -0
  116. package/lib/server/config/iDaikinSettings.d.ts +17 -0
  117. package/lib/server/config/iEnergyManagerSettings.d.ts +13 -0
  118. package/lib/server/config/iEspresenseSettings.d.ts +10 -0
  119. package/lib/server/config/iHeaterSettings.d.ts +8 -0
  120. package/lib/server/config/iIobrokerSettigns.d.ts +8 -0
  121. package/lib/server/config/iLogSettings.d.ts +36 -1
  122. package/lib/server/config/iMp3Settings.d.ts +10 -0
  123. package/lib/server/config/iMuellSettings.d.ts +7 -0
  124. package/lib/server/config/iNewsSettings.d.ts +13 -0
  125. package/lib/server/config/iPersistenceSettings.d.ts +10 -0
  126. package/lib/server/config/iPollySettings.d.ts +22 -0
  127. package/lib/server/config/iSonosSettings.d.ts +10 -0
  128. package/lib/server/config/iTelegramSettings.d.ts +17 -0
  129. package/lib/server/config/iTibberSettings.d.ts +10 -0
  130. package/lib/server/config/iTimePair.d.ts +9 -0
  131. package/lib/server/config/iTimeSettings.d.ts +9 -0
  132. package/lib/server/config/iTranslationSettings.d.ts +10 -0
  133. package/lib/server/config/iUnifiConnectionOptions.d.ts +31 -0
  134. package/lib/server/config/iUnifiSettings.d.ts +8 -0
  135. package/lib/server/config/iVictronSettings.d.ts +14 -0
  136. package/lib/server/config/iWeatherSettings.d.ts +13 -0
  137. package/lib/server/config/index.d.ts +1 -1
  138. package/lib/server/config/index.js +0 -1
  139. package/lib/server/devices/DeviceCapability.d.ts +1 -0
  140. package/lib/server/devices/DeviceCapability.js +1 -0
  141. package/lib/server/devices/DeviceInfo.d.ts +9 -0
  142. package/lib/server/devices/DeviceInfo.js +6 -0
  143. package/lib/server/devices/Griffe.js +1 -1
  144. package/lib/server/devices/Heizgruppen.js +2 -2
  145. package/lib/server/devices/IoBrokerBaseDevice.d.ts +23 -2
  146. package/lib/server/devices/IoBrokerBaseDevice.js +16 -4
  147. package/lib/server/devices/baseDeviceInterfaces/iAcDevice.d.ts +14 -3
  148. package/lib/server/devices/baseDeviceInterfaces/iActuator.d.ts +2 -0
  149. package/lib/server/devices/baseDeviceInterfaces/iBaseDevice.d.ts +1 -1
  150. package/lib/server/devices/baseDeviceInterfaces/iBatteryDevice.d.ts +2 -0
  151. package/lib/server/devices/baseDeviceInterfaces/iBluetoothDetector.d.ts +15 -7
  152. package/lib/server/devices/baseDeviceInterfaces/iButtonSwitch.d.ts +33 -4
  153. package/lib/server/devices/baseDeviceInterfaces/iCameraDevice.d.ts +38 -5
  154. package/lib/server/devices/baseDeviceInterfaces/iDimmableLamp.d.ts +10 -2
  155. package/lib/server/devices/baseDeviceInterfaces/iEnergyManager.d.ts +19 -0
  156. package/lib/server/devices/baseDeviceInterfaces/iExcessEnergyConsumer.d.ts +16 -2
  157. package/lib/server/devices/baseDeviceInterfaces/iGarageDoorOpener.d.ts +11 -0
  158. package/lib/server/devices/baseDeviceInterfaces/iHandleSensor.d.ts +15 -3
  159. package/lib/server/devices/baseDeviceInterfaces/iHeater.d.ts +28 -2
  160. package/lib/server/devices/baseDeviceInterfaces/iHumiditySensor.d.ts +13 -1
  161. package/lib/server/devices/baseDeviceInterfaces/iIlluminationSensor.d.ts +11 -0
  162. package/lib/server/devices/baseDeviceInterfaces/iLamp.d.ts +6 -1
  163. package/lib/server/devices/baseDeviceInterfaces/iLedRgbCct.d.ts +16 -1
  164. package/lib/server/devices/baseDeviceInterfaces/iLoadMeter.d.ts +5 -0
  165. package/lib/server/devices/baseDeviceInterfaces/iMagnetSensor.d.ts +31 -0
  166. package/lib/server/devices/baseDeviceInterfaces/iMotionSensor.d.ts +14 -0
  167. package/lib/server/devices/baseDeviceInterfaces/iRoomDevice.d.ts +6 -0
  168. package/lib/server/devices/baseDeviceInterfaces/iScene.d.ts +25 -2
  169. package/lib/server/devices/baseDeviceInterfaces/iShutter.d.ts +18 -1
  170. package/lib/server/devices/baseDeviceInterfaces/iSmokeDetectorDevice.d.ts +6 -1
  171. package/lib/server/devices/baseDeviceInterfaces/iSpeaker.d.ts +15 -10
  172. package/lib/server/devices/baseDeviceInterfaces/iTemperatureSensor.d.ts +21 -3
  173. package/lib/server/devices/baseDeviceInterfaces/iTemporaryDisableAutomatic.d.ts +7 -1
  174. package/lib/server/devices/baseDeviceInterfaces/iTvDevice.d.ts +8 -0
  175. package/lib/server/devices/baseDeviceInterfaces/iVibrationSensor.d.ts +24 -4
  176. package/lib/server/devices/baseDeviceInterfaces/index.d.ts +1 -0
  177. package/lib/server/devices/blueIris/cameraDevice.d.ts +47 -31
  178. package/lib/server/devices/blueIris/cameraDevice.js +75 -74
  179. package/lib/server/devices/button/button.d.ts +0 -1
  180. package/lib/server/devices/button/button.js +0 -4
  181. package/lib/server/devices/button/buttonCallback.d.ts +5 -0
  182. package/lib/server/devices/button/buttonCallback.js +10 -0
  183. package/lib/server/devices/button/buttonCapabilities.d.ts +12 -0
  184. package/lib/server/devices/button/buttonCapabilities.js +12 -0
  185. package/lib/server/devices/button/index.d.ts +1 -0
  186. package/lib/server/devices/button/index.js +3 -0
  187. package/lib/server/devices/dachs/dachs.d.ts +31 -9
  188. package/lib/server/devices/dachs/dachs.js +27 -17
  189. package/lib/server/devices/dachs/dachsTemperatureSensor.d.ts +20 -1
  190. package/lib/server/devices/dachs/dachsTemperatureSensor.js +20 -3
  191. package/lib/server/devices/dachs/interfaces/DachsClientOptions.d.ts +30 -0
  192. package/lib/server/devices/dachs/interfaces/dachsInfluxDataPoint.d.ts +12 -0
  193. package/lib/server/devices/dachs/interfaces/influxDbConnectionOptions.d.ts +21 -1
  194. package/lib/server/devices/dachs/lib/dachsHttpClient.js +2 -2
  195. package/lib/server/devices/device-cluster.d.ts +3 -0
  196. package/lib/server/devices/device-cluster.js +1 -1
  197. package/lib/server/devices/deviceUpdater.d.ts +0 -3
  198. package/lib/server/devices/deviceUpdater.js +1 -4
  199. package/lib/server/devices/devices.d.ts +43 -7
  200. package/lib/server/devices/devices.js +42 -6
  201. package/lib/server/devices/espresense/detectedBluetoothDevice.d.ts +13 -0
  202. package/lib/server/devices/espresense/detectedBluetoothDevice.js +13 -0
  203. package/lib/server/devices/espresense/espresenseDevice.d.ts +31 -1
  204. package/lib/server/devices/espresense/espresenseDevice.js +28 -4
  205. package/lib/server/devices/espresense/trackedDistanceData.d.ts +12 -0
  206. package/lib/server/devices/espresense/trackedDistanceData.js +3 -0
  207. package/lib/server/devices/espresense/trilateration.d.ts +7 -0
  208. package/lib/server/devices/espresense/trilateration.js +7 -0
  209. package/lib/server/devices/espresense/trilaterationBasePoint.d.ts +6 -0
  210. package/lib/server/devices/espresense/trilaterationBasePoint.js +3 -0
  211. package/lib/server/devices/espresense/trilaterationPoint.d.ts +1 -1
  212. package/lib/server/devices/espresense/trilaterationPoint.js +3 -1
  213. package/lib/server/devices/groups/Window.d.ts +6 -1
  214. package/lib/server/devices/groups/Window.js +15 -8
  215. package/lib/server/devices/groups/base-group.d.ts +4 -0
  216. package/lib/server/devices/groups/base-group.js +3 -0
  217. package/lib/server/devices/groups/heatGroup.d.ts +1 -0
  218. package/lib/server/devices/groups/heatGroup.js +3 -2
  219. package/lib/server/devices/groups/lightGroup.d.ts +8 -0
  220. package/lib/server/devices/groups/lightGroup.js +4 -4
  221. package/lib/server/devices/groups/tasterGroup.js +6 -6
  222. package/lib/server/devices/groups/windowGroup.d.ts +11 -1
  223. package/lib/server/devices/groups/windowGroup.js +2 -2
  224. package/lib/server/devices/hmIPDevices/hmIpAccessPoint.d.ts +1 -0
  225. package/lib/server/devices/hmIPDevices/hmIpAccessPoint.js +1 -0
  226. package/lib/server/devices/hmIPDevices/hmIpBewegung.d.ts +7 -4
  227. package/lib/server/devices/hmIPDevices/hmIpBewegung.js +9 -10
  228. package/lib/server/devices/hmIPDevices/hmIpDevice.d.ts +1 -2
  229. package/lib/server/devices/hmIPDevices/hmIpDevice.js +2 -3
  230. package/lib/server/devices/hmIPDevices/hmIpGriff.d.ts +27 -5
  231. package/lib/server/devices/hmIPDevices/hmIpGriff.js +59 -37
  232. package/lib/server/devices/hmIPDevices/hmIpHeizgruppe.d.ts +22 -1
  233. package/lib/server/devices/hmIPDevices/hmIpHeizgruppe.js +23 -4
  234. package/lib/server/devices/hmIPDevices/hmIpHeizung.d.ts +1 -0
  235. package/lib/server/devices/hmIPDevices/hmIpHeizung.js +1 -0
  236. package/lib/server/devices/hmIPDevices/hmIpLampe.d.ts +6 -0
  237. package/lib/server/devices/hmIPDevices/hmIpLampe.js +6 -1
  238. package/lib/server/devices/hmIPDevices/hmIpPraezenz.d.ts +3 -1
  239. package/lib/server/devices/hmIPDevices/hmIpPraezenz.js +4 -2
  240. package/lib/server/devices/hmIPDevices/hmIpRoll.d.ts +2 -0
  241. package/lib/server/devices/hmIPDevices/hmIpRoll.js +5 -3
  242. package/lib/server/devices/hmIPDevices/hmIpTaster.d.ts +15 -0
  243. package/lib/server/devices/hmIPDevices/hmIpTaster.js +9 -0
  244. package/lib/server/devices/hmIPDevices/hmIpTherm.d.ts +1 -0
  245. package/lib/server/devices/hmIPDevices/hmIpTherm.js +1 -0
  246. package/lib/server/devices/hmIPDevices/hmIpTuer.d.ts +9 -1
  247. package/lib/server/devices/hmIPDevices/hmIpTuer.js +17 -4
  248. package/lib/server/devices/hmIPDevices/hmIpWippe.d.ts +27 -0
  249. package/lib/server/devices/hmIPDevices/hmIpWippe.js +3 -0
  250. package/lib/server/devices/iDeviceUpdater.d.ts +3 -0
  251. package/lib/server/devices/index.d.ts +1 -0
  252. package/lib/server/devices/index.js +3 -0
  253. package/lib/server/devices/jsObject/jsObjectEnergyManager.d.ts +2 -0
  254. package/lib/server/devices/jsObject/jsObjectEnergyManager.js +4 -2
  255. package/lib/server/devices/nameAmountValuePair.d.ts +5 -0
  256. package/lib/server/devices/nameAmountValuePair.js +10 -0
  257. package/lib/server/devices/scene/room-scene.d.ts +23 -6
  258. package/lib/server/devices/scene/room-scene.js +18 -4
  259. package/lib/server/devices/sharedFunctions/lampUtils.js +11 -7
  260. package/lib/server/devices/shelly/shellyDevice.d.ts +2 -1
  261. package/lib/server/devices/shelly/shellyDevice.js +2 -1
  262. package/lib/server/devices/shelly/shellyTrv.d.ts +28 -16
  263. package/lib/server/devices/shelly/shellyTrv.js +46 -45
  264. package/lib/server/devices/tuya/tuyaDevice.d.ts +2 -1
  265. package/lib/server/devices/tuya/tuyaDevice.js +2 -1
  266. package/lib/server/devices/tuya/tuyaGarageOpener.d.ts +3 -0
  267. package/lib/server/devices/tuya/tuyaGarageOpener.js +3 -0
  268. package/lib/server/devices/tv/samsungTv.d.ts +1 -0
  269. package/lib/server/devices/tv/samsungTv.js +1 -0
  270. package/lib/server/devices/tv/tvDevice.d.ts +7 -1
  271. package/lib/server/devices/tv/tvDevice.js +4 -3
  272. package/lib/server/devices/wledDevice.d.ts +15 -2
  273. package/lib/server/devices/wledDevice.js +21 -5
  274. package/lib/server/devices/zigbee/BaseDevices/ZigbeeActuator.d.ts +11 -0
  275. package/lib/server/devices/zigbee/BaseDevices/ZigbeeActuator.js +13 -3
  276. package/lib/server/devices/zigbee/BaseDevices/zigbeeDevice.d.ts +4 -3
  277. package/lib/server/devices/zigbee/BaseDevices/zigbeeDevice.js +7 -5
  278. package/lib/server/devices/zigbee/BaseDevices/zigbeeDimmer.d.ts +16 -4
  279. package/lib/server/devices/zigbee/BaseDevices/zigbeeDimmer.js +25 -13
  280. package/lib/server/devices/zigbee/BaseDevices/zigbeeHeater.d.ts +17 -4
  281. package/lib/server/devices/zigbee/BaseDevices/zigbeeHeater.js +17 -11
  282. package/lib/server/devices/zigbee/BaseDevices/zigbeeLedRGBCCT.d.ts +7 -7
  283. package/lib/server/devices/zigbee/BaseDevices/zigbeeLedRGBCCT.js +10 -10
  284. package/lib/server/devices/zigbee/BaseDevices/zigbeeMagnetContact.d.ts +12 -2
  285. package/lib/server/devices/zigbee/BaseDevices/zigbeeMagnetContact.js +11 -1
  286. package/lib/server/devices/zigbee/BaseDevices/zigbeeMotionSensor.d.ts +19 -11
  287. package/lib/server/devices/zigbee/BaseDevices/zigbeeMotionSensor.js +44 -40
  288. package/lib/server/devices/zigbee/BaseDevices/zigbeeShutter.d.ts +10 -0
  289. package/lib/server/devices/zigbee/BaseDevices/zigbeeShutter.js +13 -3
  290. package/lib/server/devices/zigbee/BaseDevices/zigbeeSwitch.d.ts +8 -0
  291. package/lib/server/devices/zigbee/BaseDevices/zigbeeSwitch.js +8 -1
  292. package/lib/server/devices/zigbee/zigbeeAqaraMagnetContact.d.ts +1 -0
  293. package/lib/server/devices/zigbee/zigbeeAqaraMagnetContact.js +1 -0
  294. package/lib/server/devices/zigbee/zigbeeAqaraOpple3Switch.d.ts +16 -0
  295. package/lib/server/devices/zigbee/zigbeeAqaraOpple3Switch.js +16 -0
  296. package/lib/server/devices/zigbee/zigbeeAquaraMotion.d.ts +6 -0
  297. package/lib/server/devices/zigbee/zigbeeAquaraMotion.js +7 -3
  298. package/lib/server/devices/zigbee/zigbeeAquaraVibra.d.ts +49 -11
  299. package/lib/server/devices/zigbee/zigbeeAquaraVibra.js +98 -30
  300. package/lib/server/devices/zigbee/zigbeeAquaraWater.d.ts +12 -1
  301. package/lib/server/devices/zigbee/zigbeeAquaraWater.js +15 -11
  302. package/lib/server/devices/zigbee/zigbeeBlitzShp.d.ts +14 -5
  303. package/lib/server/devices/zigbee/zigbeeBlitzShp.js +20 -13
  304. package/lib/server/devices/zigbee/zigbeeEuroHeater.d.ts +8 -1
  305. package/lib/server/devices/zigbee/zigbeeEuroHeater.js +14 -7
  306. package/lib/server/devices/zigbee/zigbeeHeimanSmoke.d.ts +19 -1
  307. package/lib/server/devices/zigbee/zigbeeHeimanSmoke.js +25 -7
  308. package/lib/server/devices/zigbee/zigbeeIkeaShutter.d.ts +1 -0
  309. package/lib/server/devices/zigbee/zigbeeIkeaShutter.js +1 -0
  310. package/lib/server/devices/zigbee/zigbeeIkeaSteckdose.d.ts +1 -0
  311. package/lib/server/devices/zigbee/zigbeeIkeaSteckdose.js +1 -0
  312. package/lib/server/devices/zigbee/zigbeeIlluActuator.d.ts +1 -1
  313. package/lib/server/devices/zigbee/zigbeeIlluActuator.js +1 -3
  314. package/lib/server/devices/zigbee/zigbeeIlluLampe.d.ts +5 -0
  315. package/lib/server/devices/zigbee/zigbeeIlluLampe.js +6 -1
  316. package/lib/server/devices/zigbee/zigbeeIlluShutter.d.ts +1 -0
  317. package/lib/server/devices/zigbee/zigbeeIlluShutter.js +1 -0
  318. package/lib/server/devices/zigbee/zigbeeSMaBiTMagnetContact.d.ts +1 -0
  319. package/lib/server/devices/zigbee/zigbeeSMaBiTMagnetContact.js +1 -0
  320. package/lib/server/devices/zigbee/zigbeeSonoffMotion.d.ts +1 -0
  321. package/lib/server/devices/zigbee/zigbeeSonoffMotion.js +1 -0
  322. package/lib/server/devices/zigbee/zigbeeSonoffTemp.d.ts +17 -0
  323. package/lib/server/devices/zigbee/zigbeeSonoffTemp.js +18 -1
  324. package/lib/server/devices/zigbee/zigbeeTuyaValve.d.ts +10 -3
  325. package/lib/server/devices/zigbee/zigbeeTuyaValve.js +11 -6
  326. package/lib/server/devices/zigbee/zigbeeUbisysActuator.d.ts +7 -1
  327. package/lib/server/devices/zigbee/zigbeeUbisysActuator.js +7 -3
  328. package/lib/server/devices/zigbee/zigbeeUbisysLampe.d.ts +5 -0
  329. package/lib/server/devices/zigbee/zigbeeUbisysLampe.js +6 -1
  330. package/lib/server/devices/zigbee/zigbeeUbisysShutter.d.ts +1 -0
  331. package/lib/server/devices/zigbee/zigbeeUbisysShutter.js +1 -0
  332. package/lib/server/ioBroker/connection.d.ts +1 -0
  333. package/lib/server/ioBroker/connection.js +8 -7
  334. package/lib/server/ioBroker/ioBroker.main.d.ts +3 -0
  335. package/lib/server/ioBroker/ioBroker.main.js +4 -3
  336. package/lib/server/ioBroker/iobrokerConnectionLogging.d.ts +3 -0
  337. package/lib/server/ioBroker/iobrokerConnectionLogging.js +4 -0
  338. package/lib/server/ioBroker/socketIOConnectOptions.js +1 -0
  339. package/lib/server/ioBroker/socketIOVisCommand.js +1 -0
  340. package/lib/server/services/ShutterService.js +3 -3
  341. package/lib/server/services/Sonos/OwnSonosDevices.d.ts +3 -0
  342. package/lib/server/services/Sonos/OwnSonosDevices.js +3 -0
  343. package/lib/server/services/Sonos/mp3-server.d.ts +3 -1
  344. package/lib/server/services/Sonos/mp3-server.js +3 -1
  345. package/lib/server/services/Sonos/own-sonos-device.d.ts +4 -1
  346. package/lib/server/services/Sonos/own-sonos-device.js +4 -4
  347. package/lib/server/services/Sonos/polly-service.d.ts +7 -1
  348. package/lib/server/services/Sonos/polly-service.js +9 -6
  349. package/lib/server/services/Sonos/sonos-service.d.ts +0 -5
  350. package/lib/server/services/Sonos/sonos-service.js +6 -10
  351. package/lib/server/services/Telegram/telegram-Commands.js +5 -5
  352. package/lib/server/services/Telegram/telegram-service.d.ts +2 -1
  353. package/lib/server/services/Telegram/telegram-service.js +8 -3
  354. package/lib/server/services/Translation/IRessourceObject.d.ts +13 -0
  355. package/lib/server/services/Translation/IRessourceObject.js +2 -0
  356. package/lib/server/services/Translation/iRessources.d.ts +1 -4
  357. package/lib/server/services/Translation/index.d.ts +1 -0
  358. package/lib/server/services/ac/ac-device.d.ts +38 -1
  359. package/lib/server/services/ac/ac-device.js +45 -12
  360. package/lib/server/services/ac/daikin-service.js +2 -2
  361. package/lib/server/services/ac/own-ac-devices.d.ts +3 -0
  362. package/lib/server/services/ac/own-ac-devices.js +3 -0
  363. package/lib/server/services/ac/own-daikin-device.d.ts +17 -0
  364. package/lib/server/services/ac/own-daikin-device.js +20 -3
  365. package/lib/server/services/api/api-service.d.ts +8 -8
  366. package/lib/server/services/api/api-service.js +26 -26
  367. package/lib/server/services/blockAutomaticHandler.d.ts +5 -0
  368. package/lib/server/services/blockAutomaticHandler.js +20 -8
  369. package/lib/server/services/calendar/index.d.ts +1 -0
  370. package/lib/server/services/calendar/index.js +3 -0
  371. package/lib/server/services/calendar/muell-tonne.d.ts +11 -1
  372. package/lib/server/services/calendar/muell-tonne.js +10 -0
  373. package/lib/server/services/calendar/m/303/274ll-service.d.ts +23 -8
  374. package/lib/server/services/calendar/m/303/274ll-service.js +10 -4
  375. package/lib/server/services/calendar/name-date-pair.d.ts +5 -0
  376. package/lib/server/services/calendar/name-date-pair.js +10 -0
  377. package/lib/server/services/dbo/iPersist.d.ts +37 -30
  378. package/lib/server/services/dbo/postgreSqlPersist.d.ts +23 -0
  379. package/lib/server/services/dbo/postgreSqlPersist.js +28 -5
  380. package/lib/server/services/file-info.d.ts +5 -0
  381. package/lib/server/services/file-info.js +10 -0
  382. package/lib/server/services/govee/govee-service.d.ts +1 -5
  383. package/lib/server/services/govee/govee-service.js +3 -5
  384. package/lib/server/services/govee/own-govee-device.d.ts +17 -12
  385. package/lib/server/services/govee/own-govee-device.js +17 -18
  386. package/lib/server/services/govee/own-govee-devices.d.ts +3 -0
  387. package/lib/server/services/govee/own-govee-devices.js +3 -0
  388. package/lib/server/services/https-service.js +1 -1
  389. package/lib/server/services/index.d.ts +1 -0
  390. package/lib/server/services/index.js +3 -0
  391. package/lib/server/services/log-service/index.d.ts +1 -0
  392. package/lib/server/services/log-service/index.js +3 -0
  393. package/lib/server/services/log-service/log-debug-type.d.ts +12 -0
  394. package/lib/server/services/log-service/log-debug-type.js +16 -0
  395. package/lib/server/services/log-service/log-filter-data.d.ts +21 -12
  396. package/lib/server/services/log-service/log-filter-data.js +6 -15
  397. package/lib/server/services/log-service/log-service.d.ts +15 -2
  398. package/lib/server/services/log-service/log-service.js +28 -15
  399. package/lib/server/services/news-service.d.ts +4 -1
  400. package/lib/server/services/news-service.js +9 -9
  401. package/lib/server/services/room-service/room-service.d.ts +17 -2
  402. package/lib/server/services/room-service/room-service.js +23 -8
  403. package/lib/server/services/settings-service.d.ts +3 -0
  404. package/lib/server/services/time-callback-service.js +1 -1
  405. package/lib/server/services/utils/RGB.d.ts +6 -0
  406. package/lib/server/services/utils/RGB.js +11 -0
  407. package/lib/server/services/utils/catchEmResult.d.ts +5 -0
  408. package/lib/server/services/utils/catchEmResult.js +10 -0
  409. package/lib/server/services/utils/energy-consumer-state-change.d.ts +6 -0
  410. package/lib/server/services/utils/energy-consumer-state-change.js +10 -0
  411. package/lib/server/services/utils/energy-manager-utils.d.ts +3 -14
  412. package/lib/server/services/utils/energy-manager-utils.js +2 -2
  413. package/lib/server/services/utils/iDisposeable.d.ts +3 -0
  414. package/lib/server/services/utils/index.d.ts +4 -1
  415. package/lib/server/services/utils/index.js +8 -1
  416. package/lib/server/services/utils/{ringstorage.d.ts → ringStorage.d.ts} +1 -1
  417. package/lib/server/services/utils/{ringstorage.js → ringStorage.js} +3 -3
  418. package/lib/server/services/utils/utils.d.ts +9 -13
  419. package/lib/server/services/victron/victron-device.d.ts +4 -0
  420. package/lib/server/services/victron/victron-device.js +10 -7
  421. package/lib/server/services/weather/index.d.ts +2 -0
  422. package/lib/server/services/weather/index.js +3 -0
  423. package/lib/server/services/weather/rain-next-minutes-info.d.ts +5 -0
  424. package/lib/server/services/weather/rain-next-minutes-info.js +10 -0
  425. package/lib/server/services/weather/weather-feelsLike.d.ts +15 -0
  426. package/lib/server/services/weather/weather-response.d.ts +16 -0
  427. package/lib/server/services/weather/weather-response.js +2 -0
  428. package/lib/server/services/weather/weather-service.d.ts +11 -17
  429. package/lib/server/services/weather/weather-service.js +28 -22
  430. package/lib/server/services/weather/weather-temp.d.ts +21 -0
  431. package/lib/tsconfig.tsbuildinfo +1 -1
  432. package/package.json +1 -3
  433. package/lib/models/iTemperaturDataPoint.d.ts +0 -9
  434. package/lib/models/persistence/RoomDetailInfo.d.ts +0 -6
  435. package/lib/models/persistence/RoomDetailInfo.js +0 -11
  436. package/lib/models/persistence/temperaturDataPoint.d.ts +0 -10
  437. package/lib/models/persistence/temperaturDataPoint.js +0 -14
  438. package/lib/server/config/iRestSettings.d.ts +0 -4
  439. /package/lib/{models/iTemperaturDataPoint.js → server/config/iBlockAutomaticHandlerDefaults.js} +0 -0
  440. /package/lib/server/{config/iRestSettings.js → devices/baseDeviceInterfaces/iMagnetSensor.js} +0 -0
@@ -10,30 +10,34 @@ class DimmerSetLightCommand extends lampSetLightCommand_1.LampSetLightCommand {
10
10
  * @param source - The source of the command
11
11
  * @param on - The desired value
12
12
  * @param reason - You can provide a reason for clarity
13
- * @param timeout - A chosen Timeout after which the light should be reset
13
+ * @param disableAutomatic - If provided, the device will remain in the desired state for the given disable action.
14
+ * If unset the default value will be used: {@link SettingsService.settings.blockAutomaticHandlerDefaults}
14
15
  * @param brightness - The desired brightness
15
16
  * @param transitionTime - The transition time during turnOn/turnOff
16
17
  */
17
- constructor(source, on, reason = '', timeout = -1, brightness = -1, transitionTime = -1) {
18
- super(source, on, reason, timeout);
18
+ constructor(source, on, reason = '', disableAutomatic, brightness = -1, transitionTime = -1) {
19
+ super(source, on, reason, disableAutomatic);
19
20
  this.brightness = brightness;
20
21
  this.transitionTime = transitionTime;
22
+ /** @inheritDoc */
21
23
  this._commandType = commandType_1.CommandType.DimmerSetLightCommand;
22
24
  }
25
+ /** @inheritDoc */
23
26
  get logMessage() {
24
- return `Dimmer setLight to ${this.on} with Brightness ${this.brightness} with timeout ${this.timeout} for reason: ${this.reasonTrace}`;
27
+ var _a;
28
+ return `Dimmer setLight to ${this.on} with Brightness ${this.brightness} with disable ${(_a = this.disableAutomaticCommand) === null || _a === void 0 ? void 0 : _a.logMessage} for reason: ${this.reasonTrace}`;
25
29
  }
26
30
  static byTimeBased(s, c) {
27
31
  const manual = c.isForceAction;
28
32
  switch (c.time) {
29
33
  case timeCallback_1.TimeOfDay.Daylight:
30
- return new DimmerSetLightCommand(c, manual || s.dayOn, 'Daylight', c.timeout, s.dayBrightness);
34
+ return new DimmerSetLightCommand(c, manual || s.dayOn, 'Daylight', c.disableAutomaticCommand, s.dayBrightness);
31
35
  case timeCallback_1.TimeOfDay.BeforeSunrise:
32
- return new DimmerSetLightCommand(c, manual || s.dawnOn, 'Dawn', c.timeout, s.dawnBrightness, undefined);
36
+ return new DimmerSetLightCommand(c, manual || s.dawnOn, 'Dawn', c.disableAutomaticCommand, s.dawnBrightness, undefined);
33
37
  case timeCallback_1.TimeOfDay.AfterSunset:
34
- return new DimmerSetLightCommand(c, manual || s.duskOn, 'Dusk', c.timeout, s.duskBrightness, undefined);
38
+ return new DimmerSetLightCommand(c, manual || s.duskOn, 'Dusk', c.disableAutomaticCommand, s.duskBrightness, undefined);
35
39
  case timeCallback_1.TimeOfDay.Night:
36
- return new DimmerSetLightCommand(c, manual || s.nightOn, 'Night', c.timeout, s.nightBrightness, undefined);
40
+ return new DimmerSetLightCommand(c, manual || s.nightOn, 'Night', c.disableAutomaticCommand, s.nightBrightness, undefined);
37
41
  default:
38
42
  throw new Error(`TimeOfDay ${c.time} not supported`);
39
43
  }
@@ -4,6 +4,7 @@ import { CommandType } from './commandType';
4
4
  export declare class FloorSetAllShuttersCommand extends BaseCommand {
5
5
  readonly position: number;
6
6
  readonly specificFloor: number | undefined;
7
+ /** @inheritDoc */
7
8
  _commandType: CommandType;
8
9
  /**
9
10
  * Creates an instance of FloorSetAllShuttersCommand.
@@ -15,6 +15,7 @@ class FloorSetAllShuttersCommand extends baseCommand_1.BaseCommand {
15
15
  super(source, reason);
16
16
  this.position = position;
17
17
  this.specificFloor = specificFloor;
18
+ /** @inheritDoc */
18
19
  this._commandType = commandType_1.CommandType.FloorSetAllShuttersCommand;
19
20
  }
20
21
  }
@@ -2,15 +2,19 @@ import { CommandType } from './commandType';
2
2
  import { CommandSource } from './commandSource';
3
3
  import { BaseCommand } from './baseCommand';
4
4
  import { ActuatorSetStateCommand } from './actuatorSetStateCommand';
5
+ import { BlockAutomaticCommand } from './blockAutomaticCommand';
5
6
  export declare class LampSetLightCommand extends ActuatorSetStateCommand {
7
+ /** @inheritDoc */
6
8
  _commandType: CommandType;
7
9
  /**
8
10
  * Command to set the light of a lamp
9
11
  * @param source - The source of the command
10
12
  * @param on - The new state of the light
11
13
  * @param reason - You can provide a reason for clarification
12
- * @param timeout - If provided, the device automatic will be turned off for the given time in ms --> Reverts to automatic after the timeout.
14
+ * @param disableAutomatic - If provided, the device will remain in the desired state for the given disable action.
15
+ * If unset the default value will be used: {@link SettingsService.settings.blockAutomaticHandlerDefaults}
13
16
  */
14
- constructor(source: CommandSource | BaseCommand, on: boolean, reason?: string, timeout?: number);
17
+ constructor(source: CommandSource | BaseCommand, on: boolean, reason?: string, disableAutomatic?: BlockAutomaticCommand | null);
18
+ /** @inheritDoc */
15
19
  get logMessage(): string;
16
20
  }
@@ -9,14 +9,18 @@ class LampSetLightCommand extends actuatorSetStateCommand_1.ActuatorSetStateComm
9
9
  * @param source - The source of the command
10
10
  * @param on - The new state of the light
11
11
  * @param reason - You can provide a reason for clarification
12
- * @param timeout - If provided, the device automatic will be turned off for the given time in ms --> Reverts to automatic after the timeout.
12
+ * @param disableAutomatic - If provided, the device will remain in the desired state for the given disable action.
13
+ * If unset the default value will be used: {@link SettingsService.settings.blockAutomaticHandlerDefaults}
13
14
  */
14
- constructor(source, on, reason = '', timeout = -1) {
15
- super(source, on, reason, timeout);
15
+ constructor(source, on, reason = '', disableAutomatic) {
16
+ super(source, on, reason, disableAutomatic);
17
+ /** @inheritDoc */
16
18
  this._commandType = commandType_1.CommandType.LampSetLightCommand;
17
19
  }
20
+ /** @inheritDoc */
18
21
  get logMessage() {
19
- return `Lamp setLight to ${this.on} with timeout ${this.timeout} for reason: ${this.reasonTrace}`;
22
+ var _a;
23
+ return `Lamp setLight to ${this.on} with block ${(_a = this.disableAutomaticCommand) === null || _a === void 0 ? void 0 : _a.logMessage} for reason: ${this.reasonTrace}`;
20
24
  }
21
25
  }
22
26
  exports.LampSetLightCommand = LampSetLightCommand;
@@ -2,17 +2,24 @@ import { BaseCommand } from './baseCommand';
2
2
  import { CommandType } from './commandType';
3
3
  import { CommandSource } from './commandSource';
4
4
  import { TimeOfDay } from '../timeCallback';
5
+ import { BlockAutomaticCommand } from './blockAutomaticCommand';
5
6
  export declare class LampSetTimeBasedCommand extends BaseCommand {
6
7
  time: TimeOfDay;
7
- timeout: number;
8
+ /** @inheritDoc */
8
9
  _commandType: CommandType;
10
+ /**
11
+ * The command to disable automatic actions for a specific duration.
12
+ * Null = no automatic actions will be disabled.
13
+ * Undefined = use device or global default
14
+ */
15
+ readonly disableAutomaticCommand: BlockAutomaticCommand | null | undefined;
9
16
  /**
10
17
  * Set's the lamp based on lamp settings for the current time
11
18
  * @param source - The source of the command
12
19
  * @param time - The time to use for calculation of desired state
13
20
  * @param reason - You can provide a reason for clarity
14
- * @param timeout - If > 0 this is the time after which the lamp reverts to its original state
21
+ * @param disableAutomatic - If provided, the device will remain in the desired state for the given disable action.
22
+ * If unset the default value will be used: {@link SettingsService.settings.blockAutomaticHandlerDefaults}
15
23
  */
16
- constructor(source: CommandSource | BaseCommand, time: TimeOfDay, reason?: string, timeout?: number);
17
- get logMessage(): string;
24
+ constructor(source: CommandSource | BaseCommand, time: TimeOfDay, reason?: string, disableAutomatic?: BlockAutomaticCommand | null);
18
25
  }
@@ -3,23 +3,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.LampSetTimeBasedCommand = void 0;
4
4
  const baseCommand_1 = require("./baseCommand");
5
5
  const commandType_1 = require("./commandType");
6
- const timeCallback_1 = require("../timeCallback");
7
6
  class LampSetTimeBasedCommand extends baseCommand_1.BaseCommand {
8
7
  /**
9
8
  * Set's the lamp based on lamp settings for the current time
10
9
  * @param source - The source of the command
11
10
  * @param time - The time to use for calculation of desired state
12
11
  * @param reason - You can provide a reason for clarity
13
- * @param timeout - If > 0 this is the time after which the lamp reverts to its original state
12
+ * @param disableAutomatic - If provided, the device will remain in the desired state for the given disable action.
13
+ * If unset the default value will be used: {@link SettingsService.settings.blockAutomaticHandlerDefaults}
14
14
  */
15
- constructor(source, time, reason = '', timeout = -1) {
15
+ constructor(source, time, reason = '', disableAutomatic) {
16
16
  super(source, reason);
17
17
  this.time = time;
18
- this.timeout = timeout;
18
+ /** @inheritDoc */
19
19
  this._commandType = commandType_1.CommandType.LampSetTimeBasedCommand;
20
- }
21
- get logMessage() {
22
- return `Lamp setTimeBased to ${timeCallback_1.TimeOfDay[this.time]} for reason: ${this.reasonTrace}`;
20
+ this.disableAutomaticCommand = disableAutomatic;
23
21
  }
24
22
  }
25
23
  exports.LampSetTimeBasedCommand = LampSetTimeBasedCommand;
@@ -6,6 +6,7 @@ import { TimeOfDay } from '../timeCallback';
6
6
  export declare class LampToggleLightCommand extends ActuatorToggleCommand {
7
7
  time?: TimeOfDay | undefined;
8
8
  readonly calculateTime: boolean;
9
+ /** @inheritDoc */
9
10
  _commandType: CommandType;
10
11
  /**
11
12
  * Command to toggle the light-state of a lamp
@@ -15,6 +15,7 @@ class LampToggleLightCommand extends actuatorToggleCommand_1.ActuatorToggleComma
15
15
  super(source, reason);
16
16
  this.time = time;
17
17
  this.calculateTime = calculateTime;
18
+ /** @inheritDoc */
18
19
  this._commandType = commandType_1.CommandType.LampToggleLightCommand;
19
20
  }
20
21
  get logMessage() {
@@ -4,22 +4,26 @@ import { BaseCommand } from './baseCommand';
4
4
  import { DimmerSetLightCommand } from './dimmerSetLightCommand';
5
5
  import { LampSetTimeBasedCommand } from './lampSetTimeBasedCommand';
6
6
  import { LedSettings } from '../deviceSettings';
7
+ import { BlockAutomaticCommand } from './blockAutomaticCommand';
7
8
  export declare class LedSetLightCommand extends DimmerSetLightCommand {
8
9
  color: string;
9
10
  colorTemp: number;
11
+ /** @inheritDoc */
10
12
  _commandType: CommandType;
11
13
  /**
12
14
  * Command to set the light-state of a Led-Device
13
15
  * @param source - The source of the command
14
16
  * @param on - The desired state-value
15
17
  * @param reason - You can provide a reason for clarity
16
- * @param timeout - A chosen Timeout after which the light should be reset
18
+ * @param disableAutomatic - If provided, the device will remain in the desired state for the given disable action.
19
+ * If unset the default value will be used: {@link SettingsService.settings.blockAutomaticHandlerDefaults}
17
20
  * @param brightness - The desired brightness
18
21
  * @param transitionTime - The transition time during turnOn/turnOff
19
22
  * @param color - The desired color in 6 digit hex Code
20
23
  * @param colorTemp - The desired color Temperature (0 = more White)
21
24
  */
22
- constructor(source: CommandSource | BaseCommand, on: boolean, reason?: string, timeout?: number, brightness?: number, transitionTime?: number, color?: string, colorTemp?: number);
25
+ constructor(source: CommandSource | BaseCommand, on: boolean, reason?: string, disableAutomatic?: BlockAutomaticCommand | null, brightness?: number, transitionTime?: number, color?: string, colorTemp?: number);
26
+ /** @inheritDoc */
23
27
  get logMessage(): string;
24
28
  /**
25
29
  * Create a LedSetLightCommand based on a LampSetTimeBasedCommand and LedSettings by respecting the time of day
@@ -10,20 +10,24 @@ class LedSetLightCommand extends dimmerSetLightCommand_1.DimmerSetLightCommand {
10
10
  * @param source - The source of the command
11
11
  * @param on - The desired state-value
12
12
  * @param reason - You can provide a reason for clarity
13
- * @param timeout - A chosen Timeout after which the light should be reset
13
+ * @param disableAutomatic - If provided, the device will remain in the desired state for the given disable action.
14
+ * If unset the default value will be used: {@link SettingsService.settings.blockAutomaticHandlerDefaults}
14
15
  * @param brightness - The desired brightness
15
16
  * @param transitionTime - The transition time during turnOn/turnOff
16
17
  * @param color - The desired color in 6 digit hex Code
17
18
  * @param colorTemp - The desired color Temperature (0 = more White)
18
19
  */
19
- constructor(source, on, reason = '', timeout = -1, brightness, transitionTime, color = '', colorTemp = -1) {
20
- super(source, on, reason, timeout, brightness, transitionTime);
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
- return `Led setLight to state: ${this.on}, timeout: ${this.timeout}, brightness: ${this.brightness}, color: ${this.color}, colorTemp: ${this.colorTemp} for reason: ${this.reasonTrace}`;
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
  }
28
32
  /**
29
33
  * Create a LedSetLightCommand based on a LampSetTimeBasedCommand and LedSettings by respecting the time of day
@@ -34,13 +38,13 @@ class LedSetLightCommand extends dimmerSetLightCommand_1.DimmerSetLightCommand {
34
38
  static byTimeBased(settings, c) {
35
39
  switch (c.time) {
36
40
  case timeCallback_1.TimeOfDay.Daylight:
37
- return new LedSetLightCommand(c, settings.dayOn, '', c.timeout, settings.dayBrightness, undefined, settings.dayColor, settings.dayColorTemp);
41
+ return new LedSetLightCommand(c, settings.dayOn, '', c.disableAutomaticCommand, settings.dayBrightness, undefined, settings.dayColor, settings.dayColorTemp);
38
42
  case timeCallback_1.TimeOfDay.BeforeSunrise:
39
- return new LedSetLightCommand(c, settings.dawnOn, '', c.timeout, settings.dawnBrightness, undefined, settings.dawnColor, settings.dawnColorTemp);
43
+ return new LedSetLightCommand(c, settings.dawnOn, '', c.disableAutomaticCommand, settings.dawnBrightness, undefined, settings.dawnColor, settings.dawnColorTemp);
40
44
  case timeCallback_1.TimeOfDay.AfterSunset:
41
- return new LedSetLightCommand(c, settings.duskOn, '', c.timeout, settings.duskBrightness, undefined, settings.duskColor, settings.duskColorTemp);
45
+ return new LedSetLightCommand(c, settings.duskOn, '', c.disableAutomaticCommand, settings.duskBrightness, undefined, settings.duskColor, settings.duskColorTemp);
42
46
  case timeCallback_1.TimeOfDay.Night:
43
- return new LedSetLightCommand(c, settings.nightOn, '', c.timeout, settings.nightBrightness, undefined, settings.nightColor, settings.nightColorTemp);
47
+ return new LedSetLightCommand(c, settings.nightOn, '', c.disableAutomaticCommand, settings.nightBrightness, undefined, settings.nightColor, settings.nightColorTemp);
44
48
  }
45
49
  }
46
50
  }
@@ -4,6 +4,7 @@ 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;
8
9
  /**
9
10
  * Command to switch a light group in accordance to a specific time of the day
@@ -13,6 +13,7 @@ class LightGroupSwitchTimeConditionalCommand extends baseCommand_1.BaseCommand {
13
13
  constructor(source, time, reason = '') {
14
14
  super(source, reason);
15
15
  this.time = time;
16
+ /** @inheritDoc */
16
17
  this._commandType = commandType_1.CommandType.LightGroupSwitchTimeConditional;
17
18
  }
18
19
  }
@@ -2,6 +2,7 @@ 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;
6
7
  /**
7
8
  * Command to restore the target automatic value of an actuator
@@ -9,5 +10,4 @@ export declare class RestoreTargetAutomaticValueCommand extends BaseCommand {
9
10
  * @param reason - You can provide a reason for clarification
10
11
  */
11
12
  constructor(source: CommandSource | BaseCommand, reason?: string);
12
- get logMessage(): string;
13
13
  }
@@ -11,10 +11,8 @@ class RestoreTargetAutomaticValueCommand extends baseCommand_1.BaseCommand {
11
11
  */
12
12
  constructor(source, reason = '') {
13
13
  super(source, reason);
14
+ /** @inheritDoc */
14
15
  this._commandType = commandType_1.CommandType.ActuatorRestoreTargetAutomaticValueCommand;
15
16
  }
16
- get logMessage() {
17
- return `Actuator restore target automatic value due to reason: ${this.reasonTrace}`;
18
- }
19
17
  }
20
18
  exports.RestoreTargetAutomaticValueCommand = RestoreTargetAutomaticValueCommand;
@@ -2,6 +2,7 @@ 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;
6
7
  /**
7
8
  * Command to restore the normal automatic light-state of a room
@@ -11,6 +11,7 @@ class RoomRestoreLightCommand extends baseCommand_1.BaseCommand {
11
11
  */
12
12
  constructor(source, reason = '') {
13
13
  super(source, reason);
14
+ /** @inheritDoc */
14
15
  this._commandType = commandType_1.CommandType.RoomRestoreLightCommand;
15
16
  }
16
17
  }
@@ -3,6 +3,7 @@ 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;
7
8
  /**
8
9
  * Command to restore the normal automatic shutter position of a room
@@ -13,6 +13,7 @@ class RoomRestoreShutterPositionCommand extends baseCommand_1.BaseCommand {
13
13
  constructor(source, recalc = false, reason = '') {
14
14
  super(source, reason);
15
15
  this.recalc = recalc;
16
+ /** @inheritDoc */
16
17
  this._commandType = commandType_1.CommandType.RoomRestoreShutterPositionCommand;
17
18
  }
18
19
  }
@@ -3,6 +3,7 @@ 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
@@ -13,6 +13,7 @@ class RoomSetLightTimeBasedCommand extends baseCommand_1.BaseCommand {
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,7 @@ 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;
6
7
  /**
7
8
  * Command to perform actions when the shutter should be opened due to sunrise
@@ -11,6 +11,7 @@ class ShutterSunriseUpCommand extends baseCommand_1.BaseCommand {
11
11
  */
12
12
  constructor(source, reason = '') {
13
13
  super(source, reason);
14
+ /** @inheritDoc */
14
15
  this._commandType = commandType_1.CommandType.ShutterSunriseUpCommand;
15
16
  }
16
17
  }
@@ -2,6 +2,7 @@ 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;
6
7
  /**
7
8
  * Command to perform actions when the shutter is closing due to sunset
@@ -11,6 +11,7 @@ class ShutterSunsetDownCommand extends baseCommand_1.BaseCommand {
11
11
  */
12
12
  constructor(source, reason = '') {
13
13
  super(source, reason);
14
+ /** @inheritDoc */
14
15
  this._commandType = commandType_1.CommandType.SunsetDownCommand;
15
16
  }
16
17
  }
@@ -4,20 +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
  /**
11
13
  * Command to set the light state of a WLED device
12
14
  * @param source - The source of the command
13
15
  * @param on - The desired state of the light
14
16
  * @param reason - You can provide a reason for clarification
15
- * @param timeout - The duration in milliseconds this should block automatic changes --> Reverse to automatic after this time
17
+ * @param disableAutomatic - If provided, the device will remain in the desired state for the given disable action.
18
+ * If unset the default value will be used: {@link SettingsService.settings.blockAutomaticHandlerDefaults}
16
19
  * @param brightness - The brightness of the light
17
20
  * @param transitionTime - The time in milliseconds the transition should take
18
21
  * @param preset - The preset to use
19
22
  */
20
- constructor(source: CommandSource | BaseCommand, on: boolean, reason?: string, timeout?: number, brightness?: number, transitionTime?: number, preset?: number | undefined);
23
+ constructor(source: CommandSource | BaseCommand, on: boolean, reason?: string, disableAutomatic?: BlockAutomaticCommand | null, brightness?: number, transitionTime?: number, preset?: number | undefined);
21
24
  get logMessage(): string;
22
25
  static byTimeBased(settings: WledSettings, c: LampSetTimeBasedCommand): WledSetLightCommand;
23
26
  }
@@ -10,29 +10,32 @@ class WledSetLightCommand extends dimmerSetLightCommand_1.DimmerSetLightCommand
10
10
  * @param source - The source of the command
11
11
  * @param on - The desired state of the light
12
12
  * @param reason - You can provide a reason for clarification
13
- * @param timeout - The duration in milliseconds this should block automatic changes --> Reverse to automatic after this time
13
+ * @param disableAutomatic - If provided, the device will remain in the desired state for the given disable action.
14
+ * If unset the default value will be used: {@link SettingsService.settings.blockAutomaticHandlerDefaults}
14
15
  * @param brightness - The brightness of the light
15
16
  * @param transitionTime - The time in milliseconds the transition should take
16
17
  * @param preset - The preset to use
17
18
  */
18
- constructor(source, on, reason = '', timeout = -1, brightness = -1, transitionTime = -1, preset) {
19
- super(source, on, reason, timeout, brightness, transitionTime);
19
+ constructor(source, on, reason = '', disableAutomatic, brightness = -1, transitionTime = -1, preset) {
20
+ super(source, on, reason, disableAutomatic, brightness, transitionTime);
20
21
  this.preset = preset;
22
+ /** @inheritDoc */
21
23
  this._commandType = commandType_1.CommandType.WledSetLightCommand;
22
24
  }
23
25
  get logMessage() {
24
- return `Dimmer setLight to ${this.on} with Brightness ${this.brightness}, timeout ${this.timeout} and preset ${this.preset} for reason: ${this.reasonTrace}`;
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}`;
25
28
  }
26
29
  static byTimeBased(settings, c) {
27
30
  switch (c.time) {
28
31
  case timeCallback_1.TimeOfDay.Daylight:
29
- return new WledSetLightCommand(c, settings.dayOn, '', c.timeout, settings.dayBrightness, undefined, settings.dayPreset);
32
+ return new WledSetLightCommand(c, settings.dayOn, '', c.disableAutomaticCommand, settings.dayBrightness, undefined, settings.dayPreset);
30
33
  case timeCallback_1.TimeOfDay.BeforeSunrise:
31
- return new WledSetLightCommand(c, settings.dawnOn, '', c.timeout, settings.dawnBrightness, undefined, settings.dawnPreset);
34
+ return new WledSetLightCommand(c, settings.dawnOn, '', c.disableAutomaticCommand, settings.dawnBrightness, undefined, settings.dawnPreset);
32
35
  case timeCallback_1.TimeOfDay.AfterSunset:
33
- return new WledSetLightCommand(c, settings.duskOn, '', c.timeout, settings.duskBrightness, undefined, settings.duskPreset);
36
+ return new WledSetLightCommand(c, settings.duskOn, '', c.disableAutomaticCommand, settings.duskBrightness, undefined, settings.duskPreset);
34
37
  case timeCallback_1.TimeOfDay.Night:
35
- return new WledSetLightCommand(c, settings.nightOn, '', c.timeout, settings.nightBrightness, undefined, settings.nightPreset);
38
+ return new WledSetLightCommand(c, settings.nightOn, '', c.disableAutomaticCommand, settings.nightBrightness, undefined, settings.nightPreset);
36
39
  default:
37
40
  throw new Error(`TimeOfDay ${c.time} not supported`);
38
41
  }
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ConnectionCallbacks = void 0;
4
+ /* eslint-disable jsdoc/require-jsdoc */
4
5
  class ConnectionCallbacks {
5
6
  }
6
7
  exports.ConnectionCallbacks = ConnectionCallbacks;
@@ -1,10 +1,23 @@
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
@@ -16,7 +29,7 @@ export declare class AcSettings extends DeviceSettings {
16
29
  useOwnTemperature: boolean;
17
30
  /**
18
31
  * Whether the AC should use automatic mode to decide on its own whether to heat or cool
19
- * !!Warning!! This can result in excessive energy consumption, as overshooting the temperature can result in the AC switching to the opposite mode
32
+ * @warning This can result in excessive energy consumption, as overshooting the temperature can result in the AC switching to the opposite mode
20
33
  */
21
34
  useAutomatic: boolean;
22
35
  /**
@@ -7,10 +7,23 @@ 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
@@ -22,7 +35,7 @@ class AcSettings extends deviceSettings_1.DeviceSettings {
22
35
  this.useOwnTemperature = false;
23
36
  /**
24
37
  * Whether the AC should use automatic mode to decide on its own whether to heat or cool
25
- * !!Warning!! This can result in excessive energy consumption, as overshooting the temperature can result in the AC switching to the opposite mode
38
+ * @warning This can result in excessive energy consumption, as overshooting the temperature can result in the AC switching to the opposite mode
26
39
  */
27
40
  this.useAutomatic = false;
28
41
  /**
@@ -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>;
@@ -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) {