KaufHA / kauf-rgb-switch

Files for the KAUF RGB Wall Switch
21 stars 8 forks source link

new esphome update is disconnecting wifi and ap #17

Open jajelectric opened 2 months ago

jajelectric commented 2 months ago

new esphome update is disconnecting the switches from wifi and the ap wont connect.. I've updated two switches out of 10 and after the second one I stopped

bkaufx commented 1 month ago

Is your Wi-Fi network using a hidden SSID? What does your yaml look like? Were you able to get the two back online?

jajelectric commented 1 month ago

I did just now see a hidden network .. my yaml is standard for the switch.. I haven’t changed any of that… one of them came back online but it’s not accessible from the visit page.. it won’t load at all

Thanks for responding

J.A.J. Electric LLC 803-800-1759

On Sun, May 19, 2024 at 7:25 PM Brian Kaufman @.***> wrote:

Is your Wi-Fi network using a hidden SSID? What does your yaml look like? Were you able to get the two back online?

— Reply to this email directly, view it on GitHub https://github.com/KaufHA/kauf-rgb-switch/issues/17#issuecomment-2119403770, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYF464K2DWO66WIZ46UQOUDZDEYHDAVCNFSM6AAAAABH5TQIBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJZGQYDGNZXGA . You are receiving this because you authored the thread.Message ID: @.***>

jajelectric commented 1 month ago

Also I’m able to connect to the 1st ones ap but it won’t load the page it disconnects as soon as it tries to load the page or it stays connected and does nothing

J.A.J. Electric LLC 803-800-1759

On Sun, May 19, 2024 at 7:25 PM Brian Kaufman @.***> wrote:

Is your Wi-Fi network using a hidden SSID? What does your yaml look like? Were you able to get the two back online?

— Reply to this email directly, view it on GitHub https://github.com/KaufHA/kauf-rgb-switch/issues/17#issuecomment-2119403770, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYF464K2DWO66WIZ46UQOUDZDEYHDAVCNFSM6AAAAABH5TQIBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJZGQYDGNZXGA . You are receiving this because you authored the thread.Message ID: @.***>

bkaufx commented 1 month ago

OK for starters I would recommend downgrading to ESPHome 2024.4.2. From there, work on getting all your switches back to that version. In the yaml you can just add @2024.4 to the end of the packages line to point to the 2024.4.2 version of the yaml package.

When you are connected to the AP you can try setting credentials like this in a web browser: http://192.168.4.1/wifisave?ssid=YOUR_SSID&psk=YOUR_PASSWORD. Otherwise, you can also try setting up a Wi-Fi hotspot with credentials initial_ap / asdfasdfasdfasdf and see if the switches connect to that.

Kebo2r commented 1 month ago

I was having lots of these issues. Found one error in the yaml requiring min version 3000.5.0. Copied whole yaml text, changed that, then updated. Now all is well

jajelectric commented 1 month ago

Where did u see that in yaml? Is it possible to explaine it to where I can repeat what u have done? Thanks

J.A.J. Electric LLC 803-800-1759

On Mon, May 20, 2024 at 3:06 PM Kebo2r @.***> wrote:

I was having lots of these issues. Found one error in the yaml requiring min version 3000.5.0. Copied whole yaml text, changed that, then updated. Now all is well

— Reply to this email directly, view it on GitHub https://github.com/KaufHA/kauf-rgb-switch/issues/17#issuecomment-2121035191, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYF464NCELOEWYBNOGQELFTZDJCRXAVCNFSM6AAAAABH5TQIBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRRGAZTKMJZGE . You are receiving this because you authored the thread.Message ID: @.***>

bkaufx commented 1 month ago

I bumped the min version way up to prevent people bricking their switches if they tried to update. I went ahead and fixed that change so the default yaml can be compiled now, and reverted the change to the web_server that has been causing so much problems.

@jajelectric - what is the status on your switches? The web page on the switch should work now if you update again.

jajelectric commented 1 month ago

I’ve updated with your new update and I still can’t visit the page.. the switch still works from home assistant... on the other switch I can’t even get it to connect at all.. I can see the ap and when I connect it just sits there or gives me an error message saying my network has changed which means the ap disconnected .. I’ve tried power cycling it and network reset

J.A.J. Electric LLC 803-800-1759

On Mon, May 20, 2024 at 5:35 PM Brian Kaufman @.***> wrote:

I bumped the min version way up to prevent people bricking their switches if they tried to update. I went ahead and fixed that change so the default yaml can be compiled now, and reverted the change to the web_server that has been causing so much problems.

@jajelectric https://github.com/jajelectric - what is the status on your switches? The web page on the switch should work now if you update again.

