logo elektroda
logo elektroda
X
logo elektroda

How to Split Data Points in TuyaMCU Solar Charge Controller?

erdeidominik1999 369 2
ADVERTISEMENT
  • #1 21405288
    erdeidominik1999
    Level 8  
    Hello!
    I have a solar charge controller which works with tuyamcu, my problem is that some info is reported in a single dp, which are separate values, for example: the dp has the following value: 00 77 00 04 00 53, the 1st and 2nd byte is one variable, the 3rd, 4th is another, and the 5th, 6th is another. Is there any way to split this into multiple controls?
  • ADVERTISEMENT
  • #3 21411937
    erdeidominik1999
    Level 8  
    >>21411900
    @p.kaczmarek2
    I found this, but if I'm not wrong it needs 8 bytes, not 6 and the 3, and 6 is not used. I tested it and it is not working.
    I have this controller: https://www.aliexpress.com/item/1005007273343....order_list.order_list_main.35.15d218021q2gwp
    If I can create an autoexec.bat I will share it.

    I created a custom build, where changed the 8 bytes to 6 and the indexes, it works great, can you implement it? The types need to be Voltage_div10, Current_div10, Power_div10. But I think Current_div10 is not exists. Another type that is not exists but it needs is Percent_div10, because the battery percentage is reponter in percent witm 10 multiplier.
ADVERTISEMENT