Niestety, sam nie ogarnę, jest szansa aby zrobić z tego termostat w HA?
MCU działa. Sam termostat posiada 4 parametry do konfiguracji z klawiatury:
F1; temperatura zadana zakres od -40 do 99,9 stopnia precyzja 0,1 stopnia
F2: Histereza zakres od 0,3 do 10 stopni precyzja 0,1 stopnia
F3: Opóźnienie chłodzenia zakres od 1 do 10 minut precyzja 1 minuta
F4: korekta temperatury zakres od -10 do +10 stopnia precyzja 0,1
Z logów MCU wynika, że:
kanał 2 to wartość nastawionej temp: parametr F1
kanał 3 aktualna temperatura
kanał 101 histereza parametr F2
kanał 102 opóźnienie chłodzenia parametr F3
kanał 103 korekta temperatury parametr F4
kanał 14 stan przekaźnika grzania byte 1-wyłączony byte 0 -włączony
Nie udało mi się zalogować zadziałania przekaźnika chłodzenia.
Tylko kanał drugi z zadaną temperaturą udało mi się skonfigurować w OBK tak, że widać wartość i mogę ją nastawić, tylko, że bez przecinka czyli 25 stopni to wartość 250.
Fragmenty logów:
Info:TuyaMCU:ParseState: id 2 type 2-val len 4
Info:TuyaMCU:ParseState: int32 184
Info:TuyaMCU:Received: 55 AA 03 07 00 08 02 02 00 04 00 00 00 B7 D0
Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
Info:TuyaMCU:ParseState: id 2 type 2-val len 4
Info:TuyaMCU:ParseState: int32 183
Info:TuyaMCU:Received: 55 AA 03 07 00 08 02 02 00 04 00 00 00 B6 CF
Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
Info:TuyaMCU:ParseState: id 2 type 2-val len 4
Info:TuyaMCU:ParseState: int32 182
Info:TuyaMCU:Received: 55 AA 03 07 00 08 02 02 00 04 00 00 00 B5 CE
Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
Info:TuyaMCU:ParseState: id 2 type 2-val len 4
Info:TuyaMCU:ParseState: int32 181
Info:TuyaMCU:Received: 55 AA 03 07 00 08 02 02 00 04 00 00 00 B4 CD
Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
Info:TuyaMCU:ParseState: id 2 type 2-val len 4
Info:TuyaMCU:ParseState: int32 180
Info:TuyaMCU:Received: 55 AA 03 04 00 00 06
Info:TuyaMCU:ProcessIncoming[v=3]: cmd 4 (WiFiReset) len 7
Info:TuyaMCU:ProcessIncoming: 0x04 replying
Info:TuyaMCU:ParseState: id 101 type 2-val len 4
Info:TuyaMCU:ParseState: int32 13
Info:TuyaMCU:Received: 55 AA 03 07 00 08 65 02 00 04 00 00 00 0C 88
Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
Info:TuyaMCU:ParseState: id 101 type 2-val len 4
Info:TuyaMCU:ParseState: int32 12
Info:TuyaMCU:Received: 55 AA 03 07 00 08 65 02 00 04 00 00 00 03 7F
Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
Info:TuyaMCU:ParseState: id 101 type 2-val len 4
Info:TuyaMCU:ParseState: int32 3
Info:TuyaMCU:Received: 55 AA 03 04 00 00 06
Info:TuyaMCU:ParseState: id 102 type 2-val len 4
Info:TuyaMCU:ParseState: int32 5
Info:TuyaMCU:Received: 55 AA 03 07 00 08 66 02 00 04 00 00 00 06 83
Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
Info:TuyaMCU:ParseState: id 102 type 2-val len 4
Info:TuyaMCU:ParseState: int32 6
Info:TuyaMCU:Received: 55 AA 03 07 00 08 66 02 00 04 00 00 00 07 84
Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
Info:TuyaMCU:ParseState: id 102 type 2-val len 4
Info:TuyaMCU:ParseState: int32 7
Info:TuyaMCU:Received: 55 AA 03 07 00 08 66 02 00 04 00 00 00 0A 87
Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
Info:TuyaMCU:ParseState: id 102 type 2-val len 4
Info:TuyaMCU:ParseState: int32 10
Info:TuyaMCU:Received: 55 AA 03 04 00 00 06
Info:TuyaMCU:ParseState: id 103 type 2-val len 4
Info:TuyaMCU:ParseState: int32 -8
Info:TuyaMCU:Received: 55 AA 03 07 00 08 03 02 00 04 00 00 00 D2 EC
Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
Info:TuyaMCU:ParseState: id 3 type 2-val len 4
Info:TuyaMCU:ParseState: int32 210
Info:TuyaMCU:Received: 55 AA 03 07 00 08 67 02 00 04 FF FF FF F7 72
Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
Info:TuyaMCU:ParseState: id 103 type 2-val len 4
Info:TuyaMCU:ParseState: int32 -9
Info:TuyaMCU:Received: 55 AA 03 07 00 08 03 02 00 04 00 00 00 D0 EA
Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
Info:TuyaMCU:ParseState: id 3 type 2-val len 4
Info:TuyaMCU:ParseState: int32 208
Info:TuyaMCU:Received: 55 AA 03 07 00 08 67 02 00 04 FF FF FF F6 71
Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
Info:TuyaMCU:ParseState: id 103 type 2-val len 4
Info:TuyaMCU:ParseState: int32 -10
Info:TuyaMCU:Received: 55 AA 03 04 00 00 06
Info:TuyaMCU:ProcessIncoming[v=3]: cmd 4 (WiFiReset) len 7
Info:TuyaMCU:ProcessIncoming: 0x04 replying
Info:TuyaMCU:ParseState: id 14 type 4-enum len 1
Info:TuyaMCU:ParseState: byte 1
Info:TuyaMCU:Received: 55 AA 03 07 00 08 03 02 00 04 00 00 00 F3 0D
Info:TuyaMCU:ParseState: id 14 type 4-enum len 1
Info:TuyaMCU:ParseState: byte 1
Info:TuyaMCU:Received: 55 AA 03 04 00 00 06
Info:TuyaMCU:ParseState: id 2 type 2-val len 4
Info:TuyaMCU:ParseState: int32 250
Info:TuyaMCU:Received: 55 AA 03 07 00 08 02 02 00 04 00 00 00 FA 13
Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
Info:TuyaMCU:ParseState: id 2 type 2-val len 4
Info:TuyaMCU:ParseState: int32 250
Info:TuyaMCU:Received: 55 AA 03 07 00 05 0E 04 00 01 00 21
Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 12
Info:TuyaMCU:ParseState: id 14 type 4-enum len 1
Info:TuyaMCU:ParseState: byte 0
MCU cały czas sieje też błędami połączenia:
Info:TuyaMCU:Received: 55 AA 03 04 00 00 06
Info:TuyaMCU:ProcessIncoming[v=3]: cmd 4 (WiFiReset) len 7
Info:TuyaMCU:ProcessIncoming: 0x04 replying
Info:GEN:dhcp=0 ip=192.168.1.80 gate=192.168.1.1 mask=255.255.255.0 mac=1c:90:ff:cd:73:cd
Info:GEN:sta: 1, softap: 0, b/g/n
Info:GEN:sta:rssi=-70,ssid=SALON,bssid=10:fe:ed:76:04:0c,channel=6,cipher_type:Error
Info:TuyaMCU:Received: 55 AA 03 07 00 08 03 02 00 04 00 00 00 DB F5
Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
Info:TuyaMCU:ParseState: id 3 type 2-val len 4
Info:TuyaMCU:ParseState: int32 219
Info:GEN:CHANNEL_Set channel 3 has changed to 219 (flags 0)
Info:TuyaMCU:Received: 55 AA 03 07 00 08 03 02 00 04 00 00 00 DA F4
Info:TuyaMCU:ProcessIncoming[v=3]: cmd 7 (State) len 15
Info:TuyaMCU:ParseState: id 3 type 2-val len 4
Info:TuyaMCU:ParseState: int32 218
Info:GEN:CHANNEL_Set channel 3 has changed to 218 (flags 0)
Info:TuyaMCU:Received: 55 AA 03 04 00 00 06
Info:TuyaMCU:ProcessIncoming[v=3]: cmd 4 (WiFiReset) len 7
Info:TuyaMCU:ProcessIncoming: 0x04 replying
Info:GEN:dhcp=0 ip=192.168.1.80 gate=192.168.1.1 mask=255.255.255.0 mac=1c:90:ff:cd:73:cd
Info:GEN:sta: 1, softap: 0, b/g/n
Info:GEN:sta:rssi=-69,ssid=SALON,bssid=10:fe:ed:76:04:0c,channel=6,cipher_type:Error
Info:TuyaMCU:Received: 55 AA 03 04 00 00 06
Info:TuyaMCU:ProcessIncoming[v=3]: cmd 4 (WiFiReset) len 7
Info:TuyaMCU:ProcessIncoming: 0x04 replying
Info:TuyaMCU:Received: 55 AA 03 04 00 00 06
Info:TuyaMCU:ProcessIncoming[v=3]: cmd 4 (WiFiReset) len 7
Info:TuyaMCU:ProcessIncoming: 0x04 replying
Info:GEN:dhcp=0 ip=192.168.1.80 gate=192.168.1.1 mask=255.255.255.0 mac=1c:90:ff:cd:73:cd
Info:GEN:sta: 1, softap: 0, b/g/n
Info:GEN:sta:rssi=-69,ssid=SALON,bssid=10:fe:ed:76:04:0c,channel=6,cipher_type:Error
Info:TuyaMCU:Received: 55 AA 03 04 00 00 06
Info:TuyaMCU:ProcessIncoming[v=3]: cmd 4 (WiFiReset) len 7
Info:TuyaMCU:ProcessIncoming: 0x04 replying
Czy przyczyną może być nie podłączone EN?
autoexec:
startDriver NTP
ntp_setServer 192.168.1.253
waitFor NTPState 1
ntp_timeZoneOfs 1
startDriver TuyaMCU
startDriver tmSensor
setChannelType 3 temperature_div10
linkTuyaMCUOutputToChannel 3 val 3
SetChannel 2 keywords
SetChannelLabel 2 "Temperatura zadana"
linkTuyaMCUOutputToChannel 2 val 2
GetChannel 2
SetChannel 4 keywords
SetChannelLabel 4 "Histereza"
linkTuyaMCUOutputToChannel 4 val 101
SetChannel 5 keywords
SetChannelLabel 5 "Cooling delay"
linkTuyaMCUOutputToChannel 5 val 102
SetChannel 6 keywords
SetChannelLabel 6 "Korekta temperatury"
linkTuyaMCUOutputToChannel 6 val 103
Czy da się skonfigurować kanały powyżej 100, aby odczytać/ustawić te parametry przez Wi-Fi? Nie jest to konieczne, ale może się da.
Jak skonfigurować kanał 14 by odczytać stan działania przekaźnika grzania?
Jak skonfigurować OBK, aby zgłosił się w HA jako termostat? Może udałoby się nim sterować przez BetterThermostat?