— Reply to this email directly, view it on GitHub https://github.com/KaufHA/kauf-rgb-switch/issues/17#issuecomment-2121249686, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYF464O46P7MJE4PERAI3QDZDJUB3AVCNFSM6AAAAABH5TQIBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRRGI2DSNRYGY . You are receiving this because you were mentioned.Message ID: @.***>

Kebo2r commented 1 month ago

Ahhh.  Well I’m learning in this new world the hard way and bricked mine I think. Haha  🧐 is there a diagram available of which pin is which and anything else I need to know to get inside and reflash?  Thanks for the help! Sent from my iPhoneOn May 20, 2024, at 16:35, Brian Kaufman @.***> wrote: I bumped the min version way up to prevent people bricking their switches if they tried to update. I went ahead and fixed that change so the default yaml can be compiled now, and reverted the change to the web_server that has been causing so much problems. @jajelectric - what is the status on your switches? The web page on the switch should work now if you update again.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

bkaufx commented 1 month ago

@jajelectric if you can't visit the page then you probably didn't get the latest update. You need to delete the .esphome/packages directory or wait 24 hours. On the first one, you should be able to OTA the latest update after 24 hours so I'd just wait. For the second one, did you try to set the wifi credentials using the http command instead of using the web page when connected to the AP (http://192.168.4.1/wifisave?ssid=YOUR_SSID&psk=YOUR_PASSWORD)? The other thing you can try is putting up the initial_ap / asdfasdfasdfasdf network and the switch should connect to that and be flashable that way.

@Kebo2r What is its status right now? Is it connected to wifi? Is it working at all? Can you access it at all?

Kebo2r commented 1 month ago

I wouldn’t.  I think it was by designed.  Worked a few minutes but then it went offline and now I think it’s bricked. Sent from my iPhoneOn May 20, 2024, at 16:13, jajelectric @.***> wrote: Where did u see that in yaml? Is it possible to explaine it to where I can

repeat what u have done?

Thanks

J.A.J. Electric LLC 803-800-1759

On Mon, May 20, 2024 at 3:06 PM Kebo2r @.***> wrote:

I was having lots of these issues. Found one error in the yaml requiring

min version 3000.5.0. Copied whole yaml text, changed that, then updated.

Now all is well

Reply to this email directly, view it on GitHub

https://github.com/KaufHA/kauf-rgb-switch/issues/17#issuecomment-2121035191,

or unsubscribe

https://github.com/notifications/unsubscribe-auth/AYF464NCELOEWYBNOGQELFTZDJCRXAVCNFSM6AAAAABH5TQIBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRRGAZTKMJZGE

.

You are receiving this because you authored the thread.Message ID:

@.***>

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

jajelectric commented 1 month ago

I have the network up and running with the credentials you specified .. How would I connect to the switch at that point?

J.A.J. Electric LLC 803-800-1759

On Mon, May 20, 2024 at 7:02 PM Brian Kaufman @.***> wrote:

@jajelectric https://github.com/jajelectric if you can't visit the page then you probably didn't get the latest update. You need to delete the .esphome/packages directory or wait 24 hours. On the first one, you should be able to OTA the latest update after 24 hours so I'd just wait. For the second one, did you try to set the wifi credentials using the http command instead of using the web page when connected to the AP ( http://192.168.4.1/wifisave?ssid=YOUR_SSID&psk=YOUR_PASSWORD)? The other thing you can try is putting up the initial_ap / asdfasdfasdfasdf network and the switch should connect to that and be flashable that way.

@Kebo2r https://github.com/Kebo2r What is its status right now? Is it connected to wifi? Is it working at all? Can you access it at all?

— Reply to this email directly, view it on GitHub https://github.com/KaufHA/kauf-rgb-switch/issues/17#issuecomment-2121358446, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYF464P75J2WD3NGSSYFPR3ZDJ6HPAVCNFSM6AAAAABH5TQIBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRRGM2TQNBUGY . You are receiving this because you were mentioned.Message ID: @.***>

jajelectric commented 1 month ago

I was able to get it to reconnect to the network using the link that he provided Of course u have to put your said and password in it after u connect to the ap

http://192.168.4.1/wifisave?ssid=YOUR_SSID&psk=YOUR_PASSWORD I still can’t visit the page even with the newest update.. but I’m able to control it from home assistant I copied my to notepad and then after I connected to the ap I switched over and touched the link and it connected instantly And now if installed the newest update .. so connection is good just no webpage

J.A.J. Electric LLC 803-800-1759

On Mon, May 20, 2024 at 7:24 PM Kebo2r @.***> wrote:

I wouldn’t. I think it was by designed. Worked a few minutes but then it went offline and now I think it’s bricked. Sent from my iPhoneOn May 20, 2024, at 16:13, jajelectric @.***> wrote: Where did u see that in yaml? Is it possible to explaine it to where I can

repeat what u have done?

Thanks

J.A.J. Electric LLC 803-800-1759

