logo elektroda
logo elektroda
X
logo elektroda

Tuya Water Sensor WiFi DY-SQ400B Flashing, Configuration for OBK Esphome/Tasmota style firmware

io2345 6954 110
ADVERTISEMENT
  • #31 21071764
    io2345
    Level 8  

    How to change the title of the thread to "Tiny floor sitting Tuya Water Sensor WiFi DY-SQ400B with CR123A 3V Battery: Experiences, Usage?"
    There is a pen symbol next to the title, but it seems to be not functional - I can change the title and click "correct", but it just goes back to the original title.
  • ADVERTISEMENT
  • #33 21071794
    io2345
    Level 8  

    I'm not talking of a post, but of the thread's title itself.
  • #34 21071811
    divadiow
    Level 35  
    that edit option gives me topic title editing ability

    Screenshot of an advanced text editor displaying formatting options and sample text regarding a temperature and humidity sensor labeled TH01.
  • #35 21071834
    io2345
    Level 8  

    Not for me. Some seem to have more rights than others

    Screenshot of a text editor in a home automation forum.
  • #36 21072177
    p.kaczmarek2
    Moderator Smart Home
    io2345 wrote:

    Back now. Right, there is a counter on the device's webpage saying "time until deep sleep", but the counter never goes beyond 50 seconds. The red LED of the device gives a short flash every 8-9 seconds.

    Interesting, but wait a moment.
    Can you try this template first?
    Code: JSON
    Log in, to see the code

    With the following template, does the device also give 'pulses'?
    I am trying to check whether the pulses are coming from OBK or from the SOIC chip itself.

    io2345 wrote:

    Also, high water level (simulated with resistor between sensors) does not do anything on the device itself. In the Tuya-version the LED starts to flash and the buzzer will activate as long as the water level is high.

    I can see that the configuration is missing buzzer. It is most likely indicated in JSON by:
    Code: JSON
    Log in, to see the code

    I will update config extractor accordingly.
    https://github.com/openshwprojects/BK7231GUIF...mmit/29c2881a6e32b5f6e90e47fa65a0bc5378a2cc60

    io2345 wrote:

    Voltage reading of the battery is obviously wrong (4,4 Volt instead of 3,3V).

    [/quote]
    Battery driver requires futher configuration:
    https://www.elektroda.com/rtvforum/topic3959103.html
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #37 21072269
    io2345
    Level 8  
    Uff, strange behaviour now. No countdown on web-page, LED lit constantly (so I changed it to LED instead of LED_n). If you press the button it says "Child lock" in the log, no LED feedback. No flashing every 9 seconds, but also no effect when simulating high water level. Probably, because web-page says "0 drivers active, total 36". Surface get's warm (did not before). It publishes MQTT messages to 63 (!) channels...

    Info:MQTT:Publishing val 0 to Wassersensor1/40/get retain=0
    Info:MAIN:Time 69, idle 187007/s, free 75160, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 41 
    Info:MQTT:Publishing val 0 to Wassersensor1/41/get retain=0
    Info:MAIN:Time 70, idle 188935/s, free 75160, 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=6,cipher_type:CCMP
    Info:MQTT:Channel has changed! Publishing 0 to channel 42 
    Info:MQTT:Publishing val 0 to Wassersensor1/42/get retain=0
    Info:MAIN:Time 71, idle 181512/s, free 74928, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 43 
    Info:MQTT:Publishing val 0 to Wassersensor1/43/get retain=0
    Info:MAIN:Time 72, idle 184668/s, free 75160, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 44 
    Info:MQTT:Publishing val 0 to Wassersensor1/44/get retain=0
    Info:MAIN:Time 73, idle 187561/s, free 74928, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 45 
    Info:MQTT:Publishing val 0 to Wassersensor1/45/get retain=0
    Info:MAIN:Time 74, idle 185854/s, free 75160, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 46 
    Info:MQTT:Publishing val 0 to Wassersensor1/46/get retain=0
    Info:MAIN:Time 75, idle 184035/s, free 75160, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 47 
    Info:MQTT:Publishing val 0 to Wassersensor1/47/get retain=0
    Info:MAIN:Time 76, idle 188222/s, free 74928, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 48 
    Info:MQTT:Publishing val 0 to Wassersensor1/48/get retain=0
    Info:MAIN:Time 77, idle 188019/s, free 75160, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 49 
    Info:MQTT:Publishing val 0 to Wassersensor1/49/get retain=0
    Info:MAIN:Time 78, idle 195879/s, free 75160, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:24 Button_OnInitialPressDown
    Info:GEN:Child lock!
    Info:GEN:Child lock!
    Info:GEN:24 key_short_press
    Info:GEN:Child lock!
    Info:MQTT:Channel has changed! Publishing 0 to channel 50 
    Info:MQTT:Publishing val 0 to Wassersensor1/50/get retain=0
    Info:MAIN:Time 79, idle 183750/s, free 74928, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 51 
    Info:MQTT:Publishing val 0 to Wassersensor1/51/get retain=0
    Info:MAIN:Time 80, idle 186694/s, free 75160, 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=-61,ssid=WiFiAccessPoint,bssid=50:e6:36:35:f5:b8,channel=6,cipher_type:CCMP
    Info:GEN:24 Button_OnInitialPressDown
    Info:GEN:Child lock!
    Info:MQTT:Channel has changed! Publishing 0 to channel 52 
    Info:MQTT:Publishing val 0 to Wassersensor1/52/get retain=0
    Info:MAIN:Time 81, idle 186103/s, free 74928, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38 
    Info:GEN:24 Button_OnLongPressHoldStart
    Info:GEN:Child lock!
    Info:GEN:Child lock!
    Info:MQTT:Channel has changed! Publishing 0 to channel 53 
    Info:MQTT:Publishing val 0 to Wassersensor1/53/get retain=0
    Info:MAIN:Time 82, idle 184476/s, free 75160, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 54 
    Info:MQTT:Publishing val 0 to Wassersensor1/54/get retain=0
    Info:MAIN:Time 83, idle 186744/s, free 75160, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38 
    Info:MAIN:Main_Init_Before_Delay
    Info:CFG:####### Boot Count 19 #######
    Warn:CFG:CFG_InitAndLoad: Correct config has been loaded with 20 changes count.
    Error:CMD:no file early.bat err -2
    Info:GEN:PIN_SetupPins pins have been set up.
    Info:MAIN:Main_Init_Before_Delay done
    Info:MAIN:Main_Init_Delay
    Info:MAIN:Main_Init_Delay done
    Info:MAIN:Main_Init_After_Delay
    Info:MAIN:ssid:WiFiAccessPoint key:Passphrase!
    Info:MAIN:Using SSID [WiFiAccessPoint]
    Info:MAIN:Using Pass [Passphrase!]
    Info:MQTT:MQTT_RegisterCallback called for bT Wassersensor1/ subT Wassersensor1/+/set
    Info:MQTT:MQTT_RegisterCallback called for bT bekens_n/ subT bekens_n/+/set
    Info:MQTT:MQTT_RegisterCallback called for bT cmnd/Wassersensor1/ subT cmnd/Wassersensor1/+
    Info:MQTT:MQTT_RegisterCallback called for bT cmnd/bekens_n/ subT cmnd/bekens_n/+
    Info:MQTT:MQTT_RegisterCallback called for bT Wassersensor1/ subT Wassersensor1/+/get
    Info:CMD:LFS_ReadFile: failed to file autoexec.bat
    Info:CMD:CMD_StartScript: failed to get file autoexec.bat
    Info:MAIN:Main_Init_After_Delay done
    Info:MAIN:Time 1, idle 263514/s, free 75880, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 2, idle 184585/s, free 75952, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 3, idle 70085/s, free 73944, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 4, idle 0/s, free 73944, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 5, idle 0/s, free 73944, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTING - 1
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTED - 4
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTED - 4
    Info:MQTT:mqtt_userName mqtt
    mqtt_pass mqtt
    mqtt_clientID Wassersensor1
    mqtt_host 192.168.0.149:1883
    Info:MAIN:Time 6, idle 103697/s, free 75176, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:mqtt_connection_cb: Successfully connected
    Info:MQTT:mqtt_subscribed to Wassersensor1/+/set
    Info:MQTT:mqtt_subscribed to bekens_n/+/set
    Info:MQTT:mqtt_subscribed to cmnd/Wassersensor1/+
    Info:MQTT:mqtt_subscribed to cmnd/bekens_n/+
    Info:MQTT:mqtt_subscribed to Wassersensor1/+/get
    Info:MAIN:Boot complete time reached (5 seconds)
    Info:CFG:####### Set Boot Complete #######
    Info:MQTT:Publishing val obk682FF865 to Wassersensor1/host retain=0
    Info:MAIN:Time 7, idle 277091/s, free 75216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Publishing val Build on Nov 13 2023 14:23:53 version 1.17.308 to Wassersensor1/build retain=0
    Info:MAIN:Time 8, idle 188871/s, free 74936, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Publishing val d8:d6:68:2f:f8:65 to Wassersensor1/mac retain=0
    Info:MAIN:Time 9, idle 186375/s, free 74968, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Publishing val WiFiAccessPoint to Wassersensor1/ssid retain=0
    Info:MAIN:Time 10, idle 186348/s, free 75216, 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=-65,ssid=WiFiAccessPoint,bssid=50:e6:36:35:f5:b8,channel=6,cipher_type:CCMP
    Info:MQTT:Publishing val 2 to Wassersensor1/sockets retain=0
    Info:MAIN:Time 11, idle 184535/s, free 75216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Publishing val -67 to Wassersensor1/rssi retain=0
    Info:MAIN:Time 12, idle 187831/s, free 75216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Publishing val 12 to Wassersensor1/uptime retain=0
    Info:MAIN:Time 13, idle 183700/s, free 74984, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Publishing val 75216 to Wassersensor1/freeheap retain=0
    Info:MAIN:Time 14, idle 188628/s, free 74976, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Publishing val 192.168.0.154 to Wassersensor1/ip retain=0
    Info:MAIN:Time 15, idle 190334/s, free 74976, 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 16, idle 184446/s, free 74984, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 1 
    Info:MQTT:Publishing val 0 to Wassersensor1/1/get retain=0
    Info:MAIN:Time 17, idle 184938/s, free 74984, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 2 
    Info:MQTT:Publishing val 0 to Wassersensor1/2/get retain=0
    Info:MAIN:Time 18, idle 188144/s, free 74984, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 3 
    Info:MQTT:Publishing val 0 to Wassersensor1/3/get retain=0
    Info:MAIN:Time 19, idle 186215/s, free 75216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:24 Button_OnInitialPressDown
    Info:GEN:Child lock!
    Info:MQTT:Channel has changed! Publishing 0 to channel 4 
    Info:MQTT:Publishing val 0 to Wassersensor1/4/get retain=0
    Info:MAIN:Time 20, idle 182417/s, free 66592, 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=-64,ssid=WiFiAccessPoint,bssid=50:e6:36:35:f5:b8,channel=6,cipher_type:CCMP
    Info:GEN:24 Button_OnLongPressHoldStart
    Info:GEN:Child lock!
    Info:MQTT:Channel has changed! Publishing 0 to channel 5 
    Info:MQTT:Publishing val 0 to Wassersensor1/5/get retain=0
    Info:MAIN:Time 21, idle 184162/s, free 63504, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:GEN:Child lock!
    Info:MQTT:Channel has changed! Publishing 0 to channel 6 
    Info:MQTT:Publishing val 0 to Wassersensor1/6/get retain=0
    Info:MAIN:Time 22, idle 185427/s, free 74984, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:24 Button_OnInitialPressDown
    Info:GEN:Child lock!
    Info:GEN:Child lock!
    Info:MQTT:Channel has changed! Publishing 0 to channel 7 
    Info:MQTT:Publishing val 0 to Wassersensor1/7/get retain=0
    Info:MAIN:Time 23, idle 187161/s, free 75216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:24 key_short_press
    Info:GEN:Child lock!
    Info:MQTT:Channel has changed! Publishing 0 to channel 8 
    Info:MQTT:Publishing val 0 to Wassersensor1/8/get retain=0
    Info:MAIN:Time 24, idle 186437/s, free 74984, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 9 
    Info:MQTT:Publishing val 0 to Wassersensor1/9/get retain=0
    Info:MAIN:Time 25, idle 187662/s, free 75216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 10 
    Info:MQTT:Publishing val 0 to Wassersensor1/10/get retain=0
    Info:MAIN:Time 26, idle 196067/s, free 75216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 11 
    Info:MQTT:Publishing val 0 to Wassersensor1/11/get retain=0
    Info:MAIN:Time 27, idle 186066/s, free 74984, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 12 
    Info:MQTT:Publishing val 0 to Wassersensor1/12/get retain=0
    Info:MAIN:Time 28, idle 195219/s, free 75216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 13 
    Info:MQTT:Publishing val 0 to Wassersensor1/13/get retain=0
    Info:MAIN:Time 29, idle 191875/s, free 74984, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 14 
    Info:MQTT:Publishing val 0 to Wassersensor1/14/get retain=0
    Info:MAIN:Time 30, idle 185142/s, free 74984, 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=-58,ssid=WiFiAccessPoint,bssid=50:e6:36:35:f5:b8,channel=6,cipher_type:CCMP
    Info:MQTT:Channel has changed! Publishing 0 to channel 15 
    Info:MQTT:Publishing val 0 to Wassersensor1/15/get retain=0
    Info:MAIN:Time 31, idle 183890/s, free 74984, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 16 
    Info:MQTT:Publishing val 0 to Wassersensor1/16/get retain=0
    Info:MAIN:Time 32, idle 372583/s, free 75216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 17 
    Info:MQTT:Publishing val 0 to Wassersensor1/17/get retain=0
    Info:MAIN:Time 33, idle 185060/s, free 74984, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 18 
    Info:MQTT:Publishing val 0 to Wassersensor1/18/get retain=0
    Info:MAIN:Time 34, idle 190058/s, free 75216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 19 
    Info:MQTT:Publishing val 0 to Wassersensor1/19/get retain=0
    Info:MAIN:Time 35, idle 187390/s, free 75216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 20 
    Info:MQTT:Publishing val 0 to Wassersensor1/20/get retain=0
    Info:MAIN:Time 36, idle 193798/s, free 74984, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 21 
    Info:MQTT:Publishing val 0 to Wassersensor1/21/get retain=0
    Info:MAIN:Time 37, idle 183294/s, free 74984, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 22 
    Info:MQTT:Publishing val 0 to Wassersensor1/22/get retain=0
    Info:MAIN:Time 38, idle 184664/s, free 75216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 23 
    Info:MQTT:Publishing val 0 to Wassersensor1/23/get retain=0
    Info:MAIN:Time 39, idle 184216/s, free 75216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 24 
    Info:MQTT:Publishing val 0 to Wassersensor1/24/get retain=0
    Info:MAIN:Time 40, idle 186136/s, free 75216, 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=-58,ssid=WiFiAccessPoint,bssid=50:e6:36:35:f5:b8,channel=6,cipher_type:CCMP
    Info:MQTT:Channel has changed! Publishing 0 to channel 25 
    Info:MQTT:Publishing val 0 to Wassersensor1/25/get retain=0
    Info:MAIN:Time 41, idle 185528/s, free 75008, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 26 
    Info:MQTT:Publishing val 0 to Wassersensor1/26/get retain=0
    Info:MAIN:Time 42, idle 187979/s, free 74984, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 27 
    Info:MQTT:Publishing val 0 to Wassersensor1/27/get retain=0
    Info:MAIN:Time 43, idle 187367/s, free 74984, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 28 
    Info:MQTT:Publishing val 0 to Wassersensor1/28/get retain=0
    Info:MAIN:Time 44, idle 187311/s, free 75216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 29 
    Info:MQTT:Publishing val 0 to Wassersensor1/29/get retain=0
    Info:MAIN:Time 45, idle 186507/s, free 75216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 30 
    Info:MQTT:Publishing val 0 to Wassersensor1/30/get retain=0
    Info:MAIN:Time 46, idle 183975/s, free 75216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 31 
    Info:MQTT:Publishing val 0 to Wassersensor1/31/get retain=0
    Info:MAIN:Time 47, idle 195684/s, free 75216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 32 
    Info:MQTT:Publishing val 0 to Wassersensor1/32/get retain=0
    Info:MAIN:Time 48, idle 187718/s, free 74984, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 33 
    Info:MQTT:Publishing val 0 to Wassersensor1/33/get retain=0
    Info:MAIN:Time 49, idle 188028/s, free 75216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 34 
    Info:MQTT:Publishing val 0 to Wassersensor1/34/get retain=0
    Info:MAIN:Time 50, idle 188757/s, free 75216, 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=-61,ssid=WiFiAccessPoint,bssid=50:e6:36:35:f5:b8,channel=6,cipher_type:CCMP
    Info:MQTT:Channel has changed! Publishing 0 to channel 35 
    Info:MQTT:Publishing val 0 to Wassersensor1/35/get retain=0
    Info:MAIN:Time 51, idle 182384/s, free 75216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 36 
    Info:MQTT:Publishing val 0 to Wassersensor1/36/get retain=0
    Info:MAIN:Time 52, idle 188238/s, free 75216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 37 
    Info:MQTT:Publishing val 0 to Wassersensor1/37/get retain=0
    Info:MAIN:Time 53, idle 189494/s, free 74984, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 38 
    Info:MQTT:Publishing val 0 to Wassersensor1/38/get retain=0
    Info:MAIN:Time 54, idle 185628/s, free 74984, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 39 
    Info:MQTT:Publishing val 0 to Wassersensor1/39/get retain=0
    Info:MAIN:Time 55, idle 187378/s, free 74984, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 40 
    Info:MQTT:Publishing val 0 to Wassersensor1/40/get retain=0
    Info:MAIN:Time 56, idle 187950/s, free 74984, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 41 
    Info:MQTT:Publishing val 0 to Wassersensor1/41/get retain=0
    Info:MAIN:Time 57, idle 195332/s, free 75216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 42 
    Info:MQTT:Publishing val 0 to Wassersensor1/42/get retain=0
    Info:MAIN:Time 58, idle 184764/s, free 75216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 43 
    Info:MQTT:Publishing val 0 to Wassersensor1/43/get retain=0
    Info:MAIN:Time 59, idle 187831/s, free 63504, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 44 
    Info:MQTT:Publishing val 0 to Wassersensor1/44/get retain=0
    Info:MAIN:Time 60, idle 187619/s, free 75216, 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=6,cipher_type:CCMP
    Info:MQTT:Channel has changed! Publishing 0 to channel 45 
    Info:MQTT:Publishing val 0 to Wassersensor1/45/get retain=0
    Info:MAIN:Time 61, idle 181670/s, free 75216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 46 
    Info:MQTT:Publishing val 0 to Wassersensor1/46/get retain=0
    Info:MAIN:Time 62, idle 182816/s, free 74984, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 47 
    Info:MQTT:Publishing val 0 to Wassersensor1/47/get retain=0
    Info:MAIN:Time 63, idle 186586/s, free 66592, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:GEN:24 Button_OnInitialPressDown
    Info:GEN:Child lock!
    Info:GEN:Child lock!
    Info:MQTT:Channel has changed! Publishing 0 to channel 48 
    Info:MQTT:Publishing val 0 to Wassersensor1/48/get retain=0
    Info:MAIN:Time 64, idle 189703/s, free 75216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:24 key_short_press
    Info:GEN:Child lock!
    Info:MQTT:Channel has changed! Publishing 0 to channel 49 
    Info:MQTT:Publishing val 0 to Wassersensor1/49/get retain=0
    Info:MAIN:Time 65, idle 186017/s, free 75216, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 50 
    Info:MQTT:Publishing val 0 to Wassersensor1/50/get retain=0
    Info:MAIN:Time 66, idle 180384/s, free 75216, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 51 
    Info:MQTT:Publishing val 0 to Wassersensor1/51/get retain=0
    Info:MAIN:Time 67, idle 186317/s, free 75008, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 52 
    Info:MQTT:Publishing val 0 to Wassersensor1/52/get retain=0
    Info:MAIN:Time 68, idle 184805/s, free 74984, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 53 
    Info:MQTT:Publishing val 0 to Wassersensor1/53/get retain=0
    Info:MAIN:Time 69, idle 187115/s, free 75216, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 54 
    Info:MQTT:Publishing val 0 to Wassersensor1/54/get retain=0
    Info:MAIN:Time 70, idle 184425/s, free 74984, 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=-60,ssid=WiFiAccessPoint,bssid=50:e6:36:35:f5:b8,channel=6,cipher_type:CCMP
    Info:MQTT:Channel has changed! Publishing 0 to channel 55 
    Info:MQTT:Publishing val 0 to Wassersensor1/55/get retain=0
    Info:MAIN:Time 71, idle 184036/s, free 74984, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 56 
    Info:MQTT:Publishing val 0 to Wassersensor1/56/get retain=0
    Info:MAIN:Time 72, idle 182913/s, free 75216, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 57 
    Info:MQTT:Publishing val 0 to Wassersensor1/57/get retain=0
    Info:MAIN:Time 73, idle 183953/s, free 74984, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38 
    Info:GEN:24 Button_OnInitialPressDown
    Info:GEN:Child lock!
    Info:GEN:Child lock!
    Info:MQTT:Channel has changed! Publishing 0 to channel 58 
    Info:MQTT:Publishing val 0 to Wassersensor1/58/get retain=0
    Info:MAIN:Time 74, idle 183461/s, free 75216, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38 
    Info:GEN:24 key_short_press
    Info:GEN:Child lock!
    Info:MQTT:Channel has changed! Publishing 0 to channel 59 
    Info:MQTT:Publishing val 0 to Wassersensor1/59/get retain=0
    Info:MAIN:Time 75, idle 189090/s, free 75216, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 60 
    Info:MQTT:Publishing val 0 to Wassersensor1/60/get retain=0
    Info:MAIN:Time 76, idle 188018/s, free 75216, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 61 
    Info:MQTT:Publishing val 0 to Wassersensor1/61/get retain=0
    Info:MAIN:Time 77, idle 186887/s, free 75216, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 62 
    Info:MQTT:Publishing val 0 to Wassersensor1/62/get retain=0
    Info:MAIN:Time 78, idle 185017/s, free 75224, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 63 
    Info:MQTT:Publishing val 0 to Wassersensor1/63/get retain=0
    Info:MAIN:Time 79, idle 189524/s, free 75224, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38 
    Info:MAIN:Time 80, idle 183240/s, free 75224, 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=6,cipher_type:CCMP
    Info:GEN:24 Button_OnInitialPressDown
    Info:GEN:Child lock!
    Info:MAIN:Time 81, idle 184332/s, free 75008, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 3/38 
    Info:GEN:24 Button_OnLongPressHoldStart
    Info:GEN:Child lock!
    Info:GEN:24 Button_OnLongPressHold
    Info:GEN:Child lock!
    Info:GEN:24 Button_OnLongPressHold
    Info:GEN:Child lock!
    Info:MAIN:Time 82, idle 187453/s, free 75224, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38 
    Info:GEN:24 Button_OnLongPressHold
    Info:GEN:Child lock!
    Info:GEN:Child lock!
    Info:MAIN:Time 83, idle 186967/s, free 75224, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38 
    Info:MAIN:Time 84, idle 185541/s, free 75224, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38 
    Info:MAIN:Time 85, idle 191417/s, free 75224, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38 
    Info:MAIN:Time 86, idle 185356/s, free 75224, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38 
    Info:MAIN:Time 87, idle 191510/s, free 75224, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38 
    Info:MAIN:Time 88, idle 195947/s, free 75224, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38 
    Info:MAIN:Time 89, idle 192135/s, free 75224, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38 
    Info:MAIN:Time 90, idle 189760/s, free 75224, 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=-55,ssid=WiFiAccessPoint,bssid=50:e6:36:35:f5:b8,channel=6,cipher_type:CCMP
    Info:MAIN:Time 91, idle 187347/s, free 75224, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38 
    Info:MAIN:Time 92, idle 189975/s, free 75224, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38 
    Info:MAIN:Time 93, idle 185840/s, free 75224, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38 
    Info:MAIN:Time 94, idle 184458/s, free 75224, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38 
    Info:MAIN:Time 95, idle 189791/s, free 75008, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 3/38 
    Info:MAIN:Time 96, idle 189194/s, free 75224, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38 
    Info:MAIN:Time 97, idle 188749/s, free 75224, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38 
    Info:MAIN:Time 98, idle 186317/s, free 75224, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38 
    Info:MAIN:Time 99, idle 194506/s, free 75224, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38 
    Info:MAIN:Time 100, idle 190436/s, free 75224, 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=-66,ssid=WiFiAccessPoint,bssid=50:e6:36:35:f5:b8,channel=6,cipher_type:CCMP
    Info:MAIN:Time 101, idle 186687/s, free 75224, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38 
    Info:MAIN:Time 102, idle 195341/s, free 75224, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38 
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTED - 4
    Info:MAIN:Time 103, idle 187656/s, free 75224, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38 
    Info:MAIN:Time 104, idle 190715/s, free 75224, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38 
    Info:MAIN:Time 105, idle 190768/s, free 75224, MQTT 1(1), bWifi 1, secondsWithNoPing 1, socks 2/38 
    
  • ADVERTISEMENT
  • #38 21072613
    p.kaczmarek2
    Moderator Smart Home
    Something must went wrong with flags. Open your flags menu. Disable childlock flag. Disable "disable autostart of drivers" flag. In general, clean it up.
    Helpful post? Buy me a coffee.
  • #39 21073213
    io2345
    Level 8  
    I never did set or unset anything in flags, so I wonder, how this could happen. You are right, there were some flags set.
    Now, the only flag that is set is number 10.

    It does go to sleep now. But wakes only once or twice, then never again, until you press the button (which actives the LED for half a second as well). Shortly after, the device can be accessed again.
    No LED spikes or pulses when awake.

    The water-sensor isn't working at all. MQTT publishes sometimes value 0, sometimes 1 to "Watersensor1" without me having triggered high water level.

    I didn't understand what to do in order to activate the buzzer. Setting something to Pin7 (?)
    I also didn't understand how to get the battery voltage reading values fixed.

    Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 7, idle 173975/s, free 63296, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MQTT:Publishing val Build on Nov 13 2023 14:23:53 version 1.17.308 to Wassersensor1/build retain=0
    Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 8, idle 186727/s, free 63296, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MQTT:Publishing val d8:d6:68:2f:f8:65 to Wassersensor1/mac retain=0
    Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 9, idle 175548/s, free 74760, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Publishing val WiFiAccessPoint to Wassersensor1/ssid retain=0
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 10, idle 183895/s, free 74992, 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=-58,ssid=WiFiAccessPoint,bssid=50:e6:36:35:f5:b8,channel=1,cipher_type:CCMP
    Info:MQTT:Publishing val 2 to Wassersensor1/sockets retain=0
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 11, idle 173800/s, free 74992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Publishing val -57 to Wassersensor1/rssi retain=0
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:GEN:CHANNEL_Set channel 1 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:MQTT:Publishing val 1 to Wassersensor1/1/get retain=0
    Info:GEN:CHANNEL_Set channel 1 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 1 
    Info:MQTT:Publishing val 0 to Wassersensor1/1/get retain=0
    Info:MQTT:Publishing val 4823 to Wassersensor1/voltage/get retain=0
    Info:MQTT:Publishing val 100 to Wassersensor1/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : 4823.759765 and percentage 100.000000%
    Info:MAIN:Time 12, idle 181961/s, free 63296, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MQTT:Publishing val 12 to Wassersensor1/uptime retain=0
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 13, idle 165060/s, free 74760, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Publishing val 74992 to Wassersensor1/freeheap retain=0
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 14, idle 196525/s, free 74776, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Publishing val 192.168.0.154 to Wassersensor1/ip retain=0
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 15, idle 183779/s, free 74992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 16, idle 179393/s, free 74760, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 0 to channel 1 
    Info:MQTT:Publishing val 0 to Wassersensor1/1/get retain=0
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 17, idle 184507/s, free 74776, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 18, idle 181520/s, free 74992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 19, idle 183401/s, free 74992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 20, idle 183549/s, free 74992, 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=-59,ssid=WiFiAccessPoint,bssid=50:e6:36:35:f5:b8,channel=1,cipher_type:CCMP
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 21, idle 181526/s, free 74992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:GEN:CHANNEL_Set channel 1 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:MQTT:Publishing val 1 to Wassersensor1/1/get retain=0
    Info:GEN:CHANNEL_Set channel 1 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 1 
    Info:MQTT:Publishing val 0 to Wassersensor1/1/get retain=0
    Info:MQTT:Publishing val 4821 to Wassersensor1/voltage/get retain=0
    Info:MQTT:Publishing val 100 to Wassersensor1/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : 4821.076171 and percentage 100.000000%
    Info:MAIN:Time 22, idle 188975/s, free 74992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 23, idle 172381/s, free 74992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 24, idle 181005/s, free 74992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 25, idle 185734/s, free 66384, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 26, idle 183182/s, free 74992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 27, idle 183311/s, free 74992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 28, idle 181931/s, free 74992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 29, idle 185506/s, free 74776, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 30, idle 185959/s, free 74992, 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=-59,ssid=WiFiAccessPoint,bssid=50:e6:36:35:f5:b8,channel=1,cipher_type:CCMP
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 31, idle 182018/s, free 74992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:GEN:CHANNEL_Set channel 1 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:MQTT:Publishing val 1 to Wassersensor1/1/get retain=0
    Info:GEN:CHANNEL_Set channel 1 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 1 
    Info:MQTT:Publishing val 0 to Wassersensor1/1/get retain=0
    Info:MQTT:Publishing val 4819 to Wassersensor1/voltage/get retain=0
    Info:MQTT:Publishing val 100 to Wassersensor1/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : 4819.734375 and percentage 100.000000%
    Info:MAIN:Time 32, idle 183155/s, free 74992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 33, idle 171342/s, free 74992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 34, idle 186887/s, free 74992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTED - 4
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 35, idle 183632/s, free 74992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 36, idle 185260/s, free 74992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 37, idle 185075/s, free 74992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 38, idle 192334/s, free 74992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 39, idle 186465/s, free 74992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 40, idle 195177/s, free 74688, 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=-60,ssid=WiFiAccessPoint,bssid=50:e6:36:35:f5:b8,channel=1,cipher_type:CCMP
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 41, idle 179316/s, free 74992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:GEN:CHANNEL_Set channel 1 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:MQTT:Publishing val 1 to Wassersensor1/1/get retain=0
    Info:GEN:CHANNEL_Set channel 1 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 1 
    Info:MQTT:Publishing val 0 to Wassersensor1/1/get retain=0
    Info:MQTT:Publishing val 4821 to Wassersensor1/voltage/get retain=0
    Info:MQTT:Publishing val 100 to Wassersensor1/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : 4821.076171 and percentage 100.000000%
    Info:MAIN:Time 42, idle 189593/s, free 74992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 43, idle 184658/s, free 74992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 44, idle 181187/s, free 74992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 45, idle 187347/s, free 74760, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 46, idle 190396/s, free 74760, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 47, idle 185975/s, free 66384, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 48, idle 182013/s, free 74992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 49, idle 366003/s, free 74992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 50, idle 187136/s, free 74992, 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=-60,ssid=WiFiAccessPoint,bssid=50:e6:36:35:f5:b8,channel=1,cipher_type:CCMP
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 51, idle 184568/s, free 74760, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:GEN:CHANNEL_Set channel 1 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:MQTT:Publishing val 1 to Wassersensor1/1/get retain=0
    Info:GEN:CHANNEL_Set channel 1 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 1 
    Info:MQTT:Publishing val 0 to Wassersensor1/1/get retain=0
    Info:MQTT:Publishing val 4818 to Wassersensor1/voltage/get retain=0
    Info:MQTT:Publishing val 100 to Wassersensor1/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : 4818.392578 and percentage 100.000000%
    Info:MAIN:Time 52, idle 187242/s, free 74992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 53, idle 174484/s, free 74760, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 54, idle 186842/s, free 74992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 55, idle 180351/s, free 74992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 56, idle 186156/s, free 74992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 57, idle 187011/s, free 74992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 58, idle 184224/s, free 74992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 59, idle 186712/s, free 74760, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 60, idle 187638/s, free 74992, 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=-59,ssid=WiFiAccessPoint,bssid=50:e6:36:35:f5:b8,channel=1,cipher_type:CCMP
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 61, idle 181828/s, free 74992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:GEN:CHANNEL_Set channel 1 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:MQTT:Publishing val 1 to Wassersensor1/1/get retain=0
    Info:GEN:CHANNEL_Set channel 1 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 1 
    Info:MQTT:Publishing val 0 to Wassersensor1/1/get retain=0
    Info:MQTT:Publishing val 4817 to Wassersensor1/voltage/get retain=0
    Info:MQTT:Publishing val 100 to Wassersensor1/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : 4817.050781 and percentage 100.000000%
    Info:MAIN:Time 62, idle 370461/s, free 74992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 63, idle 170879/s, free 74992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 64, idle 187168/s, free 74992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 65, idle 186460/s, free 74992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    EN:PIN_SetupPins pins have been set up.
    Info:MAIN:Main_Init_Before_Delay done
    Info:MAIN:Main_Init_Delay
    Info:GEN:CHANNEL_Set channel 0 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MAIN:Main_Init_Delay done
    Info:MAIN:Main_Init_After_Delay
    Info:MAIN:ssid:WiFiAccessPoint key:Passphrase!
    Info:MAIN:Using SSID [WiFiAccessPoint]
    Info:MAIN:Using Pass [Passphrase!]
    Info:MQTT:MQTT_RegisterCallback called for bT Wassersensor1/ subT Wassersensor1/+/set
    Info:MQTT:MQTT_RegisterCallback called for bT bekens_n/ subT bekens_n/+/set
    Info:MQTT:MQTT_RegisterCallback called for bT cmnd/Wassersensor1/ subT cmnd/Wassersensor1/+
    Info:MQTT:MQTT_RegisterCallback called for bT cmnd/bekens_n/ subT cmnd/bekens_n/+
    Info:MQTT:MQTT_RegisterCallback called for bT Wassersensor1/ subT Wassersensor1/+/get
    Info:CMD:LFS_ReadFile: failed to file autoexec.bat
    Info:CMD:CMD_StartScript: failed to get file autoexec.bat
    Info:MAIN:Main_Init_After_Delay done
    Info:MAIN:Time 1, idle 261932/s, free 75880, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:GEN:CHANNEL_Set channel 1 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:GEN:CHANNEL_Set channel 1 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 1 
    Info:DRV:DRV_BATTERY : battery voltage : 4817.050781 and percentage 100.000000%
    Info:MAIN:Time 2, idle 188982/s, free 75792, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 3, idle 58098/s, free 73784, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 4, idle 0/s, free 73784, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 5, idle 0/s, free 73784, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTING - 1
    Info:MAIN:Time 6, idle 116515/s, free 73264, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Boot complete time reached (5 seconds)
    Info:CFG:####### Set Boot Complete #######
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_DISCONNECTED - 2
    Info:MAIN:Time 7, idle 179312/s, free 75272, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 8, idle 189164/s, free 75272, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 9, idle 186858/s, free 75272, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 10, idle 188766/s, free 75272, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:GEN:dhcp=0 ip=0.0.0.0 gate=0.0.0.0 mask=0.0.0.0 mac=d8:d6:68:2f:f8:65
    Info:GEN:sta: 0, softap: 0, b/g/n
    Info:MAIN:Time 11, idle 187717/s, free 75272, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:DRV:DRV_BATTERY : Measure Battery volt en perc
    Info:GEN:CHANNEL_Set channel 1 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:GEN:CHANNEL_Set channel 1 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 1 
    Info:DRV:DRV_BATTERY : battery voltage : 4823.759765 and percentage 100.000000%
    Info:MAIN:Time 12, idle 189366/s, free 75272, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 13, idle 178594/s, free 75272, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 14, idle 189142/s, free 75272, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 15, idle 183602/s, free 75272, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_AUTH_FAILED - 3
    Info:MAIN:Time 16, idle 182548/s, free 73784, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 17, idle 186585/s, free 73784, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTING - 1
    Info:MAIN:Time 18, idle 181821/s, free 73184, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTED - 4
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTED - 4
    Info:MQTT:mqtt_userName mqtt
    mqtt_pass mqtt
    mqtt_clientID Wassersensor1
    mqtt_host 192.168.0.149:1883
    Info:MAIN:Time 19, idle 169870/s, free 74952, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:mqtt_connection_cb: Successfully connected
    Info:MQTT:mqtt_subscribed to Wassersensor1/+/set
    Info:MQTT:mqtt_subscribed to bekens_n/+/set
    Info:MQTT:mqtt_subscribed to cmnd/Wassersensor1/+
    Info:MQTT:mqtt_subscribed to cmnd/bekens_n/+
    Info:MQTT:mqtt_subscribed to Wassersensor1/+/get
    Info:MQTT:Publishing val obk682FF865 to Wassersensor1/host retain=0
    Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 20, idle 183405/s, free 74992, 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=-58,ssid=WiFiAccessPoint,bssid=50:e6:36:35:f5:b8,channel=1,cipher_type:CCMP
    Info:MQTT:Publishing val Build on Nov 13 2023 14:23:53 version 1.17.308 to Wassersensor1/build retain=0
    Info:MQTT:Publishing val 0 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 21, idle 177374/s, free 66384, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MQTT:Publishing val d8:d6:68:2f:f8:65 to Wassersensor1/mac retain=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 1 has changed to 1 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:MQTT:Publishing val 1 to Wassersensor1/1/get retain=0
    Info:GEN:CHANNEL_Set channel 1 has changed to 0 (flags 0)
    
    Info:MQTT:Channel has changed! Publishing 0 to channel 1 
    Info:MQTT:Publishing val 0 to Wassersensor1/1/get retain=0
    Info:MQTT:Publishing val 4818 to Wassersensor1/voltage/get retain=0
    Info:MQTT:Publishing val 100 to Wassersensor1/battery/get retain=0
    Info:DRV:DRV_BATTERY : battery voltage : 4818.392578 and percentage 100.000000%
    Info:MAIN:Time 22, idle 184359/s, free 74992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Publishing val WiFiAccessPoint to Wassersensor1/ssid retain=0
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 23, idle 167155/s, free 74992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Publishing val 2 to Wassersensor1/sockets retain=0
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 24, idle 181294/s, free 74992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Publishing val -58 to Wassersensor1/rssi retain=0
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 25, idle 182179/s, free 66384, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MQTT:Publishing val 25 to Wassersensor1/uptime retain=0
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 26, idle 179962/s, free 74760, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Publishing val 66384 to Wassersensor1/freeheap retain=0
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 27, idle 182276/s, free 66384, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MQTT:Publishing val 192.168.0.154 to Wassersensor1/ip retain=0
    Info:MQTT:Channel has changed! Publishing 1 to channel 0 
    Info:MQTT:Publishing val 1 to Wassersensor1/0/get retain=0
    Info:MAIN:Time 28, idle 182328/s, free 74992, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    [/spoiler]
  • #40 21074406
    io2345
    Level 8  
    >>21072613
    Found, that both the two other door sensor drivers (pd and Npup) are better. The device wakes up (takes some seconds, of course) and then sends MQTT status "val 1 to Wassersensor1/get".
    With this configuration the LED is lit at the same time:
    {
      "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_nPup;0",
        "14": "BAT_Relay;1",
        "23": "BAT_ADC;1",
        "24": "Btn;1",
        "26": "LED;0"
      },
      "command": "",
      "image": "https://obrazki.elektroda.pl/YOUR_IMAGE.jpg",
      "wiki": "https://www.elektroda.com/rtvforum/topic_YOUR_TOPIC.html"
    }


    No buzzer so far, as I don't know how to activate it.
    If you release sensor connection while device is still counting down, the warning stops, countdown will restart at 59 seconds. If it falls asleep and you simulate high water warning again, it will wake up.

    Problem is, that the countdown timer also runs down to zero, when high water warning is on. So, the warning will go off after one minute. Which is especially bad, as when high water warning is still active when the countdown reaches 0 seconds, the device will fall asleep and cannot be awaken by sensor again, only by pressing the button. So we should avoid deep sleep while high water alarm is active.

    So we have three things on the ToDo-List:

    - Stop deepsleep counter when high-water-alarm is active
    - get Buzzer to work
    - find a way to fix battery voltage value

    The last issue can obviously be solved, I just don't know how to...

    Last thing would be to throw a battery warning when voltage is too low. But this has probably to be done in your home automation software (ioBroker for me). Am I right?
  • #41 21074871
    p.kaczmarek2
    Moderator Smart Home
    io2345 wrote:
    >>21072613
    Found, that both the two other door sensor drivers (pd and Npup) are better. The device wakes up (takes some seconds, of course) and then sends MQTT status "val 1 to Wassersensor1/get".

    io2345 wrote:

    If you release sensor connection while device is still counting down, the warning stops, countdown will restart at 59 seconds. If it falls asleep and you simulate high water warning again, it will wake up.

    There is a known issue when DeepSleep is being interrupted only from transition from high to low (or low to high), but not from the other one. The solution is to configure DSEdge. You may need to experiment with that:
    https://www.elektroda.com/rtvforum/find.php?q=DSEdge

    io2345 wrote:

    Problem is, that the countdown timer also runs down to zero, when high water warning is on. So, the warning will go off after one minute.

    It depends. I would rather say that if the flooding were to persist and device were not to go to sleep with water detected, it would discharge batter in a single day of flood.... maybe it's actually good that it goes to sleep after sounding an alarm. But again, it depends. You can also script it to automatically wake up after time, see:
    BK7231 deep sleep - how to enable wake up both on timer and on GPIO interrupt in OpenBeken?

    io2345 wrote:

    cannot be awaken by sensor again, only by pressing the button

    If you can't wake device by "removing the flooding", then you need to configure DSEdge. There are few options to try. One of them should allow wake up in both ways.




    io2345 wrote:

    - Stop deepsleep counter when high-water-alarm is active

    If you are really sure about it, then I can figure out some command way to affect deep sleep counter when a certain condition is met.

    io2345 wrote:

    - get Buzzer to work

    1. set PWM role for buzzer, assign channel, idk, 5
    2. in obk flags, set "show raw pwm controllers"
    3. play around with PWMFrequency command (must be in autoexec.bat to be run on every boot, you can also execute it at runtime)
    4. play with setChannel 5 10 to adjust the pwm duty
    That way you can check if buzzer is able to generate some simple tones

    io2345 wrote:

    - find a way to fix battery voltage value

    I think we need to check the battery tutorial I linked earlier, it has some parameters to change.
    Helpful post? Buy me a coffee.
  • #42 21075813
    io2345
    Level 8  
    "DSEdge 0" solved the problem with not waking up when going to sleep in the wrong state.
    I did put that in "Config" -> "Change startup command text". Is that the same as "autoexec.bat", or is the later a real file that one has to put somewhere? If yes, I would guess in the device's Web Application under "Filesystem", where it says "drop file(s) or .tar here". Right?

    For my use case, it is actually better to have alarm sound as long as the battery lasts. I want to use the sensors to switch off two power water pumps used for heat pump and domestic water. Those pumps are situated in the cellar. In case of a leakage, they would turn the cellar into a swimming pool in short time. Of course, I will use the sensor alarm output to turn off the smart plug via home automation and send a warning mail. But to be sure, I would rather prefer to have an empty battery than going the risk of missing the water alarm. Told you already, that my battery is a rechargeable type.

    Now, I did set Pin 7 to PWM (remember, you said in post #36: "bz_pin_pin":"7") and it gives some sound to the buzzer when LED is lit. I also did set Flag 3 ("[LED][Debug] Show raw PWM controller on WWW index instead of new LED RGB/CW/etc picker"), but where can I find this raw controller?
    Can you explain me, how to use PWMFrequency command - where and how can that be executed at runtime? What is "setChannel" good for?

    Hinzugefügt nach 8 [Stunden] 52 [Minuten]:

    I think it's finished.
    Template is this:
    Quote:
    {
    "vendor": "Tuya",
    "bDetailed": "0",
    "name": "Full Device Name Here",
    "model": "enter short model name here",
    "chip": "BK7231N",
    "board": "TODO",
    "flags": "1032",
    "keywords": [
    "TODO",
    "TODO",
    "TODO"
    ],
    "pins": {
    "7": "PWM;0",
    "8": "DoorSnsrWSleep_nPup;0",
    "14": "BAT_Relay;1",
    "23": "BAT_ADC;1",
    "24": "Btn;1",
    "26": "LED;0"
    },
    "command": "DSEdge 0",
    "image": "https://obrazki.elektroda.pl/YOUR_IMAGE.jpg",
    "wiki": "https://www.elektroda.com/rtvforum/topic_YOUR_TOPIC.html"
    }


    and autoexec.bat this
    Battery_Setup 2500 3500 1.85 2400 4096
    Battery_cycle 20


    I tried to change the sound of the buzzer with these commands PWMFrequency (which isn't even in the command list) and setChannel, but that didn't change anything, so it's probably not possible to change it (it ain't a loudspeaker anyway, just a little buzzer, so what?)
    So, the only values to put in autoexec.bat are those of the battery config. No idea, if those values make sense or not. But at least they give a reasonable voltage for the battery now. Seems a little strange to set these values: I did put 3500 millivolt as Vmax, but the webpage says 3690 millivolt.
    If anyone has better suggestions for the values to put in Battery_Setup, let me know...
  • #44 21076619
    io2345
    Level 8  

    Yes, FW Dump in reset state. As I was unsure if it might contain personal data, I did send it to p.kaczmarek2 in a private message.
  • ADVERTISEMENT
  • #45 21077854
    p.kaczmarek2
    Moderator Smart Home
    If you have buzzer on a separate channel, let's say 5, you can do:
    
    PWMFrequency 1000
    setChannel 5 50
    

    etc, etc, play around with settings and get different tones
    Helpful post? Buy me a coffee.
  • #46 21077971
    io2345
    Level 8  
    Ah! Now I understand what you meant. The channel is the field behind the Pin-definition. I see. And now does the missing slider appear as well on the web-page! Pretty good.
    Tried some variations, and found all channel-values between 78 and 99 best, sounds like american police siren. Setting different PWMfrequency does not change the sound, so I skipped that. Did put the LED on the same channel as buzzer, so both are active at the same time.

    @divadiow : could you please change the config in github to
    Quote:
    {
    "vendor": "Tuya",
    "bDetailed": "0",
    "name": "Floor sitting Water Leak Flood Sensor Alarm",
    "model": "DY-SQ400B",
    "chip": "BK7231N",
    "board": "CB3S",
    "flags": "1032",
    "keywords": [
    "CR123A",
    "battery",
    "buzzer",
    "detector"

    ],
    "pins": {
    "7": "PWM;5",
    "8": "DoorSnsrWSleep_nPup;0",
    "14": "BAT_Relay;1",
    "23": "BAT_ADC;1",
    "24": "Btn;1",
    "26": "LED;5"
    },
    "command": "DSEdge 0",
    "image": "https://obrazki.elektroda.pl/6240569600_1714757661.jpg",
    "wiki": "https://www.elektroda.com/rtvforum/topic4052199.html"
    }


    Autoexec.bat now contains
    Battery_Setup 2500 3500 1.85 2400 4096
    Battery_cycle 20
    setChannel 5 80


    @p.kaczmarek2 , earlier (posts 41 and 42) we talked about the option, that alarm should not stop as long as alarm condition is triggered. Did you think about that. Not urgent, but would be my favorite ;-)


    If anyone wonders how the alarm can be easily used to switch off an OpenBeken (in my case) smart-plug and send an e-mail in ioBroker, here is my very simple script for that:
    on({ id: 'mqtt.0.Wassersensor1.0.get' /* value */, change: 'ne' }, (obj) => {
      let value = obj.state.val;
      let oldValue = obj.oldState.val;
      if (true) {
        setState('mqtt.0.SmartPlug1.0.set'/*set*/, false);
        sendTo("email", "send", {
           text: 'Domestic water pump ALARM. Check for leakage',
           to: '<your.name@provider.com>',
           subject: 'Alarm Brauchwasserpumpe',
           from: '<your.name@provider.com>'
        });
      }
    });

    Of course, you will have to change data points and mail adress to match your installation.
  • #48 21078870
    io2345
    Level 8  

    >>21074871
    I was thinking about, that the sensor will - while in DeepSleep - never report its battery condition.
    So I'll have to wake up the sensor at least once every day to get a reliable battery condition report. How can I do it?
    Simply put this in autoexec.bat?

    PinDeepSleep 86400

    or will this immediately activate DeepSleep without the 60 seconds countdown?

    ==================
    Another question: Is it possible to transmit MQTT-Values every 10 seconds rather than every second?
  • #50 21079099
    io2345
    Level 8  

    I guess that this is a different function from reading the description:

    "If broadcast self state every 60 seconds/minute is enabled in flags, this value allows you to change the delay, change this 60 seconds to any other value in seconds."

    The mentioned option isn't even enabled in flags on my device.
  • #51 21079129
    p.kaczmarek2
    Moderator Smart Home
    Let's solve issues one by one.
    io2345 wrote:

    @p.kaczmarek2 , earlier (posts 41 and 42) we talked about the option, that alarm should not stop as long as alarm condition is triggered. Did you think about that. Not urgent, but would be my favorite ;-)

    This is not recommended, but we can do it. Still, you will need a latest build for that.
    Public builds system is broken, so get one here:
    https://github.com/openshwprojects/OpenBK7231.../actions/runs/9050207676/artifacts/1494633549

    Once updated, add to your autoexec.bat:
    
    again:
    delay_s 1
    if $CH1==1 then DSTime clear
    goto again
    

    Adjust the code to check the channel where you have your state. As long as state is 1 (change to 0 if needed), it will reset current value of countdown.
    Helpful post? Buy me a coffee.
  • #52 21079227
    io2345
    Level 8  

    Thank you for your support.
    I downloaded the ZIP-File, it contains three different builds for 7231N (QIO, UG and one without additional letters), but none of them says OTA. So they can only be flashed via UART, I guess? But which one do I need?
    I am currently on version 1.17.308
    EDIT: I think I understand - it's the RBL-File for OTA update, right?
    @divadiow: Thank you for confirming!

    I found another misbehavior of the device: When it wakes up (by pressing the hardware button), the alarm starts immediately, even if no high water level is active. No problem now, as alarm will only start in high water condition. But if the device wakes up for one time every day (to report battery condition), there will be false alarm every day. Probably it's only some misconfiguration on my side, but where?
  • #53 21079233
    divadiow
    Level 35  
    io2345 wrote:
    But which one do I need?


    OTA for BK are the .rbl extension files
  • #54 21079267
    p.kaczmarek2
    Moderator Smart Home
    So what is your current autoexec.bat?

    Are you doing:
    
    setChannel 5 80
    

    no matter what?
    Helpful post? Buy me a coffee.
  • #55 21079291
    io2345
    Level 8  

    I'm now on version "1215_merge_0ff7539aaa49"
    Autoexec.bat is:
    
    Battery_Setup 2500 3700 1.85 2400 4096
    Battery_cycle 20
    setChannel 5 80
    again:
    delay_s 1
    if $CH1==1 then DSTime clear
    goto again
    

    Did a restart of the device. Behavior is like before: Countdown from 60 to zero, then device goes to deep sleep

    I tried also
     again:
    delay_s 1
    if $CH0==1 then DSTime clear
    goto again 

    but ended up the same

    config is
     "pins": {
        "7": "PWM;5",
        "8": "DoorSnsrWSleep_nPup;0",
        "14": "BAT_Relay;1",
        "23": "BAT_ADC;1",
        "24": "Btn;1",
        "26": "LED;5"
      },
      "command": "DSEdge 0",

  • #56 21079334
    p.kaczmarek2
    Moderator Smart Home
    DoorSnsrWSleep_nPup is on channel 0.

    I would try:
    
    Battery_Setup 2500 3700 1.85 2400 4096
    Battery_cycle 20
    
    delay_s 2
    // if detected
    if $CH0==1 then setChannel 5 80
    // loop
    again:
    delay_s 1
    if $CH0==1 then DSTime clear
    goto again
    


    BTW: If you think the script is not working, then do one test - with a timer going down, run in console (in web app, at realtime) DSTime clear and let me know if timer is back to start value
    Helpful post? Buy me a coffee.
  • #57 21079536
    io2345
    Level 8  
    You nailed it, now that is working. Infinite alarm as long as battery lasts.
    To stop it, you have to restart the device.

    Also manual wakeup with hardware button now ok, without alarm if sensor isn't triggered.
  • #58 21079552
    p.kaczmarek2
    Moderator Smart Home
    io2345 wrote:

    PinDeepSleep 86400

    This is good question. I think DoorSensor doesn't have it implemented right now, does it?

    Please confirm, I can add it to the DoorSensor driver as an option for you later today or tomorrow. Something like a special DoorSensor command to set "forced wakeup delay".
    Helpful post? Buy me a coffee.
  • #59 21079574
    io2345
    Level 8  

    It might already be implemented?
    I don't know, how can I tell? I think I'll simply wait a couple of days, to see if Battery values change in MQTT.
    Will be on holidays until Friday anyway. So I'll note the values now and check them on Friday.
  • #60 21079586
    p.kaczmarek2
    Moderator Smart Home
    If you are using DoorSensor driver, it will not wakeup automatically on timer. It will only wake up on GPIO event.

    There is indeed a console command for a hybrid wakeup (GPIO + timer), but it is only for manual usage, and by that I mean it's for fully scripted devices, when you script whole behaviour in autoexec.bat instead of using DoorSensor driver.

    Still, I think it's a good idea to add it to our DoorSensor driver as well. Give me a moment and I will ask you for assistance with testing.
    Helpful post? Buy me a coffee.

