Czy wolisz polską wersję strony elektroda?
Nie, dziękuję Przekieruj mnie tamdivadiow wrote:I imagine the dpIDs have changed, different schema?
If you have a factory fw dump and it wasn't paired with Tuya first feel free to post file and I'll see if I can get the schema. or DM me file and I'll reset it and check.
yarik8117 wrote:>>21784898
Does your chip temperature also remain at 82 degrees after reflashing? Or is it just me? I haven't been able to start reading data yet. I think the firmware from BK7238 may not be entirely suitable for our T1-2S-NL. What specific firmware did you install?
clearIO
flags 0
SetFlag 46 1
startDriver TuyaMCU
tuyaMcu_setBaudRate 115200
startDriver NTP
ntp_setServer 150.214.94.5
ntp_timeZoneOfs 2
waitFor MQTTState 1
//tuyaMcu_defWiFiState 4
linkTuyaMCUOutputToChannel 1 bool 1
setChannelType 1 toggle
setChannelLabel 1 "Relay"
linkTuyaMCUOutputToChannel 139 bool 2
setChannelType 2 toggle
setChannelLabel 2 "Prepayment"
linkTuyaMCUOutputToChannel 141 bool 3
setChannelType 3 toggle
setChannelLabel 3 "Clr Prepaid Energy"
linkTuyaMCUOutputToChannel 123 val 4
setChannelType 4 EnergyTotal_kWh_div1000
setChannelLabel 4 "Total Energy"
linkTuyaMCUOutputToChannel 18 val 7
setChannelType 7 Current_div1000
setChannelLabel 7 "Current"
linkTuyaMCUOutputToChannel 10 val 6
setChannelType 6 Power_div100
setChannelLabel 6 "Power"
linkTuyaMCUOutputToChannel 20 val 5
setChannelType 5 Voltage_div100
setChannelLabel 5 "Voltage"
linkTuyaMCUOutputToChannel 124 val 8
setChannelType 8 TextField
setChannelLabel 8 "Leakage Current"
linkTuyaMCUOutputToChannel 132 val 9
setChannelType 9 Readonly
setChannelLabel 9 "Alarms"
linkTuyaMCUOutputToChannel 104 val 10
setChannelType 10 TextField
setChannelLabel 10 "Overvoltage limit"
linkTuyaMCUOutputToChannel 140 val 11
setChannelType 11 EnergyTotal_kWh_div100
setChannelLabel 11 "Remaining Prepaid Energy"
linkTuyaMCUOutputToChannel 142 val 12
setChannelType 12 TextField
setChannelLabel 12 "Recharge Prepaid Energy [kWh*100], i.e. 1kWh = 100"
linkTuyaMCUOutputToChannel 121 val 13
setChannelType 13 TextField
setChannelLabel 13 "Leakage threshold"
linkTuyaMCUOutputToChannel 134 val 14
setChannelType 14 PowerFactor_div100
setChannelLabel 14 "Power Factor"
linkTuyaMCUOutputToChannel 133 val 15
setChannelType 15 Frequency_div100
setChannelLabel 15 "Frequency [Hz]"
linkTuyaMCUOutputToChannel 105 val 16
setChannelType 16 TextField
setChannelLabel 16 "Overcurrent limit"
linkTuyaMCUOutputToChannel 106 val 17
setChannelType 17 TextField
setChannelLabel 17 "Power limit"
linkTuyaMCUOutputToChannel 119 val 18
setChannelType 18 TextField
setChannelLabel 18 "Undervoltage limit"
linkTuyaMCUOutputToChannel 125 val 19
setChannelType 19 TextField
setChannelLabel 19 "Refresh interval"
linkTuyaMCUOutputToChannel 126 bool 20
setChannelType 20 toggle
setChannelLabel 20 "Real Time"
linkTuyaMCUOutputToChannel 120 bool 21
setChannelType 21 Toggle
setChannelLabel 21 "Over-limit ctrl"
linkTuyaMCUOutputToChannel 113 bool 22
setChannelType 22 Toggle
setChannelLabel 22 "Clear acc. data"
linkTuyaMCUOutputToChannel 101 val 27
setChannelType 27 TextField
setChannelLabel 27 "Electricity price"
linkTuyaMCUOutputToChannel 102 val 28
setChannelType 28 ReadOnly
setChannelLabel 28 "Total electricity cost"
linkTuyaMCUOutputToChannel 143 val 30
setChannelType 30 TextField
setChannelLabel 30 "Low prepaid energy alarm value"
linkTuyaMCUOutputToChannel 137 val 31
setChannelType 31 TextField
setChannelLabel 31 "Overvolt recov. delay"
// test other Dpid - Ch 0
// linkTuyaMCUOutputToChannel 138 enum 0
// setChannelType 0 TextField
// setChannelLabel 0 "Test DpID 138 Pwr on status"
// NOTE: addRepeatingEvent [RepeatTime] [RepeatCount]
// code below will forever Send query state command every 5 seconds
// addRepeatingEvent 5 -1 tuyaMcu_sendQueryState
// Not needed in this device, since TuyaMCU sends everything when necessary
// we need it just first time to obtain initial status. Some dpIDs not reported without asking
tuyaMcu_sendQueryStatelinkTuyaMCUOutputToChannel 19 val 6
setChannelType 6 Power_div100
setChannelLabel 6 "Power"