As always, thank you so much for your invaluable expertise and unwavering support, I owe you a drink!
The driver seems to be working well, I finally have a dedicated light sensor that does not rely on motion
I will test further in my hallway room lighting as these lights are always on and I want to turn them off if there is enough light.
Logs
dev:20882023-06-29 08:34:42.628 PMinfoTuya Light sensor illuminance is 48 lx (delayed)
dev:20882023-06-29 08:34:40.702 PMdebugTuya Light sensor LightSensor BrightnessLevel = low (0)
dev:20882023-06-29 08:34:40.701 PMdebugTuya Light sensor dp_id=4 dp=1 fncmd=0 fncmd_len=1 (index=0)
dev:20882023-06-29 08:34:40.696 PMdebugTuya Light sensor descMap = [raw:catchall: 0104 EF00 01 01 0040 00 8566 01 00 0000 02 01 00DD0104000100, profileId:0104, clusterId:EF00, clusterInt:61184, sourceEndpoint:01, destinationEndpoint:01, options:0040, messageType:00, dni:8566, isClusterSpecific:true, isManufacturerSpecific:false, manufacturerId:0000, command:02, direction:01, data:[00, DD, 01, 04, 00, 01, 00]]
dev:20882023-06-29 08:34:40.674 PMdebugTuya Light sensor parse: catchall: 0104 EF00 01 01 0040 00 8566 01 00 0000 02 01 00DD0104000100
dev:20882023-06-29 08:34:40.596 PMdebugTuya Light sensor Tuya Light sensor DELAYING 2 seconds event : [name:illuminance, value:48, type:delayed, unit:lx, descriptionText:illuminance is 48 lx]
dev:20882023-06-29 08:34:40.590 PMdebugTuya Light sensor dp_id=2 dp=2 fncmd=48 fncmd_len=4 (index=0)
dev:20882023-06-29 08:34:40.566 PMdebugTuya Light sensor descMap = [raw:catchall: 0104 EF00 01 01 0040 00 8566 01 00 0000 02 01 00DC0202000400000030, profileId:0104, clusterId:EF00, clusterInt:61184, sourceEndpoint:01, destinationEndpoint:01, options:0040, messageType:00, dni:8566, isClusterSpecific:true, isManufacturerSpecific:false, manufacturerId:0000, command:02, direction:01, data:[00, DC, 02, 02, 00, 04, 00, 00, 00, 30]]
dev:20882023-06-29 08:34:40.534 PMdebugTuya Light sensor parse: catchall: 0104 EF00 01 01 0040 00 8566 01 00 0000 02 01 00DC0202000400000030
dev:20882023-06-29 08:34:32.472 PMinfoTuya Light sensor illuminance is 48 lx (delayed)
dev:20882023-06-29 08:34:26.554 PMdebugTuya Light sensor LightSensor BrightnessLevel = low (0)
dev:20882023-06-29 08:34:26.552 PMdebugTuya Light sensor dp_id=4 dp=1 fncmd=0 fncmd_len=1 (index=0)
dev:20882023-06-29 08:34:26.548 PMdebugTuya Light sensor descMap = [raw:catchall: 0104 EF00 01 01 0040 00 8566 01 00 0000 02 01 00DB0104000100, profileId:0104, clusterId:EF00, clusterInt:61184, sourceEndpoint:01, destinationEndpoint:01, options:0040, messageType:00, dni:8566, isClusterSpecific:true, isManufacturerSpecific:false, manufacturerId:0000, command:02, direction:01, data:[00, DB, 01, 04, 00, 01, 00]]
dev:20882023-06-29 08:34:26.540 PMdebugTuya Light sensor parse: catchall: 0104 EF00 01 01 0040 00 8566 01 00 0000 02 01 00DB0104000100
dev:20882023-06-29 08:34:26.449 PMdebugTuya Light sensor Tuya Light sensor DELAYING 6 seconds event : [name:illuminance, value:48, type:delayed, unit:lx, descriptionText:illuminance is 48 lx]
dev:20882023-06-29 08:34:26.447 PMdebugTuya Light sensor dp_id=2 dp=2 fncmd=48 fncmd_len=4 (index=0)
dev:20882023-06-29 08:34:26.443 PMdebugTuya Light sensor descMap = [raw:catchall: 0104 EF00 01 01 0040 00 8566 01 00 0000 02 01 00DA0202000400000030, profileId:0104, clusterId:EF00, clusterInt:61184, sourceEndpoint:01, destinationEndpoint:01, options:0040, messageType:00, dni:8566, isClusterSpecific:true, isManufacturerSpecific:false, manufacturerId:0000, command:02, direction:01, data:[00, DA, 02, 02, 00, 04, 00, 00, 00, 30]]
dev:20882023-06-29 08:34:26.436 PMdebugTuya Light sensor parse: catchall: 0104 EF00 01 01 0040 00 8566 01 00 0000 02 01 00DA0202000400000030
dev:20882023-06-29 08:34:26.004 PMdebugTuya Light sensor LightSensor BrightnessLevel = low (0)
dev:20882023-06-29 08:34:26.002 PMdebugTuya Light sensor dp_id=4 dp=1 fncmd=0 fncmd_len=1 (index=0)
dev:20882023-06-29 08:34:25.995 PMdebugTuya Light sensor descMap = [raw:catchall: 0104 EF00 01 01 0040 00 8566 01 00 0000 02 01 00D90104000100, profileId:0104, clusterId:EF00, clusterInt:61184, sourceEndpoint:01, destinationEndpoint:01, options:0040, messageType:00, dni:8566, isClusterSpecific:true, isManufacturerSpecific:false, manufacturerId:0000, command:02, direction:01, data:[00, D9, 01, 04, 00, 01, 00]]
dev:20882023-06-29 08:34:25.976 PMdebugTuya Light sensor parse: catchall: 0104 EF00 01 01 0040 00 8566 01 00 0000 02 01 00D90104000100
dev:20882023-06-29 08:34:25.844 PMdebugTuya Light sensor Tuya Light sensor DELAYING 7 seconds event : [name:illuminance, value:45, type:delayed, unit:lx, descriptionText:illuminance is 45 lx]
dev:20882023-06-29 08:34:25.842 PMdebugTuya Light sensor dp_id=2 dp=2 fncmd=45 fncmd_len=4 (index=0)
dev:20882023-06-29 08:34:25.837 PMdebugTuya Light sensor descMap = [raw:catchall: 0104 EF00 01 01 0040 00 8566 01 00 0000 02 01 00D8020200040000002D, profileId:0104, clusterId:EF00, clusterInt:61184, sourceEndpoint:01, destinationEndpoint:01, options:0040, messageType:00, dni:8566, isClusterSpecific:true, isManufacturerSpecific:false, manufacturerId:0000, command:02, direction:01, data:[00, D8, 02, 02, 00, 04, 00, 00, 00, 2D]]
dev:20882023-06-29 08:34:25.829 PMdebugTuya Light sensor parse: catchall: 0104 EF00 01 01 0040 00 8566 01 00 0000 02 01 00D8020200040000002D
dev:20882023-06-29 08:34:22.886 PMinfoTuya Light sensor illuminance is 45 lx (delayed)
dev:20882023-06-29 08:34:21.978 PMdebugTuya Light sensor LightSensor BrightnessLevel = low (0)
dev:20882023-06-29 08:34:21.977 PMdebugTuya Light sensor dp_id=4 dp=1 fncmd=0 fncmd_len=1 (index=0)
dev:20882023-06-29 08:34:21.973 PMdebugTuya Light sensor descMap = [raw:catchall: 0104 EF00 01 01 0040 00 8566 01 00 0000 02 01 00D70104000100, profileId:0104, clusterId:EF00, clusterInt:61184, sourceEndpoint:01, destinationEndpoint:01, options:0040, messageType:00, dni:8566, isClusterSpecific:true, isManufacturerSpecific:false, manufacturerId:0000, command:02, direction:01, data:[00, D7, 01, 04, 00, 01, 00]]
dev:20882023-06-29 08:34:21.957 PMdebugTuya Light sensor parse: catchall: 0104 EF00 01 01 0040 00 8566 01 00 0000 02 01 00D70104000100
dev:20882023-06-29 08:34:21.865 PMdebugTuya Light sensor Tuya Light sensor DELAYING 1 seconds event : [name:illuminance, value:45, type:delayed, unit:lx, descriptionText:illuminance is 45 lx]
dev:20882023-06-29 08:34:21.863 PMdebugTuya Light sensor dp_id=2 dp=2 fncmd=45 fncmd_len=4 (index=0)
dev:20882023-06-29 08:34:21.859 PMdebugTuya Light sensor descMap = [raw:catchall: 0104 EF00 01 01 0040 00 8566 01 00 0000 02 01 00D6020200040000002D, profileId:0104, clusterId:EF00, clusterInt:61184, sourceEndpoint:01, destinationEndpoint:01, options:0040, messageType:00, dni:8566, isClusterSpecific:true, isManufacturerSpecific:false, manufacturerId:0000, command:02, direction:01, data:[00, D6, 02, 02, 00, 04, 00, 00, 00, 2D]]
dev:20882023-06-29 08:34:21.851 PMdebugTuya Light sensor parse: catchall: 0104 EF00 01 01 0040 00 8566 01 00 0000 02 01 00D6020200040000002D
dev:20882023-06-29 08:34:21.419 PMdebugTuya Light sensor LightSensor BrightnessLevel = low (0)
dev:20882023-06-29 08:34:21.418 PMdebugTuya Light sensor dp_id=4 dp=1 fncmd=0 fncmd_len=1 (index=0)
dev:20882023-06-29 08:34:21.414 PMdebugTuya Light sensor descMap = [raw:catchall: 0104 EF00 01 01 0040 00 8566 01 00 0000 02 01 00D50104000100, profileId:0104, clusterId:EF00, clusterInt:61184, sourceEndpoint:01, destinationEndpoint:01, options:0040, messageType:00, dni:8566, isClusterSpecific:true, isManufacturerSpecific:false, manufacturerId:0000, command:02, direction:01, data:[00, D5, 01, 04, 00, 01, 00]]
dev:20882023-06-29 08:34:21.406 PMdebugTuya Light sensor parse: catchall: 0104 EF00 01 01 0040 00 8566 01 00 0000 02 01 00D50104000100
dev:20882023-06-29 08:34:21.276 PMdebugTuya Light sensor Tuya Light sensor DELAYING 2 seconds event : [name:illuminance, value:12, type:delayed, unit:lx, descriptionText:illuminance is 12 lx]
dev:20882023-06-29 08:34:21.273 PMdebugTuya Light sensor dp_id=2 dp=2 fncmd=12 fncmd_len=4 (index=0)
dev:20882023-06-29 08:34:21.269 PMdebugTuya Light sensor descMap = [raw:catchall: 0104 EF00 01 01 0040 00 8566 01 00 0000 02 01 00D4020200040000000C, profileId:0104, clusterId:EF00, clusterInt:61184, sourceEndpoint:01, destinationEndpoint:01, options:0040, messageType:00, dni:8566, isClusterSpecific:true, isManufacturerSpecific:false, manufacturerId:0000, command:02, direction:01, data:[00, D4, 02, 02, 00, 04, 00, 00, 00, 0C]]
dev:20882023-06-29 08:34:21.258 PMdebugTuya Light sensor parse: catchall: 0104 EF00 01 01 0040 00 8566 01 00 0000 02 01 00D4020200040000000C
dev:20882023-06-29 08:34:20.762 PMdebugTuya Light sensor LightSensor BrightnessLevel = low (0)
dev:20882023-06-29 08:34:20.760 PMdebugTuya Light sensor dp_id=4 dp=1 fncmd=0 fncmd_len=1 (index=0)
dev:20882023-06-29 08:34:20.756 PMdebugTuya Light sensor descMap = [raw:catchall: 0104 EF00 01 01 0040 00 8566 01 00 0000 02 01 00D30104000100, profileId:0104, clusterId:EF00, clusterInt:61184, sourceEndpoint:01, destinationEndpoint:01, options:0040, messageType:00, dni:8566, isClusterSpecific:true, isManufacturerSpecific:false, manufacturerId:0000, command:02, direction:01, data:[00, D3, 01, 04, 00, 01, 00]]
dev:20882023-06-29 08:34:20.748 PMdebugTuya Light sensor parse: catchall: 0104 EF00 01 01 0040 00 8566 01 00 0000 02 01 00D30104000100
dev:20882023-06-29 08:34:20.658 PMdebugTuya Light sensor Tuya Light sensor DELAYING 2 seconds event : [name:illuminance, value:0, type:delayed, unit:lx, descriptionText:illuminance is 0 lx]
dev:20882023-06-29 08:34:20.656 PMdebugTuya Light sensor dp_id=2 dp=2 fncmd=0 fncmd_len=4 (index=0)
dev:20882023-06-29 08:34:20.651 PMdebugTuya Light sensor descMap = [raw:catchall: 0104 EF00 01 01 0040 00 8566 01 00 0000 02 01 00D20202000400000000, profileId:0104, clusterId:EF00, clusterInt:61184, sourceEndpoint:01, destinationEndpoint:01, options:0040, messageType:00, dni:8566, isClusterSpecific:true, isManufacturerSpecific:false, manufacturerId:0000, command:02, direction:01, data:[00, D2, 02, 02, 00, 04, 00, 00, 00, 00]]
dev:20882023-06-29 08:34:20.644 PMdebugTuya Light sensor parse: catchall: 0104 EF00 01 01 0040 00 8566 01 00 0000 02 01 00D20202000400000000
dev:20882023-06-29 08:34:20.165 PMdebugTuya Light sensor LightSensor BrightnessLevel = low (0)
dev:20882023-06-29 08:34:20.163 PMdebugTuya Light sensor dp_id=4 dp=1 fncmd=0 fncmd_len=1 (index=0)
dev:20882023-06-29 08:34:20.157 PMdebugTuya Light sensor descMap = [raw:catchall: 0104 EF00 01 01 0040 00 8566 01 00 0000 02 01 00D10104000100, profileId:0104, clusterId:EF00, clusterInt:61184, sourceEndpoint:01, destinationEndpoint:01, options:0040, messageType:00, dni:8566, isClusterSpecific:true, isManufacturerSpecific:false, manufacturerId:0000, command:02, direction:01, data:[00, D1, 01, 04, 00, 01, 00]]
dev:20882023-06-29 08:34:20.145 PMdebugTuya Light sensor parse: catchall: 0104 EF00 01 01 0040 00 8566 01 00 0000 02 01 00D10104000100
dev:20882023-06-29 08:34:20.049 PMdebugTuya Light sensor Tuya Light sensor DELAYING 3 seconds event : [name:illuminance, value:0, type:delayed, unit:lx, descriptionText:illuminance is 0 lx]
dev:20882023-06-29 08:34:20.047 PMdebugTuya Light sensor dp_id=2 dp=2 fncmd=0 fncmd_len=4 (index=0)
dev:20882023-06-29 08:34:20.042 PMdebugTuya Light sensor descMap = [raw:catchall: 0104 EF00 01 01 0040 00 8566 01 00 0000 02 01 00D00202000400000000, profileId:0104, clusterId:EF00, clusterInt:61184, sourceEndpoint:01, destinationEndpoint:01, options:0040, messageType:00, dni:8566, isClusterSpecific:true, isManufacturerSpecific:false, manufacturerId:0000, command:02, direction:01, data:[00, D0, 02, 02, 00, 04, 00, 00, 00, 00]]
dev:20882023-06-29 08:34:20.036 PMdebugTuya Light sensor parse: catchall: 0104 EF00 01 01 0040 00 8566 01 00 0000 02 01 00D00202000400000000
dev:20882023-06-29 08:34:19.587 PMdebugTuya Light sensor LightSensor BrightnessLevel = low (0)
dev:20882023-06-29 08:34:19.585 PMdebugTuya Light sensor dp_id=4 dp=1 fncmd=0 fncmd_len=1 (index=0)
dev:20882023-06-29 08:34:19.573 PMdebugTuya Light sensor descMap = [raw:catchall: 0104 EF00 01 01 0040 00 8566 01 00 0000 02 01 00CF0104000100, profileId:0104, clusterId:EF00, clusterInt:61184, sourceEndpoint:01, destinationEndpoint:01, options:0040, messageType:00, dni:8566, isClusterSpecific:true, isManufacturerSpecific:false, manufacturerId:0000, command:02, direction:01, data:[00, CF, 01, 04, 00, 01, 00]]
dev:20882023-06-29 08:34:19.561 PMdebugTuya Light sensor parse: catchall: 0104 EF00 01 01 0040 00 8566 01 00 0000 02 01 00CF0104000100
dev:20882023-06-29 08:34:19.456 PMdebugTuya Light sensor Tuya Light sensor DELAYING 3 seconds event : [name:illuminance, value:0, type:delayed, unit:lx, descriptionText:illuminance is 0 lx]
dev:20882023-06-29 08:34:19.453 PMdebugTuya Light sensor dp_id=2 dp=2 fncmd=0 fncmd_len=4 (index=0)
dev:20882023-06-29 08:34:19.446 PMdebugTuya Light sensor descMap = [raw:catchall: 0104 EF00 01 01 0040 00 8566 01 00 0000 02 01 00CE0202000400000000, profileId:0104, clusterId:EF00, clusterInt:61184, sourceEndpoint:01, destinationEndpoint:01, options:0040, messageType:00, dni:8566, isClusterSpecific:true, isManufacturerSpecific:false, manufacturerId:0000, command:02, direction:01, data:[00, CE, 02, 02, 00, 04, 00, 00, 00, 00]]