logo elektroda
logo elektroda
X
logo elektroda

[Solved] Dewin RMDT-1PNL 63 Smart Circuit Breaker OpenBK7231 MQTT Setup

lubopetrov 585 66
ADVERTISEMENT
  • #61 21589905
    p.kaczmarek2
    Moderator Smart Home
    Hmm interesting, the other user who requested calibration didn't report that, but again, maybe they used it only for voltage, which is never 0.

    I've added a fix that applies offset only if it's non-zero, it should be available in Release soon (like 15 minutes for Github to build)
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #62 21589988
    lubopetrov
    Level 2  
    I confirm that now everything looks OK. BTW how can I adjust MQTT refresh rate?
  • ADVERTISEMENT
  • #63 21590020
    p.kaczmarek2
    Moderator Smart Home
    For each dpID variable, the variable is resent via MQTT when the value changes. Do you want MQTT to broadcast values more frequently, even if there is no change?
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #64 21590103
    lubopetrov
    Level 2  
    Yes. How can this be done?
  • #65 21590110
    p.kaczmarek2
    Moderator Smart Home
    You can enable flag 2:
    
    Flag 2 - [MQTT] Broadcast self state every N (def: 60) seconds (delay configurable by 'mqtt_broadcastInterval' and 'mqtt_broadcastItemsPerSec' commands)
    

    and to autoexec.bat add set of mqtt_broadcastInterval to lower value, like "mqtt_broadcastInterval 30" - every 30 seconds
    But why do you want it? If there is no change, there is no need to resend.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #66 21590670
    lubopetrov
    Level 2  
    you are rigth. I will leave it as default
  • #67 21590673
    lubopetrov
    Level 2  
    Everything is correct. Delta at idle was fixed. Thank you.

Topic summary

The discussion focuses on integrating the Dewin RMDT-1PNL 63 Smart Circuit Breaker with Home Assistant using the OpenBK7231IN firmware without relying on the Tuya cloud. After flashing the device with OpenBK7231IN_QIO_1.18.102.bin, the user could add the breaker to Home Assistant but initially lacked power consumption data and ON/OFF control. It was identified as a TuyaMCU-based device requiring specific configuration, including enabling flags 46 or 47 and running the TuyaMCU driver with proper dpID mappings in autoexec.bat. Key dpIDs include 1 (total forward energy in kWh with scaling), 6 (Phase A voltage, current, and power in a raw 8-byte format), and 16 (breaker switch toggle). The user was guided to disconnect the programmer and power the device from the grid to obtain valid measurements. Configuration steps involved setting channel types for toggle, voltage, current, and power, and linking TuyaMCU outputs to channels with appropriate scaling and offsets to fine-tune readings. The toggle control was functional on one unit but not on the other due to a damaged board trace, which was resolved after repair. The user also inquired about renaming channels, adjusting measurement precision, refresh rates (suggested via addRepeatingEvent for periodic state queries), and MQTT integration with Home Assistant using HASS discovery. The discussion included troubleshooting logs, dpID data extraction, and firmware backup restoration. The final setup allowed accurate voltage, current, power, and total energy monitoring with toggle control via Home Assistant, fully independent of the Tuya cloud.
Summary generated by the language model.
ADVERTISEMENT