hoffmation-base 3.0.0-alpha.8 → 3.0.0-alpha.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (540) hide show
  1. package/lib/index.d.ts +5 -1
  2. package/lib/index.js +28 -25
  3. package/lib/liquid-pid.d.ts +2 -5
  4. package/lib/liquid-pid.js +3 -5
  5. package/lib/models/action/baseAction.d.ts +4 -0
  6. package/lib/models/action/baseAction.js +10 -0
  7. package/lib/models/action/batteryLevelChangeAction.d.ts +13 -0
  8. package/lib/models/action/batteryLevelChangeAction.js +14 -0
  9. package/lib/models/action/humiditySensorChangeAction.d.ts +16 -0
  10. package/lib/models/action/humiditySensorChangeAction.js +15 -0
  11. package/lib/models/action/index.d.ts +9 -0
  12. package/lib/models/action/index.js +29 -0
  13. package/lib/models/action/motionSensorAction.d.ts +16 -0
  14. package/lib/models/action/motionSensorAction.js +15 -0
  15. package/lib/models/action/presenceGroupAnyMovementAction.d.ts +7 -0
  16. package/lib/models/action/presenceGroupAnyMovementAction.js +13 -0
  17. package/lib/models/action/presenceGroupFirstEnterAction.d.ts +7 -0
  18. package/lib/models/action/presenceGroupFirstEnterAction.js +13 -0
  19. package/lib/models/action/presenceGroupLastLeftAction.d.ts +7 -0
  20. package/lib/models/action/presenceGroupLastLeftAction.js +13 -0
  21. package/lib/models/action/shutterPositionChangedAction.d.ts +13 -0
  22. package/lib/models/action/shutterPositionChangedAction.js +15 -0
  23. package/lib/models/action/temperatureSensorChangeAction.d.ts +16 -0
  24. package/lib/models/action/temperatureSensorChangeAction.js +15 -0
  25. package/lib/models/base64Image.d.ts +0 -1
  26. package/lib/models/blockAutomaticSettings.d.ts +23 -0
  27. package/lib/models/blockAutomaticSettings.js +19 -0
  28. package/lib/models/command/ShutterSetLevelCommand.d.ts +9 -1
  29. package/lib/models/command/ShutterSetLevelCommand.js +9 -1
  30. package/lib/models/command/WindowRestoreDesiredPositionCommand.d.ts +7 -1
  31. package/lib/models/command/WindowRestoreDesiredPositionCommand.js +7 -1
  32. package/lib/models/command/WindowSetDesiredPositionCommand.d.ts +11 -2
  33. package/lib/models/command/WindowSetDesiredPositionCommand.js +11 -2
  34. package/lib/models/command/WindowSetRolloByWeatherStatusCommand.d.ts +7 -1
  35. package/lib/models/command/WindowSetRolloByWeatherStatusCommand.js +7 -1
  36. package/lib/models/command/actuatorSetStateCommand.d.ts +18 -3
  37. package/lib/models/command/actuatorSetStateCommand.js +15 -6
  38. package/lib/models/command/actuatorToggleCommand.d.ts +7 -2
  39. package/lib/models/command/actuatorToggleCommand.js +7 -4
  40. package/lib/models/command/actuatorWriteStateToDeviceCommand.d.ts +8 -1
  41. package/lib/models/command/actuatorWriteStateToDeviceCommand.js +12 -1
  42. package/lib/models/command/baseCommand.d.ts +23 -2
  43. package/lib/models/command/baseCommand.js +41 -1
  44. package/lib/models/command/blockAutomaticCommand.d.ts +32 -0
  45. package/lib/models/command/blockAutomaticCommand.js +40 -0
  46. package/lib/models/command/blockAutomaticLiftBlockCommand.d.ts +18 -0
  47. package/lib/models/command/blockAutomaticLiftBlockCommand.js +23 -0
  48. package/lib/models/command/blockAutomaticUntilCommand.d.ts +27 -0
  49. package/lib/models/command/blockAutomaticUntilCommand.js +32 -0
  50. package/lib/models/command/commandSource.d.ts +19 -0
  51. package/lib/models/command/commandSource.js +20 -0
  52. package/lib/models/command/commandType.d.ts +11 -0
  53. package/lib/models/command/commandType.js +11 -0
  54. package/lib/models/command/dimmerSetLightCommand.d.ts +13 -8
  55. package/lib/models/command/dimmerSetLightCommand.js +20 -14
  56. package/lib/models/command/floorSetAllShuttersCommand.d.ts +6 -5
  57. package/lib/models/command/floorSetAllShuttersCommand.js +6 -5
  58. package/lib/models/command/index.d.ts +3 -0
  59. package/lib/models/command/index.js +7 -1
  60. package/lib/models/command/lampSetLightCommand.d.ts +13 -2
  61. package/lib/models/command/lampSetLightCommand.js +15 -4
  62. package/lib/models/command/lampSetTimeBasedCommand.d.ts +15 -8
  63. package/lib/models/command/lampSetTimeBasedCommand.js +9 -11
  64. package/lib/models/command/lampToggleLightCommand.d.ts +7 -6
  65. package/lib/models/command/lampToggleLightCommand.js +7 -6
  66. package/lib/models/command/ledSetLightCommand.d.ts +21 -11
  67. package/lib/models/command/ledSetLightCommand.js +27 -17
  68. package/lib/models/command/lightGroupSwitchTimeConditionalCommand.d.ts +8 -1
  69. package/lib/models/command/lightGroupSwitchTimeConditionalCommand.js +8 -1
  70. package/lib/models/command/restoreTargetAutomaticValueCommand.d.ts +7 -2
  71. package/lib/models/command/restoreTargetAutomaticValueCommand.js +7 -4
  72. package/lib/models/command/roomRestoreLightCommand.d.ts +7 -1
  73. package/lib/models/command/roomRestoreLightCommand.js +7 -1
  74. package/lib/models/command/roomRestoreShutterPositionCommand.d.ts +8 -1
  75. package/lib/models/command/roomRestoreShutterPositionCommand.js +8 -1
  76. package/lib/models/command/roomSetLightTimeBasedCommand.d.ts +5 -4
  77. package/lib/models/command/roomSetLightTimeBasedCommand.js +5 -4
  78. package/lib/models/command/shutterSunriseUpCommand.d.ts +7 -1
  79. package/lib/models/command/shutterSunriseUpCommand.js +7 -1
  80. package/lib/models/command/shutterSunsetDownCommand.d.ts +7 -1
  81. package/lib/models/command/shutterSunsetDownCommand.js +7 -1
  82. package/lib/models/command/wledSetLightCommand.d.ts +16 -2
  83. package/lib/models/command/wledSetLightCommand.js +23 -7
  84. package/lib/models/connectionCallbacks.d.ts +4 -4
  85. package/lib/models/connectionCallbacks.js +1 -0
  86. package/lib/models/deviceConfig.d.ts +3 -3
  87. package/lib/models/deviceSettings/acSettings.d.ts +23 -5
  88. package/lib/models/deviceSettings/acSettings.js +28 -8
  89. package/lib/models/deviceSettings/actuatorSettings.d.ts +13 -4
  90. package/lib/models/deviceSettings/actuatorSettings.js +19 -9
  91. package/lib/models/deviceSettings/cameraSettings.d.ts +12 -0
  92. package/lib/models/deviceSettings/cameraSettings.js +12 -0
  93. package/lib/models/deviceSettings/dachsSettings.d.ts +23 -0
  94. package/lib/models/deviceSettings/dachsSettings.js +29 -1
  95. package/lib/models/deviceSettings/deviceSettings.d.ts +10 -0
  96. package/lib/models/deviceSettings/deviceSettings.js +16 -0
  97. package/lib/models/deviceSettings/dimmerSettings.d.ts +20 -0
  98. package/lib/models/deviceSettings/dimmerSettings.js +20 -0
  99. package/lib/models/deviceSettings/garageDoorOpenerSettings.d.ts +0 -1
  100. package/lib/models/deviceSettings/garageDoorOpenerSettings.js +0 -1
  101. package/lib/models/deviceSettings/handleSettings.d.ts +9 -0
  102. package/lib/models/deviceSettings/handleSettings.js +9 -0
  103. package/lib/models/deviceSettings/heaterSettings.d.ts +21 -9
  104. package/lib/models/deviceSettings/heaterSettings.js +21 -9
  105. package/lib/models/deviceSettings/ledSettings.d.ts +66 -0
  106. package/lib/models/deviceSettings/ledSettings.js +76 -18
  107. package/lib/models/deviceSettings/motionSensorSettings.d.ts +5 -1
  108. package/lib/models/deviceSettings/motionSensorSettings.js +5 -1
  109. package/lib/models/deviceSettings/sceneSettings.d.ts +4 -0
  110. package/lib/models/deviceSettings/shutterSettings.d.ts +11 -3
  111. package/lib/models/deviceSettings/shutterSettings.js +11 -3
  112. package/lib/models/deviceSettings/sonosDeviceSettings.d.ts +4 -0
  113. package/lib/models/deviceSettings/sonosDeviceSettings.js +4 -0
  114. package/lib/models/deviceSettings/tvSettings.d.ts +4 -0
  115. package/lib/models/deviceSettings/victronDeviceSettings.d.ts +34 -0
  116. package/lib/models/deviceSettings/victronDeviceSettings.js +34 -0
  117. package/lib/models/deviceSettings/wledSettings.d.ts +48 -0
  118. package/lib/models/deviceSettings/wledSettings.js +37 -13
  119. package/lib/models/groupSettings/heatGroupSettings.d.ts +12 -1
  120. package/lib/models/groupSettings/heatGroupSettings.js +12 -1
  121. package/lib/models/iIdHolder.d.ts +18 -0
  122. package/lib/models/index.d.ts +2 -1
  123. package/lib/models/index.js +4 -1
  124. package/lib/models/objectSettings.d.ts +5 -2
  125. package/lib/models/objectSettings.js +2 -2
  126. package/lib/models/persistence/EnergyCalculation.d.ts +27 -0
  127. package/lib/models/persistence/EnergyCalculation.js +30 -4
  128. package/lib/models/persistence/index.d.ts +0 -2
  129. package/lib/models/persistence/index.js +0 -2
  130. package/lib/models/rooms/RoomBase.d.ts +12 -1
  131. package/lib/models/rooms/RoomBase.js +17 -8
  132. package/lib/models/rooms/RoomSettings/RoomInitializationSettings.d.ts +2 -1
  133. package/lib/models/rooms/RoomSettings/RoomInitializationSettings.js +2 -2
  134. package/lib/models/rooms/RoomSettings/RoomSettingsController.d.ts +10 -1
  135. package/lib/models/rooms/RoomSettings/RoomSettingsController.js +2 -2
  136. package/lib/models/rooms/RoomSettings/iRoomDefaultSettings.d.ts +53 -3
  137. package/lib/models/rooms/RoomSettings/iRoomInitializationSettings.d.ts +10 -1
  138. package/lib/models/rooms/RoomSettings/roomDeviceAddingSettings.d.ts +4 -1
  139. package/lib/models/rooms/RoomSettings/roomDeviceAddingSettings.js +3 -0
  140. package/lib/models/rooms/RoomSettings/roomSettings.d.ts +55 -0
  141. package/lib/models/rooms/RoomSettings/roomSettings.js +55 -0
  142. package/lib/models/rooms/iRoomBase.d.ts +39 -0
  143. package/lib/models/rooms/iRoomImportEnforcer.d.ts +8 -0
  144. package/lib/models/timeCallback.d.ts +7 -0
  145. package/lib/models/timeCallback.js +16 -6
  146. package/lib/server/config/heatingMode.d.ts +2 -1
  147. package/lib/server/config/heatingMode.js +2 -1
  148. package/lib/server/config/iAsusConfig.d.ts +15 -0
  149. package/lib/server/config/iBlockAutomaticHandlerDefaults.d.ts +23 -0
  150. package/lib/server/config/iBlueIrisSettings.d.ts +14 -0
  151. package/lib/server/config/iBluetoothTrackingSettings.d.ts +9 -0
  152. package/lib/server/config/iConfig.d.ts +94 -6
  153. package/lib/server/config/iDachsSettings.d.ts +16 -0
  154. package/lib/server/config/iDaikinSettings.d.ts +17 -0
  155. package/lib/server/config/iEnergyManagerSettings.d.ts +13 -0
  156. package/lib/server/config/iEspresenseSettings.d.ts +10 -0
  157. package/lib/server/config/iGoveeSettings.d.ts +9 -0
  158. package/lib/server/config/iGoveeSettings.js +2 -0
  159. package/lib/server/config/iHeaterSettings.d.ts +8 -0
  160. package/lib/server/config/iIobrokerSettigns.d.ts +8 -0
  161. package/lib/server/config/iLogSettings.d.ts +40 -1
  162. package/lib/server/config/iMp3Settings.d.ts +10 -0
  163. package/lib/server/config/iMuellSettings.d.ts +7 -0
  164. package/lib/server/config/iNewsSettings.d.ts +13 -0
  165. package/lib/server/config/iPersistenceSettings.d.ts +10 -0
  166. package/lib/server/config/iPollySettings.d.ts +22 -0
  167. package/lib/server/config/iRestSettings.d.ts +10 -0
  168. package/lib/server/config/iSonosSettings.d.ts +14 -0
  169. package/lib/server/config/iTelegramSettings.d.ts +17 -0
  170. package/lib/server/config/iTibberSettings.d.ts +10 -0
  171. package/lib/server/config/iTimePair.d.ts +9 -0
  172. package/lib/server/config/iTimeSettings.d.ts +9 -0
  173. package/lib/server/config/iTranslationSettings.d.ts +10 -0
  174. package/lib/server/config/iUnifiConnectionOptions.d.ts +31 -0
  175. package/lib/server/config/iUnifiSettings.d.ts +8 -0
  176. package/lib/server/config/iVictronSettings.d.ts +14 -0
  177. package/lib/server/config/iWeatherSettings.d.ts +13 -0
  178. package/lib/server/config/index.d.ts +2 -0
  179. package/lib/server/devices/DeviceCapability.d.ts +1 -0
  180. package/lib/server/devices/DeviceCapability.js +1 -0
  181. package/lib/server/devices/DeviceInfo.d.ts +9 -0
  182. package/lib/server/devices/DeviceInfo.js +6 -0
  183. package/lib/server/devices/Griffe.js +1 -2
  184. package/lib/server/devices/Heizgruppen.js +2 -2
  185. package/lib/server/devices/IoBrokerBaseDevice.d.ts +34 -18
  186. package/lib/server/devices/IoBrokerBaseDevice.js +37 -21
  187. package/lib/server/devices/IoBrokerDeviceInfo.d.ts +8 -6
  188. package/lib/server/devices/IoBrokerDeviceInfo.js +50 -46
  189. package/lib/server/devices/baseDeviceInterfaces/iAcDevice.d.ts +41 -3
  190. package/lib/server/devices/baseDeviceInterfaces/iActuator.d.ts +18 -0
  191. package/lib/server/devices/baseDeviceInterfaces/iBaseDevice.d.ts +26 -1
  192. package/lib/server/devices/baseDeviceInterfaces/iBatteryDevice.d.ts +21 -4
  193. package/lib/server/devices/baseDeviceInterfaces/iBluetoothDetector.d.ts +15 -7
  194. package/lib/server/devices/baseDeviceInterfaces/iButtonSwitch.d.ts +42 -0
  195. package/lib/server/devices/baseDeviceInterfaces/iCameraDevice.d.ts +46 -3
  196. package/lib/server/devices/baseDeviceInterfaces/iDimmableLamp.d.ts +17 -2
  197. package/lib/server/devices/baseDeviceInterfaces/iEnergyManager.d.ts +36 -2
  198. package/lib/server/devices/baseDeviceInterfaces/iExcessEnergyConsumer.d.ts +30 -2
  199. package/lib/server/devices/baseDeviceInterfaces/iGarageDoorOpener.d.ts +21 -0
  200. package/lib/server/devices/baseDeviceInterfaces/iHandleSensor.d.ts +24 -0
  201. package/lib/server/devices/baseDeviceInterfaces/iHeater.d.ts +40 -5
  202. package/lib/server/devices/baseDeviceInterfaces/iHumiditySensor.d.ts +21 -2
  203. package/lib/server/devices/baseDeviceInterfaces/iIlluminationSensor.d.ts +11 -0
  204. package/lib/server/devices/baseDeviceInterfaces/iLamp.d.ts +7 -2
  205. package/lib/server/devices/baseDeviceInterfaces/iLedRgbCct.d.ts +20 -0
  206. package/lib/server/devices/baseDeviceInterfaces/iLoadMeter.d.ts +5 -0
  207. package/lib/server/devices/baseDeviceInterfaces/iMagnetSensor.d.ts +31 -0
  208. package/lib/server/devices/baseDeviceInterfaces/iMagnetSensor.js +2 -0
  209. package/lib/server/devices/baseDeviceInterfaces/iMotionSensor.d.ts +23 -3
  210. package/lib/server/devices/baseDeviceInterfaces/iRoomDevice.d.ts +6 -0
  211. package/lib/server/devices/baseDeviceInterfaces/iScene.d.ts +31 -2
  212. package/lib/server/devices/baseDeviceInterfaces/iShutter.d.ts +25 -1
  213. package/lib/server/devices/baseDeviceInterfaces/iSmokeDetectorDevice.d.ts +12 -0
  214. package/lib/server/devices/baseDeviceInterfaces/iSpeaker.d.ts +30 -0
  215. package/lib/server/devices/baseDeviceInterfaces/iTemperatureSensor.d.ts +32 -3
  216. package/lib/server/devices/baseDeviceInterfaces/iTemporaryDisableAutomatic.d.ts +13 -0
  217. package/lib/server/devices/baseDeviceInterfaces/iTvDevice.d.ts +20 -0
  218. package/lib/server/devices/baseDeviceInterfaces/iVibrationSensor.d.ts +24 -5
  219. package/lib/server/devices/baseDeviceInterfaces/index.d.ts +1 -0
  220. package/lib/server/devices/blueIris/cameraDevice.d.ts +49 -34
  221. package/lib/server/devices/blueIris/cameraDevice.js +75 -75
  222. package/lib/server/devices/button/button.d.ts +0 -1
  223. package/lib/server/devices/button/button.js +0 -4
  224. package/lib/server/devices/button/buttonCallback.d.ts +5 -0
  225. package/lib/server/devices/button/buttonCallback.js +10 -0
  226. package/lib/server/devices/button/buttonCapabilities.d.ts +12 -0
  227. package/lib/server/devices/button/buttonCapabilities.js +12 -0
  228. package/lib/server/devices/button/index.d.ts +1 -0
  229. package/lib/server/devices/button/index.js +3 -0
  230. package/lib/server/devices/dachs/dachs.d.ts +46 -11
  231. package/lib/server/devices/dachs/dachs.js +113 -23
  232. package/lib/server/devices/dachs/dachsTemperatureSensor.d.ts +22 -4
  233. package/lib/server/devices/dachs/dachsTemperatureSensor.js +23 -5
  234. package/lib/server/devices/dachs/interfaces/DachsClientOptions.d.ts +30 -0
  235. package/lib/server/devices/dachs/interfaces/KeyListEntity.d.ts +0 -8
  236. package/lib/server/devices/dachs/interfaces/KeyListEntity.js +0 -8
  237. package/lib/server/devices/dachs/interfaces/dachsInfluxDataPoint.d.ts +12 -0
  238. package/lib/server/devices/dachs/interfaces/influxDbConnectionOptions.d.ts +21 -1
  239. package/lib/server/devices/dachs/lib/dachsHttpClient.d.ts +5 -2
  240. package/lib/server/devices/dachs/lib/dachsHttpClient.js +5 -4
  241. package/lib/server/devices/device-cluster.d.ts +4 -1
  242. package/lib/server/devices/device-cluster.js +9 -4
  243. package/lib/server/devices/deviceType.d.ts +5 -0
  244. package/lib/server/devices/deviceType.js +5 -0
  245. package/lib/server/devices/deviceUpdater.d.ts +0 -3
  246. package/lib/server/devices/deviceUpdater.js +26 -4
  247. package/lib/server/devices/devices.d.ts +53 -7
  248. package/lib/server/devices/devices.js +78 -17
  249. package/lib/server/devices/espresense/detectedBluetoothDevice.d.ts +13 -0
  250. package/lib/server/devices/espresense/detectedBluetoothDevice.js +14 -1
  251. package/lib/server/devices/espresense/espresenseDevice.d.ts +31 -1
  252. package/lib/server/devices/espresense/espresenseDevice.js +28 -4
  253. package/lib/server/devices/espresense/trackedDistanceData.d.ts +12 -0
  254. package/lib/server/devices/espresense/trackedDistanceData.js +3 -0
  255. package/lib/server/devices/espresense/trilateration.d.ts +7 -0
  256. package/lib/server/devices/espresense/trilateration.js +7 -0
  257. package/lib/server/devices/espresense/trilaterationBasePoint.d.ts +6 -0
  258. package/lib/server/devices/espresense/trilaterationBasePoint.js +3 -0
  259. package/lib/server/devices/espresense/trilaterationPoint.d.ts +1 -1
  260. package/lib/server/devices/espresense/trilaterationPoint.js +3 -1
  261. package/lib/server/devices/groups/Window.d.ts +14 -3
  262. package/lib/server/devices/groups/Window.js +28 -11
  263. package/lib/server/devices/groups/base-group.d.ts +4 -0
  264. package/lib/server/devices/groups/base-group.js +3 -0
  265. package/lib/server/devices/groups/heatGroup.d.ts +8 -6
  266. package/lib/server/devices/groups/heatGroup.js +11 -11
  267. package/lib/server/devices/groups/lightGroup.d.ts +10 -2
  268. package/lib/server/devices/groups/lightGroup.js +20 -39
  269. package/lib/server/devices/groups/presenceGroup.d.ts +17 -6
  270. package/lib/server/devices/groups/presenceGroup.js +73 -63
  271. package/lib/server/devices/groups/tasterGroup.js +6 -6
  272. package/lib/server/devices/groups/windowGroup.d.ts +16 -1
  273. package/lib/server/devices/groups/windowGroup.js +22 -7
  274. package/lib/server/devices/hmIPDevices/hmIpAccessPoint.d.ts +1 -0
  275. package/lib/server/devices/hmIPDevices/hmIpAccessPoint.js +1 -0
  276. package/lib/server/devices/hmIPDevices/hmIpBewegung.d.ts +9 -6
  277. package/lib/server/devices/hmIPDevices/hmIpBewegung.js +10 -11
  278. package/lib/server/devices/hmIPDevices/hmIpDevice.d.ts +1 -2
  279. package/lib/server/devices/hmIPDevices/hmIpDevice.js +2 -3
  280. package/lib/server/devices/hmIPDevices/hmIpGriff.d.ts +36 -5
  281. package/lib/server/devices/hmIPDevices/hmIpGriff.js +76 -33
  282. package/lib/server/devices/hmIPDevices/hmIpHeizgruppe.d.ts +25 -6
  283. package/lib/server/devices/hmIPDevices/hmIpHeizgruppe.js +27 -14
  284. package/lib/server/devices/hmIPDevices/hmIpHeizung.d.ts +13 -3
  285. package/lib/server/devices/hmIPDevices/hmIpHeizung.js +33 -12
  286. package/lib/server/devices/hmIPDevices/hmIpLampe.d.ts +7 -1
  287. package/lib/server/devices/hmIPDevices/hmIpLampe.js +11 -7
  288. package/lib/server/devices/hmIPDevices/hmIpPraezenz.d.ts +19 -9
  289. package/lib/server/devices/hmIPDevices/hmIpPraezenz.js +33 -11
  290. package/lib/server/devices/hmIPDevices/hmIpRoll.d.ts +4 -2
  291. package/lib/server/devices/hmIPDevices/hmIpRoll.js +25 -23
  292. package/lib/server/devices/hmIPDevices/hmIpTaster.d.ts +28 -4
  293. package/lib/server/devices/hmIPDevices/hmIpTaster.js +37 -8
  294. package/lib/server/devices/hmIPDevices/hmIpTherm.d.ts +11 -1
  295. package/lib/server/devices/hmIPDevices/hmIpTherm.js +26 -5
  296. package/lib/server/devices/hmIPDevices/hmIpTuer.d.ts +9 -1
  297. package/lib/server/devices/hmIPDevices/hmIpTuer.js +17 -4
  298. package/lib/server/devices/hmIPDevices/hmIpWippe.d.ts +27 -0
  299. package/lib/server/devices/hmIPDevices/hmIpWippe.js +3 -0
  300. package/lib/server/devices/iDeviceUpdater.d.ts +14 -0
  301. package/lib/server/devices/index.d.ts +8 -2
  302. package/lib/server/devices/index.js +11 -2
  303. package/lib/server/devices/jsObject/jsObjectEnergyManager.d.ts +5 -1
  304. package/lib/server/devices/jsObject/jsObjectEnergyManager.js +9 -3
  305. package/lib/server/devices/nameAmountValuePair.d.ts +5 -0
  306. package/lib/server/devices/nameAmountValuePair.js +10 -0
  307. package/lib/server/devices/scene/room-scene.d.ts +23 -7
  308. package/lib/server/devices/scene/room-scene.js +18 -4
  309. package/lib/server/devices/sharedFunctions/lampUtils.d.ts +11 -2
  310. package/lib/server/devices/sharedFunctions/lampUtils.js +79 -25
  311. package/lib/server/devices/shelly/index.d.ts +1 -0
  312. package/lib/server/devices/shelly/index.js +3 -1
  313. package/lib/server/devices/shelly/shellyActuator.d.ts +33 -0
  314. package/lib/server/devices/shelly/shellyActuator.js +84 -0
  315. package/lib/server/devices/shelly/shellyDevice.d.ts +2 -1
  316. package/lib/server/devices/shelly/shellyDevice.js +2 -1
  317. package/lib/server/devices/shelly/shellyTrv.d.ts +37 -18
  318. package/lib/server/devices/shelly/shellyTrv.js +66 -45
  319. package/lib/server/devices/smartGarden/index.d.ts +6 -0
  320. package/lib/server/devices/smartGarden/index.js +22 -0
  321. package/lib/server/devices/smartGarden/smartGardenDevice.d.ts +33 -0
  322. package/lib/server/devices/smartGarden/smartGardenDevice.js +98 -0
  323. package/lib/server/devices/smartGarden/smartGardenDeviceRegistrationInfo.d.ts +9 -0
  324. package/lib/server/devices/smartGarden/smartGardenDeviceRegistrationInfo.js +13 -0
  325. package/lib/server/devices/smartGarden/smartGardenMower.d.ts +35 -0
  326. package/lib/server/devices/smartGarden/smartGardenMower.js +107 -0
  327. package/lib/server/devices/smartGarden/smartGardenSensor.d.ts +42 -0
  328. package/lib/server/devices/smartGarden/smartGardenSensor.js +119 -0
  329. package/lib/server/devices/smartGarden/smartGardenService.d.ts +7 -0
  330. package/lib/server/devices/smartGarden/smartGardenService.js +52 -0
  331. package/lib/server/devices/smartGarden/smartGardenValve.d.ts +36 -0
  332. package/lib/server/devices/smartGarden/smartGardenValve.js +105 -0
  333. package/lib/server/devices/tuya/tuyaDevice.d.ts +2 -1
  334. package/lib/server/devices/tuya/tuyaDevice.js +2 -1
  335. package/lib/server/devices/tuya/tuyaGarageOpener.d.ts +3 -0
  336. package/lib/server/devices/tuya/tuyaGarageOpener.js +3 -0
  337. package/lib/server/devices/tv/samsungTv.d.ts +1 -0
  338. package/lib/server/devices/tv/samsungTv.js +1 -0
  339. package/lib/server/devices/tv/tvDevice.d.ts +7 -1
  340. package/lib/server/devices/tv/tvDevice.js +4 -3
  341. package/lib/server/devices/velux/index.d.ts +4 -0
  342. package/lib/server/devices/velux/index.js +11 -0
  343. package/lib/server/devices/velux/veluxDevice.d.ts +13 -0
  344. package/lib/server/devices/velux/veluxDevice.js +43 -0
  345. package/lib/server/devices/velux/veluxDeviceRegistrationInfo.d.ts +9 -0
  346. package/lib/server/devices/velux/veluxDeviceRegistrationInfo.js +13 -0
  347. package/lib/server/devices/velux/veluxService.d.ts +7 -0
  348. package/lib/server/devices/velux/veluxService.js +44 -0
  349. package/lib/server/devices/velux/veluxShutter.d.ts +27 -0
  350. package/lib/server/devices/velux/veluxShutter.js +122 -0
  351. package/lib/server/devices/wledDevice.d.ts +15 -3
  352. package/lib/server/devices/wledDevice.js +42 -16
  353. package/lib/server/devices/zigbee/BaseDevices/ZigbeeActuator.d.ts +17 -4
  354. package/lib/server/devices/zigbee/BaseDevices/ZigbeeActuator.js +30 -15
  355. package/lib/server/devices/zigbee/BaseDevices/index.d.ts +1 -0
  356. package/lib/server/devices/zigbee/BaseDevices/index.js +3 -0
  357. package/lib/server/devices/zigbee/BaseDevices/zigbeeDevice.d.ts +4 -5
  358. package/lib/server/devices/zigbee/BaseDevices/zigbeeDevice.js +8 -17
  359. package/lib/server/devices/zigbee/BaseDevices/zigbeeDimmer.d.ts +10 -25
  360. package/lib/server/devices/zigbee/BaseDevices/zigbeeDimmer.js +25 -60
  361. package/lib/server/devices/zigbee/BaseDevices/zigbeeHeater.d.ts +34 -14
  362. package/lib/server/devices/zigbee/BaseDevices/zigbeeHeater.js +60 -34
  363. package/lib/server/devices/zigbee/BaseDevices/zigbeeLamp.d.ts +16 -0
  364. package/lib/server/devices/zigbee/BaseDevices/zigbeeLamp.js +35 -0
  365. package/lib/server/devices/zigbee/BaseDevices/zigbeeLedRGBCCT.d.ts +7 -7
  366. package/lib/server/devices/zigbee/BaseDevices/zigbeeLedRGBCCT.js +14 -14
  367. package/lib/server/devices/zigbee/BaseDevices/zigbeeMagnetContact.d.ts +26 -7
  368. package/lib/server/devices/zigbee/BaseDevices/zigbeeMagnetContact.js +52 -22
  369. package/lib/server/devices/zigbee/BaseDevices/zigbeeMotionSensor.d.ts +30 -15
  370. package/lib/server/devices/zigbee/BaseDevices/zigbeeMotionSensor.js +62 -38
  371. package/lib/server/devices/zigbee/BaseDevices/zigbeeShutter.d.ts +12 -4
  372. package/lib/server/devices/zigbee/BaseDevices/zigbeeShutter.js +28 -19
  373. package/lib/server/devices/zigbee/BaseDevices/zigbeeSwitch.d.ts +9 -1
  374. package/lib/server/devices/zigbee/BaseDevices/zigbeeSwitch.js +8 -1
  375. package/lib/server/devices/zigbee/zigbeeAqaraMagnetContact.d.ts +1 -0
  376. package/lib/server/devices/zigbee/zigbeeAqaraMagnetContact.js +1 -0
  377. package/lib/server/devices/zigbee/zigbeeAqaraOpple3Switch.d.ts +16 -0
  378. package/lib/server/devices/zigbee/zigbeeAqaraOpple3Switch.js +16 -0
  379. package/lib/server/devices/zigbee/zigbeeAquaraMotion.d.ts +6 -0
  380. package/lib/server/devices/zigbee/zigbeeAquaraMotion.js +7 -3
  381. package/lib/server/devices/zigbee/zigbeeAquaraVibra.d.ts +58 -11
  382. package/lib/server/devices/zigbee/zigbeeAquaraVibra.js +115 -27
  383. package/lib/server/devices/zigbee/zigbeeAquaraWater.d.ts +28 -9
  384. package/lib/server/devices/zigbee/zigbeeAquaraWater.js +54 -30
  385. package/lib/server/devices/zigbee/zigbeeBlitzShp.d.ts +15 -5
  386. package/lib/server/devices/zigbee/zigbeeBlitzShp.js +22 -14
  387. package/lib/server/devices/zigbee/zigbeeEuroHeater.d.ts +10 -4
  388. package/lib/server/devices/zigbee/zigbeeEuroHeater.js +16 -10
  389. package/lib/server/devices/zigbee/zigbeeHeimanSmoke.d.ts +34 -8
  390. package/lib/server/devices/zigbee/zigbeeHeimanSmoke.js +58 -20
  391. package/lib/server/devices/zigbee/zigbeeIkeaShutter.d.ts +1 -0
  392. package/lib/server/devices/zigbee/zigbeeIkeaShutter.js +2 -1
  393. package/lib/server/devices/zigbee/zigbeeIkeaSteckdose.d.ts +2 -0
  394. package/lib/server/devices/zigbee/zigbeeIkeaSteckdose.js +3 -1
  395. package/lib/server/devices/zigbee/zigbeeIlluActuator.d.ts +1 -2
  396. package/lib/server/devices/zigbee/zigbeeIlluActuator.js +2 -11
  397. package/lib/server/devices/zigbee/zigbeeIlluDimmer.d.ts +1 -1
  398. package/lib/server/devices/zigbee/zigbeeIlluDimmer.js +1 -1
  399. package/lib/server/devices/zigbee/zigbeeIlluLampe.d.ts +3 -10
  400. package/lib/server/devices/zigbee/zigbeeIlluLampe.js +3 -32
  401. package/lib/server/devices/zigbee/zigbeeIlluLedRGBCCT.d.ts +1 -1
  402. package/lib/server/devices/zigbee/zigbeeIlluLedRGBCCT.js +1 -1
  403. package/lib/server/devices/zigbee/zigbeeIlluShutter.d.ts +1 -0
  404. package/lib/server/devices/zigbee/zigbeeIlluShutter.js +5 -4
  405. package/lib/server/devices/zigbee/zigbeeInnr142C.d.ts +1 -1
  406. package/lib/server/devices/zigbee/zigbeeInnr142C.js +1 -1
  407. package/lib/server/devices/zigbee/zigbeeLinkindLedRgbCct.d.ts +1 -1
  408. package/lib/server/devices/zigbee/zigbeeLinkindLedRgbCct.js +1 -1
  409. package/lib/server/devices/zigbee/zigbeeOsramDimmer.d.ts +1 -1
  410. package/lib/server/devices/zigbee/zigbeeOsramDimmer.js +1 -1
  411. package/lib/server/devices/zigbee/zigbeeSMaBiTMagnetContact.d.ts +1 -0
  412. package/lib/server/devices/zigbee/zigbeeSMaBiTMagnetContact.js +1 -0
  413. package/lib/server/devices/zigbee/zigbeeSonoffMotion.d.ts +1 -0
  414. package/lib/server/devices/zigbee/zigbeeSonoffMotion.js +1 -0
  415. package/lib/server/devices/zigbee/zigbeeSonoffTemp.d.ts +34 -9
  416. package/lib/server/devices/zigbee/zigbeeSonoffTemp.js +50 -13
  417. package/lib/server/devices/zigbee/zigbeeTuyaValve.d.ts +10 -3
  418. package/lib/server/devices/zigbee/zigbeeTuyaValve.js +11 -6
  419. package/lib/server/devices/zigbee/zigbeeUbisysActuator.d.ts +9 -2
  420. package/lib/server/devices/zigbee/zigbeeUbisysActuator.js +10 -8
  421. package/lib/server/devices/zigbee/zigbeeUbisysLampe.d.ts +8 -9
  422. package/lib/server/devices/zigbee/zigbeeUbisysLampe.js +14 -24
  423. package/lib/server/devices/zigbee/zigbeeUbisysShutter.d.ts +1 -0
  424. package/lib/server/devices/zigbee/zigbeeUbisysShutter.js +2 -1
  425. package/lib/server/ioBroker/connection.d.ts +21 -22
  426. package/lib/server/ioBroker/connection.js +37 -28
  427. package/lib/server/ioBroker/ioBroker.main.d.ts +3 -0
  428. package/lib/server/ioBroker/ioBroker.main.js +12 -5
  429. package/lib/server/ioBroker/iobrokerConnectionLogging.d.ts +3 -0
  430. package/lib/server/ioBroker/iobrokerConnectionLogging.js +4 -0
  431. package/lib/server/ioBroker/socketIOConnectOptions.d.ts +2 -2
  432. package/lib/server/ioBroker/socketIOConnectOptions.js +1 -0
  433. package/lib/server/ioBroker/socketIOVisCommand.d.ts +5 -1
  434. package/lib/server/ioBroker/socketIOVisCommand.js +1 -0
  435. package/lib/server/services/ShutterService.js +7 -6
  436. package/lib/server/services/Sonos/OwnSonosDevices.d.ts +3 -0
  437. package/lib/server/services/Sonos/OwnSonosDevices.js +3 -0
  438. package/lib/server/services/Sonos/mp3-server.d.ts +3 -1
  439. package/lib/server/services/Sonos/mp3-server.js +3 -1
  440. package/lib/server/services/Sonos/own-sonos-device.d.ts +4 -1
  441. package/lib/server/services/Sonos/own-sonos-device.js +4 -4
  442. package/lib/server/services/Sonos/polly-service.d.ts +7 -1
  443. package/lib/server/services/Sonos/polly-service.js +10 -8
  444. package/lib/server/services/Sonos/sonos-service.d.ts +1 -5
  445. package/lib/server/services/Sonos/sonos-service.js +18 -17
  446. package/lib/server/services/Telegram/telegram-Commands.js +5 -5
  447. package/lib/server/services/Telegram/telegram-service.d.ts +2 -1
  448. package/lib/server/services/Telegram/telegram-service.js +8 -3
  449. package/lib/server/services/Translation/IRessourceObject.d.ts +13 -0
  450. package/lib/server/services/Translation/IRessourceObject.js +2 -0
  451. package/lib/server/services/Translation/iRessources.d.ts +1 -4
  452. package/lib/server/services/Translation/index.d.ts +1 -0
  453. package/lib/server/services/Translation/res.d.ts +34 -19
  454. package/lib/server/services/Translation/res.js +34 -19
  455. package/lib/server/services/ac/ac-device.d.ts +50 -9
  456. package/lib/server/services/ac/ac-device.js +115 -41
  457. package/lib/server/services/ac/daikin-service.js +4 -3
  458. package/lib/server/services/ac/own-ac-devices.d.ts +3 -0
  459. package/lib/server/services/ac/own-ac-devices.js +3 -0
  460. package/lib/server/services/ac/own-daikin-device.d.ts +25 -0
  461. package/lib/server/services/ac/own-daikin-device.js +40 -7
  462. package/lib/server/services/api/api-service.d.ts +118 -53
  463. package/lib/server/services/api/api-service.js +170 -80
  464. package/lib/server/services/blockAutomaticHandler.d.ts +13 -8
  465. package/lib/server/services/blockAutomaticHandler.js +34 -15
  466. package/lib/server/services/calendar/index.d.ts +1 -0
  467. package/lib/server/services/calendar/index.js +3 -0
  468. package/lib/server/services/calendar/muell-tonne.d.ts +11 -1
  469. package/lib/server/services/calendar/muell-tonne.js +10 -0
  470. package/lib/server/services/calendar/m/303/274ll-service.d.ts +23 -8
  471. package/lib/server/services/calendar/m/303/274ll-service.js +11 -5
  472. package/lib/server/services/calendar/name-date-pair.d.ts +5 -0
  473. package/lib/server/services/calendar/name-date-pair.js +10 -0
  474. package/lib/server/services/dbo/iPersist.d.ts +103 -0
  475. package/lib/server/services/dbo/postgreSqlPersist.d.ts +23 -0
  476. package/lib/server/services/dbo/postgreSqlPersist.js +28 -5
  477. package/lib/server/services/file-info.d.ts +5 -0
  478. package/lib/server/services/file-info.js +10 -0
  479. package/lib/server/services/govee/govee-device-data.d.ts +25 -0
  480. package/lib/server/services/govee/govee-device-data.js +2 -0
  481. package/lib/server/services/govee/govee-service.d.ts +7 -9
  482. package/lib/server/services/govee/govee-service.js +73 -48
  483. package/lib/server/services/govee/own-govee-device.d.ts +19 -17
  484. package/lib/server/services/govee/own-govee-device.js +58 -58
  485. package/lib/server/services/govee/own-govee-devices.d.ts +3 -0
  486. package/lib/server/services/govee/own-govee-devices.js +3 -0
  487. package/lib/server/services/https-service.d.ts +3 -2
  488. package/lib/server/services/https-service.js +4 -3
  489. package/lib/server/services/index.d.ts +1 -0
  490. package/lib/server/services/index.js +3 -0
  491. package/lib/server/services/log-service/index.d.ts +1 -0
  492. package/lib/server/services/log-service/index.js +3 -0
  493. package/lib/server/services/log-service/log-debug-type.d.ts +13 -0
  494. package/lib/server/services/log-service/log-debug-type.js +17 -0
  495. package/lib/server/services/log-service/log-filter-data.d.ts +21 -12
  496. package/lib/server/services/log-service/log-filter-data.js +6 -15
  497. package/lib/server/services/log-service/log-service.d.ts +17 -4
  498. package/lib/server/services/log-service/log-service.js +30 -17
  499. package/lib/server/services/news-service.d.ts +9 -7
  500. package/lib/server/services/news-service.js +14 -15
  501. package/lib/server/services/room-service/room-service.d.ts +20 -4
  502. package/lib/server/services/room-service/room-service.js +26 -10
  503. package/lib/server/services/settings-service.d.ts +6 -2
  504. package/lib/server/services/settings-service.js +3 -2
  505. package/lib/server/services/time-callback-service.js +1 -1
  506. package/lib/server/services/utils/RGB.d.ts +6 -0
  507. package/lib/server/services/utils/RGB.js +11 -0
  508. package/lib/server/services/utils/catchEmResult.d.ts +5 -0
  509. package/lib/server/services/utils/catchEmResult.js +10 -0
  510. package/lib/server/services/utils/energy-consumer-state-change.d.ts +6 -0
  511. package/lib/server/services/utils/energy-consumer-state-change.js +10 -0
  512. package/lib/server/services/utils/energy-manager-utils.d.ts +3 -14
  513. package/lib/server/services/utils/energy-manager-utils.js +2 -2
  514. package/lib/server/services/utils/iDisposeable.d.ts +6 -0
  515. package/lib/server/services/utils/index.d.ts +4 -1
  516. package/lib/server/services/utils/index.js +8 -1
  517. package/lib/server/services/utils/{ringstorage.d.ts → ringStorage.d.ts} +1 -1
  518. package/lib/server/services/utils/{ringstorage.js → ringStorage.js} +3 -3
  519. package/lib/server/services/utils/utils.d.ts +9 -14
  520. package/lib/server/services/victron/victron-device.d.ts +27 -10
  521. package/lib/server/services/victron/victron-device.js +94 -25
  522. package/lib/server/services/weather/index.d.ts +2 -0
  523. package/lib/server/services/weather/index.js +3 -0
  524. package/lib/server/services/weather/rain-next-minutes-info.d.ts +5 -0
  525. package/lib/server/services/weather/rain-next-minutes-info.js +10 -0
  526. package/lib/server/services/weather/weather-current.d.ts +0 -2
  527. package/lib/server/services/weather/weather-feelsLike.d.ts +15 -0
  528. package/lib/server/services/weather/weather-response.d.ts +16 -0
  529. package/lib/server/services/weather/weather-response.js +2 -0
  530. package/lib/server/services/weather/weather-service.d.ts +16 -18
  531. package/lib/server/services/weather/weather-service.js +37 -22
  532. package/lib/server/services/weather/weather-temp.d.ts +21 -0
  533. package/lib/tsconfig.tsbuildinfo +1 -1
  534. package/package.json +27 -29
  535. package/lib/models/iTemperaturDataPoint.d.ts +0 -9
  536. package/lib/models/persistence/RoomDetailInfo.d.ts +0 -6
  537. package/lib/models/persistence/RoomDetailInfo.js +0 -11
  538. package/lib/models/persistence/temperaturDataPoint.d.ts +0 -10
  539. package/lib/models/persistence/temperaturDataPoint.js +0 -14
  540. /package/lib/{models/iTemperaturDataPoint.js → server/config/iBlockAutomaticHandlerDefaults.js} +0 -0
