USB to Serial
This is a Tuya USB powered illuminance sensor. Tiny power supply (US standard) and USB cable are supplied with the device.
Identified with MCU Product ID:
Easily disassembled by removing the back plate, then prying away the PCB from the case.
The PCB is marked with “LS_V1.0 BY XP”. It runs on TYWE3S module and a secondary STM32F030F4P6 MCU.
To flash the device connect to the 6 holes headers TX to R, RX to T, VCC to + and GND to G and IO0. R was likely supposed to be the RST pin for the STM32 MCU but it was not working in my case. Instead connect the 4th pin (marked on image) to GND during the flashing procedure (NOTE: the GND marked on the image is incorrect. A correct one is 3rd hole). Otherwise you will be unable to flash due to MCU interference
After flashing Tasmota and configuring Wi-Fi and MQTT set
Module 54 then issue
Backlog TuyaMCU 61,1; TuyaMCU 75,2; TuyaMCU 99,99
Illumination values will be visible in the webUI after a restart.
dpId 1 is used for brightness state
dpId2 is reporting illuminance in (according to instruction manual) lux.