Czy wolisz polską wersję strony elektroda?
Nie, dziękuję Przekieruj mnie tam{
"bt_pin":"24",
"status_led_pin":"26",
"rstcnt":"3",
"nxtalm_t":"5",
"basic_pin_pin":"8",
"bt_lv":"0",
"bz_pin_pin":"7",
"net_t":"180",
"samp_type":"1",
"bz_pin_lv":"1",
"basic_st":"1",
"basic_pin_lv":"1",
"alarm_type":"0",
"samp_sw_pin":"14",
"max_V":"3000",
"min_V":"2600",
"sound_pin":"6",
"samp_sw_lv":"1",
"beep_t":"10",
"status_led_lv":"1",
"samp_pin":"23",
"crc":"66",
"}hfAgw_di{abi":"0",
"id":"null",
"swv":"1.1.6",
"bv":"40.00",
"pv":"2.2",
"lpv":"3.3",
"pk":"key4cngfa3qtqsk7",
"firmk":"key4cngfa3qtqsk7",
"cadv":"05Atls_ca_cnt.1.6",
"s_id":"null",
"dtp":"0",
"sync":"0",
"attr_num":"0",
"mst_tp_0":"0",
"mst_ver_0":"null",
"mst_tp_1":"0",
"mstAtimer_arrer_2":"null",
"mst_tp_3":"0",
"mst_ver_3":"null }3^Awf_start_mdll",
"md":"0",
"random":"0",
"wfb64":"1",
"stat":"0",
"token":"null",
"region":"null",
"reg_key":"null",
"dns_prio":"00Atls_ca_cnt0EAtls_ca_cnt0{abi",
"cdv":"1.0.0",
"dev_swv":"1.1.6",
"mst_ver_1":"null",
"mst_tp_2":"0",
"mst_ver_2":"null",
"type":"obj",
"mode":"ro",
"property":"{range",
"{trigger":"direct",
"max":"100",
"scale":"0",
"step":"1",
"lckey":"Q>eU*F}PIV<Ev4NL",
"h_url":"http",
"h_ip":"52.29.225.195",
"hs_url":"null",
"hs_ip":"null",
"hs_psk":"https",
"hs_psk_ip":"18.185.182.159",
"mqs_url":"null",
"mqs_ip":"null",
"mq_url":"m2.tuyaeu.com",
"mq_ip":"3.66.126.37",
"ai_sp":"null",
"ai_sp_ip":"null",
"mq_psk":"m2.tuyaeu.com",
"mq_psk_ip":"3.66.126.37",
"time_z":"+01",
"s_time_z":"[[1711846800",
"wx_app_id":"null",
"wx_uuid":"null",
"dy_tls_m":"0",
"cloud_cap":"1025",
"psk21_key":"null "
}
{
"vendor": "Tuya",
"bDetailed": "0",
"name": "Full Device Name Here",
"model": "enter short model name here",
"chip": "BK7231N",
"board": "TODO",
"flags": "1024",
"keywords": [
"TODO",
"TODO",
"TODO"
],
"pins": {
"8": "DoorSnsrWSleep;0",
"14": "BAT_Relay;0",
"23": "BAT_ADC;0",
"24": "Btn;0",
"26": "LED_n;0"
},
"command": "",
"image": "https://obrazki.elektroda.pl/YOUR_IMAGE.jpg",
"wiki": "https://www.elektroda.com/rtvforum/topic_YOUR_TOPIC.html"
}
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MQTT:Publishing val 4411 to Wassersensor1/voltage/get retain=0
Info:MQTT:Publishing val 100 to Wassersensor1/battery/get retain=0
Info:DRV:DRV_BATTERY : battery voltage : 4411.828125 and percentage 100.000000%
Info:MAIN:Time 1452, idle 181881/s, free 76200, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1453, idle 172940/s, free 76200, MQTT 1(1), bWifi 1, secondsWithNoPing 2, socks 2/38
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1454, idle 187047/s, free 75752, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1455, idle 187228/s, free 76200, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1456, idle 198670/s, free 76200, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1457, idle 184043/s, free 76200, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1458, idle 371128/s, free 76200, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1459, idle 185887/s, free 76200, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1460, idle 185564/s, free 76200, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38
Info:GEN:dhcp=0 ip=192.168.0.154 gate=192.168.0.1 mask=255.255.255.0 mac=d8:d6:68:2f:f8:65
Info:GEN:sta: 1, softap: 0, b/g/n
Info:GEN:sta:rssi=-62,ssid=WiFiAccessPoint,bssid=50:e6:36:35:f5:b8,channel=1,cipher_type:CCMP
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1461, idle 179800/s, free 76200, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:DRV:DRV_BATTERY : Measure Battery volt en perc
Info:GEN:CHANNEL_Set channel 0 has changed to 1 (flags 0)
Info:MQTT:Channel has changed! Publishing 1 to channel 0
Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
Info:GEN:CHANNEL_Set channel 0 has changed to 0 (flags 0)
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MQTT:Publishing val 4415 to Wassersensor1/voltage/get retain=0
Info:MQTT:Publishing val 100 to Wassersensor1/battery/get retain=0
Info:DRV:DRV_BATTERY : battery voltage : 4415.853515 and percentage 100.000000%
Info:MAIN:Time 1462, idle 184377/s, free 76200, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1463, idle 172631/s, free 76200, MQTT 1(1), bWifi 1, secondsWithNoPing 2, socks 2/38
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1464, idle 182464/s, free 76200, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1465, idle 183808/s, free 76200, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1466, idle 183426/s, free 75968, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1467, idle 184900/s, free 76200, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38
Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTED - 4
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1468, idle 181960/s, free 76200, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1469, idle 187075/s, free 76200, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1470, idle 184156/s, free 67592, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 3/38
Info:GEN:dhcp=0 ip=192.168.0.154 gate=192.168.0.1 mask=255.255.255.0 mac=d8:d6:68:2f:f8:65
Info:GEN:sta: 1, softap: 0, b/g/n
Info:GEN:sta:rssi=-61,ssid=WiFiAccessPoint,bssid=50:e6:36:35:f5:b8,channel=1,cipher_type:CCMP
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1471, idle 178443/s, free 76200, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:DRV:DRV_BATTERY : Measure Battery volt en perc
Info:GEN:CHANNEL_Set channel 0 has changed to 1 (flags 0)
Info:MQTT:Channel has changed! Publishing 1 to channel 0
Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
Info:GEN:CHANNEL_Set channel 0 has changed to 0 (flags 0)
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MQTT:Publishing val 4414 to Wassersensor1/voltage/get retain=0
Info:MQTT:Publishing val 100 to Wassersensor1/battery/get retain=0
Info:DRV:DRV_BATTERY : battery voltage : 4414.511718 and percentage 100.000000%
Info:MAIN:Time 1472, idle 186544/s, free 76200, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1473, idle 168876/s, free 75968, MQTT 1(1), bWifi 1, secondsWithNoPing 2, socks 2/38
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1474, idle 183341/s, free 75984, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 3/38
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1475, idle 186412/s, free 76200, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1476, idle 182125/s, free 75968, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1477, idle 183607/s, free 76200, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1478, idle 189737/s, free 76200, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1479, idle 186442/s, free 76200, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1480, idle 184427/s, free 76200, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38
Info:GEN:dhcp=0 ip=192.168.0.154 gate=192.168.0.1 mask=255.255.255.0 mac=d8:d6:68:2f:f8:65
Info:GEN:sta: 1, softap: 0, b/g/n
Info:GEN:sta:rssi=-69,ssid=WiFiAccessPoint,bssid=50:e6:36:35:f5:b8,channel=1,cipher_type:CCMP
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1481, idle 180483/s, free 76200, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:DRV:DRV_BATTERY : Measure Battery volt en perc
Info:GEN:CHANNEL_Set channel 0 has changed to 1 (flags 0)
Info:MQTT:Channel has changed! Publishing 1 to channel 0
Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
Info:GEN:CHANNEL_Set channel 0 has changed to 0 (flags 0)
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MQTT:Publishing val 4414 to Wassersensor1/voltage/get retain=0
Info:MQTT:Publishing val 100 to Wassersensor1/battery/get retain=0
Info:DRV:DRV_BATTERY : battery voltage : 4414.511718 and percentage 100.000000%
Info:MAIN:Time 1482, idle 191116/s, free 76200, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1483, idle 170041/s, free 76200, MQTT 1(1), bWifi 1, secondsWithNoPing 2, socks 2/38
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1484, idle 184906/s, free 76200, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1485, idle 182845/s, free 75984, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 3/38
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1486, idle 181827/s, free 76200, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1487, idle 186179/s, free 75968, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1488, idle 186793/s, free 76200, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1489, idle 182851/s, free 75984, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 3/38
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1490, idle 189198/s, free 75968, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38
Info:GEN:dhcp=0 ip=192.168.0.154 gate=192.168.0.1 mask=255.255.255.0 mac=d8:d6:68:2f:f8:65
Info:GEN:sta: 1, softap: 0, b/g/n
Info:GEN:sta:rssi=-69,ssid=WiFiAccessPoint,bssid=50:e6:36:35:f5:b8,channel=1,cipher_type:CCMP
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1491, idle 181699/s, free 75968, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:DRV:DRV_BATTERY : Measure Battery volt en perc
Info:GEN:CHANNEL_Set channel 0 has changed to 1 (flags 0)
Info:MQTT:Channel has changed! Publishing 1 to channel 0
Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
Info:GEN:CHANNEL_Set channel 0 has changed to 0 (flags 0)
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MQTT:Publishing val 4414 to Wassersensor1/voltage/get retain=0
Info:MQTT:Publishing val 100 to Wassersensor1/battery/get retain=0
Info:DRV:DRV_BATTERY : battery voltage : 4414.511718 and percentage 100.000000%
Info:MAIN:Time 1492, idle 189835/s, free 76200, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1493, idle 172355/s, free 76200, MQTT 1(1), bWifi 1, secondsWithNoPing 2, socks 2/38
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1494, idle 184820/s, free 76200, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1495, idle 182586/s, free 76200, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1496, idle 186945/s, free 76200, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1497, idle 184404/s, free 76200, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38
Info:MQTT:Channel has changed! Publishing 0 to channel 0
Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
Info:MAIN:Time 1498, idle 186186/s, free 76200, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38 TL;DR: A safe workflow starts with a 2MB backup and the CB3S/BK7231N pin map; as one maintainer put it, "Both flashing and TuyaMCU are using UART1." This FAQ is for DY-SQ400B owners who want OpenBeken deep sleep, MQTT, buzzer, and battery reporting without losing stock firmware first. [#21069433]
Why it matters: The DY-SQ400B can work well on OpenBeken, but deep-sleep wake behavior, DSEdge, battery scaling, and script order decide whether it becomes a reliable leak alarm or an unusable sensor.
| Option | Wake reliability from moisture | Local buzzer/LED behavior | Battery reporting |
|---|---|---|---|
| Stock Tuya firmware | Worked reliably for affected users | Native alarm behavior present | Native cloud/app reporting |
| OpenBeken, basic template only | Can fail or wake only on probe short | Often incomplete until PWM/script tuning | Wrong until Battery_Setup is tuned |
| OpenBeken, final tuned template + autoexec | Reported working with deep sleep, buzzer, MQTT, and timed wake | Works after PWM on pin 7 and script logic | Works after DSTime and Battery_Setup tuning |
Key insight: The DY-SQ400B is not a TuyaMCU device in this thread’s findings. The stable OpenBeken setup came from backup-based pin extraction,
DSEdgetuning, a filesystemautoexec.bat, and a script that clearsDSTimewhile channel 0 stays active.
Battery_Setup produced realistic values around 3382–3403 mV and 73–75%. [#21086071]DSTime 100 6000, where 100 is awake time and 6000 seconds is the auto-wake interval; later users confirmed timed wake works when DSTime is placed first in autoexec.bat. [#21089513]PWM;5, pin 8 as DoorSnsrWSleep_nPup;0, pin 24 as Btn_ScriptOnly;1, and pin 26 as LED;5. [#21095640]DSEdge is the deep-sleep wake edge selector, and you choose it by testing which transition wakes your specific sensor reliably. "DSEdge is a deep-sleep wake setting that selects which GPIO transition wakes the device, and its key characteristic is that different hardware reacts to different edges or both." In this thread, DSEdge 0 fixed one user’s device, while another later reported DSEdge 2 in a working setup. Start with 0, then test 1 and 2 with button fallback enabled. [#21075813]autoexec.bat is the startup script file that OpenBeken runs on boot, and you create it in the Web Application filesystem. "autoexec.bat is a startup script file that stores persistent commands, and its key characteristic is that OpenBeken executes it automatically after boot." 1. Open Launch Web Application. 2. Go to Filesystem → List Filesystem. 3. If autoexec.bat is missing, create it with Create File, then edit it in the file editor on the right. [#21339745]DSEdge values and confirm wake behavior with real moisture, not only metal shorting. [#21859503]DoorSnsrWSleep_nPup, pin 23 as BAT_ADC, and pin 24 as Btn_ScriptOnly. The last posted working JSON used: 7: PWM;5, 8: DoorSnsrWSleep_nPup;0, 14: BAT_Relay;1, 23: BAT_ADC;2, 24: Btn_ScriptOnly;1, 26: LED;5, plus command: DSEdge 0 and flags: 8. That template was shared after the buzzer, button, battery, and wake issues were resolved. [#21095640]setChannel 5 80 placed unconditionally near the top of autoexec.bat; that made the LED and buzzer activate right after boot. Another user also reported that turning Flag 42 off stopped immediate alarm behavior in a later setup. If you want alarm only on water, remove unconditional setChannel lines and trigger PWM from channel changes instead. [#21097688]DoorSnsrWSleep caused unstable behavior, while users reported that the other two door-sensor variants worked better for this water sensor, especially DoorSnsrWSleep_nPup. That variant became the final shared choice on pin 8. The practical rule here is simple: try the _nPup form first on the DY-SQ400B, then test other variants only if wake or state logic is inverted. [#21074406]DSTime whenever the flood state stays active. The maintainer provided a tested approach: use an again: loop, delay_s 1, and if $CH0==1 then DSTime clear. A later working script added the buzzer with addChangeHandler Channel0 == 1 setChannel 5 80, so the siren starts when channel 0 goes high and the countdown keeps getting reset. That creates an effectively continuous alarm until power is exhausted or the leak clears. [#21095640]DSTime command in autoexec.bat, with the second value set to the auto-wake interval in seconds. The maintainer added this so DSTime 100 6000 means 100 seconds awake and 6000 seconds until forced wake. Users later confirmed the feature worked on hardware when placed correctly in the script. For once-daily reporting, use roughly 86400 seconds as the second argument and keep the DoorSensor-based flood wake on channel 0. [#21089513]DSTime to the first line of autoexec.bat. The same user said placing it at the end did not work. On this DY-SQ400B, treat DSTime as an early startup command, ahead of Battery_Setup, loops, and alarm handlers. [#21091186]Battery_Setup empirically against a multimeter and keep Battery_cycle moderate, such as 20 seconds while testing. Early untuned readings were about 4414–4823 mV, which was clearly wrong for a 3V CR123A device. Later working values included Battery_Setup 2900 3700 1.94 and Battery_cycle 20, producing readings around 3382–3403 mV and 73–75%. The shared thread conclusion was that battery reporting is usable only after calibration, not with extractor defaults alone. [#21095369]PWM, put it on a channel such as 5, enable raw PWM controls if needed, then test commands like PWMFrequency 1000 and setChannel 5 50. In this device, setChannel changed duty level and audibly drove the buzzer; one user preferred values around 78–99, describing the sound as a police siren. PWMFrequency had little audible effect on that buzzer. [#21077971]led_enableAll, led_dimmer, and then 100 to the main MQTT state topic. The maintainer identified that as automatic button interaction and advised changing the role to Btn_ScriptOnly. After that change, the device still woke on button press, but it stopped publishing spurious 100 values to the water sensor state topic. [#21086332]