@@ -4,19 +4,24 @@ import { CommandSource } from './commandSource';
4
4
  import { BaseCommand } from './baseCommand';
5
5
  import { LampSetTimeBasedCommand } from './lampSetTimeBasedCommand';
6
6
  import { DimmerSettings } from '../deviceSettings';
7
+ import { BlockAutomaticCommand } from './blockAutomaticCommand';
7
8
  export declare class DimmerSetLightCommand extends LampSetLightCommand {
8
9
  brightness: number;
9
10
  transitionTime: number;
10
- _commandType: CommandType;
11
+ /** @inheritDoc */
12
+ type: CommandType;
11
13
  /**
12
- * @param {CommandSource | BaseCommand} source
13
- * @param {boolean} on The desired value
14
- * @param {string} reason
15
- * @param {number} timeout A chosen Timeout after which the light should be reset
16
- * @param {number} brightness The desired brightness
17
- * @param {number} transitionTime The transition time during turnOn/turnOff
14
+ * Command to change the light of a dimmer
15
+ * @param source - The source of the command
16
+ * @param on - The desired value
17
+ * @param reason - You can provide a reason for clarity
18
+ * @param disableAutomatic - If provided, the device will remain in the desired state for the given disable action.
19
+ * If undefined the default value will be used in case it's a non automatic action: {@link SettingsService.settings.blockAutomaticHandlerDefaults}
20
+ * @param brightness - The desired brightness
21
+ * @param transitionTime - The transition time during turnOn/turnOff
18
22
  */
19
- constructor(source: CommandSource | BaseCommand, on: boolean, reason?: string, timeout?: number, brightness?: number, transitionTime?: number);
23
+ constructor(source: CommandSource | BaseCommand, on: boolean, reason?: string, disableAutomatic?: BlockAutomaticCommand | null, brightness?: number, transitionTime?: number);
24
+ /** @inheritDoc */
20
25
  get logMessage(): string;
21
26
  static byTimeBased(s: DimmerSettings, c: LampSetTimeBasedCommand): DimmerSetLightCommand;
22
27
  }