On Mon, May 20, 2024 at 3:06 PM Kebo2r @.***> wrote:

I was having lots of these issues. Found one error in the yaml requiring

min version 3000.5.0. Copied whole yaml text, changed that, then updated.

Now all is well

Reply to this email directly, view it on GitHub

< https://github.com/KaufHA/kauf-rgb-switch/issues/17#issuecomment-2121035191>,

or unsubscribe

< https://github.com/notifications/unsubscribe-auth/AYF464NCELOEWYBNOGQELFTZDJCRXAVCNFSM6AAAAABH5TQIBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRRGAZTKMJZGE>

.

You are receiving this because you authored the thread.Message ID:

@.***>

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/KaufHA/kauf-rgb-switch/issues/17#issuecomment-2121385969, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYF464PSDUXYLIDAR4XCFGDZDKAZHAVCNFSM6AAAAABH5TQIBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRRGM4DKOJWHE . You are receiving this because you were mentioned.Message ID: @.***>

jajelectric commented 1 month ago

I have install the new update on three of my switches.. just to confirm that its not a connection error on my end and I wasn't able to connect to the web page by the visit button in esphome the first two was a problem from the first update and the last switch was 10min ago and it will not connect to the page but its connected to the network and homeassistant ...so there is still a problem but its not really a problem if u don't use the webpage... thanks for the help bkaufx your definitely a genius and I love your switches!!! I have 10 and 10 more to go for the whole house... I'll be waiting to update the rest of my switches

jajelectric commented 1 month ago

I don't know if this will help to get to the problem.. WARNING kauf-rgbsw-63e9f8 @ 192.168.5.116: Connection error occurred: [Errno 104] Connection reset by peer INFO Processing unexpected disconnect from ESPHome API for kauf-rgbsw-63e9f8 @ 192.168.5.116 WARNING Disconnected from API INFO Successfully connected to kauf-rgbsw-63e9f8 @ 192.168.5.116 in 0.007s INFO Successful handshake with kauf-rgbsw-63e9f8 @ 192.168.5.116 in 2.392s [21:45:37][D][esp8266.preferences:274]: Saving preferences to flash... [21:46:20][D][sensor:093]: 'Kauf RGB Sw Uptime': Sending state 98.31800 s with 0 decimals of accuracy WARNING kauf-rgbsw-63e9f8 @ 192.168.5.116: Connection error occurred: kauf-rgbsw-63e9f8 @ 192.168.5.116: EOF received INFO Processing unexpected disconnect from ESPHome API for kauf-rgbsw-63e9f8 @ 192.168.5.116 WARNING Disconnected from API INFO Successfully connected to kauf-rgbsw-63e9f8 @ 192.168.5.116 in 0.009s WARNING kauf-rgbsw-63e9f8 @ 192.168.5.116: Connection error occurred: [Errno 104] Connection reset by peer WARNING Can't connect to ESPHome API for kauf-rgbsw-63e9f8 @ 192.168.5.116: Handshake failed: [Errno 104] Connection reset by peer (HandshakeAPIError) INFO Trying to connect to kauf-rgbsw-63e9f8 @ 192.168.5.116 in the background INFO Successfully connected to kauf-rgbsw-63e9f8 @ 192.168.5.116 in 0.007s WARNING kauf-rgbsw-63e9f8 @ 192.168.5.116: Connection error occurred: [Errno 104] Connection reset by peer INFO Successfully connected to kauf-rgbsw-63e9f8 @ 192.168.5.116 in 0.027s WARNING kauf-rgbsw-63e9f8 @ 192.168.5.116: Connection error occurred: kauf-rgbsw-63e9f8 @ 192.168.5.116: EOF received INFO Successfully connected to kauf-rgbsw-63e9f8 @ 192.168.5.116 in 0.011s WARNING kauf-rgbsw-63e9f8 @ 192.168.5.116: Connection error occurred: [Errno 104] Connection reset by peer

this is the same now for all three switches

Kebo2r commented 1 month ago

I was able to get mine back online as well using the curl method connecting to the switch. Saw the webpage one time and never again. Tried updating again from the ESPHOME dash and it did the same thing that started this which is failing at around 13% on the upload. See below.

INFO Compressed to 371834 bytes Uploading: [======== ] 13% ERROR Error receiving acknowledge chunk OK: timed out

Oddly enough after that failure the switch is up showing online on the dashboard and the webpage loaded. I kept that page alive just in case and tried loading the switch ip in another tab. Rather than loading the webpage it begins a download of a file "192.168.40.10.download" that never finishes. The original page still works and controls fine and the log works since I haven't closed it. Going to try uploading an older firmware if I can find one. Hope this helps diagnose.

jajelectric commented 1 month ago

