logo elektroda
logo elektroda
X
logo elektroda

Tuya Smart Wi-Fi Smoke Detector: Exploring WiFi Module CB3S & MCU CX32L003F8

arhismece 5820 31
ADVERTISEMENT
  • #31 21694358
    p.kaczmarek2
    Moderator Smart Home
    linkTuyaMCUOutputToChannel [dpId] [varType] [channelID] [bDPCache-Optional] [mult-optional] [bInverse-Optional]

    for dpCache use 0, for mult 1, and then 1 for bInverse. Then driver should invert value before saving to channel.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #32 21694639
    aleshinalekseya
    Level 6  
    After I changed the line as you recommended, the meaning is now always zero. fw 1.18.176

    clearIO
    startDriver TuyaMCU
    startDriver tmSensor
    tuyaMCU_setBaudRate 9600
    waitFor MQTTState 1
    // smoke sensor status, Enum value, dpID 1
    setChannelLabel 1 SmokeStatus
    setChannelType 1 ReadOnly
    linkTuyaMCUOutputToChannel 1 enum 1 0 1 1



    Is it possible to immediately convert to BinarySensor?

Topic summary

The discussion centers on the Tuya Smart Wi-Fi Smoke Detector featuring the WiFi module CB3S and MCU CX32L003F8, an optical smoke sensor device. Users compare it to a similar device from topic3978070 but note differences in PCB layout and sensor design. The device uses a TuyaMCU architecture where the 32-bit ARM MCU runs original firmware controlling the CB3S WiFi module, which is powered on/off by the MCU via a transistor to conserve battery. Capturing UART communication is essential to identify dpIDs (data points) and their meanings, such as smoke detection (dpID 2, integer 0-100%), battery state (dpID 14 enum, dpID 15 integer percentage), tamper state, and alarm state. Packet captures and UART logs are used to map dpIDs to sensor functions. Flashing alternative firmware like OpenBK7231T requires careful UART data capture and understanding of power control, as the WiFi module is not always powered. Autoexec.bat scripts with TuyaMCU and tmSensor drivers are needed to link dpIDs to channels for integration with Home Assistant. Challenges include failed reflashing attempts, MAC address resets, and ensuring proper power supply during UART capture. Some users report success with 9600 baud rate and partial functionality in Home Assistant, including smoke percentage and battery status. The community suggests referencing existing TuyaMCU sensor configurations and adapting autoexec.bat scripts for this device. Overall, the device requires detailed UART analysis and custom firmware configuration to achieve reliable alternative firmware operation and full sensor integration.
Summary generated by the language model.
ADVERTISEMENT