@@ -6,32 +6,38 @@ const commandType_1 = require("./commandType");
6
6
  const timeCallback_1 = require("../timeCallback");
7
7
  class DimmerSetLightCommand extends lampSetLightCommand_1.LampSetLightCommand {
8
8
  /**
9
- * @param {CommandSource | BaseCommand} source
10
- * @param {boolean} on The desired value
11
- * @param {string} reason
12
- * @param {number} timeout A chosen Timeout after which the light should be reset
13
- * @param {number} brightness The desired brightness
14
- * @param {number} transitionTime The transition time during turnOn/turnOff
9
+ * Command to change the light of a dimmer
10
+ * @param source - The source of the command
11
+ * @param on - The desired value
12
+ * @param reason - You can provide a reason for clarity
13
+ * @param disableAutomatic - If provided, the device will remain in the desired state for the given disable action.
14
+ * If undefined the default value will be used in case it's a non automatic action: {@link SettingsService.settings.blockAutomaticHandlerDefaults}
15
+ * @param brightness - The desired brightness
16
+ * @param transitionTime - The transition time during turnOn/turnOff
15
17
  */
16
- constructor(source, on, reason = '', timeout = -1, brightness = -1, transitionTime = -1) {
17
- super(source, on, reason, timeout);
18
+ constructor(source, on, reason = '', disableAutomatic, brightness = -1, transitionTime = -1) {
19
+ super(source, on, reason, disableAutomatic);
18
20
  this.brightness = brightness;
19
21
  this.transitionTime = transitionTime;
20
- this._commandType = commandType_1.CommandType.DimmerSetLightCommand;
22
+ /** @inheritDoc */
23
+ this.type = commandType_1.CommandType.DimmerSetLightCommand;
21
24
  }
25
+ /** @inheritDoc */
22
26
  get logMessage() {
23
- return `Dimmer setLight to ${this.on} 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}`;
24
29
  }
25
30
  static byTimeBased(s, c) {
31
+ const manual = c.isForceAction;
26
32
  switch (c.time) {
27
33
  case timeCallback_1.TimeOfDay.Daylight:
28
- return new DimmerSetLightCommand(c, true, 'By TimeBased Daylight', c.timeout, s.dayBrightness);
34
+ return new DimmerSetLightCommand(c, manual || s.dayOn, 'Daylight', c.disableAutomaticCommand, s.dayBrightness);
29
35
  case timeCallback_1.TimeOfDay.BeforeSunrise:
30
- return new DimmerSetLightCommand(c, s.dawnOn, '', c.timeout, s.dawnBrightness, undefined);
36
+ return new DimmerSetLightCommand(c, manual || s.dawnOn, 'Dawn', c.disableAutomaticCommand, s.dawnBrightness, undefined);
31
37
  case timeCallback_1.TimeOfDay.AfterSunset:
32
- return new DimmerSetLightCommand(c, s.duskOn, '', c.timeout, s.duskBrightness, undefined);
38
+ return new DimmerSetLightCommand(c, manual || s.duskOn, 'Dusk', c.disableAutomaticCommand, s.duskBrightness, undefined);
33
39
  case timeCallback_1.TimeOfDay.Night:
34
- return new DimmerSetLightCommand(c, s.nightOn, '', c.timeout, s.nightBrightness, undefined);
40
+ return new DimmerSetLightCommand(c, manual || s.nightOn, 'Night', c.disableAutomaticCommand, s.nightBrightness, undefined);
35
41
  default:
36
42
  throw new Error(`TimeOfDay ${c.time} not supported`);
37
43
  }
@@ -4,13 +4,14 @@ import { CommandType } from './commandType';
4
4
  export declare class FloorSetAllShuttersCommand extends BaseCommand {
5
5
  readonly position: number;
6
6
  readonly specificFloor: number | undefined;
7
- _commandType: CommandType;
7
+ /** @inheritDoc */
8
+ type: CommandType;
8
9
  /**
9
10
  * Creates an instance of FloorSetAllShuttersCommand.
10
- * @param {CommandSource | BaseCommand} source
11
- * @param {number} position (0 closed, 100 open)
12
- * @param {number | undefined} specificFloor undefined = all floors
13
- * @param {string} reason
11
+ * @param source - The source of the command
12
+ * @param position - (0 closed, 100 open)
13
+ * @param specificFloor - undefined = all floors
14
+ * @param reason - You can provide a reason for clarity
14
15
  */
15
16
  constructor(source: CommandSource | BaseCommand, position: number, specificFloor?: number | undefined, reason?: string);
16
17
  }
@@ -6,16 +6,17 @@ const commandType_1 = require("./commandType");
6
6
  class FloorSetAllShuttersCommand extends baseCommand_1.BaseCommand {
7
7
  /**
8
8
  * Creates an instance of FloorSetAllShuttersCommand.
9
- * @param {CommandSource | BaseCommand} source
10
- * @param {number} position (0 closed, 100 open)
11
- * @param {number | undefined} specificFloor undefined = all floors
12
- * @param {string} reason
9
+ * @param source - The source of the command
10
+ * @param position - (0 closed, 100 open)
11
+ * @param specificFloor - undefined = all floors
12
+ * @param reason - You can provide a reason for clarity
13
13
  */
14
14
  constructor(source, position, specificFloor = undefined, reason = '') {
15
15
  super(source, reason);
16
16
  this.position = position;
17
17
  this.specificFloor = specificFloor;
18
- this._commandType = commandType_1.CommandType.FloorSetAllShuttersCommand;
18
+ /** @inheritDoc */
19
+ this.type = commandType_1.CommandType.FloorSetAllShuttersCommand;
19
20
  }
20
21
  }
21
22
  exports.FloorSetAllShuttersCommand = FloorSetAllShuttersCommand;
@@ -1,3 +1,6 @@
1
+ export { BlockAutomaticCommand } from './blockAutomaticCommand';
2
+ export { BlockAutomaticUntilCommand } from './blockAutomaticUntilCommand';
3
+ export { BlockAutomaticLiftBlockCommand } from './blockAutomaticLiftBlockCommand';
1
4
  export { RestoreTargetAutomaticValueCommand } from './restoreTargetAutomaticValueCommand';
2
5
  export { ActuatorSetStateCommand } from './actuatorSetStateCommand';
3
6
  export { ActuatorToggleCommand } from './actuatorToggleCommand';
@@ -1,6 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WledSetLightCommand = exports.WindowSetRolloByWeatherStatusCommand = exports.WindowSetDesiredPositionCommand = exports.WindowRestoreDesiredPositionCommand = exports.ShutterSunsetDownCommand = exports.ShutterSunriseUpCommand = exports.ShutterSetLevelCommand = exports.RoomSetLightTimeBasedCommand = exports.RoomRestoreShutterPositionCommand = exports.RoomRestoreLightCommand = exports.LightGroupSwitchTimeConditionalCommand = exports.LedSetLightCommand = exports.LampToggleLightCommand = exports.LampSetTimeBasedCommand = exports.LampSetLightCommand = exports.FloorSetAllShuttersCommand = exports.DimmerSetLightCommand = exports.CommandType = exports.CommandSource = exports.BaseCommand = exports.ActuatorWriteStateToDeviceCommand = exports.ActuatorToggleCommand = exports.ActuatorSetStateCommand = exports.RestoreTargetAutomaticValueCommand = void 0;
3
+ exports.WledSetLightCommand = exports.WindowSetRolloByWeatherStatusCommand = exports.WindowSetDesiredPositionCommand = exports.WindowRestoreDesiredPositionCommand = exports.ShutterSunsetDownCommand = exports.ShutterSunriseUpCommand = exports.ShutterSetLevelCommand = exports.RoomSetLightTimeBasedCommand = exports.RoomRestoreShutterPositionCommand = exports.RoomRestoreLightCommand = exports.LightGroupSwitchTimeConditionalCommand = exports.LedSetLightCommand = exports.LampToggleLightCommand = exports.LampSetTimeBasedCommand = exports.LampSetLightCommand = exports.FloorSetAllShuttersCommand = exports.DimmerSetLightCommand = exports.CommandType = exports.CommandSource = exports.BaseCommand = exports.ActuatorWriteStateToDeviceCommand = exports.ActuatorToggleCommand = exports.ActuatorSetStateCommand = exports.RestoreTargetAutomaticValueCommand = exports.BlockAutomaticLiftBlockCommand = exports.BlockAutomaticUntilCommand = exports.BlockAutomaticCommand = void 0;
4
+ var blockAutomaticCommand_1 = require("./blockAutomaticCommand");
5
+ Object.defineProperty(exports, "BlockAutomaticCommand", { enumerable: true, get: function () { return blockAutomaticCommand_1.BlockAutomaticCommand; } });
6
+ var blockAutomaticUntilCommand_1 = require("./blockAutomaticUntilCommand");
7
+ Object.defineProperty(exports, "BlockAutomaticUntilCommand", { enumerable: true, get: function () { return blockAutomaticUntilCommand_1.BlockAutomaticUntilCommand; } });
8
+ var blockAutomaticLiftBlockCommand_1 = require("./blockAutomaticLiftBlockCommand");
9
+ Object.defineProperty(exports, "BlockAutomaticLiftBlockCommand", { enumerable: true, get: function () { return blockAutomaticLiftBlockCommand_1.BlockAutomaticLiftBlockCommand; } });
4
10
  var restoreTargetAutomaticValueCommand_1 = require("./restoreTargetAutomaticValueCommand");
5
11
  Object.defineProperty(exports, "RestoreTargetAutomaticValueCommand", { enumerable: true, get: function () { return restoreTargetAutomaticValueCommand_1.RestoreTargetAutomaticValueCommand; } });
6
12
  var actuatorSetStateCommand_1 = require("./actuatorSetStateCommand");
@@ -2,8 +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 {
6
- _commandType: CommandType;
7
- constructor(source: CommandSource | BaseCommand, on: boolean, reason?: string, timeout?: number);
7
+ /** @inheritDoc */
8
+ type: CommandType;
9
+ /**
10
+ * Command to set the light of a lamp
11
+ * @param source - The source of the command
12
+ * @param on - The new state of the light
13
+ * @param reason - You can provide a reason for clarification
14
+ * @param disableAutomatic - If provided, the device will remain in the desired state for the given disable action.
15
+ * If undefined the default value will be used in case it's a non automatic action: {@link SettingsService.settings.blockAutomaticHandlerDefaults}
16
+ */
17
+ constructor(source: CommandSource | BaseCommand, on: boolean, reason?: string, disableAutomatic?: BlockAutomaticCommand | null);
18
+ /** @inheritDoc */
8
19
  get logMessage(): string;
9
20
  }
@@ -4,12 +4,23 @@ exports.LampSetLightCommand = void 0;
4
4
  const commandType_1 = require("./commandType");
5
5
  const actuatorSetStateCommand_1 = require("./actuatorSetStateCommand");
6
6
  class LampSetLightCommand extends actuatorSetStateCommand_1.ActuatorSetStateCommand {
7
- constructor(source, on, reason = '', timeout = -1) {
8
- super(source, on, reason, timeout);
9
- this._commandType = commandType_1.CommandType.LampSetLightCommand;
7
+ /**
8
+ * Command to set the light of a lamp
9
+ * @param source - The source of the command
10
+ * @param on - The new state of the light
11
+ * @param reason - You can provide a reason for clarification
12
+ * @param disableAutomatic - If provided, the device will remain in the desired state for the given disable action.
13
+ * If undefined the default value will be used in case it's a non automatic action: {@link SettingsService.settings.blockAutomaticHandlerDefaults}
14
+ */
15
+ constructor(source, on, reason = '', disableAutomatic) {
16
+ super(source, on, reason, disableAutomatic);
17
+ /** @inheritDoc */
18
+ this.type = commandType_1.CommandType.LampSetLightCommand;
10
19
  }
20
+ /** @inheritDoc */
11
21
  get logMessage() {
12
- return `Lamp setLight to ${this.on} 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}`;
13
24
  }
14
25
  }
15
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
- _commandType: CommandType;
8
+ /** @inheritDoc */
9
+ type: 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
- * @param {CommandSource | BaseCommand} source
12
- * @param {TimeOfDay} time The time to use for calculation of desired state
13
- * @param reason
14
- * @param {number} timeout If > 0 this is the time after which the lamp reverts to its original state
18
+ * @param source - The source of the command
19
+ * @param time - The time to use for calculation of desired state
20
+ * @param reason - You can provide a reason for clarity
21
+ * @param disableAutomatic - If provided, the device will remain in the desired state for the given disable action.
22
+ * If undefined the default value will be used in case it's a non automatic action: {@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
- * @param {CommandSource | BaseCommand} source
11
- * @param {TimeOfDay} time The time to use for calculation of desired state
12
- * @param reason
13
- * @param {number} timeout If > 0 this is the time after which the lamp reverts to its original state
9
+ * @param source - The source of the command
10
+ * @param time - The time to use for calculation of desired state
11
+ * @param reason - You can provide a reason for clarity
12
+ * @param disableAutomatic - If provided, the device will remain in the desired state for the given disable action.
13
+ * If undefined the default value will be used in case it's a non automatic action: {@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;
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}`;
18
+ /** @inheritDoc */
19
+ this.type = commandType_1.CommandType.LampSetTimeBasedCommand;
20
+ this.disableAutomaticCommand = disableAutomatic;
23
21
  }
24
22
  }
25
23
  exports.LampSetTimeBasedCommand = LampSetTimeBasedCommand;
@@ -6,13 +6,14 @@ import { TimeOfDay } from '../timeCallback';
6
6
  export declare class LampToggleLightCommand extends ActuatorToggleCommand {
7
7
  time?: TimeOfDay | undefined;
8
8
  readonly calculateTime: boolean;
9
- _commandType: CommandType;
9
+ /** @inheritDoc */
10
+ type: CommandType;
10
11
  /**
11
- *
12
- * @param {CommandSource | BaseCommand} source
13
- * @param {string} reason
14
- * @param {TimeOfDay} time The time to use for calculation of desired state
15
- * @param {boolean} calculateTime Alternative to "time", if set the time will be calculated by the lamps room and its settings
12
+ * Command to toggle the light-state of a lamp
13
+ * @param source - The source of the command
14
+ * @param reason - You can provide a reason for clarity
15
+ * @param time - The time to use for calculation of desired state
16
+ * @param calculateTime - Alternative to "time", if set the time will be calculated by the lamps room and its settings
16
17
  */
17
18
  constructor(source: CommandSource | BaseCommand, reason?: string, time?: TimeOfDay | undefined, calculateTime?: boolean);
18
19
  get logMessage(): string;
@@ -5,17 +5,18 @@ const actuatorToggleCommand_1 = require("./actuatorToggleCommand");
5
5
  const commandType_1 = require("./commandType");
6
6
  class LampToggleLightCommand extends actuatorToggleCommand_1.ActuatorToggleCommand {
7
7
  /**
8
- *
9
- * @param {CommandSource | BaseCommand} source
10
- * @param {string} reason
11
- * @param {TimeOfDay} time The time to use for calculation of desired state
12
- * @param {boolean} calculateTime Alternative to "time", if set the time will be calculated by the lamps room and its settings
8
+ * Command to toggle the light-state of a lamp
9
+ * @param source - The source of the command
10
+ * @param reason - You can provide a reason for clarity
11
+ * @param time - The time to use for calculation of desired state
12
+ * @param calculateTime - Alternative to "time", if set the time will be calculated by the lamps room and its settings
13
13
  */
14
14
  constructor(source, reason = '', time, calculateTime = false) {
15
15
  super(source, reason);
16
16
  this.time = time;
17
17
  this.calculateTime = calculateTime;
18
- this._commandType = commandType_1.CommandType.LampToggleLightCommand;
18
+ /** @inheritDoc */
19
+ this.type = commandType_1.CommandType.LampToggleLightCommand;
19
20
  }
20
21
  get logMessage() {
21
22
  return `Lamp toggleLight for reason: ${this.reasonTrace}`;
@@ -4,22 +4,32 @@ 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;
10
- _commandType: CommandType;
11
+ /** @inheritDoc */
12
+ type: CommandType;
11
13
  /**
12
- *
13
- * @param {CommandSource | BaseCommand} source
14
- * @param {boolean} on
15
- * @param {string} reason
16
- * @param {number} timeout A chosen Timeout after which the light should be reset
17
- * @param {number} brightness The desired brightness
18
- * @param {number} transitionTime The transition time during turnOn/turnOff
19
- * @param {string} color The desired color in 6 digit hex Code
20
- * @param {number} colorTemp The desired color Temperature (0 = more White)
14
+ * Command to set the light-state of a Led-Device
15
+ * @param source - The source of the command
16
+ * @param on - The desired state-value
17
+ * @param reason - You can provide a reason for clarity
18
+ * @param disableAutomatic - If provided, the device will remain in the desired state for the given disable action.
19
+ * If undefined the default value will be used in case it's a non automatic action: {@link SettingsService.settings.blockAutomaticHandlerDefaults}
20
+ * @param brightness - The desired brightness
21
+ * @param transitionTime - The transition time during turnOn/turnOff
22
+ * @param color - The desired color in 6 digit hex Code
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;
28
+ /**
29
+ * Create a LedSetLightCommand based on a LampSetTimeBasedCommand and LedSettings by respecting the time of day
30
+ * @param settings - The settings for the Led
31
+ * @param c - The command to base the LedSetLightCommand on
32
+ * @returns The created LedSetLightCommand
33
+ */
24
34
  static byTimeBased(settings: LedSettings, c: LampSetTimeBasedCommand): LedSetLightCommand;
25
35
  }
@@ -6,35 +6,45 @@ const dimmerSetLightCommand_1 = require("./dimmerSetLightCommand");
6
6
  const timeCallback_1 = require("../timeCallback");
7
7
  class LedSetLightCommand extends dimmerSetLightCommand_1.DimmerSetLightCommand {
8
8
  /**
9
- *
10
- * @param {CommandSource | BaseCommand} source
11
- * @param {boolean} on
12
- * @param {string} reason
13
- * @param {number} timeout A chosen Timeout after which the light should be reset
14
- * @param {number} brightness The desired brightness
15
- * @param {number} transitionTime The transition time during turnOn/turnOff
16
- * @param {string} color The desired color in 6 digit hex Code
17
- * @param {number} colorTemp The desired color Temperature (0 = more White)
9
+ * Command to set the light-state of a Led-Device
10
+ * @param source - The source of the command
11
+ * @param on - The desired state-value
12
+ * @param reason - You can provide a reason for clarity
13
+ * @param disableAutomatic - If provided, the device will remain in the desired state for the given disable action.
14
+ * If undefined the default value will be used in case it's a non automatic action: {@link SettingsService.settings.blockAutomaticHandlerDefaults}
15
+ * @param brightness - The desired brightness
16
+ * @param transitionTime - The transition time during turnOn/turnOff
17
+ * @param color - The desired color in 6 digit hex Code
18
+ * @param colorTemp - The desired color Temperature (0 = more White)
18
19
  */
19
- constructor(source, on, reason = '', 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;
23
- this._commandType = commandType_1.CommandType.LedSetLightCommand;
24
+ /** @inheritDoc */
25
+ this.type = 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
  }
32
+ /**
33
+ * Create a LedSetLightCommand based on a LampSetTimeBasedCommand and LedSettings by respecting the time of day
34
+ * @param settings - The settings for the Led
35
+ * @param c - The command to base the LedSetLightCommand on
36
+ * @returns The created LedSetLightCommand
37
+ */
28
38
  static byTimeBased(settings, c) {
29
39
  switch (c.time) {
30
40
  case timeCallback_1.TimeOfDay.Daylight:
31
- return new LedSetLightCommand(c, settings.dayOn, '', c.timeout, settings.dayBrightness, undefined, settings.dayColor, settings.dayColorTemp);
41
+ return new LedSetLightCommand(c, settings.dayOn, `byTimeBased(${timeCallback_1.TimeOfDay[c.time]})`, c.disableAutomaticCommand, settings.dayBrightness, undefined, settings.dayColor, settings.dayColorTemp);
32
42
  case timeCallback_1.TimeOfDay.BeforeSunrise:
33
- return new LedSetLightCommand(c, settings.dawnOn, '', c.timeout, settings.dawnBrightness, undefined, settings.dawnColor, settings.dawnColorTemp);
43
+ return new LedSetLightCommand(c, settings.dawnOn, `byTimeBased(${timeCallback_1.TimeOfDay[c.time]})`, c.disableAutomaticCommand, settings.dawnBrightness, undefined, settings.dawnColor, settings.dawnColorTemp);
34
44
  case timeCallback_1.TimeOfDay.AfterSunset:
35
- return new LedSetLightCommand(c, settings.duskOn, '', c.timeout, settings.duskBrightness, undefined, settings.duskColor, settings.duskColorTemp);
45
+ return new LedSetLightCommand(c, settings.duskOn, `byTimeBased(${timeCallback_1.TimeOfDay[c.time]})`, c.disableAutomaticCommand, settings.duskBrightness, undefined, settings.duskColor, settings.duskColorTemp);
36
46
  case timeCallback_1.TimeOfDay.Night:
37
- return new LedSetLightCommand(c, settings.nightOn, '', c.timeout, settings.nightBrightness, undefined, settings.nightColor, settings.nightColorTemp);
47
+ return new LedSetLightCommand(c, settings.nightOn, `byTimeBased(${timeCallback_1.TimeOfDay[c.time]})`, c.disableAutomaticCommand, settings.nightBrightness, undefined, settings.nightColor, settings.nightColorTemp);
38
48
  }
39
49
  }
40
50
  }
@@ -4,6 +4,13 @@ import { CommandSource } from './commandSource';
4
4
  import { TimeOfDay } from '../timeCallback';
5
5
  export declare class LightGroupSwitchTimeConditionalCommand extends BaseCommand {
6
6
  readonly time: TimeOfDay;
7
- _commandType: CommandType;
7
+ /** @inheritDoc */
8
+ type: CommandType;
9
+ /**
10
+ * Command to switch a light group in accordance to a specific time of the day
11
+ * @param source - The source of the command
12
+ * @param time - The time of the day to switch the light group
13
+ * @param reason - You can provide a reason for clarification
14
+ */
8
15
  constructor(source: CommandSource | BaseCommand, time: TimeOfDay, reason?: string);
9
16
  }
@@ -4,10 +4,17 @@ exports.LightGroupSwitchTimeConditionalCommand = void 0;
4
4
  const baseCommand_1 = require("./baseCommand");
5
5
  const commandType_1 = require("./commandType");
6
6
  class LightGroupSwitchTimeConditionalCommand extends baseCommand_1.BaseCommand {
7
+ /**
8
+ * Command to switch a light group in accordance to a specific time of the day
9
+ * @param source - The source of the command
10
+ * @param time - The time of the day to switch the light group
11
+ * @param reason - You can provide a reason for clarification
12
+ */
7
13
  constructor(source, time, reason = '') {
8
14
  super(source, reason);
9
15
  this.time = time;
10
- this._commandType = commandType_1.CommandType.LightGroupSwitchTimeConditional;
16
+ /** @inheritDoc */
17
+ this.type = commandType_1.CommandType.LightGroupSwitchTimeConditional;
11
18
  }
12
19
  }
13
20
  exports.LightGroupSwitchTimeConditionalCommand = LightGroupSwitchTimeConditionalCommand;
@@ -2,7 +2,12 @@ import { BaseCommand } from './baseCommand';
2
2
  import { CommandSource } from './commandSource';
3
3
  import { CommandType } from './commandType';
4
4
  export declare class RestoreTargetAutomaticValueCommand extends BaseCommand {
5
- _commandType: CommandType;
5
+ /** @inheritDoc */
6
+ type: CommandType;
7
+ /**
8
+ * Command to restore the target automatic value of an actuator
9
+ * @param source - The source of the command
10
+ * @param reason - You can provide a reason for clarification
11
+ */
6
12
  constructor(source: CommandSource | BaseCommand, reason?: string);
7
- get logMessage(): string;
8
13
  }
@@ -4,12 +4,15 @@ exports.RestoreTargetAutomaticValueCommand = void 0;
4
4
  const baseCommand_1 = require("./baseCommand");
5
5
  const commandType_1 = require("./commandType");
6
6
  class RestoreTargetAutomaticValueCommand extends baseCommand_1.BaseCommand {
7
+ /**
8
+ * Command to restore the target automatic value of an actuator
9
+ * @param source - The source of the command
10
+ * @param reason - You can provide a reason for clarification
11
+ */
7
12
  constructor(source, reason = '') {
8
13
  super(source, reason);
9
- this._commandType = commandType_1.CommandType.ActuatorRestoreTargetAutomaticValueCommand;
10
- }
11
- get logMessage() {
12
- return `Actuator restore target automatic value due to reason: ${this.reasonTrace}`;
14
+ /** @inheritDoc */
15
+ this.type = commandType_1.CommandType.ActuatorRestoreTargetAutomaticValueCommand;
13
16
  }
14
17
  }
15
18
  exports.RestoreTargetAutomaticValueCommand = RestoreTargetAutomaticValueCommand;
@@ -2,6 +2,12 @@ import { BaseCommand } from './baseCommand';
2
2
  import { CommandType } from './commandType';
3
3
  import { CommandSource } from './commandSource';
4
4
  export declare class RoomRestoreLightCommand extends BaseCommand {
5
- _commandType: CommandType;
5
+ /** @inheritDoc */
6
+ type: CommandType;
7
+ /**
8
+ * Command to restore the normal automatic light-state of a room
9
+ * @param source - The source of the command
10
+ * @param reason - You can provide a reason for clarification
11
+ */
6
12
  constructor(source: CommandSource | BaseCommand, reason?: string);
7
13
  }
@@ -4,9 +4,15 @@ exports.RoomRestoreLightCommand = void 0;
4
4
  const baseCommand_1 = require("./baseCommand");
5
5
  const commandType_1 = require("./commandType");
6
6
  class RoomRestoreLightCommand extends baseCommand_1.BaseCommand {
7
+ /**
8
+ * Command to restore the normal automatic light-state of a room
9
+ * @param source - The source of the command
10
+ * @param reason - You can provide a reason for clarification
11
+ */
7
12
  constructor(source, reason = '') {
8
13
  super(source, reason);
9
- this._commandType = commandType_1.CommandType.RoomRestoreLightCommand;
14
+ /** @inheritDoc */
15
+ this.type = commandType_1.CommandType.RoomRestoreLightCommand;
10
16
  }
11
17
  }
12
18
  exports.RoomRestoreLightCommand = RoomRestoreLightCommand;
@@ -3,6 +3,13 @@ import { BaseCommand } from './baseCommand';
3
3
  import { CommandType } from './commandType';
4
4
  export declare class RoomRestoreShutterPositionCommand extends BaseCommand {
5
5
  readonly recalc: boolean;
6
- _commandType: CommandType;
6
+ /** @inheritDoc */
7
+ type: CommandType;
8
+ /**
9
+ * Command to restore the normal automatic shutter position of a room
10
+ * @param source - The source of the command
11
+ * @param recalc - Whether to recalculate the shutter position
12
+ * @param reason - You can provide a reason for clarification
13
+ */
7
14
  constructor(source: CommandSource | BaseCommand, recalc?: boolean, reason?: string);
8
15
  }
@@ -4,10 +4,17 @@ exports.RoomRestoreShutterPositionCommand = void 0;
4
4
  const baseCommand_1 = require("./baseCommand");
5
5
  const commandType_1 = require("./commandType");
6
6
  class RoomRestoreShutterPositionCommand extends baseCommand_1.BaseCommand {
7
+ /**
8
+ * Command to restore the normal automatic shutter position of a room
9
+ * @param source - The source of the command
10
+ * @param recalc - Whether to recalculate the shutter position
11
+ * @param reason - You can provide a reason for clarification
12
+ */
7
13
  constructor(source, recalc = false, reason = '') {
8
14
  super(source, reason);
9
15
  this.recalc = recalc;
10
- this._commandType = commandType_1.CommandType.RoomRestoreShutterPositionCommand;
16
+ /** @inheritDoc */
17
+ this.type = commandType_1.CommandType.RoomRestoreShutterPositionCommand;
11
18
  }
12
19
  }
13
20
  exports.RoomRestoreShutterPositionCommand = RoomRestoreShutterPositionCommand;
@@ -3,12 +3,13 @@ import { CommandType } from './commandType';
3
3
  import { CommandSource } from './commandSource';
4
4
  export declare class RoomSetLightTimeBasedCommand extends BaseCommand {
5
5
  readonly movementDependant: boolean;
6
- _commandType: CommandType;
6
+ /** @inheritDoc */
7
+ type: CommandType;
7
8
  /**
8
9
  * Sets the light based on the current time, rollo Position and room Settings
9
- * @param source
10
- * @param movementDependant Only turn light on if there was a movement in the same room
11
- * @param reason
10
+ * @param source - The source of the command
11
+ * @param movementDependant - Only turn light on if there was a movement in the same room
12
+ * @param reason - You can provide a reason for clarity
12
13
  */
13
14
  constructor(source: CommandSource | BaseCommand, movementDependant?: boolean, reason?: string);
14
15
  }