I had the same thing and I hit retry and about the fifth time it finally did it and I too had the web page open prior to updating but it stopped reporting right after the OTA update I also had the downloads that didn't download anything

Kebo2r commented 1 month ago

I'm learning all of this so very much a newb. Maybe this makes sense to someone but I just managed to get back to firmware 1.32 and still have the same issue with no webpage available but connected via HA. Guess I'll stop here for now until something changes. FWIW

Kebo2r commented 1 month ago

To be cleared not to hijack your thread but this is now happening to all my esphome Kauf devices. I can't reach any of my bulbs webpage either. Has to be the 2024.5.0 or .1 or .2 updates and the updates I did to these devices after that. Although I don't pretend to understand that update interacts with these devices. @bkaufx .. FWIW

ETA: As I sent this one of my bulb pages that ive been trying to load all night just popped up and working fine. No idea what's going on. Haven't changed any network settings. Only changes have been ESPHome and device updates.

jajelectric commented 1 month ago

I was thinking the web page wasn't important but it is because I have some switches that has the relay on all the time and the push action turns on wifi lights and if for some reason that stops working I have no way of going back in to change it

Kebo2r commented 1 month ago

Another update. The bulb where the webpage was working last night this morning no longer loads and is back showing offline. Still no joy on the switch as well. This has to be a ESPHome issue right? And when we update it rebuilds the error in the devices. I saw on another thread someone said the size of the file increased for their Athom bulb t o where it was too large with the update.

jajelectric commented 1 month ago

I think he gave us a fix to give us back the webpage and the first part of this thread. I was just unsure of where to put this …. OK for starters I would recommend downgrading to ESPHome 2024.4.2. From there, work on getting all your switches back to that version. In the yaml you can just add @2024.4 to the end of the packages line to point to the 2024.4.2 version of the yaml package. I believe it goes And the Yamil at ESP home

J.A.J. Electric LLC 803-800-1759

On Tue, May 21, 2024 at 7:21 AM Kebo2r @.***> wrote:

Another update. The bulb where the webpage was working last night this morning no longer loads and is back showing offline. Still no joy on the switch as well. This has to be a ESPHome issue right? And when we update it rebuilds the error in the devices. I saw on another thread someone said the size of the file increased for their Athom bulb t o where it was too large with the update.

— Reply to this email directly, view it on GitHub https://github.com/KaufHA/kauf-rgb-switch/issues/17#issuecomment-2122407912, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYF464MUW5LPZK55Y36BVCDZDMU3TAVCNFSM6AAAAABH5TQIBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRSGQYDOOJRGI . You are receiving this because you were mentioned.Message ID: @.***>

jajelectric commented 1 month ago

Even even with the newest update 2024.5.2 is reverting back to disconnecting it off-line so I’m gonna Try 2024.4.2 and see if that brings it back after I do the other connection method

J.A.J. Electric LLC 803-800-1759

On Tue, May 21, 2024 at 7:38 AM James Jackson @.***> wrote:

I think he gave us a fix to give us back the webpage and the first part of this thread. I was just unsure of where to put this …. OK for starters I would recommend downgrading to ESPHome 2024.4.2. From there, work on getting all your switches back to that version. In the yaml you can just add @2024.4 to the end of the packages line to point to the 2024.4.2 version of the yaml package. I believe it goes And the Yamil at ESP home

J.A.J. Electric LLC 803-800-1759

On Tue, May 21, 2024 at 7:21 AM Kebo2r @.***> wrote:

Another update. The bulb where the webpage was working last night this morning no longer loads and is back showing offline. Still no joy on the switch as well. This has to be a ESPHome issue right? And when we update it rebuilds the error in the devices. I saw on another thread someone said the size of the file increased for their Athom bulb t o where it was too large with the update.

— Reply to this email directly, view it on GitHub https://github.com/KaufHA/kauf-rgb-switch/issues/17#issuecomment-2122407912, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYF464MUW5LPZK55Y36BVCDZDMU3TAVCNFSM6AAAAABH5TQIBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRSGQYDOOJRGI . You are receiving this because you were mentioned.Message ID: @.***>

bkaufx commented 1 month ago

If you add @2024.4 to the end of the packages line in your yaml config it should point back to the yaml for ESPHome 2024.4.2 so you can install that version if you want. The latest updates I just posted yesterday should fix this issue for 2024.5.2 but you either have to delete your .esphome/packages folder or wait 24 hours to get the updates.

e.g.:

packages:
  Kauf.RGBSw: github://KaufHA/kauf-rgb-switch/kauf-rgbs.yaml@2024.4
jajelectric commented 1 month ago

