Thanks, I'll try that configuration when I get home. (SetStartValue 0 -1 etc.)
I thought it wouldn't wake up again, but checking the WebApp Log, I found that:
Info:TuyaMCU:TUYAMCU received: 55 AA 00 02 00 00 01
Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=0]: processing command 2 (MCUconf) with 7 bytes
Info:TuyaMCU:TuyaMCU_ProcessIncoming: TUYA_CMD_MCU_CONF, TODO!
Info:TuyaMCU:TUYAMCU received: 55 AA 00 10 00 01 00 10
Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=0]: processing command 16 (Unknown) with 8 bytes
Info:TuyaMCU:TuyaMCU_ProcessIncoming: unhandled type 16
Info:TuyaMCU:TUYAMCU received: 55 AA 00 05 00 05 0E 04 00 01 02 1E
Error: HTTP: HA discovery: No relay, PWM, sensor or power driver running. (autoexec.bat include = startDriver TuyaMCU, startDriver tmSensor)
Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obk8C000000/1/get
Info:MQTT:MQTT in topic obk8C000000/1/get
Info:MQTT:MQTT topic not handled: obk8C000000/1/get
Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obk8C000000/2/get
Info:MQTT:MQTT in topic obk8C000000/2/get
Info:MQTT:MQTT topic not handled: obk8C000000/2/get
Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obk8C000000/10/get
Info:MQTT:MQTT in topic obk8C000000/10/get ...
etc ...
Info:MQTT:channelSet NOT 'set'
Info:MQTT:channelSet NOT 'set'
Info:MQTT:channelSet NOT 'set'
Info:MQTT:channelSet NOT 'set'
Info:MQTT:channelSet NOT 'set'
etc ...
Info:GEN:sta:rssi=-58,ssid=,bssid= ,channel=1,cipher_type:MIXED
Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
Info:MAIN:Time 11, idle 183154/s, free 73224, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38
Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
Info:MAIN:Time 12, idle 188014/s, free 73224, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38
Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
Info:MAIN:Time 13, idle 374592/s, free 73224, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38
Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
Info:TuyaMCU:TUYAMCU received: 55 AA 00 00 00 01 01 01
Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=0]: processing command 0 (Hearbeat) with 8 bytes
Info:MAIN:Time 14, idle 188287/s, free 73224, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38
Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
Otherwise, the complete set is in the WebApk.txt attachment
I have no idea why...
Thank you.
Dodano po 8 [godziny] 45 [minuty]:
>>20475501
I added autoexec.bat:
SetStartValue 1 -1
SetStartValue 2 -1
SetStartValue 10 -1
SetStartValue 11 -1
Info:MAIN:Started TuyaMCU.
Info:MAIN:Started tmSensor.
Info:GEN:Channel 1 type changed to temperature_div10
Info:GEN:Channel 2 type changed to Humidity
Info:GEN:Channel 10 type changed to temperature_div10
Info:GEN:Channel 11 type changed to temperature_div10
Info:GEN:Channel 12 type changed to Humidity
Info:GEN:Channel 13 type changed to Humidity
Info:GEN:Channel 14 type changed to ReadOnly
Info:GEN:Channel 15 type changed to ReadOnly
Info:GEN:Channel 17 type changed to TextField
Info:MAIN:Main_Init_After_Delay done
Info:GEN:Channel 18 type changed to TextField
Info:GEN:Channel 19 type changed to TextField
Info:GEN:Channel 20 type changed to TextField
Info:GEN:Channel 21 type changed to ReadOnly
Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
Info:MQTT:mqtt_connection_cb: Successfully connected
Info:MQTT:mqtt_subscribed to obk8C000000/+/set
Info:MQTT:mqtt_subscribed to obk8C000001/+/set
Info:MQTT:mqtt_subscribed to cmnd/obk8C000000/+
Info:MQTT:mqtt_subscribed to cmnd/obk8C000001/+
Info:MQTT:mqtt_subscribed to obk8C000000/+/get
Info:MAIN:Time 1, idle 271913/s, free 72792, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38
Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
Info:TuyaMCU:TUYAMCU received: 55 AA 00 00 00 01 01 01
Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=0]: processing command 0 (Hearbeat) with 8 bytes
Info:MAIN:Time 2, idle 185851/s, free 72792, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38
Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
Info:TuyaMCU:TUYAMCU received: 55 AA 00 01 00 24 7B 22 70 22 3A 22 71 32 39 65 62 77 73 35 61 64 77 79 65 31 6C 38 22 2C 22 76 22 3A 22 31 2E 30 2E 30 22 7D 50
Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=0]: processing command 1 (QueryProductInformation) with 43 bytes
Info:TuyaMCU:TuyaMCU_ParseQueryProductInformation: received {"p":"q29ebws5adwye1l8","v":"1.0.0"}
Info:MAIN:Time 3, idle 99626/s, free 72888, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38
Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
Info:TuyaMCU:TUYAMCU received: 55 AA 00 02 00 00 01
Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=0]: processing command 2 (MCUconf) with 7 bytes
Info:TuyaMCU:TuyaMCU_ProcessIncoming: TUYA_CMD_MCU_CONF, TODO!
Info:TuyaMCU:TUYAMCU received: 55 AA 00 01 00 24 7B 22 70 22 3A 22 71 32 39 65 62 77 73 35 61 64 77 79 65 31 6C 38 22 2C 22 76 22 3A 22 31 2E 30 2E 30 22 7D 50
Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=0]: processing command 1 (QueryProductInformation) with 43 bytes
Info:TuyaMCU:TuyaMCU_ParseQueryProductInformation: received {"p":"q29ebws5adwye1l8","v":"1.0.0"}
Info:MAIN:Time 4, idle 0/s, free 72888, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38
Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
Info:MAIN:Time 5, idle 0/s, free 72888, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38
Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTING - 1
Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTED - 4
Info:MQTT:Channel has changed! Publishing 2 to channel 14
Info:CFG:####### Flash Save Can't Save Channel 14 as 2 (not enough space in array) #######
Info:MAIN:Time 7, idle 171858/s, free 73208, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38
Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
Info:MAIN:Time 8, idle 171912/s, free 73208, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38
Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
Info:MAIN:Time 9, idle 187904/s, free 73208, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38
Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
Info:TuyaMCU:TUYAMCU received: 55 AA 00 00 00 01 01 01
Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=0]: processing command 0 (Hearbeat) with 8 bytes
Info:MAIN:Time 10, idle 190018/s, free 73208, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38
Info:MAIN:Time 13, idle 370492/s, free 73152, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
Info:MQTT:Publishing val 192.168.10.25 to obk8C000000/ip retain=0
Info:TuyaMCU:TUYAMCU received: 55 AA 00 00 00 01 01 01
Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=0]: processing command 0 (Hearbeat) with 8 bytes
Info:MAIN:Time 14, idle 182290/s, free 73152, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
Info:MQTT:Forced channel publish! Publishing val 25.299999 to 1
Info:MQTT:Publishing val 25.299999 to obk8C000000/1/get retain=0
Info:MAIN:Time 15, idle 185923/s, free 73152, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obk8C000000/1/get
Info:MQTT:MQTT in topic obk8C000000/1/get
Info:MQTT:MQTT topic not handled: obk8C000000/1/get
Info:MQTT:channelSet NOT 'set'
Info:MQTT:Forced channel publish! Publishing val 62 to 2
Info:MQTT:Publishing val 62 to obk8C000000/2/get retain=0
Info:MAIN:Time 16, idle 191549/s, free 73152, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obk8C000000/2/get
Info:MQTT:MQTT in topic obk8C000000/2/get
Info:MQTT:MQTT topic not handled: obk8C000000/2/get
Info:MQTT:channelSet NOT 'set'
Info:MQTT:Forced channel publish! Publishing val 39.000000 to 10
Info:MQTT:Publishing val 39.000000 to obk8C000000/10/get retain=0
Info:MAIN:Time 17, idle 184616/s, free 73152, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obk8C000000/10/get
Info:MQTT:MQTT in topic obk8C000000/10/get
Info:MQTT:MQTT topic not handled: obk8C000000/10/get
Info:MQTT:channelSet NOT 'set'
Info:MQTT:Forced channel publish! Publishing val 0 to 11
Info:MQTT:Publishing val 0 to obk8C000000/11/get retain=0
Info:TuyaMCU:TUYAMCU received: 55 AA 00 00 00 01 01 01
Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=0]: processing command 0 (Hearbeat) with 8 bytes
Info:MAIN:Time 18, idle 183133/s, free 73152, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obk8C000000/11/get
Info:MQTT:MQTT in topic obk8C000000/11/get
Info:MQTT:MQTT topic not handled: obk8C000000/11/get
Info:MQTT:channelSet NOT 'set'
Info:MQTT:Forced channel publish! Publishing val 0 to 12
Info:MQTT:Publishing val 0 to obk8C000000/12/get retain=0
Info:MAIN:Time 19, idle 181494/s, free 73152, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obk8C000000/12/get
Info:MQTT:MQTT in topic obk8C000000/12/get
Info:MQTT:MQTT topic not handled: obk8C000000/12/get
Info:MQTT:channelSet NOT 'set'
Info:MQTT:Forced channel publish! Publishing val 0 to 13
Info:MQTT:Publishing val 0 to obk8C000000/13/get retain=0
Info:MAIN:Time 20, idle 183559/s, free 73152, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38
Info:GEN:dhcp=0 ip=192.168.10.25 gate=192.168.10.1 mask=255.240.0.0 mac=c8:47:8c:00:00:00
Info:GEN:sta: 1, softap: 0, b/g/n
Info:GEN:sta:rssi=-49,ssid=PRAMET,bssid=2c:c8:1b:37:9f:74 ,channel=1,cipher_type:MIXED
Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic obk8C000000/13/get
Info:MQTT:MQTT in topic obk8C000000/13/get
Info:MQTT:MQTT topic not handled: obk8C000000/13/get
Info:MQTT:channelSet NOT 'set'
A_CMD_MCU_CONF, TODO!
Info:TuyaMCU:TUYAMCU received: 55 AA 00 01 00 24 7B 22 70 22 3A 22 71 32 39 65 62 77 73 35 61 64 77 79 65 31 6C 38 22 2C 22 76 22 3A 22 31 2E 30 2E 30 22 7D 50
Info:TuyaMCU:TuyaMCU_ProcessIncoming[ver=0]: processing command 1 (QueryProductInformation) with 43 bytes
Info:TuyaMCU:TuyaMCU_ParseQueryProductInformation: received {"p":"q29ebws5adwye1l8","v":"1.0.0"}
Info:MAIN:Time 4, idle 0/s, free 72888, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38
Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
Info:MAIN:Time 5, idle 0/s, free 72888, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38
Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTING - 1
Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTED - 4
I put the sensor outside the window, where the temperature is about 4.6C. The temperature and humidity do not change. It is the same as measured after restarting TH-002 get = 25.700000. A low temperature alarm beeps outside. No change in data.