Coder Social home page Coder Social logo

Comments (22)

lkempf avatar lkempf commented on August 18, 2024

Could you post the debug log? The Readme documents how to enable that. I would need at least the UnitType casambi-bt creates for the problematic model and the output for some brightness changes (should be around the lines containing UnitState).

from casambi-bt.

mintnl avatar mintnl commented on August 18, 2024

Logger: homeassistant.components.websocket_api.http.connection
Source: custom_components/casambi_bt/light.py:209
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 11 januari 2023 om 20:41:49 (12 occurrences)
Last logged: 11 januari 2023 om 21:15:00
[140137883442800] byte must be in range(0, 256)
[140137866049952] byte must be in range(0, 256)
[140138803809632] byte must be in range(0, 256)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 200, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1755, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1792, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 678, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 958, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 715, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/light/init.py", line 570, in async_handle_light_on_service
await light.async_turn_on(**filter_turn_on_params(light, params))
File "/config/custom_components/casambi_bt/light.py", line 209, in async_turn_on
await self._api.casa.setUnitState(self._obj, state)
File "/usr/local/lib/python3.10/site-packages/CasambiBt/_casambi.py", line 150, in setUnitState
stateBytes = target.getStateAsBytes(state)
File "/usr/local/lib/python3.10/site-packages/CasambiBt/_unit.py", line 265, in getStateAsBytes
res[off // 8] |= valBytes[i] << (off % 8)
ValueError: byte must be in range(0, 256)

and

Deze fout is ontstaan door een aangepaste integratie.
Logger: homeassistant
Source: custom_components/casambi_bt/light.py:260
Integration: Casambi Bluetooth (documentation)
First occurred: 11 januari 2023 om 20:42:30 (268 occurrences)
Last logged: 11 januari 2023 om 21:40:37
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 543, in async_update_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 599, in _async_write_ha_state
attr.update(self.state_attributes or {})
File "/usr/src/homeassistant/homeassistant/components/light/init.py", line 1016, in state_attributes
data.update(self._light_internal_convert_color(color_mode))
File "/usr/src/homeassistant/homeassistant/components/light/init.py", line 954, in _light_internal_convert_color
elif color_mode == ColorMode.RGBW and self._light_internal_rgbw_color:
File "/usr/src/homeassistant/homeassistant/components/light/init.py", line 852, in _light_internal_rgbw_color
rgbw_color = self.rgbw_color
File "/config/custom_components/casambi_bt/light.py", line 260, in rgbw_color
return (*unit.state.rgb, unit.state.white) # type: ignore[return-value]
TypeError: Value after * must be an iterable, not NoneType

from casambi-bt.

lkempf avatar lkempf commented on August 18, 2024

This aren't the debug logs. Did you follow the steps under https://github.com/lkempf/casambi-bt-hass/#reporting-issues? If yes the issue might be that you have to press the "Load full logs" button on the logs-page.

from casambi-bt.

mintnl avatar mintnl commented on August 18, 2024

2023-02-06 13:52:49.688 DEBUG (MainThread) [CasambiBt._casambi] Sending operation SetLevel with payload b'ff05' for 501
2023-02-06 13:52:49.689 DEBUG (MainThread) [CasambiBt._client] Sending packet b'280201001005010000ff05' with counter 17
2023-02-06 13:52:49.689 DEBUG (MainThread) [CasambiBt._client] Packet with header: b'1100000007280201001005010000ff05'
2023-02-06 13:52:49.689 INFO (MainThread) [CasambiBt._encryption] Encrypting packet: b'1100000007280201001005010000ff05' of len 16 with nonce b'ede9968a11000000360423123a2acf7a'
2023-02-06 13:52:49.690 DEBUG (MainThread) [CasambiBt._encryption] Encrypted packet: b'1100000092a4007d51822e3ec4c3a203'
2023-02-06 13:52:49.691 DEBUG (MainThread) [CasambiBt._encryption] Authenticated packet: b'1100000092a4007d51822e3ec4c3a2036b12a9a72b50985a43b878ddab46167e'
2023-02-06 13:52:49.791 DEBUG (MainThread) [CasambiBt._client] Callback on handle c9ffde48-ca5a-0001-ab83-8f519b482f77 (Handle: 8): Unknown: b'150000808164fe9210051e6793256b5e53fd721394c268028a1542'
2023-02-06 13:52:49.791 INFO (MainThread) [CasambiBt._encryption] Decrypting packet: b'150000808164fe9210051e6793256b5e53fd721394c268028a1542' of len 27 with nonce b'15000080f91d133c360423123a2acf7a'
2023-02-06 13:52:49.791 DEBUG (MainThread) [CasambiBt._encryption] Decrypted package: b'060513131c7000'
2023-02-06 13:52:49.792 DEBUG (MainThread) [CasambiBt._client] Incoming data of type 6: b'060513131c7000'
2023-02-06 13:52:49.792 INFO (MainThread) [CasambiBt._client] Parsing incoming unit states...
2023-02-06 13:52:49.792 DEBUG (MainThread) [CasambiBt._client] Incoming unit state: b'0513131c7000'
2023-02-06 13:52:49.792 DEBUG (MainThread) [CasambiBt._client] Parsed state: Id 5, prio 3, online True, on True, state b'7000'1
2023-02-06 13:52:49.792 INFO (MainThread) [CasambiBt._casambi] Incomming data callback of type 6
2023-02-06 13:52:49.792 DEBUG (MainThread) [CasambiBt._casambi] Handling changed state b'7000' for unit 5
2023-02-06 13:52:49.792 DEBUG (MainThread) [CasambiBt._unit] Value for unkown control type at 0: 0
2023-02-06 13:52:49.792 DEBUG (MainThread) [CasambiBt._unit] Parsed b'7000' to UnitState(dimmer=28, rgb=None, white=None)
2023-02-06 13:52:53.441 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140646667047920] byte must be in range(0, 256)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 200, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1787, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1824, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 680, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 968, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 720, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/light/init.py", line 571, in async_handle_light_on_service
await light.async_turn_on(**filter_turn_on_params(light, params))
File "/config/custom_components/casambi_bt/light.py", line 209, in async_turn_on
await self._api.casa.setUnitState(self._obj, state)
File "/usr/local/lib/python3.10/site-packages/CasambiBt/_casambi.py", line 150, in setUnitState
stateBytes = target.getStateAsBytes(state)
File "/usr/local/lib/python3.10/site-packages/CasambiBt/_unit.py", line 265, in getStateAsBytes
res[off // 8] |= valBytes[i] << (off % 8)
ValueError: byte must be in range(0, 256)
2023-02-06 13:52:57.872 DEBUG (MainThread) [CasambiBt._unit] Packing [(0, 2, 0), (2, 8, 20)] as bytearray(b'P\x00')
2023-02-06 13:52:57.872 DEBUG (MainThread) [CasambiBt._casambi] Sending operation SetState with payload b'5000' for 501
2023-02-06 13:52:57.872 DEBUG (MainThread) [CasambiBt._client] Sending packet b'2802300011050100005000' with counter 18
2023-02-06 13:52:57.872 DEBUG (MainThread) [CasambiBt._client] Packet with header: b'12000000072802300011050100005000'
2023-02-06 13:52:57.873 INFO (MainThread) [CasambiBt._encryption] Encrypting packet: b'12000000072802300011050100005000' of len 16 with nonce b'ede9968a12000000360423123a2acf7a'
2023-02-06 13:52:57.878 DEBUG (MainThread) [CasambiBt._encryption] Encrypted packet: b'12000000fabb04cd5d3e451e004f695c'
2023-02-06 13:52:57.880 DEBUG (MainThread) [CasambiBt._encryption] Authenticated packet: b'12000000fabb04cd5d3e451e004f695c4fa1618e58562a5e690827f37e32267e'
2023-02-06 13:52:57.928 DEBUG (MainThread) [CasambiBt._client] Callback on handle c9ffde48-ca5a-0001-ab83-8f519b482f77 (Handle: 8): Unknown: b'16000080420b705c3e39897724ed8461408d18556ec990ea29c994'
2023-02-06 13:52:57.929 INFO (MainThread) [CasambiBt._encryption] Decrypting packet: b'16000080420b705c3e39897724ed8461408d18556ec990ea29c994' of len 27 with nonce b'16000080f91d133c360423123a2acf7a'
2023-02-06 13:52:57.930 DEBUG (MainThread) [CasambiBt._encryption] Decrypted package: b'06051313145000'
2023-02-06 13:52:57.930 DEBUG (MainThread) [CasambiBt._client] Incoming data of type 6: b'06051313145000'
2023-02-06 13:52:57.930 INFO (MainThread) [CasambiBt._client] Parsing incoming unit states...
2023-02-06 13:52:57.930 DEBUG (MainThread) [CasambiBt._client] Incoming unit state: b'051313145000'
2023-02-06 13:52:57.931 DEBUG (MainThread) [CasambiBt._client] Parsed state: Id 5, prio 3, online True, on True, state b'5000'1
2023-02-06 13:52:57.931 INFO (MainThread) [CasambiBt._casambi] Incomming data callback of type 6
2023-02-06 13:52:57.931 DEBUG (MainThread) [CasambiBt._casambi] Handling changed state b'5000' for unit 5
2023-02-06 13:52:57.931 DEBUG (MainThread) [CasambiBt._unit] Value for unkown control type at 0: 0
2023-02-06 13:52:57.931 DEBUG (MainThread) [CasambiBt._unit] Parsed b'5000' to UnitState(dimmer=20, rgb=None, white=None)
2023-02-06 13:53:00.166 DEBUG (MainThread) [CasambiBt._casambi] Sending operation SetLevel with payload b'00' for 501
2023-02-06 13:53:00.166 DEBUG (MainThread) [CasambiBt._client] Sending packet b'28010100120501000000' with counter 19
2023-02-06 13:53:00.166 DEBUG (MainThread) [CasambiBt._client] Packet with header: b'130000000728010100120501000000'
2023-02-06 13:53:00.167 INFO (MainThread) [CasambiBt._encryption] Encrypting packet: b'130000000728010100120501000000' of len 15 with nonce b'ede9968a13000000360423123a2acf7a'
2023-02-06 13:53:00.170 DEBUG (MainThread) [CasambiBt._encryption] Encrypted packet: b'130000009e96896662df5a4c4d2233'
2023-02-06 13:53:00.172 DEBUG (MainThread) [CasambiBt._encryption] Authenticated packet: b'130000009e96896662df5a4c4d223331b0b554c3809fc7ca4361f6ead38fdd'
2023-02-06 13:53:00.328 DEBUG (MainThread) [CasambiBt._client] Callback on handle c9ffde48-ca5a-0001-ab83-8f519b482f77 (Handle: 8): Unknown: b'17000080431b09ec17c5ec8dc258abede334464aed037626434c14'
2023-02-06 13:53:00.328 INFO (MainThread) [CasambiBt._encryption] Decrypting packet: b'17000080431b09ec17c5ec8dc258abede334464aed037626434c14' of len 27 with nonce b'17000080f91d133c360423123a2acf7a'
2023-02-06 13:53:00.328 DEBUG (MainThread) [CasambiBt._encryption] Decrypted package: b'06051313140000'
2023-02-06 13:53:00.329 DEBUG (MainThread) [CasambiBt._client] Incoming data of type 6: b'06051313140000'
2023-02-06 13:53:00.329 INFO (MainThread) [CasambiBt._client] Parsing incoming unit states...
2023-02-06 13:53:00.329 DEBUG (MainThread) [CasambiBt._client] Incoming unit state: b'051313140000'
2023-02-06 13:53:00.329 DEBUG (MainThread) [CasambiBt._client] Parsed state: Id 5, prio 3, online True, on True, state b'0000'1
2023-02-06 13:53:00.329 INFO (MainThread) [CasambiBt._casambi] Incomming data callback of type 6
2023-02-06 13:53:00.329 DEBUG (MainThread) [CasambiBt._casambi] Handling changed state b'0000' for unit 5
2023-02-06 13:53:00.329 DEBUG (MainThread) [CasambiBt._unit] Value for unkown control type at 0: 0
2023-02-06 13:53:00.329 DEBUG (MainThread) [CasambiBt._unit] Parsed b'0000' to UnitState(dimmer=0, rgb=None, white=None)

from casambi-bt.

lkempf avatar lkempf commented on August 18, 2024

This looks better but I'm still missing the unit type. It will only be logged when the integration is initializing. So can you reload the integration and send me all lines containing the string unit type.

from casambi-bt.

mintnl avatar mintnl commented on August 18, 2024

2023-02-07 11:39:21.874 INFO (MainThread) [CasambiBt._casambi] Removed unit changed handler <bound method CasambiApi._unit_changed_handler of <custom_components.casambi_bt.CasambiApi object at 0x7fead4175300>>
2023-02-07 11:39:21.874 INFO (MainThread) [CasambiBt._client] Disconnecting...
2023-02-07 11:39:23.935 INFO (MainThread) [CasambiBt._client] Received disconnect callback from 01:23:45:67:89:00
2023-02-07 11:39:23.936 INFO (MainThread) [CasambiBt._client] Disconnected.
2023-02-07 11:43:46.135 INFO (MainThread) [CasambiBt._casambi] Trying to connect to casambi network 01:23:45:67:89:00...
2023-02-07 11:43:46.135 INFO (MainThread) [CasambiBt._network] Getting network id...
2023-02-07 11:43:46.247 INFO (MainThread) [CasambiBt._network] Got network id NETWORKID.
2023-02-07 11:43:46.247 INFO (MainThread) [CasambiBt._keystore] Loading keys...
2023-02-07 11:43:46.248 INFO (MainThread) [CasambiBt._keystore] Loaded 5 keys.
2023-02-07 11:43:46.248 INFO (MainThread) [CasambiBt._network] Loading session...
2023-02-07 11:43:46.248 INFO (MainThread) [CasambiBt._network] Loading unit type cache...
2023-02-07 11:43:46.249 INFO (MainThread) [CasambiBt._network] Updating network...
2023-02-07 11:43:46.269 DEBUG (MainThread) [CasambiBt._network] Network: {"status":"FETCHED","revision":82.0,"network":{"id":NETWORKID","revision":82,"generation":3,"lastUsedProtocol":0,"channels":2087,"mode":1,"grade":1,"uuid":"012345678900","gateway":{"token":"Raspberry/lineage_rpi4/rpi4/rpi4/unknown","name":"Raspberry Pi 4","notify":true,"options":499711,"values":{"T1":30.0,"T2":0.0}},"site":"SITE","email":"[email protected]","name":"Network Name","visitorKey":"VISTORKEY","managerKey":"MANAGERKEY","type":2,"nextSceneID":26,"nextUnitID":6,"nextEventID":0,"nextControlID":0,"nextGroupID":1,"protocolVersion":10,"allUnitPosition":-1,"nearUnitPosition":-1,"nearbyEnabled":false,"allowPrototypes":false,"longitude":6.1,"latitude":53.1,"timeZone":"Europe/Amsterdam","settings":{"revision":1,"control":{"useLastLevels":true,"enabled":false,"activateTimersAfterStartup":true,"startupDuration":99,"tapDuration":97,"dimDuration":499,"fadeout":10,"behaviour":1,"weekdays":[{"weekday":2,"dayStart":7,"dayEnd":18,"dayTimeout":120,"nightTimeout":30},{"weekday":4,"dayStart":7,"dayEnd":18,"dayTimeout":120,"nightTimeout":30},{"weekday":8,"dayStart":7,"dayEnd":18,"dayTimeout":120,"nightTimeout":30},{"weekday":16,"dayStart":7,"dayEnd":18,"dayTimeout":120,"nightTimeout":30},{"weekday":32,"dayStart":7,"dayEnd":18,"dayTimeout":120,"nightTimeout":30},{"weekday":64,"dayStart":9,"dayEnd":16,"dayTimeout":120,"nightTimeout":30},{"weekday":1,"dayStart":9,"dayEnd":16,"dayTimeout":120,"nightTimeout":30}]}},"grid":{"type":0,"position":0,"groupID":0,"cells":[{"type":1,"position":1,"groupID":0,"unit":1},{"type":1,"position":0,"groupID":0,"unit":2},{"type":3,"position":13,"groupID":0},{"type":1,"position":5,"groupID":0,"unit":5},{"type":1,"position":4,"groupID":0,"unit":8},{"type":1,"position":6,"groupID":0,"unit":11},{"type":1,"position":7,"groupID":0,"unit":15},{"type":1,"position":8,"groupID":0,"unit":17},{"type":1,"position":11,"groupID":0,"unit":19},{"type":1,"position":3,"groupID":0,"unit":21},{"type":1,"position":12,"groupID":0,"unit":23},{"type":2,"position":2,"groupID":1,"name":"Kooklicht","cells":[{"type":1,"position":0,"groupID":0,"unit":18},{"type":1,"position":1,"groupID":0,"unit":25}]},{"type":1,"position":9,"groupID":0,"unit":28},{"type":1,"position":10,"groupID":0,"unit":29}]},"photos":[],"units":[{"deviceID":1,"uuid":"-B767-43C9-AE82-7E50982C3C84","address":"ee7b4a5","cpu":1,"name":"Spots Oost","type":983,"appearance":0,"hueID":0,"groupID":0,"position":0,"revision":1,"configRevision":3,"firmware":9472,"image":"haKs32KXpCM4cM44vmoSDFXaL0vAOoAP","modes":[{"name":"unit_mode1","state":"fc03","cycle":true},{"name":"unit_mode2","state":"0000","cycle":false},{"name":"unit_mode3","state":"0000","cycle":false},{"name":"unit_mode4","state":"0000","cycle":false}],"smartSwitch":{"type":5,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":0,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":10,"switchOffDelayTime":300,"excludeOFF":false,"disableDimming":false,"index":0},"pushButtonToggleDisabled":false,"presenceSensor":{"type":5,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":0,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":0,"switchOffDelayTime":0,"excludeOFF":false,"disableDimming":false,"index":0},"linkedSensor":0,"gain":100.0,"startupMode":1,"minOnLevel":0.0,"minLevel":0.0,"maxLevel":1.0,"parameters":[],"sequenceCounter":0,"behaviour":0,"timeout":0,"labels":{},"details":{},"actionConfig":0,"actions":[]},{"deviceID":2,"uuid":"-C1EE-4108-99C6-EB411676CBF9","address":"114f2e3","cpu":1,"name":"Spots Keuken","type":983,"appearance":0,"hueID":0,"groupID":0,"position":1,"revision":1,"configRevision":3,"firmware":9472,"image":"mv7e5KlLWCW3zOWQoXpK9n6PjIz0DBMk","modes":[{"name":"unit_mode1","state":"fc03","cycle":true},{"name":"unit_mode2","state":"0000","cycle":false},{"name":"unit_mode3","state":"0000","cycle":false},{"name":"unit_mode4","state":"0000","cycle":false}],"smartSwitch":{"type":5,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":0,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":10,"switchOffDelayTime":300,"excludeOFF":false,"disableDimming":false,"index":0},"pushButtonToggleDisabled":false,"presenceSensor":{"type":5,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":0,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":0,"switchOffDelayTime":0,"excludeOFF":false,"disableDimming":false,"index":0},"linkedSensor":0,"gain":100.0,"startupMode":1,"minOnLevel":0.0,"minLevel":0.0,"maxLevel":1.0,"parameters":[],"sequenceCounter":0,"behaviour":0,"timeout":0,"labels":{},"details":{},"actionConfig":0,"actions":[]},{"deviceID":5,"uuid":"-17D4-4191-AF11-A8B6FD2B5F00","address":"d1b7ffc","cpu":1,"name":"BG Hal wandlampen","type":983,"appearance":0,"hueID":0,"groupID":0,"position":4,"revision":1,"configRevision":6,"firmware":9246,"image":"wvZsYSjFIV5yHfymDnddul85BdDJag0M","modes":[{"name":"unit_mode1","state":"fc03","cycle":true},{"name":"unit_mode2","state":"0000","cycle":false},{"name":"unit_mode3","state":"0000","cycle":false},{"name":"unit_mode4","state":"0000","cycle":false}],"smartSwitch":{"type":5,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":0,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":10,"switchOffDelayTime":300,"excludeOFF":false,"disableDimming":false,"index":0},"pushButtonToggleDisabled":false,"presenceSensor":{"type":5,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":0,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":0,"switchOffDelayTime":0,"excludeOFF":false,"disableDimming":false,"index":0},"linkedSensor":0,"gain":100.0,"startupMode":1,"minOnLevel":0.0,"minLevel":0.12454215,"maxLevel":1.0,"parameters":[],"sequenceCounter":0,"behaviour":0,"timeout":0,"labels":{},"details":{},"actionConfig":0,"actions":[]},{"deviceID":8,"uuid":"-3CB9-448A-9AB4-0F95E1CB8109","address":"38726de","cpu":1,"name":"Spots Hal","type":983,"appearance":0,"hueID":0,"groupID":0,"position":7,"revision":1,"configRevision":3,"firmware":9472,"image":"iUDrSehOsF5jYbRgZtZhmUsE9dbROMAP","modes":[{"name":"unit_mode1","state":"fc03","cycle":true},{"name":"unit_mode2","state":"0000","cycle":false},{"name":"unit_mode3","state":"0000","cycle":false},{"name":"unit_mode4","state":"0000","cycle":false}],"smartSwitch":{"type":5,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":0,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":10,"switchOffDelayTime":300,"excludeOFF":false,"disableDimming":false,"index":0},"pushButtonToggleDisabled":false,"presenceSensor":{"type":5,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":0,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":0,"switchOffDelayTime":0,"excludeOFF":false,"disableDimming":false,"index":0},"linkedSensor":0,"gain":100.0,"startupMode":1,"minOnLevel":0.0,"minLevel":0.0,"maxLevel":1.0,"parameters":[],"sequenceCounter":0,"behaviour":0,"timeout":0,"labels":{},"details":{},"actionConfig":0,"actions":[]},{"deviceID":11,"uuid":"-0CBB-47E9-A76F-EC5E21D321C3","address":"9262acc","cpu":1,"name":"1e Spots Overloop","type":983,"appearance":0,"hueID":0,"groupID":0,"position":10,"revision":1,"configRevision":3,"firmware":9472,"image":"AioDnaKOYj1680YXc5bvjm7TnTtCIn52","modes":[{"name":"unit_mode1","state":"fc03","cycle":true},{"name":"unit_mode2","state":"0000","cycle":false},{"name":"unit_mode3","state":"0000","cycle":false},{"name":"unit_mode4","state":"0000","cycle":false}],"smartSwitch":{"type":5,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":0,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":10,"switchOffDelayTime":300,"excludeOFF":false,"disableDimming":false,"index":0},"pushButtonToggleDisabled":false,"presenceSensor":{"type":5,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":0,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":0,"switchOffDelayTime":0,"excludeOFF":false,"disableDimming":false,"index":0},"linkedSensor":0,"gain":100.0,"startupMode":1,"minOnLevel":0.0,"minLevel":0.0,"maxLevel":1.0,"parameters":[],"sequenceCounter":0,"behaviour":0,"timeout":0,"labels":{},"details":{},"actionConfig":0,"actions":[]},{"deviceID":14,"uuid":"-014B-4B51-B17A-7B5A03B72AA2","address":"0017681","cpu":0,"name":"1e Overloop Midden","type":200001,"appearance":200003,"hueID":0,"groupID":0,"position":13,"revision":1,"configRevision":14,"firmware":0,"modes":[{"name":"unit_mode1","state":"000000","cycle":true},{"name":"unit_mode2","state":"000000","cycle":false},{"name":"unit_mode3","state":"000000","cycle":false},{"name":"unit_mode4","state":"000000","cycle":false}],"smartSwitch":{"type":5,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":0,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":10,"switchOffDelayTime":300,"excludeOFF":false,"disableDimming":false,"index":0},"pushButtonToggleDisabled":false,"linkedSensor":0,"gain":100.0,"switchConfig":{"buttons":[],"switches":[{"type":0,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":11,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":0,"switchOffDelayTime":0,"excludeOFF":false,"disableDimming":false,"index":1},{"type":0,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":29,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":0,"switchOffDelayTime":0,"excludeOFF":false,"disableDimming":false,"index":0}],"exclusiveScenes":false,"longPressAllOff":false,"toggleDisabled":false},"startupMode":1,"minOnLevel":0.0,"minLevel":0.0,"maxLevel":1.0,"parameters":[],"securityKey":"8a0c04e333fbc0854ff9710240c6ba2e","sequenceCounter":105,"behaviour":0,"timeout":0,"labels":{},"details":{},"actionConfig":0,"actions":[]},{"deviceID":15,"uuid":"-803D-432A-8B45-4F9DA5C567B8","address":"eb16d5d","cpu":1,"name":"1e Spots Kantoor","type":983,"appearance":0,"hueID":0,"groupID":0,"position":14,"revision":1,"configRevision":3,"firmware":9246,"image":"c7PMc4cOGdjzvCSKNiuQwJxKNEbHRxCz","modes":[{"name":"unit_mode1","state":"fc03","cycle":true},{"name":"unit_mode2","state":"0000","cycle":false},{"name":"unit_mode3","state":"0000","cycle":false},{"name":"unit_mode4","state":"0000","cycle":false}],"smartSwitch":{"type":5,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":0,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":10,"switchOffDelayTime":300,"excludeOFF":false,"disableDimming":false,"index":0},"pushButtonToggleDisabled":false,"presenceSensor":{"type":5,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":0,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":0,"switchOffDelayTime":0,"excludeOFF":false,"disableDimming":false,"index":0},"linkedSensor":0,"gain":100.0,"startupMode":1,"minOnLevel":0.0,"minLevel":0.0,"maxLevel":1.0,"parameters":[],"sequenceCounter":0,"behaviour":0,"timeout":0,"labels":{},"details":{},"actionConfig":0,"actions":[]},{"deviceID":17,"uuid":"-C338-4930-BFC6-D513F654261A","address":"529c668","cpu":1,"name":"Bureau Kantoor","type":983,"appearance":0,"hueID":0,"groupID":0,"position":14,"revision":1,"configRevision":10,"firmware":9246,"modes":[{"name":"unit_mode1","state":"fc03","cycle":true},{"name":"unit_mode2","state":"0000","cycle":false},{"name":"unit_mode3","state":"0000","cycle":false},{"name":"unit_mode4","state":"0000","cycle":false}],"smartSwitch":{"type":5,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":0,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":10,"switchOffDelayTime":300,"excludeOFF":false,"disableDimming":false,"index":0},"pushButtonToggleDisabled":false,"presenceSensor":{"type":5,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":0,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":0,"switchOffDelayTime":0,"excludeOFF":false,"disableDimming":false,"index":0},"linkedSensor":0,"gain":100.0,"startupMode":1,"minOnLevel":0.0,"minLevel":1.0,"maxLevel":1.0,"parameters":[],"sequenceCounter":0,"behaviour":0,"timeout":0,"labels":{},"details":{},"actionConfig":0,"actions":[]},{"deviceID":19,"uuid":"-6F47-40FB-A752-8F67C1DF41A6","address":"dee7f74","cpu":1,"name":"Trap- en overloop","type":6240,"appearance":0,"hueID":0,"groupID":0,"position":14,"revision":1,"configRevision":5,"firmware":9246,"image":"OAFONy9JtZhWx0D5qdLKoKQ6Xb5dx09W","modes":[{"name":"unit_mode1","state":"ff","cycle":true},{"name":"unit_mode2","state":"00","cycle":false},{"name":"unit_mode3","state":"00","cycle":false},{"name":"unit_mode4","state":"00","cycle":false}],"smartSwitch":{"type":5,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":0,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":10,"switchOffDelayTime":300,"excludeOFF":false,"disableDimming":false,"index":0},"pushButtonToggleDisabled":false,"presenceSensor":{"type":5,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":0,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":0,"switchOffDelayTime":0,"excludeOFF":false,"disableDimming":false,"index":0},"linkedSensor":0,"gain":100.0,"startupMode":1,"minOnLevel":0.0,"minLevel":0.0,"maxLevel":1.0,"parameters":[],"sequenceCounter":0,"behaviour":0,"timeout":0,"labels":{},"details":{},"actionConfig":0,"actions":[]},{"deviceID":16,"uuid":"-DF59-4C06-8A64-803FBD8138BC","address":"0017672","cpu":0,"name":"Kantoor","type":200001,"appearance":0,"hueID":0,"groupID":0,"position":15,"revision":1,"configRevision":10,"firmware":0,"modes":[{"name":"unit_mode1","state":"000000","cycle":true},{"name":"unit_mode2","state":"000000","cycle":false},{"name":"unit_mode3","state":"000000","cycle":false},{"name":"unit_mode4","state":"000000","cycle":false}],"smartSwitch":{"type":5,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":0,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":10,"switchOffDelayTime":300,"excludeOFF":false,"disableDimming":false,"index":0},"pushButtonToggleDisabled":false,"linkedSensor":0,"gain":100.0,"switchConfig":{"buttons":[],"switches":[{"type":0,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":15,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":0,"switchOffDelayTime":0,"excludeOFF":false,"disableDimming":false,"index":0},{"type":5,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":0,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":0,"switchOffDelayTime":0,"excludeOFF":false,"disableDimming":false,"index":1},{"type":0,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":17,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":0,"switchOffDelayTime":0,"excludeOFF":false,"disableDimming":false,"index":2},{"type":5,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":0,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":0,"switchOffDelayTime":0,"excludeOFF":false,"disableDimming":false,"index":3}],"exclusiveScenes":false,"longPressAllOff":false,"toggleDisabled":false},"startupMode":1,"minOnLevel":0.0,"minLevel":0.0,"maxLevel":1.0,"parameters":[],"securityKey":"da75787bb794df394bfcc383174a5ed0","sequenceCounter":63,"behaviour":0,"timeout":0,"labels":{},"details":{},"actionConfig":0,"actions":[]},{"deviceID":18,"uuid":"-20BC-41C3-B13A-F68892F2C8F4","address":"480be3b","cpu":1,"name":"Laserblade","type":983,"appearance":0,"hueID":0,"groupID":1,"position":15,"revision":1,"configRevision":5,"firmware":9472,"image":"ZKjMDYpTSaXiLHo2hKJGkNKZZm5qfFB4","modes":[{"name":"unit_mode1","state":"2001","cycle":true},{"name":"unit_mode2","state":"0000","cycle":false},{"name":"unit_mode3","state":"0000","cycle":false},{"name":"unit_mode4","state":"0000","cycle":false}],"smartSwitch":{"type":5,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":0,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":10,"switchOffDelayTime":300,"excludeOFF":false,"disableDimming":false,"index":0},"pushButtonToggleDisabled":false,"presenceSensor":{"type":5,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":0,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":0,"switchOffDelayTime":0,"excludeOFF":false,"disableDimming":false,"index":0},"linkedSensor":0,"gain":100.0,"startupMode":1,"minOnLevel":0.0,"minLevel":0.0,"maxLevel":1.0,"parameters":[],"sequenceCounter":0,"behaviour":0,"timeout":0,"labels":{},"details":{},"actionConfig":0,"actions":[]},{"deviceID":21,"uuid":"-A90D-425A-8677-2336012664EF","address":"01c8a03","cpu":1,"name":"Eettafel","type":983,"appearance":0,"hueID":0,"groupID":0,"position":15,"revision":1,"configRevision":5,"firmware":9472,"image":"mSjenWc6iQnF8QysAnxXi7F4e2NtGu7d","modes":[{"name":"unit_mode1","state":"fc03","cycle":true},{"name":"unit_mode2","state":"0000","cycle":true},{"name":"unit_mode3","state":"0000","cycle":false},{"name":"unit_mode4","state":"0000","cycle":false}],"smartSwitch":{"type":5,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":0,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":10,"switchOffDelayTime":300,"excludeOFF":false,"disableDimming":false,"index":0},"pushButtonToggleDisabled":false,"presenceSensor":{"type":5,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":0,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":0,"switchOffDelayTime":0,"excludeOFF":false,"disableDimming":false,"index":0},"linkedSensor":0,"gain":100.0,"startupMode":1,"minOnLevel":0.0,"minLevel":0.0,"maxLevel":1.0,"parameters":[],"sequenceCounter":0,"behaviour":0,"timeout":0,"labels":{},"details":{},"actionConfig":0,"actions":[]},{"deviceID":23,"uuid":"-5186-4DC1-999F-16574B003F1D","address":"af655a7","cpu":1,"name":"Overkapping ","type":526,"appearance":0,"hueID":0,"groupID":0,"position":16,"revision":1,"configRevision":4,"firmware":9472,"modes":[{"name":"unit_mode1","state":"fc03","cycle":true},{"name":"unit_mode2","state":"0000","cycle":false},{"name":"unit_mode3","state":"0000","cycle":false},{"name":"unit_mode4","state":"0000","cycle":false}],"smartSwitch":{"type":5,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":0,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":10,"switchOffDelayTime":300,"excludeOFF":false,"disableDimming":false,"index":0},"pushButtonToggleDisabled":false,"presenceSensor":{"type":5,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":0,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":0,"switchOffDelayTime":0,"excludeOFF":false,"disableDimming":false,"index":0},"linkedSensor":0,"gain":100.0,"startupMode":1,"minOnLevel":0.0,"minLevel":1.0,"maxLevel":1.0,"parameters":[],"sequenceCounter":0,"behaviour":0,"timeout":0,"labels":{},"details":{},"actionConfig":0,"actions":[]},{"deviceID":26,"uuid":"-1934-48EB-9315-682593579533","address":"e9f5e0e","cpu":1,"name":"Woonkamer","type":239,"appearance":0,"hueID":0,"groupID":0,"position":16,"revision":1,"configRevision":8,"firmware":8202,"image":"kbNlQlrdIex9cxIL9g1pO46sd0CaHYQ5","modes":[{"name":"unit_mode1","state":"000000","cycle":true},{"name":"unit_mode2","state":"000000","cycle":false},{"name":"unit_mode3","state":"000000","cycle":false},{"name":"unit_mode4","state":"000000","cycle":false}],"smartSwitch":{"type":5,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":0,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":10,"switchOffDelayTime":300,"excludeOFF":false,"disableDimming":false,"index":0},"pushButtonToggleDisabled":false,"linkedSensor":0,"gain":100.0,"switchConfig":{"buttons":[],"switches":[{"type":0,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":2,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":0,"switchOffDelayTime":0,"excludeOFF":false,"disableDimming":false,"index":0},{"type":0,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":1,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":0,"switchOffDelayTime":0,"excludeOFF":false,"disableDimming":false,"index":1},{"type":0,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":21,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":0,"switchOffDelayTime":0,"excludeOFF":false,"disableDimming":false,"index":2},{"type":7,"id":0,"scenes":[],"scenes2":[],"group":1,"unit":0,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":0,"switchOffDelayTime":0,"excludeOFF":false,"disableDimming":false,"index":3}],"exclusiveScenes":false,"longPressAllOff":false,"toggleDisabled":false},"startupMode":1,"minOnLevel":0.0,"minLevel":0.0,"maxLevel":1.0,"parameters":[],"sequenceCounter":0,"behaviour":0,"timeout":0,"labels":{},"details":{},"actionConfig":0,"actions":[]},{"deviceID":25,"uuid":"-7968-4FA1-9D65-23B9908B81BD","address":"19e6783","cpu":1,"name":"Kookplaat","type":4027,"appearance":0,"hueID":0,"groupID":1,"position":17,"revision":1,"configRevision":4,"firmware":9472,"image":"A0nq2bKhm8vriOpgn6UCa0hwUPfQ2F9w","modes":[{"name":"unit_mode1","state":"ff0000fe","cycle":true},{"name":"unit_mode2","state":"000000fe","cycle":false},{"name":"unit_mode3","state":"000000fe","cycle":false},{"name":"unit_mode4","state":"000000fe","cycle":false}],"smartSwitch":{"type":5,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":0,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":10,"switchOffDelayTime":300,"excludeOFF":false,"disableDimming":false,"index":0},"pushButtonToggleDisabled":false,"presenceSensor":{"type":5,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":0,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":0,"switchOffDelayTime":0,"excludeOFF":false,"disableDimming":false,"index":0},"linkedSensor":0,"gain":100.0,"startupMode":1,"minOnLevel":0.0,"minLevel":0.0,"maxLevel":1.0,"parameters":[],"sequenceCounter":0,"behaviour":0,"timeout":0,"labels":{},"details":{},"actionConfig":0,"actions":[]},{"deviceID":27,"uuid":"-8DD7-4496-B8A9-CA1465E0B609","address":"7b9bac5","cpu":1,"name":"Hal","type":239,"appearance":0,"hueID":0,"groupID":0,"position":17,"revision":1,"configRevision":8,"firmware":8202,"image":"bsCoShSojeQ34HxaLSPF57AhprvGQQFk","modes":[{"name":"unit_mode1","state":"000000","cycle":true},{"name":"unit_mode2","state":"000000","cycle":false},{"name":"unit_mode3","state":"000000","cycle":false},{"name":"unit_mode4","state":"000000","cycle":false}],"smartSwitch":{"type":5,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":0,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":10,"switchOffDelayTime":300,"excludeOFF":false,"disableDimming":false,"index":0},"pushButtonToggleDisabled":false,"linkedSensor":0,"gain":100.0,"switchConfig":{"buttons":[],"switches":[{"type":0,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":8,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":0,"switchOffDelayTime":0,"excludeOFF":false,"disableDimming":false,"index":0},{"type":0,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":5,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":0,"switchOffDelayTime":0,"excludeOFF":false,"disableDimming":false,"index":1},{"type":0,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":11,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":0,"switchOffDelayTime":0,"excludeOFF":false,"disableDimming":false,"index":2},{"type":2,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":0,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":0,"switchOffDelayTime":0,"excludeOFF":false,"disableDimming":false,"index":3}],"exclusiveScenes":false,"longPressAllOff":true,"toggleDisabled":false},"startupMode":1,"minOnLevel":0.0,"minLevel":0.0,"maxLevel":1.0,"parameters":[],"sequenceCounter":0,"behaviour":0,"timeout":0,"labels":{},"details":{},"actionConfig":0,"actions":[]},{"deviceID":28,"uuid":"-BDA6-41D7-BAE1-80DC8C937154","address":"c03ea04","cpu":1,"name":"Zolder Speelkamer","type":526,"appearance":0,"hueID":0,"groupID":0,"position":18,"revision":1,"configRevision":3,"firmware":9246,"image":"e0ykUJlo87SdYzEsZ8gwalUzK2oJaZn9","modes":[{"name":"unit_mode1","state":"fc03","cycle":true},{"name":"unit_mode2","state":"0000","cycle":false},{"name":"unit_mode3","state":"0000","cycle":false},{"name":"unit_mode4","state":"0000","cycle":false}],"smartSwitch":{"type":5,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":0,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":10,"switchOffDelayTime":300,"excludeOFF":false,"disableDimming":false,"index":0},"pushButtonToggleDisabled":false,"linkedSensor":0,"gain":100.0,"startupMode":1,"minOnLevel":0.0,"minLevel":0.0,"maxLevel":1.0,"parameters":[],"sequenceCounter":0,"behaviour":0,"timeout":0,"labels":{},"details":{},"actionConfig":0,"actions":[]},{"deviceID":29,"uuid":"-7C33-4D3F-908D-4EF7A0EAFC73","address":"2adf447","cpu":1,"name":"Zolder overloop","type":526,"appearance":0,"hueID":0,"groupID":0,"position":19,"revision":1,"configRevision":4,"firmware":9472,"modes":[{"name":"unit_mode1","state":"fc03","cycle":true},{"name":"unit_mode2","state":"0000","cycle":false},{"name":"unit_mode3","state":"0000","cycle":false},{"name":"unit_mode4","state":"0000","cycle":false}],"smartSwitch":{"type":5,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":0,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":10,"switchOffDelayTime":300,"excludeOFF":false,"disableDimming":false,"index":0},"pushButtonToggleDisabled":false,"linkedSensor":0,"gain":100.0,"startupMode":1,"minOnLevel":1.0,"minLevel":0.0,"maxLevel":1.0,"parameters":[],"sequenceCounter":0,"behaviour":0,"timeout":0,"labels":{},"details":{},"actionConfig":0,"actions":[]},{"deviceID":31,"uuid":"-BD34-43F1-BE19-728720E43C80","address":"002fdcc","cpu":0,"name":"Zolder speelkamer","type":200001,"appearance":200003,"hueID":0,"groupID":0,"position":20,"revision":1,"configRevision":15,"firmware":0,"modes":[{"name":"unit_mode1","state":"000000","cycle":true},{"name":"unit_mode2","state":"000000","cycle":false},{"name":"unit_mode3","state":"000000","cycle":false},{"name":"unit_mode4","state":"000000","cycle":false}],"smartSwitch":{"type":5,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":0,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":10,"switchOffDelayTime":300,"excludeOFF":false,"disableDimming":false,"index":0},"pushButtonToggleDisabled":false,"linkedSensor":0,"gain":100.0,"switchConfig":{"buttons":[],"switches":[{"type":0,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":28,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":0,"switchOffDelayTime":0,"excludeOFF":false,"disableDimming":false,"index":1},{"type":5,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":0,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":0,"switchOffDelayTime":0,"excludeOFF":false,"disableDimming":false,"index":0}],"exclusiveScenes":false,"longPressAllOff":false,"toggleDisabled":false},"startupMode":1,"minOnLevel":0.0,"minLevel":0.0,"maxLevel":1.0,"parameters":[],"securityKey":"86ad6fa30794e196e746451a43cf982c","sequenceCounter":42,"behaviour":0,"timeout":0,"labels":{},"details":{},"actionConfig":0,"actions":[]},{"deviceID":13,"uuid":"-9055-411A-BA6B-8BB447EF4A81","address":"0017675","cpu":0,"name":"Zolder overloop","type":200001,"appearance":200003,"hueID":0,"groupID":0,"position":20,"revision":1,"configRevision":5,"firmware":0,"modes":[{"name":"unit_mode1","state":"000000","cycle":true},{"name":"unit_mode2","state":"000000","cycle":false},{"name":"unit_mode3","state":"000000","cycle":false},{"name":"unit_mode4","state":"000000","cycle":false}],"smartSwitch":{"type":5,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":0,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":10,"switchOffDelayTime":300,"excludeOFF":false,"disableDimming":false,"index":0},"pushButtonToggleDisabled":false,"linkedSensor":0,"gain":100.0,"switchConfig":{"buttons":[],"switches":[{"type":0,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":29,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":0,"switchOffDelayTime":0,"excludeOFF":false,"disableDimming":false,"index":0},{"type":0,"id":0,"scenes":[],"scenes2":[],"group":0,"unit":11,"lingerTime":120,"fadeTime":10,"switchOffFadeTime":0,"switchOffDelayTime":0,"excludeOFF":false,"disableDimming":false,"index":1}],"exclusiveScenes":false,"longPressAllOff":false,"toggleDisabled":false},"startupMode":0,"minOnLevel":0.0,"minLevel":0.0,"maxLevel":1.0,"parameters":[],"securityKey":"","sequenceCounter":288,"behaviour":0,"timeout":0,"labels":{},"details":{},"actionConfig":0,"actions":[]}],"scenes":[{"name":"Buitenlamp","sceneID":14,"siteSceneID":0,"revision":2,"icon":0,"color":16777215,"position":0,"type":0,"repeat":false,"hidden":false,"units":[],"steps":[],"conditions":[],"sensors":[],"mode":0,"circadianProfile":0},{"name":"Luifel","sceneID":18,"siteSceneID":0,"revision":1,"icon":0,"color":16777215,"position":1,"type":0,"repeat":false,"hidden":false,"units":[{"unit":23,"state":"fc03"}],"steps":[],"conditions":[],"sensors":[],"mode":0,"circadianProfile":0},{"name":"Valantie","sceneID":23,"siteSceneID":0,"revision":1,"icon":0,"color":16777215,"position":2,"type":0,"repeat":false,"hidden":false,"units":[{"unit":2,"state":"c001"},{"unit":1,"state":"8801"},{"unit":5,"state":"9001"},{"unit":21,"state":"1802"}],"steps":[],"conditions":[],"sensors":[],"mode":0,"circadianProfile":0},{"name":"Traplampen","sceneID":4,"siteSceneID":0,"revision":2,"icon":0,"color":16777215,"position":3,"type":0,"repeat":false,"hidden":false,"units":[{"unit":19,"state":"05"}],"steps":[],"conditions":[],"sensors":[],"mode":0,"circadianProfile":0},{"name":"Buitenlamp met dim","sceneID":26,"siteSceneID":0,"revision":1,"icon":14,"color":12444671,"position":4,"type":2,"repeat":false,"hidden":false,"units":[],"steps":[],"conditions":[{"time":{"dateType":0,"timeType":2,"weekdays":127,"year":0,"month":0,"day":0,"hour":0,"minute":0,"offset":1},"fadeTime":10,"scenes":[{"scene":14,"level":1.0,"duration":10},{"scene":18,"level":1.0,"duration":10}]},{"time":{"dateType":0,"timeType":0,"weekdays":127,"year":0,"month":0,"day":0,"hour":23,"minute":0,"offset":0},"fadeTime":10,"scenes":[{"scene":14,"level":0.0,"duration":10}]},{"time":{"dateType":0,"timeType":1,"weekdays":127,"year":0,"month":0,"day":0,"hour":0,"minute":0,"offset":-1},"fadeTime":10,"scenes":[{"scene":14,"level":0.0,"duration":10}]},{"time":{"dateType":0,"timeType":0,"weekdays":127,"year":0,"month":0,"day":0,"hour":23,"minute":0,"offset":0},"fadeTime":1,"scenes":[{"scene":18,"level":0.0,"duration":10}]}],"sensors":[]}],"events":[{"enabled":true,"overridePresence":false,"id":1,"siteid":0,"type":0,"revision":3,"startTime":{"dateType":0,"timeType":2,"weekdays":127,"year":0,"month":0,"day":0,"hour":0,"minute":0,"offset":-15},"endTime":{"dateType":0,"timeType":1,"weekdays":127,"year":0,"month":0,"day":0,"hour":0,"minute":0,"offset":15},"duration":0,"fadeTime":1,"scenes":[4],"targets":[{"scene":4,"level":1.0,"duration":0}]},{"enabled":true,"overridePresence":false,"id":3,"siteid":0,"type":0,"revision":1,"startTime":{"dateType":0,"timeType":0,"weekdays":127,"year":0,"month":0,"day":0,"hour":15,"minute":0,"offset":0},"duration":0,"fadeTime":1,"scenes":[],"targets":[]},{"enabled":true,"overridePresence":false,"id":4,"siteid":0,"type":0,"revision":1,"startTime":{"dateType":0,"timeType":2,"weekdays":0,"year":0,"month":0,"day":0,"hour":0,"minute":0,"offset":-90},"endTime":{"dateType":0,"timeType":0,"weekdays":0,"year":0,"month":0,"day":0,"hour":23,"minute":7,"offset":0},"duration":0,"fadeTime":1,"scenes":[23],"targets":[{"scene":23,"level":1.0,"duration":0}]}],"circadianProfiles":[],"keyStore":{"revision":3,"nextKeyID":7,"keys":[{"id":3,"type":0,"role":3,"name":"Administratorwachtwoord","key":""},{"id":2,"type":0,"role":2,"name":"Hanneke","key":""},{"id":4,"type":2,"role":1,"name":"siteUser","key":""},{"id":5,"type":2,"role":2,"name":"siteManager","key":""},{"id":6,"type":2,"role":3,"name":"siteAdmin","key":"****************"}]},"gwT1":30,"gwT2":0},"role":3}
2023-02-07 11:43:46.270 INFO (MainThread) [CasambiBt._keystore] Key with id 3 already exists. Skipping...
2023-02-07 11:43:46.270 INFO (MainThread) [CasambiBt._keystore] Key with id 2 already exists. Skipping...
2023-02-07 11:43:46.270 INFO (MainThread) [CasambiBt._keystore] Key with id 4 already exists. Skipping...
2023-02-07 11:43:46.270 INFO (MainThread) [CasambiBt._keystore] Key with id 5 already exists. Skipping...
2023-02-07 11:43:46.270 INFO (MainThread) [CasambiBt._keystore] Key with id 6 already exists. Skipping...
2023-02-07 11:43:46.270 INFO (MainThread) [CasambiBt._network] Fetching unit type for id 983...
2023-02-07 11:43:46.270 INFO (MainThread) [CasambiBt._network] Using cached type.
2023-02-07 11:43:46.270 INFO (MainThread) [CasambiBt._network] Fetching unit type for id 983...
2023-02-07 11:43:46.270 INFO (MainThread) [CasambiBt._network] Using cached type.
2023-02-07 11:43:46.270 INFO (MainThread) [CasambiBt._network] Fetching unit type for id 983...
2023-02-07 11:43:46.270 INFO (MainThread) [CasambiBt._network] Using cached type.
2023-02-07 11:43:46.270 INFO (MainThread) [CasambiBt._network] Fetching unit type for id 983...
2023-02-07 11:43:46.270 INFO (MainThread) [CasambiBt._network] Using cached type.
2023-02-07 11:43:46.270 INFO (MainThread) [CasambiBt._network] Fetching unit type for id 983...
2023-02-07 11:43:46.270 INFO (MainThread) [CasambiBt._network] Using cached type.
2023-02-07 11:43:46.270 INFO (MainThread) [CasambiBt._network] Fetching unit type for id 200001...
2023-02-07 11:43:46.270 INFO (MainThread) [CasambiBt._network] Using cached type.
2023-02-07 11:43:46.270 INFO (MainThread) [CasambiBt._network] Fetching unit type for id 983...
2023-02-07 11:43:46.270 INFO (MainThread) [CasambiBt._network] Using cached type.
2023-02-07 11:43:46.270 INFO (MainThread) [CasambiBt._network] Fetching unit type for id 983...
2023-02-07 11:43:46.270 INFO (MainThread) [CasambiBt._network] Using cached type.
2023-02-07 11:43:46.270 INFO (MainThread) [CasambiBt._network] Fetching unit type for id 6240...
2023-02-07 11:43:46.270 INFO (MainThread) [CasambiBt._network] Using cached type.
2023-02-07 11:43:46.270 INFO (MainThread) [CasambiBt._network] Fetching unit type for id 200001...
2023-02-07 11:43:46.270 INFO (MainThread) [CasambiBt._network] Using cached type.
2023-02-07 11:43:46.270 INFO (MainThread) [CasambiBt._network] Fetching unit type for id 983...
2023-02-07 11:43:46.270 INFO (MainThread) [CasambiBt._network] Using cached type.
2023-02-07 11:43:46.271 INFO (MainThread) [CasambiBt._network] Fetching unit type for id 983...
2023-02-07 11:43:46.271 INFO (MainThread) [CasambiBt._network] Using cached type.
2023-02-07 11:43:46.271 INFO (MainThread) [CasambiBt._network] Fetching unit type for id 526...
2023-02-07 11:43:46.271 INFO (MainThread) [CasambiBt._network] Using cached type.
2023-02-07 11:43:46.271 INFO (MainThread) [CasambiBt._network] Fetching unit type for id 239...
2023-02-07 11:43:46.271 INFO (MainThread) [CasambiBt._network] Using cached type.
2023-02-07 11:43:46.271 INFO (MainThread) [CasambiBt._network] Fetching unit type for id 4027...
2023-02-07 11:43:46.271 INFO (MainThread) [CasambiBt._network] Using cached type.
2023-02-07 11:43:46.271 INFO (MainThread) [CasambiBt._network] Fetching unit type for id 239...
2023-02-07 11:43:46.271 INFO (MainThread) [CasambiBt._network] Using cached type.
2023-02-07 11:43:46.271 INFO (MainThread) [CasambiBt._network] Fetching unit type for id 526...
2023-02-07 11:43:46.271 INFO (MainThread) [CasambiBt._network] Using cached type.
2023-02-07 11:43:46.271 INFO (MainThread) [CasambiBt._network] Fetching unit type for id 526...
2023-02-07 11:43:46.271 INFO (MainThread) [CasambiBt._network] Using cached type.
2023-02-07 11:43:46.271 INFO (MainThread) [CasambiBt._network] Fetching unit type for id 200001...
2023-02-07 11:43:46.271 INFO (MainThread) [CasambiBt._network] Using cached type.
2023-02-07 11:43:46.271 INFO (MainThread) [CasambiBt._network] Fetching unit type for id 200001...
2023-02-07 11:43:46.271 INFO (MainThread) [CasambiBt._network] Using cached type.
2023-02-07 11:43:46.271 INFO (MainThread) [CasambiBt._network] Saving type cache...
2023-02-07 11:43:46.272 INFO (MainThread) [CasambiBt._network] Network updated.
2023-02-07 11:43:46.272 INFO (MainThread) [CasambiBt._client] Connection to 01:23:45:67:89:00
2023-02-07 11:43:46.374 INFO (MainThread) [CasambiBt._client] Connected to 01:23:45:67:89:00
2023-02-07 11:43:46.374 INFO (MainThread) [CasambiBt._client] Starting key exchange...
2023-02-07 11:43:46.759 DEBUG (MainThread) [CasambiBt._client] Got b'010a9e000b00f2bc22dce70af519dca024edb31ed44ed7'
2023-02-07 11:43:46.759 DEBUG (MainThread) [CasambiBt._client] Parsed mtu 158, unit 11, flags 242, nonce b'bc22dce70af519dca024edb31ed44ed7'
2023-02-07 11:43:46.759 DEBUG (MainThread) [CasambiBt._client] Starting notify
2023-02-07 11:43:47.000 DEBUG (MainThread) [CasambiBt._client] Callback on handle c9ffde48-ca5a-0001-ab83-8f519b482f77 (Handle: 8): Unknown: b'02486717e4e61bd510b0ac3ac70f83ad583727fc9cc5d77beb1dca02aa9c75f003cffde9bc0d5c28b210355650b48b953a986ab7e0bb0943dd8387ebcc11d3db03'
2023-02-07 11:43:47.000 DEBUG (MainThread) [CasambiBt._client] Got public key 1781793569275103100911219722143961308751834615667686423906540718292093855560, 1745334801315130141308654316216359579908439591537628979024254187994287308239
2023-02-07 11:43:47.222 DEBUG (MainThread) [CasambiBt._client] Callback on handle c9ffde48-ca5a-0001-ab83-8f519b482f77 (Handle: 8): Unknown: b'03'
2023-02-07 11:43:47.223 INFO (MainThread) [CasambiBt._client] Key exchange sucessful
2023-02-07 11:43:47.223 INFO (MainThread) [CasambiBt._client] Authenicating channel...
2023-02-07 11:43:47.223 DEBUG (MainThread) [CasambiBt._client] Auth digest: b'3658011093ad2d58135188bc31f0e91d5c3e6998de41a5c401dcff0c73eeb228'
2023-02-07 11:43:47.223 INFO (MainThread) [CasambiBt._encryption] Encrypting packet: b'0100000004033658011093ad2d58135188bc31f0e91d5c3e6998de41a5c401dcff0c73eeb228' of len 38 with nonce b'bc22dce701000000a024edb31ed44ed7'
2023-02-07 11:43:47.224 DEBUG (MainThread) [CasambiBt._encryption] Encrypted packet: b'010000008d5b09d6f1a753f0e389cb6bdd4f4ef06f44250da8fb1f115a43f036d06c185a06b0'
2023-02-07 11:43:47.224 DEBUG (MainThread) [CasambiBt._encryption] Authenticated packet: b'010000008d5b09d6f1a753f0e389cb6bdd4f4ef06f44250da8fb1f115a43f036d06c185a06b05b3f548080c5f365d2be2e79a8ce8099'
2023-02-07 11:43:47.299 DEBUG (MainThread) [CasambiBt._client] Callback on handle c9ffde48-ca5a-0001-ab83-8f519b482f77 (Handle: 8): Unknown: b'010000807b67d32aa4bdf0beff3c149d975ffba8f1b5d0b6555690aea1cb3b0f963b01508941e9c37493b441b9ea431273e7f06b0504'
2023-02-07 11:43:47.300 INFO (MainThread) [CasambiBt._client] Processing authentication response...
2023-02-07 11:43:47.300 INFO (MainThread) [CasambiBt._encryption] Decrypting packet: b'010000807b67d32aa4bdf0beff3c149d975ffba8f1b5d0b6555690aea1cb3b0f963b01508941e9c37493b441b9ea431273e7f06b0504' of len 54 with nonce b'010000800af519dca024edb31ed44ed7'
2023-02-07 11:43:47.302 DEBUG (MainThread) [CasambiBt._encryption] Decrypted package: b'0503d6aaa2b1a4933062ea788962208087b0f40a5e92cdfe395d1f7354ffb3ccdfd9'
2023-02-07 11:43:47.303 INFO (MainThread) [CasambiBt._client] Authentication successful
2023-02-07 11:43:47.303 INFO (MainThread) [CasambiBt._casambi] Registerd unit changed handler <bound method CasambiApi._unit_changed_handler of <custom_components.casambi_bt.CasambiApi object at 0x7feac176ba00>>
2023-02-07 11:43:47.305 INFO (MainThread) [homeassistant.components.light] Setting up light.casambi_bt
2023-02-07 11:43:47.306 INFO (MainThread) [homeassistant.components.scene] Setting up scene.casambi_bt
2023-02-07 11:43:47.309 DEBUG (MainThread) [CasambiBt._client] Callback on handle c9ffde48-ca5a-0001-ab83-8f519b482f77 (Handle: 8): Unknown: b'02000080d32efff59be82be2885fee5895273329d7378f49bfd814cdf3865fec1aff18f89e9fa7b0798efb943e46ed297730eb01a169f39ab32b468a0679cc91b875787141eafcd88d8b1e811395e0452f0ea7e309f9c9b853d8cf480149cf2d7f28c27d6ae610d40cb462e113a8c5c4cfa3edff63809173a83712d917499ed5b48a0a05e968bd87ffc9320b918de64ea9773e'
2023-02-07 11:43:47.309 INFO (MainThread) [CasambiBt._encryption] Decrypting packet: b'02000080d32efff59be82be2885fee5895273329d7378f49bfd814cdf3865fec1aff18f89e9fa7b0798efb943e46ed297730eb01a169f39ab32b468a0679cc91b875787141eafcd88d8b1e811395e0452f0ea7e309f9c9b853d8cf480149cf2d7f28c27d6ae610d40cb462e113a8c5c4cfa3edff63809173a83712d917499ed5b48a0a05e968bd87ffc9320b918de64ea9773e' of len 147 with nonce b'020000800af519dca024edb31ed44ed7'
2023-02-07 11:43:47.313 DEBUG (MainThread) [CasambiBt._encryption] Decrypted package: b'060113137c00000213134900000513131400000813134900000b13137500000d1020030100000e1020101000000f13132e0000101020020800001113134900001213134900001317038005001503130000170b131a000019133349000000021a1020d3d300051b1020c8c800021c13134900001d031300001f102004040000'
2023-02-07 11:43:47.313 DEBUG (MainThread) [CasambiBt._client] Incoming data of type 6: b'060113137c00000213134900000513131400000813134900000b13137500000d1020030100000e1020101000000f13132e0000101020020800001113134900001213134900001317038005001503130000170b131a000019133349000000021a1020d3d300051b1020c8c800021c13134900001d031300001f102004040000'
2023-02-07 11:43:47.314 INFO (MainThread) [CasambiBt._client] Parsing incoming unit states...
2023-02-07 11:43:47.314 DEBUG (MainThread) [CasambiBt._client] Incoming unit state: b'0113137c00000213134900000513131400000813134900000b13137500000d1020030100000e1020101000000f13132e0000101020020800001113134900001213134900001317038005001503130000170b131a000019133349000000021a1020d3d300051b1020c8c800021c13134900001d031300001f102004040000'
2023-02-07 11:43:47.314 DEBUG (MainThread) [CasambiBt._client] Parsed state: Id 1, prio 3, online True, on True, state b'0000'1
2023-02-07 11:43:47.314 INFO (MainThread) [CasambiBt._casambi] Incomming data callback of type 6
2023-02-07 11:43:47.314 DEBUG (MainThread) [CasambiBt._casambi] Handling changed state b'0000' for unit 1
2023-02-07 11:43:47.314 DEBUG (MainThread) [CasambiBt._unit] Value for unkown control type at 0: 0
2023-02-07 11:43:47.314 DEBUG (MainThread) [CasambiBt._unit] Parsed b'0000' to UnitState(dimmer=0, rgb=None, white=None)
2023-02-07 11:43:47.314 DEBUG (MainThread) [CasambiBt._client] Parsed state: Id 2, prio 3, online True, on True, state b'0000'1
2023-02-07 11:43:47.314 INFO (MainThread) [CasambiBt._casambi] Incomming data callback of type 6
2023-02-07 11:43:47.315 DEBUG (MainThread) [CasambiBt._casambi] Handling changed state b'0000' for unit 2
2023-02-07 11:43:47.315 DEBUG (MainThread) [CasambiBt._unit] Value for unkown control type at 0: 0
2023-02-07 11:43:47.315 DEBUG (MainThread) [CasambiBt._unit] Parsed b'0000' to UnitState(dimmer=0, rgb=None, white=None)
2023-02-07 11:43:47.315 DEBUG (MainThread) [CasambiBt._client] Parsed state: Id 5, prio 3, online True, on True, state b'0000'1
2023-02-07 11:43:47.315 INFO (MainThread) [CasambiBt._casambi] Incomming data callback of type 6
2023-02-07 11:43:47.315 DEBUG (MainThread) [CasambiBt._casambi] Handling changed state b'0000' for unit 5
2023-02-07 11:43:47.315 DEBUG (MainThread) [CasambiBt._unit] Value for unkown control type at 0: 0
2023-02-07 11:43:47.315 DEBUG (MainThread) [CasambiBt._unit] Parsed b'0000' to UnitState(dimmer=0, rgb=None, white=None)
2023-02-07 11:43:47.315 DEBUG (MainThread) [CasambiBt._client] Parsed state: Id 8, prio 3, online True, on True, state b'0000'1
2023-02-07 11:43:47.315 INFO (MainThread) [CasambiBt._casambi] Incomming data callback of type 6
2023-02-07 11:43:47.315 DEBUG (MainThread) [CasambiBt._casambi] Handling changed state b'0000' for unit 8
2023-02-07 11:43:47.316 DEBUG (MainThread) [CasambiBt._unit] Value for unkown control type at 0: 0
2023-02-07 11:43:47.316 DEBUG (MainThread) [CasambiBt._unit] Parsed b'0000' to UnitState(dimmer=0, rgb=None, white=None)
2023-02-07 11:43:47.316 DEBUG (MainThread) [CasambiBt._client] Parsed state: Id 11, prio 3, online True, on True, state b'0000'1
2023-02-07 11:43:47.316 INFO (MainThread) [CasambiBt._casambi] Incomming data callback of type 6
2023-02-07 11:43:47.316 DEBUG (MainThread) [CasambiBt._casambi] Handling changed state b'0000' for unit 11
2023-02-07 11:43:47.316 DEBUG (MainThread) [CasambiBt._unit] Value for unkown control type at 0: 0
2023-02-07 11:43:47.316 DEBUG (MainThread) [CasambiBt._unit] Parsed b'0000' to UnitState(dimmer=0, rgb=None, white=None)
2023-02-07 11:43:47.316 DEBUG (MainThread) [CasambiBt._client] Parsed state: Id 13, prio 0, online False, on False, state b'010000'1
2023-02-07 11:43:47.316 INFO (MainThread) [CasambiBt._casambi] Incomming data callback of type 6
2023-02-07 11:43:47.316 DEBUG (MainThread) [CasambiBt._casambi] Handling changed state b'010000' for unit 13
2023-02-07 11:43:47.316 DEBUG (MainThread) [CasambiBt._unit] Value for unkown control type at 0: 1
2023-02-07 11:43:47.317 DEBUG (MainThread) [CasambiBt._unit] Value for unkown control type at 8: 0
2023-02-07 11:43:47.317 DEBUG (MainThread) [CasambiBt._unit] Parsed b'010000' to UnitState(dimmer=None, rgb=None, white=None)
2023-02-07 11:43:47.317 DEBUG (MainThread) [CasambiBt._client] Parsed state: Id 14, prio 0, online False, on False, state b'100000'1
2023-02-07 11:43:47.317 INFO (MainThread) [CasambiBt._casambi] Incomming data callback of type 6
2023-02-07 11:43:47.317 DEBUG (MainThread) [CasambiBt._casambi] Handling changed state b'100000' for unit 14
2023-02-07 11:43:47.317 DEBUG (MainThread) [CasambiBt._unit] Value for unkown control type at 0: 16
2023-02-07 11:43:47.317 DEBUG (MainThread) [CasambiBt._unit] Value for unkown control type at 8: 0
2023-02-07 11:43:47.317 DEBUG (MainThread) [CasambiBt._unit] Parsed b'100000' to UnitState(dimmer=None, rgb=None, white=None)
2023-02-07 11:43:47.317 DEBUG (MainThread) [CasambiBt._client] Parsed state: Id 15, prio 3, online True, on True, state b'0000'1
2023-02-07 11:43:47.317 INFO (MainThread) [CasambiBt._casambi] Incomming data callback of type 6
2023-02-07 11:43:47.317 DEBUG (MainThread) [CasambiBt._casambi] Handling changed state b'0000' for unit 15
2023-02-07 11:43:47.317 DEBUG (MainThread) [CasambiBt._unit] Value for unkown control type at 0: 0
2023-02-07 11:43:47.318 DEBUG (MainThread) [CasambiBt._unit] Parsed b'0000' to UnitState(dimmer=0, rgb=None, white=None)
2023-02-07 11:43:47.318 DEBUG (MainThread) [CasambiBt._client] Parsed state: Id 16, prio 0, online False, on False, state b'080000'1
2023-02-07 11:43:47.318 INFO (MainThread) [CasambiBt._casambi] Incomming data callback of type 6
2023-02-07 11:43:47.318 DEBUG (MainThread) [CasambiBt._casambi] Handling changed state b'080000' for unit 16
2023-02-07 11:43:47.318 DEBUG (MainThread) [CasambiBt._unit] Value for unkown control type at 0: 8
2023-02-07 11:43:47.318 DEBUG (MainThread) [CasambiBt._unit] Value for unkown control type at 8: 0
2023-02-07 11:43:47.318 DEBUG (MainThread) [CasambiBt._unit] Parsed b'080000' to UnitState(dimmer=None, rgb=None, white=None)
2023-02-07 11:43:47.318 DEBUG (MainThread) [CasambiBt._client] Parsed state: Id 17, prio 3, online True, on True, state b'0000'1
2023-02-07 11:43:47.318 INFO (MainThread) [CasambiBt._casambi] Incomming data callback of type 6
2023-02-07 11:43:47.318 DEBUG (MainThread) [CasambiBt._casambi] Handling changed state b'0000' for unit 17
2023-02-07 11:43:47.320 DEBUG (MainThread) [CasambiBt._unit] Value for unkown control type at 0: 0
2023-02-07 11:43:47.321 DEBUG (MainThread) [CasambiBt._unit] Parsed b'0000' to UnitState(dimmer=0, rgb=None, white=None)
2023-02-07 11:43:47.321 DEBUG (MainThread) [CasambiBt._client] Parsed state: Id 18, prio 3, online True, on True, state b'0000'1
2023-02-07 11:43:47.321 INFO (MainThread) [CasambiBt._casambi] Incomming data callback of type 6
2023-02-07 11:43:47.321 DEBUG (MainThread) [CasambiBt._casambi] Handling changed state b'0000' for unit 18
2023-02-07 11:43:47.321 DEBUG (MainThread) [CasambiBt._unit] Value for unkown control type at 0: 0
2023-02-07 11:43:47.321 DEBUG (MainThread) [CasambiBt._unit] Parsed b'0000' to UnitState(dimmer=0, rgb=None, white=None)
2023-02-07 11:43:47.321 DEBUG (MainThread) [CasambiBt._client] Parsed state: Id 19, prio 3, online True, on True, state b'00'1
2023-02-07 11:43:47.322 INFO (MainThread) [CasambiBt._casambi] Incomming data callback of type 6
2023-02-07 11:43:47.322 DEBUG (MainThread) [CasambiBt._casambi] Handling changed state b'00' for unit 19
2023-02-07 11:43:47.322 DEBUG (MainThread) [CasambiBt._unit] Parsed b'00' to UnitState(dimmer=0, rgb=None, white=None)
2023-02-07 11:43:47.322 DEBUG (MainThread) [CasambiBt._client] Parsed state: Id 21, prio 3, online True, on True, state b'0000'1
2023-02-07 11:43:47.322 INFO (MainThread) [CasambiBt._casambi] Incomming data callback of type 6
2023-02-07 11:43:47.322 DEBUG (MainThread) [CasambiBt._casambi] Handling changed state b'0000' for unit 21
2023-02-07 11:43:47.322 DEBUG (MainThread) [CasambiBt._unit] Value for unkown control type at 0: 0
2023-02-07 11:43:47.322 DEBUG (MainThread) [CasambiBt._unit] Parsed b'0000' to UnitState(dimmer=0, rgb=None, white=None)
2023-02-07 11:43:47.322 DEBUG (MainThread) [CasambiBt._client] Parsed state: Id 23, prio 3, online True, on True, state b'0000'1
2023-02-07 11:43:47.322 INFO (MainThread) [CasambiBt._casambi] Incomming data callback of type 6
2023-02-07 11:43:47.323 DEBUG (MainThread) [CasambiBt._casambi] Handling changed state b'0000' for unit 23
2023-02-07 11:43:47.323 DEBUG (MainThread) [CasambiBt._unit] Value for unkown control type at 0: 0
2023-02-07 11:43:47.323 DEBUG (MainThread) [CasambiBt._unit] Parsed b'0000' to UnitState(dimmer=0, rgb=None, white=None)
2023-02-07 11:43:47.323 DEBUG (MainThread) [CasambiBt._client] Parsed state: Id 25, prio 3, online True, on True, state b'00000002'1
2023-02-07 11:43:47.323 INFO (MainThread) [CasambiBt._casambi] Incomming data callback of type 6
2023-02-07 11:43:47.323 DEBUG (MainThread) [CasambiBt._casambi] Handling changed state b'00000002' for unit 25
2023-02-07 11:43:47.323 DEBUG (MainThread) [CasambiBt._unit] Parsed b'00000002' to UnitState(dimmer=0, rgb=(255, 255, 255), white=0)
2023-02-07 11:43:47.323 DEBUG (MainThread) [CasambiBt._client] Parsed state: Id 26, prio 0, online False, on False, state b'd30005'1
2023-02-07 11:43:47.323 INFO (MainThread) [CasambiBt._casambi] Incomming data callback of type 6
2023-02-07 11:43:47.324 DEBUG (MainThread) [CasambiBt._casambi] Handling changed state b'd30005' for unit 26
2023-02-07 11:43:47.324 DEBUG (MainThread) [CasambiBt._unit] Value for unkown control type at 0: 211
2023-02-07 11:43:47.324 DEBUG (MainThread) [CasambiBt._unit] Value for unkown control type at 8: 1280
2023-02-07 11:43:47.324 DEBUG (MainThread) [CasambiBt._unit] Parsed b'd30005' to UnitState(dimmer=None, rgb=None, white=None)
2023-02-07 11:43:47.324 DEBUG (MainThread) [CasambiBt._client] Parsed state: Id 27, prio 0, online False, on False, state b'c80002'1
2023-02-07 11:43:47.324 INFO (MainThread) [CasambiBt._casambi] Incomming data callback of type 6
2023-02-07 11:43:47.324 DEBUG (MainThread) [CasambiBt._casambi] Handling changed state b'c80002' for unit 27
2023-02-07 11:43:47.324 DEBUG (MainThread) [CasambiBt._unit] Value for unkown control type at 0: 200
2023-02-07 11:43:47.324 DEBUG (MainThread) [CasambiBt._unit] Value for unkown control type at 8: 512
2023-02-07 11:43:47.324 DEBUG (MainThread) [CasambiBt._unit] Parsed b'c80002' to UnitState(dimmer=None, rgb=None, white=None)
2023-02-07 11:43:47.325 DEBUG (MainThread) [CasambiBt._client] Parsed state: Id 28, prio 3, online True, on True, state b'0000'1
2023-02-07 11:43:47.325 INFO (MainThread) [CasambiBt._casambi] Incomming data callback of type 6
2023-02-07 11:43:47.325 DEBUG (MainThread) [CasambiBt._casambi] Handling changed state b'0000' for unit 28
2023-02-07 11:43:47.325 DEBUG (MainThread) [CasambiBt._unit] Value for unkown control type at 0: 0
2023-02-07 11:43:47.325 DEBUG (MainThread) [CasambiBt._unit] Parsed b'0000' to UnitState(dimmer=0, rgb=None, white=None)
2023-02-07 11:43:47.325 DEBUG (MainThread) [CasambiBt._client] Parsed state: Id 29, prio 3, online True, on True, state b'0000'1
2023-02-07 11:43:47.325 INFO (MainThread) [CasambiBt._casambi] Incomming data callback of type 6
2023-02-07 11:43:47.325 DEBUG (MainThread) [CasambiBt._casambi] Handling changed state b'0000' for unit 29
2023-02-07 11:43:47.325 DEBUG (MainThread) [CasambiBt._unit] Value for unkown control type at 0: 0
2023-02-07 11:43:47.325 DEBUG (MainThread) [CasambiBt._unit] Parsed b'0000' to UnitState(dimmer=0, rgb=None, white=None)
2023-02-07 11:43:47.331 DEBUG (MainThread) [CasambiBt._client] Parsed state: Id 31, prio 0, online False, on False, state b'040000'1
2023-02-07 11:43:47.331 INFO (MainThread) [CasambiBt._casambi] Incomming data callback of type 6
2023-02-07 11:43:47.331 DEBUG (MainThread) [CasambiBt._casambi] Handling changed state b'040000' for unit 31
2023-02-07 11:43:47.332 DEBUG (MainThread) [CasambiBt._unit] Value for unkown control type at 0: 4
2023-02-07 11:43:47.332 DEBUG (MainThread) [CasambiBt._unit] Value for unkown control type at 8: 0
2023-02-07 11:43:47.332 DEBUG (MainThread) [CasambiBt._unit] Parsed b'040000' to UnitState(dimmer=None, rgb=None, white=None)
2023-02-07 11:43:47.334 DEBUG (MainThread) [CasambiBt._client] Callback on handle c9ffde48-ca5a-0001-ab83-8f519b482f77 (Handle: 8): Unknown: b'03000080345573a40e2f7964e7fffb4c30fe56570237032748bba22d232251ba7521489271abf5bb8371b179e869ccf45c848ae922cbf7f5eed3a61b5f0dd86972e7c3482ca043b46e3092aaf9b3d0f19e8a39db9315d4e1acae09c9420feac5f6606ae93052cbcfff72d1619c1582763f6d91dc'
2023-02-07 11:43:47.334 INFO (MainThread) [CasambiBt._encryption] Decrypting packet: b'03000080345573a40e2f7964e7fffb4c30fe56570237032748bba22d232251ba7521489271abf5bb8371b179e869ccf45c848ae922cbf7f5eed3a61b5f0dd86972e7c3482ca043b46e3092aaf9b3d0f19e8a39db9315d4e1acae09c9420feac5f6606ae93052cbcfff72d1619c1582763f6d91dc' of len 116 with nonce b'030000800af519dca024edb31ed44ed7'
2023-02-07 11:43:47.335 DEBUG (MainThread) [CasambiBt._encryption] Decrypted package: b'090317028e0602970202120219021d0201028d06020202820a020502840a0213020f029202029b0602080215029a06029f060211021c020b02900602830402840402830203840204810406810203830a06990e039a0e02850e058e0204060300'
2023-02-07 11:43:47.335 DEBUG (MainThread) [CasambiBt._client] Incoming data of type 9: b'090317028e0602970202120219021d0201028d06020202820a020502840a0213020f029202029b0602080215029a06029f060211021c020b02900602830402840402830203840204810406810203830a06990e039a0e02850e058e0204060300'
2023-02-07 11:44:37.033 DEBUG (MainThread) [CasambiBt._casambi] Sending operation SetLevel with payload b'ff05' for 1501
2023-02-07 11:44:37.033 DEBUG (MainThread) [CasambiBt._client] Sending packet b'280201000115010000ff05' with counter 2
2023-02-07 11:44:37.033 DEBUG (MainThread) [CasambiBt._client] Packet with header: b'0200000007280201000115010000ff05'
2023-02-07 11:44:37.033 INFO (MainThread) [CasambiBt._encryption] Encrypting packet: b'0200000007280201000115010000ff05' of len 16 with nonce b'bc22dce702000000a024edb31ed44ed7'
2023-02-07 11:44:37.036 DEBUG (MainThread) [CasambiBt._encryption] Encrypted packet: b'02000000e5964dd3c8df2e42b9e1326a'
2023-02-07 11:44:37.038 DEBUG (MainThread) [CasambiBt._encryption] Authenticated packet: b'02000000e5964dd3c8df2e42b9e1326a1adfb5a1c7d1eda04fc9f09df47930ab'
2023-02-07 11:44:37.136 DEBUG (MainThread) [CasambiBt._client] Callback on handle c9ffde48-ca5a-0001-ab83-8f519b482f77 (Handle: 8): Unknown: b'04000080040ef921000bc6c76228498110a76acf7f634a0b2979'
2023-02-07 11:44:37.137 INFO (MainThread) [CasambiBt._encryption] Decrypting packet: b'04000080040ef921000bc6c76228498110a76acf7f634a0b2979' of len 26 with nonce b'040000800af519dca024edb31ed44ed7'
2023-02-07 11:44:37.138 DEBUG (MainThread) [CasambiBt._encryption] Decrypted package: b'06150313fc03'
2023-02-07 11:44:37.139 DEBUG (MainThread) [CasambiBt._client] Incoming data of type 6: b'06150313fc03'
2023-02-07 11:44:37.139 INFO (MainThread) [CasambiBt._client] Parsing incoming unit states...
2023-02-07 11:44:37.139 DEBUG (MainThread) [CasambiBt._client] Incoming unit state: b'150313fc03'
2023-02-07 11:44:37.140 DEBUG (MainThread) [CasambiBt._client] Parsed state: Id 21, prio 3, online True, on True, state b'fc03'1
2023-02-07 11:44:37.140 INFO (MainThread) [CasambiBt._casambi] Incomming data callback of type 6
2023-02-07 11:44:37.140 DEBUG (MainThread) [CasambiBt._casambi] Handling changed state b'fc03' for unit 21
2023-02-07 11:44:37.140 DEBUG (MainThread) [CasambiBt._unit] Value for unkown control type at 0: 0
2023-02-07 11:44:37.140 DEBUG (MainThread) [CasambiBt._unit] Parsed b'fc03' to UnitState(dimmer=63, rgb=None, white=None)
2023-02-07 11:44:43.545 DEBUG (MainThread) [CasambiBt._unit] Packing [(0, 2, 0), (2, 8, 20)] as bytearray(b'P\x00')
2023-02-07 11:44:43.546 DEBUG (MainThread) [CasambiBt._casambi] Sending operation SetState with payload b'5000' for 1501
2023-02-07 11:44:43.546 DEBUG (MainThread) [CasambiBt._client] Sending packet b'2802300002150100005000' with counter 3
2023-02-07 11:44:43.546 DEBUG (MainThread) [CasambiBt._client] Packet with header: b'03000000072802300002150100005000'
2023-02-07 11:44:43.546 INFO (MainThread) [CasambiBt._encryption] Encrypting packet: b'03000000072802300002150100005000' of len 16 with nonce b'bc22dce703000000a024edb31ed44ed7'
2023-02-07 11:44:43.550 DEBUG (MainThread) [CasambiBt._encryption] Encrypted packet: b'03000000bb5df38c96688533c515e109'
2023-02-07 11:44:43.550 DEBUG (MainThread) [CasambiBt._encryption] Authenticated packet: b'03000000bb5df38c96688533c515e1098b14751248cea8049a8dcf43ac2a0b4d'
2023-02-07 11:44:43.661 DEBUG (MainThread) [CasambiBt._client] Callback on handle c9ffde48-ca5a-0001-ab83-8f519b482f77 (Handle: 8): Unknown: b'05000080c3763316f8a501494668a42fe4b4b96e5c1f2a9c47491f'
2023-02-07 11:44:43.661 INFO (MainThread) [CasambiBt._encryption] Decrypting packet: b'05000080c3763316f8a501494668a42fe4b4b96e5c1f2a9c47491f' of len 27 with nonce b'050000800af519dca024edb31ed44ed7'
2023-02-07 11:44:43.662 DEBUG (MainThread) [CasambiBt._encryption] Decrypted package: b'06151313145000'
2023-02-07 11:44:43.662 DEBUG (MainThread) [CasambiBt._client] Incoming data of type 6: b'06151313145000'
2023-02-07 11:44:43.662 INFO (MainThread) [CasambiBt._client] Parsing incoming unit states...
2023-02-07 11:44:43.662 DEBUG (MainThread) [CasambiBt._client] Incoming unit state: b'151313145000'
2023-02-07 11:44:43.662 DEBUG (MainThread) [CasambiBt._client] Parsed state: Id 21, prio 3, online True, on True, state b'5000'1
2023-02-07 11:44:43.662 INFO (MainThread) [CasambiBt._casambi] Incomming data callback of type 6
2023-02-07 11:44:43.662 DEBUG (MainThread) [CasambiBt._casambi] Handling changed state b'5000' for unit 21
2023-02-07 11:44:43.662 DEBUG (MainThread) [CasambiBt._unit] Value for unkown control type at 0: 0
2023-02-07 11:44:43.663 DEBUG (MainThread) [CasambiBt._unit] Parsed b'5000' to UnitState(dimmer=20, rgb=None, white=None)
2023-02-07 11:44:46.545 DEBUG (MainThread) [CasambiBt._unit] Packing [(0, 2, 0), (2, 8, 51)] as bytearray(b'\xcc\x00')
2023-02-07 11:44:46.545 DEBUG (MainThread) [CasambiBt._casambi] Sending operation SetState with payload b'cc00' for 1501
2023-02-07 11:44:46.545 DEBUG (MainThread) [CasambiBt._client] Sending packet b'280230000315010000cc00' with counter 4
2023-02-07 11:44:46.545 DEBUG (MainThread) [CasambiBt._client] Packet with header: b'0400000007280230000315010000cc00'
2023-02-07 11:44:46.545 INFO (MainThread) [CasambiBt._encryption] Encrypting packet: b'0400000007280230000315010000cc00' of len 16 with nonce b'bc22dce704000000a024edb31ed44ed7'
2023-02-07 11:44:46.550 DEBUG (MainThread) [CasambiBt._encryption] Encrypted packet: b'0400000097311e008899dd805dc8be95'
2023-02-07 11:44:46.550 DEBUG (MainThread) [CasambiBt._encryption] Authenticated packet: b'0400000097311e008899dd805dc8be95ba4f1375f2a125c9ca2cc25c7e62a03a'
2023-02-07 11:44:46.699 DEBUG (MainThread) [CasambiBt._client] Callback on handle c9ffde48-ca5a-0001-ab83-8f519b482f77 (Handle: 8): Unknown: b'060000806d5ce826f6a71db4cc9ef6af57212c89eae66a403c72d2'
2023-02-07 11:44:46.699 INFO (MainThread) [CasambiBt._encryption] Decrypting packet: b'060000806d5ce826f6a71db4cc9ef6af57212c89eae66a403c72d2' of len 27 with nonce b'060000800af519dca024edb31ed44ed7'
2023-02-07 11:44:46.700 DEBUG (MainThread) [CasambiBt._encryption] Decrypted package: b'0615131333cc00'
2023-02-07 11:44:46.701 DEBUG (MainThread) [CasambiBt._client] Incoming data of type 6: b'0615131333cc00'
2023-02-07 11:44:46.701 INFO (MainThread) [CasambiBt._client] Parsing incoming unit states...
2023-02-07 11:44:46.701 DEBUG (MainThread) [CasambiBt._client] Incoming unit state: b'15131333cc00'
2023-02-07 11:44:46.701 DEBUG (MainThread) [CasambiBt._client] Parsed state: Id 21, prio 3, online True, on True, state b'cc00'1
2023-02-07 11:44:46.701 INFO (MainThread) [CasambiBt._casambi] Incomming data callback of type 6
2023-02-07 11:44:46.701 DEBUG (MainThread) [CasambiBt._casambi] Handling changed state b'cc00' for unit 21
2023-02-07 11:44:46.701 DEBUG (MainThread) [CasambiBt._unit] Value for unkown control type at 0: 0
2023-02-07 11:44:46.701 DEBUG (MainThread) [CasambiBt._unit] Parsed b'cc00' to UnitState(dimmer=51, rgb=None, white=None)
2023-02-07 11:44:50.856 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140646085246880] byte must be in range(0, 256)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 200, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1787, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1824, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 680, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 968, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 720, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/light/init.py", line 571, in async_handle_light_on_service
await light.async_turn_on(**filter_turn_on_params(light, params))
File "/config/custom_components/casambi_bt/light.py", line 209, in async_turn_on
await self._api.casa.setUnitState(self._obj, state)
File "/usr/local/lib/python3.10/site-packages/CasambiBt/_casambi.py", line 150, in setUnitState
stateBytes = target.getStateAsBytes(state)
File "/usr/local/lib/python3.10/site-packages/CasambiBt/_unit.py", line 265, in getStateAsBytes
res[off // 8] |= valBytes[i] << (off % 8)
ValueError: byte must be in range(0, 256)
2023-02-07 11:44:57.492 DEBUG (MainThread) [CasambiBt._unit] Packing [(0, 2, 0), (2, 8, 31)] as bytearray(b'|\x00')
2023-02-07 11:44:57.492 DEBUG (MainThread) [CasambiBt._casambi] Sending operation SetState with payload b'7c00' for 1501
2023-02-07 11:44:57.492 DEBUG (MainThread) [CasambiBt._client] Sending packet b'2802300004150100007c00' with counter 5
2023-02-07 11:44:57.492 DEBUG (MainThread) [CasambiBt._client] Packet with header: b'05000000072802300004150100007c00'
2023-02-07 11:44:57.492 INFO (MainThread) [CasambiBt._encryption] Encrypting packet: b'05000000072802300004150100007c00' of len 16 with nonce b'bc22dce705000000a024edb31ed44ed7'
2023-02-07 11:44:57.492 DEBUG (MainThread) [CasambiBt._encryption] Encrypted packet: b'05000000b2cf5687657bf0ac14f28546'
2023-02-07 11:44:57.494 DEBUG (MainThread) [CasambiBt._encryption] Authenticated packet: b'05000000b2cf5687657bf0ac14f2854631205bc78e7f83e5a5c5ffffd69a51b1'
2023-02-07 11:44:57.574 DEBUG (MainThread) [CasambiBt._client] Callback on handle c9ffde48-ca5a-0001-ab83-8f519b482f77 (Handle: 8): Unknown: b'07000080480c15f38fe35200c408e01028a5795d4563cf4353b619'
2023-02-07 11:44:57.574 INFO (MainThread) [CasambiBt._encryption] Decrypting packet: b'07000080480c15f38fe35200c408e01028a5795d4563cf4353b619' of len 27 with nonce b'070000800af519dca024edb31ed44ed7'
2023-02-07 11:44:57.575 DEBUG (MainThread) [CasambiBt._encryption] Decrypted package: b'061513131f7c00'
2023-02-07 11:44:57.576 DEBUG (MainThread) [CasambiBt._client] Incoming data of type 6: b'061513131f7c00'
2023-02-07 11:44:57.576 INFO (MainThread) [CasambiBt._client] Parsing incoming unit states...
2023-02-07 11:44:57.576 DEBUG (MainThread) [CasambiBt._client] Incoming unit state: b'1513131f7c00'
2023-02-07 11:44:57.576 DEBUG (MainThread) [CasambiBt._client] Parsed state: Id 21, prio 3, online True, on True, state b'7c00'1
2023-02-07 11:44:57.576 INFO (MainThread) [CasambiBt._casambi] Incomming data callback of type 6
2023-02-07 11:44:57.576 DEBUG (MainThread) [CasambiBt._casambi] Handling changed state b'7c00' for unit 21
2023-02-07 11:44:57.576 DEBUG (MainThread) [CasambiBt._unit] Value for unkown control type at 0: 0
2023-02-07 11:44:57.576 DEBUG (MainThread) [CasambiBt._unit] Parsed b'7c00' to UnitState(dimmer=31, rgb=None, white=None)
2023-02-07 11:45:02.626 DEBUG (MainThread) [CasambiBt._casambi] Sending operation SetLevel with payload b'00' for 1501
2023-02-07 11:45:02.626 DEBUG (MainThread) [CasambiBt._client] Sending packet b'28010100051501000000' with counter 6
2023-02-07 11:45:02.626 DEBUG (MainThread) [CasambiBt._client] Packet with header: b'060000000728010100051501000000'
2023-02-07 11:45:02.626 INFO (MainThread) [CasambiBt._encryption] Encrypting packet: b'060000000728010100051501000000' of len 15 with nonce b'bc22dce706000000a024edb31ed44ed7'
2023-02-07 11:45:02.631 DEBUG (MainThread) [CasambiBt._encryption] Encrypted packet: b'0600000042c49785a157c343eee859'
2023-02-07 11:45:02.631 DEBUG (MainThread) [CasambiBt._encryption] Authenticated packet: b'0600000042c49785a157c343eee859bd2f2bc63d1f67ea29a3d9b4759ca26d'
2023-02-07 11:45:02.712 DEBUG (MainThread) [CasambiBt._client] Callback on handle c9ffde48-ca5a-0001-ab83-8f519b482f77 (Handle: 8): Unknown: b'080000805bd90c9a3f64ac4cb67bf005ae675973f7eef477ea287e'
2023-02-07 11:45:02.712 INFO (MainThread) [CasambiBt._encryption] Decrypting packet: b'080000805bd90c9a3f64ac4cb67bf005ae675973f7eef477ea287e' of len 27 with nonce b'080000800af519dca024edb31ed44ed7'
2023-02-07 11:45:02.713 DEBUG (MainThread) [CasambiBt._encryption] Decrypted package: b'061513131f0000'
2023-02-07 11:45:02.714 DEBUG (MainThread) [CasambiBt._client] Incoming data of type 6: b'061513131f0000'
2023-02-07 11:45:02.714 INFO (MainThread) [CasambiBt._client] Parsing incoming unit states...
2023-02-07 11:45:02.714 DEBUG (MainThread) [CasambiBt._client] Incoming unit state: b'1513131f0000'
2023-02-07 11:45:02.714 DEBUG (MainThread) [CasambiBt._client] Parsed state: Id 21, prio 3, online True, on True, state b'0000'1
2023-02-07 11:45:02.715 INFO (MainThread) [CasambiBt._casambi] Incomming data callback of type 6
2023-02-07 11:45:02.715 DEBUG (MainThread) [CasambiBt._casambi] Handling changed state b'0000' for unit 21
2023-02-07 11:45:02.715 DEBUG (MainThread) [CasambiBt._unit] Value for unkown control type at 0: 0
2023-02-07 11:45:02.715 DEBUG (MainThread) [CasambiBt._unit] Parsed b'0000' to UnitState(dimmer=0, rgb=None, white=None)

from casambi-bt.

mintnl avatar mintnl commented on August 18, 2024

If i fetch the logs with only the search term

"unit type"

then this is the only result:

2023-02-07 11:43:46.248 INFO (MainThread) [CasambiBt._network] Loading unit type cache...
2023-02-07 11:43:46.270 INFO (MainThread) [CasambiBt._network] Fetching unit type for id 983...
2023-02-07 11:43:46.270 INFO (MainThread) [CasambiBt._network] Fetching unit type for id 983...
2023-02-07 11:43:46.270 INFO (MainThread) [CasambiBt._network] Fetching unit type for id 983...
2023-02-07 11:43:46.270 INFO (MainThread) [CasambiBt._network] Fetching unit type for id 983...
2023-02-07 11:43:46.270 INFO (MainThread) [CasambiBt._network] Fetching unit type for id 983...
2023-02-07 11:43:46.270 INFO (MainThread) [CasambiBt._network] Fetching unit type for id 200001...
2023-02-07 11:43:46.270 INFO (MainThread) [CasambiBt._network] Fetching unit type for id 983...
2023-02-07 11:43:46.270 INFO (MainThread) [CasambiBt._network] Fetching unit type for id 983...
2023-02-07 11:43:46.270 INFO (MainThread) [CasambiBt._network] Fetching unit type for id 6240...
2023-02-07 11:43:46.270 INFO (MainThread) [CasambiBt._network] Fetching unit type for id 200001...
2023-02-07 11:43:46.270 INFO (MainThread) [CasambiBt._network] Fetching unit type for id 983...
2023-02-07 11:43:46.271 INFO (MainThread) [CasambiBt._network] Fetching unit type for id 983...
2023-02-07 11:43:46.271 INFO (MainThread) [CasambiBt._network] Fetching unit type for id 526...
2023-02-07 11:43:46.271 INFO (MainThread) [CasambiBt._network] Fetching unit type for id 239...
2023-02-07 11:43:46.271 INFO (MainThread) [CasambiBt._network] Fetching unit type for id 4027...
2023-02-07 11:43:46.271 INFO (MainThread) [CasambiBt._network] Fetching unit type for id 239...
2023-02-07 11:43:46.271 INFO (MainThread) [CasambiBt._network] Fetching unit type for id 526...
2023-02-07 11:43:46.271 INFO (MainThread) [CasambiBt._network] Fetching unit type for id 526...
2023-02-07 11:43:46.271 INFO (MainThread) [CasambiBt._network] Fetching unit type for id 200001...
2023-02-07 11:43:46.271 INFO (MainThread) [CasambiBt._network] Fetching unit type for id 200001...

from casambi-bt.

lkempf avatar lkempf commented on August 18, 2024

Yes this is exactly what I needed (even though having the rest of the log doesn't hurt). I'll have to look into this this weekend or next week since I can't see any immediate issues.

Edit: Ok I think I know what the issue is. State en-/decoding doesn't seem to handle the offset of 2 from the overheat information correctly.

from casambi-bt.

lkempf avatar lkempf commented on August 18, 2024

I think I have fixed the issue but the fix needs some more testing to make sure I haven't broken anything else.

from casambi-bt.

mintnl avatar mintnl commented on August 18, 2024

Somehow it has to do with the COLORMODE_BRIGHTNESS (0 to 255) and COLORMODE_BRIGHTNESS_PCT (0 to 100)
Whereas the dimmer reports the percentage 0-100 instead of the expected 0-255?

I will test it, thank you

from casambi-bt.

lkempf avatar lkempf commented on August 18, 2024

No I'm quite sure the issue was that I handled the 2 bits of overheat information before the dimmer value incorrectly. Due to this the highest 2 bits of the dimmer value weren't handled correctly and either disappeared (value in HA to low) or caused some internal value that should be a byte to have 2 additional bits (causing the ValueError).

I don't think you actually want to test the changes yourself until I create a release unless you want to setup a whole development setup. I'm going to visit my parents next week so I can just test it then. The 2 luminaries you had issues with should be fixed as far as I could test from the information in the logs.

from casambi-bt.

mintnl avatar mintnl commented on August 18, 2024

I don't think you actually want to test the changes yourself until I create a release unless you want to setup a whole development setup. I'm going to visit my parents next week so I can just test it then. The 2 luminaries you had issues with should be fixed as far as I could test from the information in the logs.

You're right. Want to test if you create a new release (maybe a beta?) :-)
I have about about 20 dimmers in use, 18 are the casambi-TED which all have this issue (cause they're all the same sort :-) )

Thanx for your effort!

from casambi-bt.

lkempf avatar lkempf commented on August 18, 2024

I can create a completely untested pre-release if you want. That shouldn't be a lot of work.

from casambi-bt.

lkempf avatar lkempf commented on August 18, 2024

You should be able to update the integration to the current state of the main branch in HACS now. I won't guarantee that this update won't break something though.

from casambi-bt.

mintnl avatar mintnl commented on August 18, 2024

I can create a completely untested pre-release if you want. That shouldn't be a lot of work.

Thank you for your effort!

You should be able to update the integration to the current state of the main branch in HACS now. I won't guarantee that this update won't break something though.

I selected version "main" on redownloading the integration, but after a restart the integration fails to load the network. :-s

from casambi-bt.

lkempf avatar lkempf commented on August 18, 2024

I think I found that issue. Everything seems to be working fine for my test devices so I will publish the new version the next couple of days. You can try updating to main again to see if I fixed it for you.

from casambi-bt.

mintnl avatar mintnl commented on August 18, 2024

While using "main" version the network is not detected correctly:

2023-02-21 17:13:40.306 INFO (MainThread) [homeassistant.setup] Setting up casambi_bt
2023-02-21 17:13:40.306 INFO (MainThread) [homeassistant.setup] Setup of domain casambi_bt took 0.0 seconds
2023-02-21 17:13:40.310 ERROR (MainThread) [custom_components.casambi_bt] Unexpected error creating network 03:19:XX:XX:XX:XX
File "/config/custom_components/casambi_bt/init.py", line 80, in async_casmbi_api_setup

from casambi-bt.

lkempf avatar lkempf commented on August 18, 2024

Did you redownload main? It doesn't get updated automatically and HACS doesn't show update hints for main.

from casambi-bt.

mintnl avatar mintnl commented on August 18, 2024

HACS > Casambi Bluetooth > three dots in the top right > redownload > selected "main" instead of 0.0.5 .

from casambi-bt.

lkempf avatar lkempf commented on August 18, 2024

Can you give me the full log in that case? I think the error you gave me is cut off and I can't reproduce your issue.

from casambi-bt.

mintnl avatar mintnl commented on August 18, 2024

installed 0.0.6-rc1 of casambi-bthass. No errors anymore. Thanx.

from casambi-bt.

Synasenn avatar Synasenn commented on August 18, 2024

Also works perfectly for me. Thanks a lot!

from casambi-bt.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.