there has to be something else going on because I did as instructed on one of the switches that wont load the web page and its still not loading the page... i cleared my cache to make sure it wasnt my browser ..substitutions: name: kauf-rgbsw-1e66df friendly_name: master_bath_vanity packages: Kauf.RGBSw: github://KaufHA/kauf-rgb-switch/kauf-rgbs.yaml@2024.4 esphome: name: ${name} name_add_mac_suffix: false api: encryption: key: 4r1+O+hwcKp9UEi6yUN2+hq+hqvvzZo1yyZ/IgxyHyc=

wifi: ssid: !secret wifi_ssid password: !secret wifi_password this is my setup it connects way better to the switch.. handshake and all... with the other updates it gives me a timeout error and a handshake error even the new 2024.5.2 doesnt work as of yet

jajelectric commented 1 month ago

well I just checked the logs and its saying different

INFO ESPHome 2024.5.2 INFO Reading configuration /config/esphome/kauf-rgbsw-1e66df.yaml... INFO Starting log output from 192.168.5.84 using esphome API INFO Successfully connected to kauf-rgbsw-1e66df @ 192.168.5.84 in 0.016s WARNING kauf-rgbsw-1e66df @ 192.168.5.84: Connection error occurred: [Errno 104] Connection reset by peer WARNING Can't connect to ESPHome API for kauf-rgbsw-1e66df @ 192.168.5.84: Handshake failed: [Errno 104] Connection reset by peer (HandshakeAPIError) INFO Trying to connect to kauf-rgbsw-1e66df @ 192.168.5.84 in the background INFO Successfully connected to kauf-rgbsw-1e66df @ 192.168.5.84 in 0.011s WARNING kauf-rgbsw-1e66df @ 192.168.5.84: Connection error occurred: [Errno 104] Connection reset by peer INFO Successfully connected to kauf-rgbsw-1e66df @ 192.168.5.84 in 0.006s WARNING kauf-rgbsw-1e66df @ 192.168.5.84: Connection error occurred: [Errno 104] Connection reset by peer INFO Successfully connected to kauf-rgbsw-1e66df @ 192.168.5.84 in 0.005s WARNING kauf-rgbsw-1e66df @ 192.168.5.84: Connection error occurred: kauf-rgb and instead of 2024.4 it is showing 2024.5.2.. I dont know why it would.. I did the @2024.4 after packages

Kebo2r commented 1 month ago

So I finally got my switch back online. Controllable in HA and shows online on dash. Logs viewable etc. However I was a bee to get to the webpage for a while then without any changes the webpage stopped working and now is back to just starting a download of some kind when I try to navigate to it. I've reinstalled multiple times etc and it's been well more than 24hours. Any other ideas? Thanks!

Kebo2r commented 1 month ago

Now my PLF12 plug is doing the same. Online in dash, unavailable in HA, and webpage loads a file download of some kind..

Kebo2r commented 1 month ago

In the interest of providing @bkaufx as much info as possible another update. It seems like the switch at least will load the webpage randomly every so often when tried at the .local domain. Once it works once thought it doesn't work again for a long while. The ip address method seems to not work at any time. Similar on the plug.

Here's one entry that loaded in the log when it did load:

2:10:32 [E] [json:041]
Could not allocate memory for JSON document! Requested 496 bytes, largest free heap block: 496 bytes

jajelectric commented 1 month ago

Any switch that I have updated will not load the web page.. or provide logs .. it does however stay connected and is still controllable from HA

J.A.J. Electric LLC 803-800-1759

On Wed, May 22, 2024 at 3:10 PM Kebo2r @.***> wrote:

In the interest of providing @bkaufx https://github.com/bkaufx as much info as possible another update. It seems like the switch at least will load the webpage randomly every so often when tried at the .local domain. Once it works once thought it doesn't work again for a long while. The ip address method seems to not work at any time. Similar on the plug.

— Reply to this email directly, view it on GitHub https://github.com/KaufHA/kauf-rgb-switch/issues/17#issuecomment-2125563017, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYF464NQQRAK556VKRXJ7DLZDTUSJAVCNFSM6AAAAABH5TQIBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRVGU3DGMBRG4 . You are receiving this because you were mentioned.Message ID: @.***>

Kebo2r commented 1 month ago

I loaded the minimal firmware and having more success but its still very sporadic and hit or miss. I did catch this earlier one of the times it managed to load: safe mode?

