logo elektroda
logo elektroda
X
logo elektroda

Tuya LSPA9 smart socket - teardown, OpenBeken flashing guide for CB2S, BL0942

p.kaczmarek2 90537 372
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #331 21374959
    minusync
    Level 9  
    p.kaczmarek2 wrote:
    Is it your first OpenBeken device? Is your network 2.4GHz?


    I suspect problem was "Quick connect to WiFi on reboot"
    Removed that and now it is working
  • ADVERTISEMENT
  • #332 21378604
    Dark Man
    Level 13  
    I already have another socket from this series of clones in which, after some time (a few months) of continuous operation, the current measurement results began to jump even despite recalibration.
    In the case of no actual consumption, they are 0-20W and with a 72W bulb, for example, they are 50-90W.
    CB2S
    BL0937
    capacitors are not swollen
    I did an update to the latest version of the OBK but this did not change anything.

    What could be the cause?
  • #333 21378618
    p.kaczmarek2
    Moderator Smart Home
    Either you have enabled PowerSave 1 which spoils the accuracy of the interrupt counts on BL0937, or the capacitors, however.

    Just recently @DeDaMrAz and I had a similar problem:
    Close-up of an electronic board with a relay and capacitors. .
    User interface displaying data on electrical energy consumption. .
    Helpful post? Buy me a coffee.
  • #334 21378874
    Dark Man
    Level 13  
    I immediately made sure I had Powersave 0 and re-summoned this command but it didn't change anything.
    In my case there are no signs on the capacitors.
  • #335 21378906
    p.kaczmarek2
    Moderator Smart Home
    Dark Man wrote:
    I already have another socket from this series of clones in which, after some time (several months) of continuous operation, the current measurement results started to jump even despite recalibration.
    .
    Did you change the firmware (update) during this period?
    Helpful post? Buy me a coffee.
  • #336 21379536
    Dark Man
    Level 13  
    No. I haven't done anything to it.
    I just noticed that it stopped shutting down - HA used to shut it down when the power consumption was set too low - now the power consumption keeps jumping.
  • #337 21379542
    p.kaczmarek2
    Moderator Smart Home
    Well I rather don't associate the phenomenon of firmware degradation due to the passage of time.... even if something has reset, a recalibration should solve the problem, and you write that it doesn't help. On the other hand, the capacitor problem has been reported many times - also for devices without changing the firmware .

    Do you have an ESR meter?

    I use one like this: The ESR70 capacitance/ESR meter - inside, test, working principle on oscilloscope .

    You could try ordering low ESR capacitors anyway and replacing them, you could also try replacing the WiFi module with another one (if you think by some miracle it's the culprit?). If you want, you can also send the socket to me (to be returned later) and I'll measure the ESR and we'll see what's going on there....
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #338 21417786
    Dark Man
    Level 13  
    In fact, it will cost me more to order better capacitors + shipping than another new $3 socket from China :P

    Now something else.
    I have sockets with current measurement configured with the start command:
    backlog PowerSave 0; startDriver NTP; startDriver BL0937;ntp_setServer 192.168.5.5; SetupEnergyStats 1 60 5; VCPPrecision 0 1 1 2; VCPPublishThreshold 10 0.2 10 0.1; SetStartValue 1 -1; VCPPublishIntervals 15 300

    In spite of setting the last command to send changes every minimum 15 seconds, disregarding (according to the docs) even large changes in measurements ("even if there is a large change") i.e. settings with the "VCPPublishThreshold " command, it still sends them always equally every 3 seconds :/.
    I checked this on 2 sockets with versions "Jan 17 2025 21:35:59 version 1.18.21" and "Mar 25 2024 18:59:44 version 1.17.519".
  • ADVERTISEMENT
  • #339 21484937
    badboy3004
    Level 6  
    Hello,
    I`m new here at the forum.
    I have a problem with this switch:

    Electronic module Power Monitor Switch with AUBESS label.
    Pin 8: LED_n on channel 1
    Pin 23: Btn on channel 1
    Pin 24: TglChanOnTgl on channel 1
    Pin 26: Rel on channel 1

    If I set the Pin24 to TglChanOnTgl than the switch is switching randomly on and off. As you can see at the MQTT messages. But I can´t figerout why it is doing this.

    User interface of an electronic application displaying device status information.

    Active flags are:
    2, 6, 10, 21, 27, 38, 40, 44,
    The BL0942 and Powersave 0 is seted.


    Info:MAIN:Module reboot in 1...
    Info:MAIN:Main_Init_Before_Delay
    Info:CFG:####### Boot Count 21 #######
    Warn:CFG:CFG_InitAndLoad: Correct config has been loaded with 29 changes count.
    Error:CMD:lfs is absent
    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:Using SSID [techniks2]
    Info:MAIN:Using Pass [*******]
    Info:MQTT:MQTT_RegisterCallback called for bT Licht_Eltern/ subT Licht_Eltern/+/set
    Info:MQTT:MQTT_RegisterCallback called for bT bekens_n/ subT bekens_n/+/set
    Info:MQTT:MQTT_RegisterCallback called for bT cmnd/Licht_Eltern/ subT cmnd/Licht_Eltern/+
    Info:MQTT:MQTT_RegisterCallback called for bT cmnd/bekens_n/ subT cmnd/bekens_n/+
    Info:MQTT:MQTT_RegisterCallback called for bT Licht_Eltern/ subT Licht_Eltern/+/get
    Info:CMD:CMD_StartScript: started @startup at the beginning
    Info:EnergyMeter:Read ENERGYMETER status values. sizeof(ENERGY_METERING_DATA)=32
    Info:MAIN:Started BL0942.
    Info:CMD:CMD_PowerSave: will set to 0
    Error:CMD:LFS_ReadFile: lfs is absent
    Info:CMD:CMD_StartScript: failed to get file autoexec.bat
    Info:MAIN:Main_Init_After_Delay done
    Info:MAIN:Time 1, idle 271172/s, free 80088, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
    Info:MAIN:Time 2, idle 189293/s, free 80088, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
    Info:MAIN:Time 3, idle 190208/s, free 80088, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
    Info:MAIN:Time 4, idle 191337/s, free 80088, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
    Info:MAIN:Time 5, idle 188971/s, free 80088, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
    Info:MAIN:Registered for wifi changes
    Info:MAIN:Connecting to SSID [techniks2]
    Info:MAIN:Time 6, idle 180118/s, free 74632, 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:HA discovery is scheduled, but MQTT connection is not present yet
    Info:MAIN:Time 7, idle 181888/s, free 74632, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
    Info:MAIN:Time 8, idle 85483/s, free 74744, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:MQTT:Channel has changed! Publishing 0 to channel 1 
    Info:MAIN:Time 9, idle 0/s, free 74744, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:MQTT:Channel has changed! Publishing 0 to channel 1 
    Info:MAIN:Time 10, idle 0/s, free 74744, 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=38:a5:c9:f4:da:61
    Info:GEN:sta: 0, softap: 0, b/g/n
    Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTING - 1
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTED - 4
    Info:MAIN:Time 11, idle 85003/s, free 75064, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:MQTT:Channel has changed! Publishing 0 to channel 1 
    Info:MAIN:Time 12, idle 187656/s, free 75104, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
    Info:MQTT:mqtt_userName mqttuser
    mqtt_pass ********
    mqtt_clientID Licht_Eltern
    mqtt_host 192.168.0.149:1883
    Info:MAIN:Time 13, idle 191069/s, free 66400, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
    Info:MQTT:mqtt_connection_cb: Successfully connected
    Info:MQTT:mqtt_subscribed to Licht_Eltern/+/set
    Info:MQTT:mqtt_subscribed to bekens_n/+/set
    Info:MQTT:mqtt_subscribed to cmnd/Licht_Eltern/+
    Info:MQTT:mqtt_subscribed to cmnd/bekens_n/+
    Info:MQTT:mqtt_subscribed to Licht_Eltern/+/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/1/get
    Info:MQTT:Publishing val Licht_Eltern to Licht_Eltern/host retain=0
    Info:MAIN:Time 14, idle 176226/s, free 75008, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Will do request HA discovery now.
    Info:HTTP:HASS counts: 2 rels, 0 pwms, 0 inps, 0 excluded
    Info:MQTT:Queued topic=homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_0/config, 1 items in queue
    Info:MQTT:Queued topic=homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_1/config, 2 items in queue
    Info:MQTT:Queued topic=homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_2/config, 3 items in queue
    Info:MQTT:Queued topic=homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_9/config, 4 items in queue
    Info:MQTT:Queued topic=homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_10/config, 5 items in queue
    Info:MQTT:Queued topic=homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_11/config, 6 items in queue
    Info:MQTT:Queued topic=homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_3/config, 7 items in queue
    Info:MQTT:Queued topic=homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_4/config, 8 items in queue
    Info:MQTT:Queued topic=homeassistant/switch/Licht_Eltern_C9F4DA61_relay_1/config, 9 items in queue
    Info:MQTT:Queued topic=homeassistant/sensor/Licht_Eltern_C9F4DA61_temp/config, 10 items in queue
    Info:MQTT:Queued topic=homeassistant/sensor/Licht_Eltern_C9F4DA61_rssi/config, 11 items in queue
    Info:MQTT:Queued topic=homeassistant/sensor/Licht_Eltern_C9F4DA61_uptime/config, 12 items in queue
    Info:MQTT:Queued topic=homeassistant/sensor/Licht_Eltern_C9F4DA61_build/config, 13 items in queue
    Info:MQTT:Queued topic=homeassistant/sensor/Licht_Eltern_C9F4DA61_ssid/config, 14 items in queue
    Info:MQTT:Queued topic=homeassistant/sensor/Licht_Eltern_C9F4DA61_ip/config, 15 items in queue
    Info:MQTT:Publishing val OpenBK7231N 1.18.62 Mar 17 2025 07:41:02 to Licht_Eltern/build retain=0
    Info:MAIN:Time 15, idle 152952/s, free 44736, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 4/38 
    Info:MQTT:Publishing val 38:a5:c9:f4:da:61 to Licht_Eltern/mac retain=0
    Info:MAIN:Time 16, idle 188466/s, free 53560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Publishing val (329 bytes) to homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_0/config retain=1
    Info:MQTT:Publishing val (329 bytes) to homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_1/config retain=1
    Info:MQTT:Publishing val (323 bytes) to homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_2/config retain=1
    Info:MAIN:Time 17, idle 187707/s, free 53344, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MQTT:Publishing val 57.31 to Licht_Eltern/temp retain=0
    Info:MAIN:Time 18, idle 185014/s, free 53328, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Publishing val techniks2 to Licht_Eltern/ssid retain=0
    Info:MQTT:Publishing val 232.2 to Licht_Eltern/voltage/get retain=0
    Info:MQTT:Publishing val 1.00 to Licht_Eltern/power_factor/get retain=0
    Info:MQTT:Publishing val 0.006 to Licht_Eltern/energycounter/get retain=0
    Info:MQTT:Publishing val 0.001 to Licht_Eltern/energycounter_today/get retain=0
    Info:MQTT:Publishing val 0.004 to Licht_Eltern/energycounter_yesterday/get retain=0
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/voltage/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/power_factor/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/energycounter/get
    Info:MAIN:Time 19, idle 213369/s, free 41864, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/energycounter_today/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/energycounter_yesterday/get
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:MQTT:Publishing val 1 to Licht_Eltern/1/get retain=1
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/1/get
    Info:MQTT:Channel has changed! Publishing 0 to channel 1 
    Info:MQTT:Publishing val 0 to Licht_Eltern/1/get retain=1
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/1/get
    Info:MQTT:Publishing val 2 to Licht_Eltern/sockets retain=0
    Info:MAIN:Time 20, idle 131245/s, free 53560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:dhcp=0 ip=192.168.0.125 gate=192.168.0.1 mask=255.255.255.0 mac=38:a5:c9:f4:da:61
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-56,ssid=techniks2,bssid=48:5d:35:c9:27:d6,channel=5,cipher_type:CCMP
    Info:MQTT:Publishing val -55 to Licht_Eltern/rssi retain=0
    Info:MAIN:Time 21, idle 183720/s, free 53344, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MQTT:Publishing val 21 to Licht_Eltern/uptime retain=0
    Info:MAIN:Time 22, idle 380318/s, free 53560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Publishing val 53344 to Licht_Eltern/freeheap retain=0
    Info:MAIN:Time 23, idle 189719/s, free 53344, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MQTT:Publishing val 192.168.0.125 to Licht_Eltern/ip retain=0
    Info:MAIN:Time 24, idle 186690/s, free 53560, 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 Licht_Eltern/1/get retain=1
    Info:MAIN:Time 25, idle 187804/s, free 53344, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/1/get
    Info:MAIN:Time 26, idle 184396/s, free 53560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Publishing val (351 bytes) to homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_9/config retain=1
    Info:MQTT:Publishing val (353 bytes) to homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_10/config retain=1
    Info:MQTT:Publishing val (326 bytes) to homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_11/config retain=1
    Info:MAIN:Time 27, idle 187336/s, free 53344, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:MQTT:Publishing val 1 to Licht_Eltern/1/get retain=1
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/1/get
    Info:MQTT:Channel has changed! Publishing 0 to channel 1 
    Info:MQTT:Publishing val 0 to Licht_Eltern/1/get retain=1
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/1/get
    Info:MQTT:Publishing val (346 bytes) to homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_3/config retain=1
    Info:MQTT:Publishing val (360 bytes) to homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_4/config retain=1
    Info:MQTT:Publishing val (318 bytes) to homeassistant/switch/Licht_Eltern_C9F4DA61_relay_1/config retain=1
    Info:MAIN:Time 28, idle 181213/s, free 53256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Publishing val (382 bytes) to homeassistant/sensor/Licht_Eltern_C9F4DA61_temp/config retain=1
    Info:MQTT:Publishing val (379 bytes) to homeassistant/sensor/Licht_Eltern_C9F4DA61_rssi/config retain=1
    Info:MQTT:Publishing val (381 bytes) to homeassistant/sensor/Licht_Eltern_C9F4DA61_uptime/config retain=1
    Info:MAIN:Time 29, idle 185917/s, free 52696, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MQTT:Publishing val (308 bytes) to homeassistant/sensor/Licht_Eltern_C9F4DA61_build/config retain=1
    Info:MQTT:Publishing val (339 bytes) to homeassistant/sensor/Licht_Eltern_C9F4DA61_ssid/config retain=1
    Info:MQTT:Publishing val (323 bytes) to homeassistant/sensor/Licht_Eltern_C9F4DA61_ip/config retain=1
    Info:MAIN:Time 30, idle 181739/s, free 53560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:dhcp=0 ip=192.168.0.125 gate=192.168.0.1 mask=255.255.255.0 mac=38:a5:c9:f4:da:61
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-55,ssid=techniks2,bssid=48:5d:35:c9:27:d6,channel=5,cipher_type:CCMP
    Info:MQTT:Channel has changed! Publishing 0 to channel 1 
    Info:MQTT:Publishing val 0 to Licht_Eltern/1/get retain=1
    Info:MAIN:Time 31, idle 181063/s, free 53344, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/1/get
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:MQTT:Publishing val 1 to Licht_Eltern/1/get retain=1
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/1/get
    Info:MQTT:Channel has changed! Publishing 0 to channel 1 
    Info:MQTT:Publishing val 0 to Licht_Eltern/1/get retain=1
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/1/get
    Info:MAIN:Time 32, idle 179370/s, free 41864, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MAIN:Time 33, idle 187524/s, free 53344, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MAIN:Time 34, idle 191061/s, free 53560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 35, idle 194179/s, free 53256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 36, idle 190443/s, free 53560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:MQTT:Publishing val 1 to Licht_Eltern/1/get retain=1
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/1/get
    Info:MQTT:Channel has changed! Publishing 0 to channel 1 
    Info:MQTT:Publishing val 0 to Licht_Eltern/1/get retain=1
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/1/get
    Info:MAIN:Time 37, idle 185330/s, free 53256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:MQTT:Publishing val 1 to Licht_Eltern/1/get retain=1
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/1/get
    Info:MQTT:Channel has changed! Publishing 0 to channel 1 
    Info:MQTT:Publishing val 0 to Licht_Eltern/1/get retain=1
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/1/get
    Info:MAIN:Time 38, idle 187703/s, free 53560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 39, idle 189023/s, free 53344, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MAIN:Time 40, idle 193458/s, free 53560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:dhcp=0 ip=192.168.0.125 gate=192.168.0.1 mask=255.255.255.0 mac=38:a5:c9:f4:da:61
    Info:GEN:sta: 1, softap: 0, b/g/mg]<br/> <a target=n
    Info:GEN:sta:rssi=-56,ssid=techniks2,bssid=48:5d:35:c9:27:d6,channel=5,cipher_type:CCMP
    Info:MQTT:Publishing val 232.4 to Licht_Eltern/voltage/get retain=0
    Info:MAIN:Time 41, idle 184869/s, free 53344, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/voltage/get
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:MQTT:Publishing val 1 to Licht_Eltern/1/get retain=1
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/1/get
    Info:MQTT:Channel has changed! Publishing 0 to channel 1 
    Info:MQTT:Publishing val 0 to Licht_Eltern/1/get retain=1
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/1/get
    Info:MAIN:Time 42, idle 183291/s, free 53560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:MQTT:Publishing val 1 to Licht_Eltern/1/get retain=1
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/1/get
    Info:MQTT:Channel has changed! Publishing 0 to channel 1 
    Info:MQTT:Publishing val 0 to Licht_Eltern/1/get retain=1
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/1/get
    Info:MAIN:Time 43, idle 185286/s, free 53344, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MAIN:Time 44, idle 187610/s, free 53560, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Time 45, idle 187723/s, free 53256, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38


    Can some one help me with the investigation?
    Thanks in advance.
  • #340 21487246
    badboy3004
    Level 6  
    I have one problem more.

    The switches are switching off randomly by them self.
    The latest OTA is installed. 1.18.62. They are not rebooting. Just switch off the switch. In the logs I can´t see what trigger this behave.

    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Publishing val 0.009 to Licht_Eltern/current/get retain=0
    Info:MQTT:Publishing val 0.66 to Licht_Eltern/power/get retain=0
    Info:MQTT:Publishing val 2.15 to Licht_Eltern/power_apparent/get retain=0
    Info:MQTT:Publishing val 2.04 to Licht_Eltern/power_reactive/get retain=0
    Info:MAIN:Time 47930, idle 195065/s, free 41656, MQTT 1(1), bWifi 1, secondsWithNoPing 47860, socks 3/38 
    Info:GEN:dhcp=0 ip=192.168.0.125 gate=192.168.0.1 mask=255.255.255.0 mac=38:a5:c9:f4:da:61
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-65,ssid=techniks2,bssid=48:5d:35:c9:27:d6,channel=13,cipher_type:CCMP
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/current/get
    Debug:MQTT:channelSet topic 4218084 with arg 0.009
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/power/get
    Debug:MQTT:channelSet topic 4218084 with arg 0.66
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/power_apparent/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/power_reactive/get
    Debug:MQTT:channelSet topic 4218084 with arg 2.15
    Debug:MQTT:channelSet topic 4218084 with arg 2.04
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MAIN:Time 47931, idle 176155/s, free 51776, MQTT 1(1), bWifi 1, secondsWithNoPing 47861, socks 2/38 
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MAIN:Time 47932, idle 188853/s, free 53592, MQTT 1(1), bWifi 1, secondsWithNoPing 47862, socks 2/38 
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Publishing val 234.5 to Licht_Eltern/voltage/get retain=0
    Info:MAIN:Time 47933, idle 192097/s, free 53352, MQTT 1(1), bWifi 1, secondsWithNoPing 47863, socks 2/38 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/voltage/get
    Debug:MQTT:channelSet topic 4218084 with arg 234.5
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Publishing val 0.33 to Licht_Eltern/power_factor/get retain=0
    Info:MAIN:Time 47934, idle 191280/s, free 51160, MQTT 1(1), bWifi 1, secondsWithNoPing 47864, socks 2/38 
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/power_factor/get
    Debug:MQTT:channelSet topic 4218084 with arg 0.33
    Info:GEN:23 Button_OnLongPressHold
    Info:MAIN:Time 47935, idle 195371/s, free 41896, MQTT 1(1), bWifi 1, secondsWithNoPing 47865, socks 3/38 
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Publishing val 0.019 to Licht_Eltern/current/get retain=0
    Info:MQTT:Publishing val 1.57 to Licht_Eltern/power/get retain=0
    Info:MQTT:Publishing val 4.50 to Licht_Eltern/power_apparent/get retain=0
    Info:MQTT:Publishing val 4.21 to Licht_Eltern/power_reactive/get retain=0
    Info:MAIN:Time 47936, idle 193487/s, free 53352, MQTT 1(1), bWifi 1, secondsWithNoPing 47866, socks 2/38 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/current/get
    Debug:MQTT:channelSet topic 4218084 with arg 0.019
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/power/get
    Debug:MQTT:channelSet topic 4218084 with arg 1.57
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/power_apparent/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/power_reactive/get
    Debug:MQTT:channelSet topic 4218084 with arg 4.50
    Debug:MQTT:channelSet topic 4218084 with arg 4.21
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MAIN:Time 47937, idle 193035/s, free 53592, MQTT 1(1), bWifi 1, secondsWithNoPing 47867, socks 2/38 
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MAIN:Time 47938, idle 188681/s, free 53592, MQTT 1(1), bWifi 1, secondsWithNoPing 47868, socks 2/38 
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Publishing val 234.9 to Licht_Eltern/voltage/get retain=0
    Info:MAIN:Time 47939, idle 195647/s, free 41896, MQTT 1(1), bWifi 1, secondsWithNoPing 47869, socks 3/38 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/voltage/get
    Debug:MQTT:channelSet topic 4218084 with arg 234.9
    Info:GEN:23 Button_OnLongPressHold
    Info:MAIN:Time 47940, idle 187195/s, free 53592, MQTT 1(1), bWifi 1, secondsWithNoPing 47870, socks 2/38 
    Info:GEN:dhcp=0 ip=192.168.0.125 gate=192.168.0.1 mask=255.255.255.0 mac=38:a5:c9:f4:da:61
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-65,ssid=techniks2,bssid=48:5d:35:c9:27:d6,channel=13,cipher_type:CCMP
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Publishing val Licht_Eltern to Licht_Eltern/host retain=0
    Info:MAIN:Time 47941, idle 184495/s, free 53592, MQTT 1(1), bWifi 1, secondsWithNoPing 47871, socks 2/38 
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Publishing val OpenBK7231N 1.18.62 Mar 17 2025 07:41:02 to Licht_Eltern/build retain=0
    Info:MQTT:Publishing val 0.009 to Licht_Eltern/current/get retain=0
    Info:MQTT:Publishing val 0.67 to Licht_Eltern/power/get retain=0
    Info:MQTT:Publishing val 2.15 to Licht_Eltern/power_apparent/get retain=0
    Info:MQTT:Publishing val 2.04 to Licht_Eltern/power_reactive/get retain=0
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/current/get
    Info:MAIN:Time 47942, idle 189800/s, free 53592, MQTT 1(1), bWifi 1, secondsWithNoPing 47872, socks 2/38 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/power/get
    Debug:MQTT:channelSet topic 4218084 with arg 0.009
    Debug:MQTT:channelSet topic 4218084 with arg 0.67
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/power_apparent/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/power_reactive/get
    Debug:MQTT:channelSet topic 4218084 with arg 2.15
    Debug:MQTT:channelSet topic 4218084 with arg 2.04
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Publishing val 38:a5:c9:f4:da:61 to Licht_Eltern/mac retain=0
    Info:MAIN:Time 47943, idle 179646/s, free 41896, MQTT 1(1), bWifi 1, secondsWithNoPing 47873, socks 3/38 
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Publishing val 60.51 to Licht_Eltern/temp retain=0
    Info:MAIN:Time 47944, idle 188987/s, free 53592, MQTT 1(1), bWifi 1, secondsWithNoPing 47874, socks 2/38 
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Publishing val techniks2 to Licht_Eltern/ssid retain=0
    Info:MQTT:Publishing val 234.4 to Licht_Eltern/voltage/get retain=0
    Info:MAIN:Time 47945, idle 191336/s, free 53352, MQTT 1(1), bWifi 1, secondsWithNoPing 47875, socks 2/38 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/voltage/get
    Debug:MQTT:channelSet topic 4218084 with arg 234.4
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Publishing val 2 to Licht_Eltern/sockets retain=0
    Info:MAIN:Time 47946, idle 194917/s, free 53592, MQTT 1(1), bWifi 1, secondsWithNoPing 47876, socks 2/38 
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Publishing val -64 to Licht_Eltern/rssi retain=0
    Info:MQTT:Publishing val 0.000 to Licht_Eltern/energycounter_last_hour/get retain=0
    Info:MQTT:Publishing val 0.000 to Licht_Eltern/energycounter_2_days_ago/get retain=0
    Info:MQTT:Publishing val 0.000 to Licht_Eltern/energycounter_3_days_ago/get retain=0
    Info:MAIN:Time 47947, idle 189274/s, free 41896, MQTT 1(1), bWifi 1, secondsWithNoPing 47877, socks 3/38 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/energycounter_last_hour/get
    Debug:MQTT:channelSet topic 4218084 with arg 0.000
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/energycounter_2_days_ago/get
    Debug:MQTT:channelSet topic 4218084 with arg 0.000
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/energycounter_3_days_ago/get
    Debug:MQTT:channelSet topic 4218084 with arg 0.000
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Publishing val 47947 to Licht_Eltern/uptime retain=0
    Info:MAIN:Time 47948, idle 177152/s, free 53592, MQTT 1(1), bWifi 1, secondsWithNoPing 47878, socks 2/38 
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Publishing val 53592 to Licht_Eltern/freeheap retain=0
    Info:MAIN:Time 47949, idle 191630/s, free 53352, MQTT 1(1), bWifi 1, secondsWithNoPing 47879, socks 2/38 
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Publishing val 192.168.0.125 to Licht_Eltern/ip retain=0
    Info:MAIN:Time 47950, idle 186496/s, free 53592, MQTT 1(1), bWifi 1, secondsWithNoPing 47880, socks 2/38 
    Info:GEN:dhcp=0 ip=192.168.0.125 gate=192.168.0.1 mask=255.255.255.0 mac=38:a5:c9:f4:da:61
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-65,ssid=techniks2,bssid=48:5d:35:c9:27:d6,channel=13,cipher_type:CCMP
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    [b]Info:MQTT:Channel has changed! Publishing 0 to channel 1 [/b]
    Info:MQTT:Publishing val 0 to Licht_Eltern/1/get retain=1
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/1/get
    Info:MAIN:Time 47951, idle 188853/s, free 53384, MQTT 1(1), bWifi 1, secondsWithNoPing 47881, socks 2/38 
    Debug:MQTT:channelSet topic 4218084 with arg 0
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Publishing val 232.9 to Licht_Eltern/voltage/get retain=0
    Info:MAIN:Time 47952, idle 181057/s, free 53592, MQTT 1(1), bWifi 1, secondsWithNoPing 47882, socks 2/38 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/voltage/get
    Debug:MQTT:channelSet topic 4218084 with arg 232.9
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Publishing val 2025-03-18T09:23-00:00 to Licht_Eltern/energycounter_clear_date/get retain=0
    Info:MAIN:Time 47953, idle 186640/s, free 53592, MQTT 1(1), bWifi 1, secondsWithNoPing 47883, socks 2/38 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/energycounter_clear_date/get
    Debug:MQTT:channelSet topic 4218084 with arg 2025-03-18T09:23-00:00
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MAIN:Time 47954, idle 186020/s, free 53592, MQTT 1(1), bWifi 1, secondsWithNoPing 47884, socks 2/38 
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MAIN:Time 47955, idle 192321/s, free 53592, MQTT 1(1), bWifi 1, secondsWithNoPing 47885, socks 2/38 
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MAIN:Time 47956, idle 191137/s, free 53592, MQTT 1(1), bWifi 1, secondsWithNoPing 47886, socks 2/38 
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MAIN:Time 47957, idle 193728/s, free 41896, MQTT 1(1), bWifi 1, secondsWithNoPing 47887, socks 3/38 
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Publishing val 234.3 to Licht_Eltern/voltage/get retain=0
    Info:MQTT:Publishing val 0.016 to Licht_Eltern/current/get retain=0
    Info:MQTT:Publishing val 1.29 to Licht_Eltern/power/get retain=0
    Info:MQTT:Publishing val 3.97 to Licht_Eltern/power_apparent/get retain=0
    Info:MQTT:Publishing val 3.75 to Licht_Eltern/power_reactive/get retain=0
    Info:MAIN:Time 47958, idle 193445/s, free 53592, MQTT 1(1), bWifi 1, secondsWithNoPing 47888, socks 2/38 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/voltage/get
    Debug:MQTT:channelSet topic 4218084 with arg 234.3
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/current/get
    Debug:MQTT:channelSet topic 4218084 with arg 0.016
    [b]Info:GEN:24 Button_OnInitialPressDown
    Info:GEN:CHANNEL_Set channel 1 has changed to 1 (flags 0)[/b]
    
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:MQTT:Publishing val 1 to Licht_Eltern/1/get retain=1
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/power/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/power_apparent/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/power_reactive/get
    Debug:MQTT:channelSet topic 4218084 with arg 1.29
    Debug:MQTT:channelSet topic 4218084 with arg 3.97
    Debug:MQTT:channelSet topic 4218084 with arg 3.75
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/1/get
    Debug:MQTT:channelSet topic 4218084 with arg 1
    Info:GEN:24 key_short_press
    Info:GEN:23 Button_OnLongPressHold
    Info:MAIN:Time 47959, idle 167723/s, free 53592, MQTT 1(1), bWifi 1, secondsWithNoPing 47889, socks 2/38 
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Publishing val 0.88 to Licht_Eltern/power_factor/get retain=0
    Info:MQTT:Publishing val 0.061 to Licht_Eltern/energycounter/get retain=0
    Info:MQTT:Publishing val 0.056 to Licht_Eltern/energycounter_today/get retain=0
    Info:MAIN:Time 47960, idle 191838/s, free 53592, MQTT 1(1), bWifi 1, secondsWithNoPing 47890, socks 2/38 
    Info:GEN:dhcp=0 ip=192.168.0.125 gate=192.168.0.1 mask=255.255.255.0 mac=38:a5:c9:f4:da:61
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-63,ssid=techniks2,bssid=48:5d:35:c9:27:d6,channel=13,cipher_type:CCMP
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/power_factor/get
    Debug:MQTT:channelSet topic 4218084 with arg 0.88
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/energycounter/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/energycounter_today/get
    Debug:MQTT:channelSet topic 4218084 with arg 0.061
    Debug:MQTT:channelSet topic 4218084 with arg 0.056
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MAIN:Time 47961, idle 179849/s, free 53592, MQTT 1(1), bWifi 1, secondsWithNoPing 47891, socks 2/38 
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MAIN:Time 47962, idle 192059/s, free 53592, MQTT 1(1), bWifi 1, secondsWithNoPing 47892, socks 2/38 
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MAIN:Time 47963, idle 192459/s, free 53592, MQTT 1(1), bWifi 1, secondsWithNoPing 47893, socks 2/38 
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Publishing val 0.435 to Licht_Eltern/current/get retain=0
    Info:MQTT:Publishing val 101.67 to Licht_Eltern/power/get retain=0
    Info:MQTT:Publishing val 101.94 to Licht_Eltern/power_apparent/get retain=0
    Info:MQTT:Publishing val 7.44 to Licht_Eltern/power_reactive/get retain=0
    Info:MAIN:Time 47964, idle 191405/s, free 53592, MQTT 1(1), bWifi 1, secondsWithNoPing 47894, socks 2/38 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/current/get
    Debug:MQTT:channelSet topic 4218084 with arg 0.435
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/power/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/power_apparent/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/power_reactive/get
    Debug:MQTT:channelSet topic 4218084 with arg 101.67
    Debug:MQTT:channelSet topic 4218084 with arg 101.94
    Debug:MQTT:channelSet topic 4218084 with arg 7.44
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Publishing val 233.5 to Licht_Eltern/voltage/get retain=0
    Info:MQTT:Publishing val 0.004 to Licht_Eltern/energycounter_yesterday/get retain=0
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/voltage/get
    Info:MAIN:Time 47965, idle 207487/s, free 41640, MQTT 1(1), bWifi 1, secondsWithNoPing 47895, socks 3/38 
    Debug:MQTT:channelSet topic 4218084 with arg 233.5
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/energycounter_yesterday/get
    Debug:MQTT:channelSet topic 4218084 with arg 0.004
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold


    As you can see something is triggering the button. But the switch is on my table and no body touched it.
    Can sobody tell me what´s going on?

    Thank you.
  • ADVERTISEMENT
  • #341 21487478
    p.kaczmarek2
    Moderator Smart Home
    Probably a known issue: https://www.elektroda.com/rtvforum/topic4027953.html]

    but the strange thing is that:
    
    Info:GEN:23 Button_OnLongPressHold
    

    Is btn on P23 working? Can you do Tuya config extraction?
    Helpful post? Buy me a coffee.
  • #342 21487500
    divadiow
    Level 34  
    p.kaczmarek2 wrote:
    Can you do Tuya config extraction?

    handy gif!

    Web interface displaying OpenBK device status information.
  • #344 21490538
    mrsergio07
    Level 4  
    hello, how can I change the behavior so that when the light goes out due to an outage and comes back on, it returns to the same state it was in? I have it through MQTT to Home Assistant
  • #345 21494416
    badboy3004
    Level 6  
    Hello.

    Now I became a Low heap warning. At the "Licht_Eltern" switch.
    What does it mean?

    Thanks.

    Added after 8 [hours] 42 [minutes]:

    Hello.
    Today I installed the version 1.18.66 OTA. The behavior is still the same if I use the TglChanOnTgl on the P24. It switches randomly ON and OFF.

    What can I try else to get it work reliable.
    Maybe there is an other firmware which I can try to flash on this devices? So I can use them with the Homeassistant without any glitches.

    Info:MAIN:Module reboot in 1...
    Debug:MQTT:channelSet topic 4218084 with arg 232.6
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/power_factor/get
    Debug:MQTT:channelSet topic 4218084 with arg 0.31
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:MQTT:Publishing val 1 to Licht_Eltern/1/get retain=1
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/1/get
    Debug:MQTT:channelSet topic 4218084 with arg 1
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Channel has changed! Publishing 0 to channel 1 
    Info:MQTT:Publishing val 0 to Licht_Eltern/1/get retain=1
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/1/get
    Debug:MQTT:channelSet topic 4218084 with arg 0
    Info:GEN:23 Button_OnLongPressHold
    o:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MAIN:Time 3, idle 188764/s, free 79768, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MAIN:Time 4, idle 188730/s, free 79768, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:MQTT:Channel has changed! Publishing 0 to channel 1 
    Info:GEN:23 Button_OnLongPressHold
    Info:MAIN:Time 5, idle 187153/s, free 79768, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
    Info:MAIN:Registered for wifi changes
    Info:MAIN:Connecting to SSID [techniks2]
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:MAIN:Time 6, idle 194102/s, free 75032, 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:HA discovery is scheduled, but MQTT connection is not present yet
    Info:MQTT:Channel has changed! Publishing 0 to channel 1 
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MAIN:Time 7, idle 177372/s, free 74328, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MAIN:Time 8, idle 84912/s, free 74456, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MAIN:Time 9, idle 0/s, free 74456, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:MQTT:Channel has changed! Publishing 0 to channel 1 
    Info:MAIN:Time 10, idle 0/s, free 74456, 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=38:a5:c9:f4:da:61
    Info:GEN:sta: 0, softap: 0, b/g/n
    Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
    Info:GEN:23 Button_OnLongPressHold
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTING - 1
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTED - 4
    Info:GEN:23 Button_OnLongPressHold
    Info:MAIN:Time 11, idle 80652/s, free 74584, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:NTP:Seconds since Jan 1 1900 = 3951917918
    Info:NTP:Unix time  : 1742929118
    Info:NTP:Local Time: 2025-03-25 18:58:38
    Info:MAIN:Time 12, idle 187267/s, free 62800, MQTT 0(0), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:mqtt_userName mqttuser
    mqtt_pass ********
    mqtt_clientID Licht_Eltern
    mqtt_host 192.168.0.149:1883
    Info:MAIN:Time 13, idle 186214/s, free 51336, MQTT 0(1), bWifi 1, secondsWithNoPing -1, socks 4/38 
    Info:MAIN:HA discovery is scheduled, but MQTT connection is not present yet
    Info:MQTT:mqtt_connection_cb: Successfully connected
    Info:MQTT:mqtt_subscribed to Licht_Eltern/+/set
    Info:MQTT:mqtt_subscribed to bekens_n/+/set
    Info:MQTT:mqtt_subscribed to cmnd/Licht_Eltern/+
    Info:MQTT:mqtt_subscribed to cmnd/bekens_n/+
    Info:MQTT:mqtt_subscribed to Licht_Eltern/+/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/1/get
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Publishing val Licht_Eltern to Licht_Eltern/host retain=0
    Info:MAIN:Time 14, idle 174542/s, free 74728, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MAIN:Will do request HA discovery now.
    Info:HTTP:HASS counts: 2 rels, 0 pwms, 0 inps, 0 excluded
    Info:MQTT:Queued topic=homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_0/config, 1 items in queue
    Info:MQTT:Queued topic=homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_1/config, 2 items in queue
    Info:MQTT:Queued topic=homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_2/config, 3 items in queue
    Info:MQTT:Queued topic=homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_9/config, 4 items in queue
    Info:MQTT:Queued topic=homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_10/config, 5 items in queue
    Info:MQTT:Queued topic=homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_11/config, 6 items in queue
    Info:MQTT:Queued topic=homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_3/config, 7 items in queue
    Info:MQTT:Queued topic=homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_4/config, 8 items in queue
    Info:MQTT:Queued topic=homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_7/config, 9 items in queue
    Info:MQTT:Queued topic=homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_6/config, 10 items in queue
    Info:MQTT:Queued topic=homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_12/config, 11 items in queue
    Info:MQTT:Queued topic=homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_13/config, 12 items in queue
    Info:MQTT:Queued topic=homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_8/config, 13 items in queue
    Info:MQTT:Queued topic=homeassistant/switch/Licht_Eltern_C9F4DA61_relay_1/config, 14 items in queue
    Info:MQTT:Queued topic=homeassistant/sensor/Licht_Eltern_C9F4DA61_temp/config, 15 items in queue
    Info:MQTT:Queued topic=homeassistant/sensor/Licht_Eltern_C9F4DA61_rssi/config, 16 items in queue
    Info:MQTT:Queued topic=homeassistant/sensor/Licht_Eltern_C9F4DA61_uptime/config, 17 items in queue
    Info:MQTT:Queued topic=homeassistant/sensor/Licht_Eltern_C9F4DA61_build/config, 18 items in queue
    Info:MQTT:Queued topic=homeassistant/sensor/Licht_Eltern_C9F4DA61_ssid/config, 19 items in queue
    Info:MQTT:Queued topic=homeassistant/sensor/Licht_Eltern_C9F4DA61_ip/config, 20 items in queue
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:MQTT:Publishing val 1 to Licht_Eltern/1/get retain=1
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/1/get
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Channel has changed! Publishing 0 to channel 1 
    Info:MQTT:Publishing val 0 to Licht_Eltern/1/get retain=1
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/1/get
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:MQTT:Publishing val 1 to Licht_Eltern/1/get retain=1
    Info:MQTT:Publishing val OpenBK7231N 1.18.66 Mar 25 2025 09:54:35 to Licht_Eltern/build retain=0
    Info:MAIN:Time 15, idle 132480/s, free 46856, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/1/get
    Info:MQTT:Channel has changed! Publishing 0 to channel 1 
    Info:MQTT:Publishing val 0 to Licht_Eltern/1/get retain=1
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/1/get
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Publishing val 38:a5:c9:f4:da:61 to Licht_Eltern/mac retain=0
    Info:MAIN:Time 16, idle 185619/s, free 46840, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:MQTT:Publishing val 1 to Licht_Eltern/1/get retain=1
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/1/get
    Info:MQTT:Channel has changed! Publishing 0 to channel 1 
    Info:MQTT:Publishing val 0 to Licht_Eltern/1/get retain=1
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/1/get
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Publishing val (329 bytes) to homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_0/config retain=1
    Info:MQTT:Publishing val (329 bytes) to homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_1/config retain=1
    Info:MQTT:Publishing val (323 bytes) to homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_2/config retain=1
    Info:MAIN:Time 17, idle 180383/s, free 42728, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:MQTT:Publishing val 1 to Licht_Eltern/1/get retain=1
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Channel has changed! Publishing 0 to channel 1 
    Info:MQTT:Publishing val 0 to Licht_Eltern/1/get retain=1
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/1/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/1/get
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Publishing val 60.97 to Licht_Eltern/temp retain=0
    Info:MAIN:Time 18, idle 182110/s, free 47088, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Publishing val techniks2 to Licht_Eltern/ssid retain=0
    Info:MQTT:Publishing val 232.6 to Licht_Eltern/voltage/get retain=0
    Info:MQTT:Publishing val 0.022 to Licht_Eltern/current/get retain=0
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/voltage/get
    Info:MQTT:Publishing val 1.67 to Licht_Eltern/power/get retain=0
    Info:MQTT:Publishing val 5.17 to Licht_Eltern/power_apparent/get retain=0
    Info:MQTT:Publishing val 4.89 to Licht_Eltern/power_reactive/get retain=0
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/current/get
    Info:MQTT:Publishing val 0.32 to Licht_Eltern/power_factor/get retain=0
    Info:MQTT:Publishing val 0.293 to Licht_Eltern/energycounter/get retain=0
    Info:MQTT:Publishing val 0.009 to Licht_Eltern/energycounter_today/get retain=0
    Info:MQTT:Publishing val 0.016 to Licht_Eltern/energycounter_yesterday/get retain=0
    Info:MQTT:Publishing val 0.016 to Licht_Eltern/energycounter_2_days_ago/get retain=0
    Info:MQTT:Publishing val 0.022 to Licht_Eltern/energycounter_3_days_ago/get retain=0
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/power/get
    Info:MAIN:Time 19, idle 214355/s, free 46360, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/power_apparent/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/power_reactive/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/power_factor/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/energycounter/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/energycounter_today/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/energycounter_yesterday/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/energycounter_2_days_ago/get
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/energycounter_3_days_ago/get
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Publishing val 1742929125 to Licht_Eltern/datetime retain=0
    Info:MAIN:Time 20, idle 113466/s, free 47088, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:dhcp=0 ip=192.168.0.125 gate=192.168.0.1 mask=255.255.255.0 mac=38:a5:c9:f4:da:61
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-55,ssid=techniks2,bssid=48:5d:35:c9:27:d6,channel=7,cipher_type:CCMP
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:MQTT:Publishing val 1 to Licht_Eltern/1/get retain=1
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/1/get
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Publishing val 2 to Licht_Eltern/sockets retain=0
    Info:MAIN:Time 21, idle 193552/s, free 46856, 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 Licht_Eltern/1/get retain=1
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/1/get
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Publishing val -55 to Licht_Eltern/rssi retain=0
    Info:MAIN:Time 22, idle 188380/s, free 46856, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Publishing val 22 to Licht_Eltern/uptime retain=0
    Info:MAIN:Time 23, idle 185988/s, free 46872, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Publishing val 47088 to Licht_Eltern/freeheap retain=0
    Info:MAIN:Time 24, idle 191568/s, free 47088, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Publishing val 192.168.0.125 to Licht_Eltern/ip retain=0
    Info:MQTT:Publishing val 232.0 to Licht_Eltern/voltage/get retain=0
    Info:MQTT:Publishing val 0.009 to Licht_Eltern/current/get retain=0
    Info:MQTT:Publishing val 0.72 to Licht_Eltern/power/get retain=0
    Info:MQTT:Publishing val 2.18 to Licht_Eltern/power_apparent/get retain=0
    Info:MQTT:Publishing val 2.06 to Licht_Eltern/power_reactive/get retain=0
    Info:MAIN:Time 25, idle 185197/s, free 46848, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/voltage/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/current/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/power/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/power_apparent/get
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/power_reactive/get
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Channel has changed! Publishing 0 to channel 1 
    Info:MQTT:Publishing val 0 to Licht_Eltern/1/get retain=1
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/1/get
    Info:MAIN:Time 26, idle 178729/s, free 47088, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MAIN:Time 27, idle 185559/s, free 38480, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 3/38 
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Publishing val (351 bytes) to homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_9/config retain=1
    Info:MQTT:Publishing val (353 bytes) to homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_10/config retain=1
    Info:MQTT:Publishing val (326 bytes) to homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_11/config retain=1
    Info:MAIN:Time 28, idle 191507/s, free 47088, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Publishing val (346 bytes) to homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_3/config retain=1
    Info:MQTT:Publishing val (360 bytes) to homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_4/config retain=1
    Info:MQTT:Publishing val (352 bytes) to homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_7/config retain=1
    Info:MAIN:Time 29, idle 180763/s, free 47088, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Publishing val (360 bytes) to homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_6/config retain=1
    Info:MQTT:Publishing val (363 bytes) to homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_12/config retain=1
    Info:MQTT:Publishing val (363 bytes) to homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_13/config retain=1
    Info:MAIN:Time 30, idle 183148/s, free 47088, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:GEN:dhcp=0 ip=192.168.0.125 gate=192.168.0.1 mask=255.255.255.0 mac=38:a5:c9:f4:da:61
    Info:GEN:sta: 1, softap: 0, b/g/n
    Info:GEN:sta:rssi=-55,ssid=techniks2,bssid=48:5d:35:c9:27:d6,channel=7,cipher_type:CCMP
    Info:MQTT:Channel has changed! Publishing 1 to channel 1 
    Info:MQTT:Publishing val 1 to Licht_Eltern/1/get retain=1
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/1/get
    Info:MQTT:Channel has changed! Publishing 0 to channel 1 
    Info:MQTT:Publishing val 0 to Licht_Eltern/1/get retain=1
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/1/get
    Info:GEN:23 Button_OnLongPressHold
    Info:GEN:23 Button_OnLongPressHold
    Info:MQTT:Publishing val (314 bytes) to homeassistant/sensor/Licht_Eltern_C9F4DA61_sensor_8/config retain=1
    Info:MQTT:Publishing val (318 bytes) to homeassistant/switch/Licht_Eltern_C9F4DA61_relay_1/config retain=1
    Info:MQTT:Publishing val (382 bytes) to homeassistant/sensor/Licht_Eltern_C9F4DA61_temp/config retain=1
    Info:MQTT:Publishing val 231.6 to Licht_Eltern/voltage/get retain=0
    Info:MAIN:Time 31, idle 172373/s, free 47088, MQTT 1(1), bWifi 1, secondsWithNoPing -1, socks 2/38 
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic Licht_Eltern/voltage/get
    Info:GEN:23 Button_OnLongPressHold


    Thanks.
  • #346 21495377
    p.kaczmarek2
    Moderator Smart Home
    Have you seen fix topic?
    https://www.elektroda.com/rtvforum/topic4027953.html
    Or do you really want to fix it via software?
    Helpful post? Buy me a coffee.
  • #347 21495708
    badboy3004
    Level 6  
    Hello,

    my device is different as you can see. All components are present.

    Printed circuit board with electronic components on a wooden background.
    Close-up of a green printed circuit board with electronic components on a wooden surface.
    Electronic module with components on a wooden background

    Yesterday I installed ESPhome on one switch. And it has still this glitches.

    Maybe the P24 Pin is wrong. How can I test it? Just try and error.

    Thanks.
  • #348 21496005
    rufus4
    Level 10  
    try to set
        "8": "LED_n;0",
        "23": "Btn;0",
        "24": "dInput_n;0",
        "26": "Rel;0"
    .
    for me it seems to work without unexpected behaviors.

    edit:
    just tested TglChanOnTgl. this is absolutely not working like it should! So go for dInput_n.

    ps:
    this device has no template on the device-list yet. how to get this done? does somebody need to open a topic with this device?
  • #349 21496049
    badboy3004
    Level 6  
    Hello rufus4,

    for the switch it worked now.
    Thank you very much.

    I will see how stable the configuration now is.
    But so far it seems working fine now.
    Thanks again.
  • #351 21496098
    badboy3004
    Level 6  
    On my device all action is happening on channel 1.

    Thanks.
  • #353 21496115
    rufus4
    Level 10  
    >>21496085 thanks @divadiow
    template is correct as far. all pins on the same channel. but the picture you linked is a other model with different pcb.
    see the ones from @badboy3004 or these:

    Close-up of an electronic module with a Y3F-105DM relay and circuit components.
    Printed circuit board with various electronic components.

    Added after 5 [minutes]:

    may I ask what will be the difference if it is channel 0 or 1, if everything is on one channel? (my template works with channel 0)
  • #354 21496128
    divadiow
    Level 34  
    rufus4 wrote:
    but the picture you linked is a other model with different pcb.

    ok thanks. changed to the top one you posted. still Aubess branded device?
  • #355 21496133
    p.kaczmarek2
    Moderator Smart Home
    Choice between channel 0 and 1 for single relay device is purely cosmetic, no functionality changes here. Just do not confuse channel numbers within single device, if you set button to channel 1 and relay to channel 0, then this button will not control this relay.
    Helpful post? Buy me a coffee.
  • #357 21496141
    rufus4
    Level 10  
    >>21496128 yes, still same Aubess. they sell two different versions as same product. caseshell is the same. both come with CB2S board. (naked without emi shield)
    please wait, I make better fotos

    thanks for clarification @p.kaczmarek2

    Added after 49 [minutes]:

    okay, the fotos are not better but more informative. both are AUBESS ID:13605
    just checked if both hardware versions working with the same configuration. and they do work with the same template/settings.

    AUBESS power monitoring switch module with visible interior and casing.
    Disassembled Aubess power monitoring switch showing the casing and circuit boards.
  • #358 21496290
    minusync
    Level 9  
    I have question - probably to p.kaczmarek2

    In power metering tools we have enable, disable and reset energy counter. Why there?
    What I mean is isn't it possible to move them to frontend so that for power metering you just open HA device dashboard and reset power with push button there.
    I understand that it makes no sense to attempt bring all tools to frontend but power metering is basic functionality for most sockets and switches.
    Thanks
  • #359 21496438
    badboy3004
    Level 6  
    Hello guys,

    the dInput_n is working. But there is a small problem. If I switch ON the light with the switch and turn it OFF with the HA then I need to switch OFF the switch and switch ON again so the light came ON.
    Like I sayed a small problem.

    Thanks for support.
  • #360 21496495
    divadiow
    Level 34  
    rufus4 wrote:
    okay, the fotos are not better but more informative. both are AUBESS ID:13605

    updated template. I used the top one.

    Could duplicate it I guess and use second pic. OK so the config's the same, but it might help people trying to ID correct device from just the layout of PCB. dunno.

Topic summary

The discussion revolves around the Tuya LSPA9 smart socket, focusing on its teardown, flashing OpenBeken firmware, and configuring the BL0942 energy metering chip. Users share their experiences with various versions of the LSPA9, including issues with calibration, communication protocols (UART vs. SPI), and the stability of energy readings. Solutions include using specific commands for calibration, adjusting baud rates, and troubleshooting connectivity issues. The conversation also touches on the integration of these devices with Home Assistant and the challenges faced in ensuring accurate power measurements and MQTT communication.
Summary generated by the language model.
ADVERTISEMENT