Topic summary

The discussion centers on the Tuya WiFi Water Sensor DY-SQ400B equipped with a CR123A 3V battery and a CB3S communication board. Initial attempts to identify the device as a TuyaMCU-based module via UART communication failed, revealing no MCU communication on TX1 and unclear signals on TX2. Subsequent analysis confirmed the device uses a BK7231N chip rather than a TuyaMCU. Firmware backup and flashing were performed using the BK7231GUIFlashTool, enabling installation of OpenBeken (OBK) firmware. Configuration involved setting pin roles for sensor input, button, LED, buzzer (PWM on pin 7), and battery monitoring (BAT_Relay and BAT_ADC). The DoorSensor driver was adapted for water detection with deep sleep management to conserve battery life. Users developed autoexec.bat scripts to handle deep sleep wakeup on sensor trigger or button press, battery voltage reporting, and continuous alarm signaling during water detection. Issues addressed included configuring DSEdge to enable wakeup on both signal edges, managing MQTT message intervals, and separating button functions to avoid false alarms. The final working configuration includes scripted channel handlers to activate buzzer and LED alarms on water detection, with manual button wakeup without triggering alarms. The community also discussed firmware update procedures, file system management for autoexec.bat, and integration with home automation via MQTT. The thread concludes with a stable setup for reliable water leak detection, battery monitoring, and alarm signaling using OpenBeken firmware on the DY-SQ400B sensor.
Summary generated by the language model.
ADVERTISEMENT