Captive Portal: 14:00:10 [C] [web_server:173]
Web Server: 14:00:10 [C] [web_server:174]
Address: kaufswitch.local:80 14:00:10 [C] [mdns:115]
mDNS: 14:00:10 [C] [mdns:116]
Hostname: kaufswitch 14:00:11 [C] [ota:096]
Over-The-Air Updates: 14:00:11 [C] [ota:097]
Address: kaufswitch.local:8266 14:00:11 [C] [ota:103]
OTA version: 2. 14:00:11 [W] [ota:106]
Last Boot was an unhandled reset, will proceed to safe mode in 7 restarts 14:00:11 [C] [api:139]
API Server: 14:00:11 [C] [api:140]
Address: kaufswitch.local:6053 14:00:11 [C] [api:144]
Using noise encryption: NO 14:00:11 [C] [wifi_info:009] WifiInfo IPAddress 'KaufSwitch IP Address' 14:00:11 [C] [homeassistant.text_sensor:023] Homeassistant Text Sensor 'hass_small_light_state' 14:00:13 [C] [homeassistant.text_sensor:024] Entity ID: 'no.ne' 14:00:13 [C] [homeassistant.text_sensor:023] Homeassistant Text Sensor 'hass_big_light_state' 14:00:13 [C] [homeassistant.text_sensor:024] Entity ID: 'no.ne' 14:00:37 [D] [api:102]
Accepted 192.168.40.189 14:00:37 [D] [api.connection:1321]
Home Assistant 2024.5.4 (192.168.40.189): Connected successfully

Kebo2r commented 1 month ago

Looks to be a memory issue for sure. Just watched a switch go from unavailable to available, immediately loaded the web page and caught this again:

Could not allocate memory for JSON document! Requested 504 bytes, largest free heap block: 504 bytes 14:09:55 [E] [json:041]
Could not allocate memory for JSON document! Requested 504 bytes, largest free heap block: 504 bytes 14:09:55 [E] [json:041]
Could not allocate memory for JSON document! Requested 504 bytes, largest free heap block: 504 bytes 14:09:55 [E] [json:041]
Could not allocate memory for JSON document! Requested 504 bytes, largest free heap block: 504 bytes 14:09:55 [E] [json:041]
Could not allocate memory for JSON document! Requested 504 bytes, largest free heap block: 504 bytes 14:09:56
14:10:23 [D] [esp8266.preferences:238]
Saving preferences to flash... 14:10:23 [W] [component:237] Component preferences took a long time for an operation (68 ms). 14:10:23 [W] [component:238] Components should block for at most 30 ms. 14:10:33 [D] [sensor:093]
'KaufSwitch Uptime': Sending state 50.81200 s with 0 decimals of accuracy

It appears maybe a memory leak? is filling up and then causing the switch to go offline. then maybe a restart dumps it and allows it to connect for a little while? No idea if that makes sense but FWIW

bkaufx commented 1 month ago

This is a different issue to the one I figured out and fixed. This is the page not loading at all. With the first problem, the page would load but it couldn't connect to the events server. I'm seeing the same thing here but it works fine when I put the same firmware on a d1 mini so I can't see serial logs. I'm probably going to have to wire onto an actual switch to see what is going on in more detail. Probably won't get to it until this weekend or maybe even next weekend.

Edit: The JSON allocation has always been in the logs, so while it might be related it doesn't by itself tell me much.

jajelectric commented 1 month ago

That’s been my problem the whole time… it’s never been able to load the page or even do logs..well not the whole problem in the beginning the switches went off line and I believe you have fixed that for sure cause all of mine are in fact still connected..

Thanks

On Thu, May 23, 2024 at 12:32 PM Brian Kaufman @.***> wrote:

This is a different issue to the one I figured out and fixed. This is the page not loading at all. With the first problem, the page would load but it couldn't connect to the events server. I'm seeing the same thing here but it works fine when I put the same firmware on a d1 mini so I can't see serial logs. I'm probably going to have to wire onto an actual switch to see what is going on in more detail. Probably won't get to it until this weekend or maybe even next weekend.

— Reply to this email directly, view it on GitHub https://github.com/KaufHA/kauf-rgb-switch/issues/17#issuecomment-2127590529, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYF464OARYILEA6NTGOE7L3ZDYKYHAVCNFSM6AAAAABH5TQIBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRXGU4TANJSHE . You are receiving this because you were mentioned.Message ID: @.***>

Kebo2r commented 1 month ago

FYI I loaded the minimal furmwarw rather than lite and now all is stable and connected and loading.  As a temp fix.  Hope that helps and thanks for the products and work!Sent from my iPhoneOn May 23, 2024, at 10:36, jajelectric @.***> wrote: That’s been my problem the whole time… it’s never been able to load the

page or even do logs..well not the whole problem in the beginning the

switches went off line and I believe you have fixed that for sure cause all

of mine are in fact still connected..

Thanks

On Thu, May 23, 2024 at 12:32 PM Brian Kaufman @.***>

wrote:

This is a different issue to the one I figured out and fixed. This is the

page not loading at all. With the first problem, the page would load but it

couldn't connect to the events server. I'm seeing the same thing here but

it works fine when I put the same firmware on a d1 mini so I can't see

serial logs. I'm probably going to have to wire onto an actual switch to

see what is going on in more detail. Probably won't get to it until this

weekend or maybe even next weekend.

Reply to this email directly, view it on GitHub

