logo elektroda
logo elektroda
X
logo elektroda

Reverse engineering of the unusual protocol of the Tuya FS-05R dimmer based on UART

p.kaczmarek2 4956 30
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #31 21488398
    @GUTEK@
    Level 31  
    I checked, running the tmSensor driver in addition does not change anything. What helps is adding at the end of the script that the command should be sent several times. Although this is not a very elegant solution.
    ...
    refresh:
    // channel 5 is temporary variable, from 0 to 255*3, multiplied also by toggle value
    setChannel 5 $CH2*3*$CH1
    // split into two bytes
    setChannel 3 $CH5/256
    setChannel 4 $CH5%256
    // send the two bytes
    tuyaMcu_sendCmd 0x30 00$CH3$$CH4$
    delay_ms 3
    tuyaMcu_sendCmd 0x30 00$CH3$$CH4$
    delay_ms 3
    tuyaMcu_sendCmd 0x30 00$CH3$$CH4$
    .
  • ADVERTISEMENT

Topic summary

The discussion revolves around reverse engineering the UART communication protocol of the Tuya FS-05R dimmer. Users report issues with dimming functionality when using custom scripts, with some bulbs not responding as expected. Suggestions include updating the OBK firmware, testing different bulbs, and modifying command parameters to achieve desired dimming levels. Users also explore integration with Home Assistant and ESPhome, discussing the need for specific bulb types to ensure compatibility with the dimmer. The conversation highlights the importance of identifying dimmable bulbs and adjusting settings for optimal performance.
Summary generated by the language model.
ADVERTISEMENT