https://github.com/KaufHA/kauf-rgb-switch/issues/17#issuecomment-2127590529,

or unsubscribe

https://github.com/notifications/unsubscribe-auth/AYF464OARYILEA6NTGOE7L3ZDYKYHAVCNFSM6AAAAABH5TQIBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRXGU4TANJSHE

.

You are receiving this because you were mentioned.Message ID:

@.***>

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

jajelectric commented 1 month ago

How are u loading minimal firmware? I’ve never messed with the coding of the switch itself.. I have no clue where to start something like that.. I’ve done my own switches and outlets with esp32 and 8266 but I haven’t even tried to change the rgb-switch

J.A.J. Electric LLC 803-800-1759

On Thu, May 23, 2024 at 12:44 PM Kebo2r @.***> wrote:

FYI I loaded the minimal furmwarw rather than lite and now all is stable and connected and loading. As a temp fix. Hope that helps and thanks for the products and work!Sent from my iPhoneOn May 23, 2024, at 10:36, jajelectric @.***> wrote: That’s been my problem the whole time… it’s never been able to load the

page or even do logs..well not the whole problem in the beginning the

switches went off line and I believe you have fixed that for sure cause all

of mine are in fact still connected..

Thanks

On Thu, May 23, 2024 at 12:32 PM Brian Kaufman @.***>

wrote:

This is a different issue to the one I figured out and fixed. This is the

page not loading at all. With the first problem, the page would load but it

couldn't connect to the events server. I'm seeing the same thing here but

it works fine when I put the same firmware on a d1 mini so I can't see

serial logs. I'm probably going to have to wire onto an actual switch to

see what is going on in more detail. Probably won't get to it until this

weekend or maybe even next weekend.

Reply to this email directly, view it on GitHub

< https://github.com/KaufHA/kauf-rgb-switch/issues/17#issuecomment-2127590529>,

or unsubscribe

< https://github.com/notifications/unsubscribe-auth/AYF464OARYILEA6NTGOE7L3ZDYKYHAVCNFSM6AAAAABH5TQIBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRXGU4TANJSHE>

.

You are receiving this because you were mentioned.Message ID:

@.***>

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/KaufHA/kauf-rgb-switch/issues/17#issuecomment-2127617470, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYF464N7IHPBGSG3RJNRZODZDYMHPAVCNFSM6AAAAABH5TQIBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRXGYYTONBXGA . You are receiving this because you were mentioned.Message ID: @.***>

Kebo2r commented 1 month ago

I just went to the GitHub for the switch.  Copied the text from the minimal yaml under the config folder.  Then pasted it in the yaml for the switch.  Added the “use address” field for good measure and hit validate then install.Sent from my iPhoneOn May 23, 2024, at 10:49, jajelectric @.***> wrote: How are u loading minimal firmware? I’ve never messed with the coding of

the switch itself.. I have no clue where to start something like that..

I’ve done my own switches and outlets with esp32 and 8266 but I haven’t

even tried to change the rgb-switch

J.A.J. Electric LLC 803-800-1759

On Thu, May 23, 2024 at 12:44 PM Kebo2r @.***> wrote:

FYI I loaded the minimal furmwarw rather than lite and now all is stable

and connected and loading. As a temp fix. Hope that helps and thanks for

the products and work!Sent from my iPhoneOn May 23, 2024, at 10:36,

jajelectric @.***> wrote:

That’s been my problem the whole time… it’s never been able to load the

page or even do logs..well not the whole problem in the beginning the

switches went off line and I believe you have fixed that for sure cause

all

of mine are in fact still connected..

Thanks

On Thu, May 23, 2024 at 12:32 PM Brian Kaufman @.***>

wrote:

This is a different issue to the one I figured out and fixed. This is

the

page not loading at all. With the first problem, the page would load but

it

couldn't connect to the events server. I'm seeing the same thing here

but

it works fine when I put the same firmware on a d1 mini so I can't see

serial logs. I'm probably going to have to wire onto an actual switch to

see what is going on in more detail. Probably won't get to it until this

weekend or maybe even next weekend.

Reply to this email directly, view it on GitHub

<

https://github.com/KaufHA/kauf-rgb-switch/issues/17#issuecomment-2127590529>,

or unsubscribe

<

https://github.com/notifications/unsubscribe-auth/AYF464OARYILEA6NTGOE7L3ZDYKYHAVCNFSM6AAAAABH5TQIBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRXGU4TANJSHE>

.

You are receiving this because you were mentioned.Message ID:

@.***>

—Reply to this email directly, view it on GitHub, or unsubscribe.You are

receiving this because you were mentioned.Message ID: @.***>

Reply to this email directly, view it on GitHub

https://github.com/KaufHA/kauf-rgb-switch/issues/17#issuecomment-2127617470,

or unsubscribe

https://github.com/notifications/unsubscribe-auth/AYF464N7IHPBGSG3RJNRZODZDYMHPAVCNFSM6AAAAABH5TQIBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRXGYYTONBXGA

.

You are receiving this because you were mentioned.Message ID:

@.***>

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

bkaufx commented 1 month ago

If you are currently using the default package you can change the packages line to the following to use minimal instead of the normal version.

packages:
  Kauf.RGBSw: github://KaufHA/kauf-rgb-switch/config/kauf-rgbs-minimal.yaml
StrangeCharm1234 commented 1 month ago

That’s been my problem the whole time… it’s never been able to load the page or even do logs..well not the whole problem in the beginning the switches went off line and I believe you have fixed that for sure cause all of mine are in fact still connected.. Thanks On Thu, May 23, 2024 at 12:32 PM Brian Kaufman @.> wrote: This is a different issue to the one I figured out and fixed. This is the page not loading at all. With the first problem, the page would load but it couldn't connect to the events server. I'm seeing the same thing here but it works fine when I put the same firmware on a d1 mini so I can't see serial logs. I'm probably going to have to wire onto an actual switch to see what is going on in more detail. Probably won't get to it until this weekend or maybe even next weekend. — Reply to this email directly, view it on GitHub <#17 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYF464OARYILEA6NTGOE7L3ZDYKYHAVCNFSM6AAAAABH5TQIBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRXGU4TANJSHE . You are receiving this because you were mentioned.Message ID: @.>

having the same issue with the switches and plugs resetting. the webpage can be disabled using the following setting in esphome:

web_server: !remove

this seems to stabilize the switches and plugs until a fix is in place at least for me

jajelectric commented 1 month ago

I’ll wait for a fix.. the minimal leaves my switches white and bright and HA doesn’t like it they are connected and all to HA and i just can’t change the setting without the webpage..

On Sun, May 26, 2024 at 12:30 AM StrangeCharm1234 @.***> wrote:

That’s been my problem the whole time… it’s never been able to load the page or even do logs..well not the whole problem in the beginning the switches went off line and I believe you have fixed that for sure cause all of mine are in fact still connected.. Thanks … <#m-3429607154282341275> On Thu, May 23, 2024 at 12:32 PM Brian Kaufman @.> wrote: This is a different issue to the one I figured out and fixed. This is the page not loading at all. With the first problem, the page would load but it couldn't connect to the events server. I'm seeing the same thing here but it works fine when I put the same firmware on a d1 mini so I can't see serial logs. I'm probably going to have to wire onto an actual switch to see what is going on in more detail. Probably won't get to it until this weekend or maybe even next weekend. — Reply to this email directly, view it on GitHub <#17 (comment) https://github.com/KaufHA/kauf-rgb-switch/issues/17#issuecomment-2127590529>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYF464OARYILEA6NTGOE7L3ZDYKYHAVCNFSM6AAAAABH5TQIBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRXGU4TANJSHE https://github.com/notifications/unsubscribe-auth/AYF464OARYILEA6NTGOE7L3ZDYKYHAVCNFSM6AAAAABH5TQIBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRXGU4TANJSHE . You are receiving this because you were mentioned.Message ID: @.>

having the same issue with the switches and plugs resetting. the webpage can be disabled using the following setting in esphome:

web_server: !remove

this seems to stabilize the switches and plugs until a fix is in place at least for me

— Reply to this email directly, view it on GitHub https://github.com/KaufHA/kauf-rgb-switch/issues/17#issuecomment-2132060749, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYF464JUKPR26I7NI7Q6BODZEFQN5AVCNFSM6AAAAABH5TQIBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZSGA3DANZUHE . You are receiving this because you were mentioned.Message ID: @.***>

lmaced0 commented 2 days ago

I just recently bought the switches and I am also experiencing the disconnects. Leaving the computer pinging the switch I get frequent timeouts. I keep seeing these in the logs if any of these make sense...

I've noticed that sometimes, when the timeouts happen, the switch will default to a light blue color and the small light will blink red for a few seconds.

I have the 4m model. How would I set the minimal yaml onto those?

Any way, when it works this is fantastic. Extremely low latency and fast changing leds.

lmaced0 commented 1 day ago

This is always showing up in the logs if helpful.

21:00:50    [E] [json:041]  
Could not allocate memory for JSON document! Requested 432 bytes, largest free heap block: 432 bytes
21:00:50    [E] [json:041]  
Could not allocate memory for JSON document! Requested 296 bytes, largest free heap block: 296 bytes
21:00:50    [E] [json:041]  
Could not allocate memory for JSON document! Requested 392 bytes, largest free heap block: 392 bytes
21:00:50    [E] [json:041]  
Could not allocate memory for JSON document! Requested 328 bytes, largest free heap block: 328 bytes