Replies: 8 comments 44 replies
-
|
I have problems with my ESP's and DHCP where they sometimes use the wrong IP. I have tracked this down to the fact that I have WiFi repeaters and I have to use static IP's for all ESP nodes. This not only causes the ESP to be flakey but there is some other device in my house that's also flakey. To verify, unplug the ESP/plate while pinging the IP. |
Beta Was this translation helpful? Give feedback.
-
|
Flashed back to 0.40 and it seems happy. Stays connected and I see the time updating. Flash to 1.0 and the connection problem returns. |
Beta Was this translation helpful? Give feedback.
-
|
Man this is annoying and I want to get to the bottom of this Ed. There's a lot of the WiFi operation that is something of a black box, specifically the parts that are published by Espressif. See here for a discussion on that. That black box includes a lot of details around WiFi timing, reconnects, etc. I don't know what's different with each release, because Espressif doesn't really say, but the general internet consensus is that Here is a list of available options. I've push a build using the more-recent SDK version 191122. Can you try loading your HASP with the following firmware and see if it behaves any different? Also, I believe you have several HASPs. What is the scope of this issue? Are you seeing it on all of your devices? |
Beta Was this translation helpful? Give feedback.
-
|
Have there been any developments on this? I had to pause working on my issues due to time, but I'm back at it now. I originally posted in this post but was directed here. I was able to try the SDK version 191122 firmware, but I seem to still be having the same disconnecting issues. I have 2 HASPs. The first one, I flashed with the beta firmware to try out blueprints, the second one, I waited until the release of 1.0 firmware. The first HASP was upgraded to 1.0 and doesn't have issues. The second HASP has the issues described here with constant disconnects. I have tried erasing and flashing via usb as well with no luck. |
Beta Was this translation helpful? Give feedback.
-
|
Also running a Unifi network and was having the same problem, then found the @jpelzer 's other thread and it seemed the issues were manifesting exactly the same (mqtt timed out/disconnected, but screen was still responding to taps, and they seemed to break the web-interface hangs) so I decided to try out the test-firmware over there: #43 (reply in thread)
Have not had any of the network/MQTT disconnects since, though it's only been a day or so. But considering it had been happening minimum once a day, seems like a promising fix. |
Beta Was this translation helpful? Give feedback.
-
|
I continue to have issues with one of my HASPs. One connects to my unifi APs and I have no issues. A second HASP continues to have issues with disconnecting. I have also tried a separate AP it seems to keep a connection a little longer, but ultimately it still disconnects from the network. Has anyone else in this thread with the disconnecting issue been able to identify any resolutions? I have also flashed the latest firmware (1.02), and still no improvement. |
Beta Was this translation helpful? Give feedback.
-
|
I am also experiencing issues similar to what is described here. My WIFI network is (cringe) openmesh/cloudtrax, (I would call it day and consider this the issue if I didn't see others with a similar issue;) I am running separate 2.4 and 5 networks and it does help. I have also added another access point near buy, and it helped but... the problem is not gone 100%. My devices are DHCP w reservations so I may go static and try that. I also have several other ESP related switches and sensors in the area that do not seem to have the disconnection issue. One in particular is just a gpio line tied to a reed switch that controls a lamp in HA. The lamp comes on almost instantly every time. These are DIY units. Please ask for clarification if any is needed to help track this down. AND THANK YOU (LUMA) and to everyone who has taken part in this great project! EDIT: v1.02 has made a huge difference, dare I say... fixed. |
Beta Was this translation helpful? Give feedback.
-
|
I know this is an old thread, but I'm a new HASP user (bought fully assembled directly from Etsy and I'm having the same disconnecting problem as noted above. Was this found to be a hardware issue? 2025-12-26 16:19:53: Client closed its connection. |
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
-
Things are just getting worse with this HASP. It won't stay online long enough to do anything with it. I have another HASP next to it (v0.40) that is having no problems staying online. It just keeps cycling over and over.
`UPDATE: Checking update URL: https://raw.githubusercontent.com/HASwitchPlate/HASPone/main/update/version.json
[+63.692s] UPDATE: updateEspAvailableVersion: 1.00
[+63.698s] UPDATE: updateLcdAvailableVersion: 3
[+63.702s] UPDATE: Update check completed
[+63.709s] MQTT OUT: 'hasp/desktop/sensor' : '{"espVersion":1.00,"updateEspAvailable":false,"lcdConnected":true,"lcdVersion":"3","updateLcdAvailable":false,"espUptime":63,"signalStrength":-75,"haspName":"desktop","haspIP":"192.168.1.85","haspClientID":"desktop-a4cf12d5ca9d","haspMac":"a4:cf:12:d5:ca:9d","haspManufacturer":"HASwitchPlate","haspModel":"HASPone v1.0.0","heapFree":23728,"heapFragmentation":19,"heapMaxFreeBlockSize":18792,"espCore":"2_7_4"}'
[+63.782s] MQTT: not connected, connecting.
[+63.786s] MQTT: Configuring MQTT connection without TLS.
[+63.793s] HMI OUT: page 0
[+63.798s] HMI OUT: 'p[0].b[1].font=6'
[+63.978s] HMI IN: [5 bytes]: 0x66 0x00 0xff 0xff 0xff
[+63.984s] HMI IN: [sendme Page] '0'
[+63.997s] HMI OUT: 'p[0].b[1].txt="WiFi Connected!\rë Oxford\rIP: 192.168.1.85\r\rMQTT Connecting:\r 192.168.1.200"'
[+64.008s] MQTT: Attempting connection to broker 192.168.1.200 on port 1883 with TLS disabled as clientID desktop-a4cf12d5ca9d
[+64.040s] HMI OUT: 'p[0].b[1].txt="WiFi Connected!\rë Oxford\rIP: 192.168.1.85\r\rMQTT Connected:\r 192.168.1.200"'
[+64.052s] MQTT: connected
[+64.171s] MQTT: subscribed to hasp/desktop/command/#
[+64.180s] MQTT IN: 'hasp/desktop/command/page' : '2'
[+64.186s] HMI OUT: page 2
[+64.276s] MQTT: subscribed to hasp/plates/command/#
[+64.286s] MQTT: subscribed to hasp/desktop/light/switch/#
[+64.352s] MQTT: subscribed to hasp/desktop/brightness/set/#
[+64.484s] MQTT OUT: 'homeassistant/light/desktop/config' : '{"name":"desktop backlight","command_topic":"hasp/desktop/light/switch","state_topic":"hasp/desktop/light/state","brightness_state_topic":"hasp/desktop/brightness/state","brightness_command_topic":"hasp/desktop/brightness/set","availability_topic":"hasp/desktop/status","brightness_scale":100,"unique_id":"desktop-a4cf12d5ca9d-backlight","payload_on":"ON","payload_off":"OFF","payload_available":"ON","payload_not_available":"OFF","device":{"identifiers":["desktop-a4cf12d5ca9d"],"name":"desktop","manufacturer":"HASwitchPlate","model":"HASPone v1.0.0","sw_version":1.00}}'
[+64.666s] MQTT OUT: 'homeassistant/sensor/desktop/config' : '{"name":"desktop sensor","json_attributes_topic":"hasp/desktop/sensor","state_topic":"hasp/desktop/status","unique_id":"desktop-a4cf12d5ca9d-sensor","icon":"mdi:cellphone-text","device":{"identifiers":["desktop-a4cf12d5ca9d"],"name":"desktop","manufacturer":"HASwitchPlate","model":"HASPone v1.0.0","sw_version":1.00}}'
[+64.941s] MQTT OUT: 'homeassistant/number/desktop/config' : '{"name":"desktop active page","command_topic":"hasp/desktop/command/page","state_topic":"hasp/desktop/state/page","retain":true,"optimistic":true,"icon":"mdi:page-next-outline","unique_id":"desktop-a4cf12d5ca9d-page","device":{"identifiers":["desktop-a4cf12d5ca9d"],"name":"desktop","manufacturer":"HASwitchPlate","model":"HASPone v1.0.0","sw_version":1.00}}'
[+65.005s] MQTT OUT: 'hasp/desktop/light/state' : 'ON'
[+65.071s] MQTT OUT: 'hasp/desktop/brightness/state' : 100
[+65.203s] MQTT: subscribed to hasp/desktop/status
[+65.209s] HMI IN: [5 bytes]: 0x66 0x02 0xff 0xff 0xff
[+65.215s] HMI IN: [sendme Page] '2'
[+65.218s] MQTT OUT: 'hasp/desktop/state/json' : '{"event":"page","value":2}'
[+65.226s] MQTT OUT: 'hasp/desktop/stape/page' : '2'
[+83.526s] Reconne▒ting t▒ WiFi networ▒...
[+86.761s] MQTT: not connected, connecting.
[+86.765s] MQTT: Configuring MQTT connection without TLS.
[+86.772s] HMI OUT: page 0
[+86.777s] HMI OUT: 'p[0].b[1].font=6'
[+86.957s] HMI IN: [5 bytes]: 0x66 0x00 0xff 0xff 0xff
[+86.963s] HMI IN: [sendme Page] '0'
[+86.976s] HMI OUT: 'p[0].b[1].txt="WiFi Connected!\rë Oxford\rIP: 192.168.1.85\r\rMQTT Connecting:\r 192.168.1.200"'
[+86.987s] MQTT: Attempting connection to broker 192.168.1.200 on port 1883 with TLS disabled as clientID desktop-a4cf12d5ca9d
[+87.031s] HMI OUT: 'p[0].b[1].txt="WiFi Connected!\rë Oxford\rIP: 192.168.1.85\r\rMQTT Connected:\r 192.168.1.200"'
[+87.042s] MQTT: connected
[+87.055s] MQTT: subscribed to hasp/desktop/command/#
[+87.068s] MQTT IN: 'hasp/desktop/command/page' : '2'
[+87.074s] HMI OUT: page 2
[+87.276s] MQTT: subscribed to hasp/plates/command/#
[+87.357s] MQTT: subscribed to hasp/desktop/light/switch/#
[+87.372s] MQTT: subscribed to hasp/desktop/brightness/set/#
[+87.384s] MQTT OUT: 'homeassistant/light/desktop/config' : '{"name":"desktop backlight","command_topic":"hasp/desktop/light/switch","state_topic":"hasp/desktop/light/state","brightness_state_topic":"hasp/desktop/brightness/state","brightness_command_topic":"hasp/desktop/brightness/set","availability_topic":"hasp/desktop/status","brightness_scale":100,"unique_id":"desktop-a4cf12d5ca9d-backlight","payload_on":"ON","payload_off":"OFF","payload_available":"ON","payload_not_available":"OFF","device":{"▒dentifiers":["desktop-a4cf12d5ca9d"],"name":"desktop","manufacturer":"HASwitchPlate","model":"HASPone v1.0.0","sw_version":1.00}}'
[+87.491s] MQTT OUT: 'homeassistant/sensor/desktop/config' : '{"name":"desktop sensor","json_attributes_topic":"hasp/desktop/sensor","state_topic":"hasp/desktop/status","unique_id":"desktop-a4cf12d5ca9d-sensor","icon":"mdi:cellphone-text","device":{"identifiers":["desktop-a4cf12d5ca9d"],"name":"desktop","manufacturer":"HASwitchPlate","model":"HASPone v1.0.0","sw_version":1.00}}'
[+87.552s] MQTT OUT: 'homeassistant/number/desktop/config' : '{"name":"desktop active page","command_topic":"hasp/desktop/command/page","state_topic":"hasp/desktop/state/page","retain":true,"optimistic":true,"icon":"mdi:page-next-outline","unique_id":"desktop-a4cf12d5ca9d-page","device":{"identifiers":["desktop-a4cf12d5ca9d"],"name":"desktop","manufacturer":"HASwitchPlate","model":"HASPone v1.0.0","sw_version":1.00}}'
[+87.616s] MQTT OUT: 'hasp/desktop/light/state' : 'ON'
[+87.682s] MQTT OUT: 'hasp/desktop/brightness/state' : 100
[+87.807s] MQTT: subscribed to hasp/desktop/status
[+87.814s] HMI IN: [5 bytes]: 0x66 0x02 0xff 0xff 0xff
[+87.819s] HMI IN: [sendme Page] '2'
[+87.822s] MQTT OUT: 'hasp/desktop/state/json' : '{"event":"page","value":2}'
[+87.831s] MQTT OUT: 'hasp/desktop/state/page' : '2'
[+113.276s] Reconnecting to WiFi ▒etwork...
[+116.5s1s] MQTT: not connected, connecting.
[+116.536s] MQTT: Configuring MQTT connection without TLS.
[+116.543s] HMI OUT: page 0
[+116.548s] HMI OUT: 'p[0].b[1].font=6'
[+116.729s] HMI IN: [5 bytes]: 0x66 0x00 0xff 0xff 0xff
[+116.734s] HMI IN: [sendme Page] '0'
[+116.747s] HMI OUT: 'p[0].b[1].txt="WiFi Connected!\rë Oxford\rIP: 192.168.1.85\r\rMQTT Connecting:\r 192.168.1.200"'
[+116.759s] MQTT: Attempting connection to broker 192.168.1.200 on port 1883 with TLS disabled as clientID desktop-a4cf12d5ca9d
[+116.900s] HMI OUT: 'p[0].b[1].txt="WiFi Connected!\rë Oxford\rIP: 192.168.1.85\r\rMQTT Connected:\r 192.168.1.200"'
[+116.912s] MQTT: connected
[+116.922s] MQTT: subscribed to hasp/desktop/command/#
[+116.932s] MQTT IN: 'hasp/desktop/command/page' : '2'
[+116.938s] HMI OUT: page 2
[+117.050s] MQTT: subscribed to hasp/plates/command/#
[+117.059s] MQTT: subscribed to hasp/desktop/light/switch/#
[+117.070s] MQTT: subscribed to hasp/desktop/brightness/set/#
[+117.081s] MQTT OUT: 'homeassistant/light/desktop/config' : '{"name":"desktop backlight","command_topic":"hasp/desktop/light/switch","state_topic":"hasp/desktop/light/state","brightness_state_topic":"hasp/desktop/brightness/state","brightness_command_topic":"hasp/desktop/brightness/set","availability_topic":"hasp/desktop/status","brightness_scale":100,"unique_id":"desktop-a4cf12d5ca9d-backlight","payload_on":"ON","payload_off":"OFF","payload_available":"ON","payload_not_available":"OFF","device":{"identifiers":["desktop-a4cf12d5ca9d"],"name":"desktop","manufacturer":"HASwitchPlate","model":"HASPone v1.0.0","sw_version":1.00}}'
[+117.188s] MQTT OUT: 'homeassistant/sensor/desktop/config' : '{"name":"desktop sensor","json_attributes_topic":"hasp/desktop/sensor","state_topic":"hasp/desktop/status","unique_id":"desktop-a4cf12d5ca9d-sensor","icon":"mdi:cellphone-text","device":{"identifiers":["desktop-a4cf12d5ca9d"],"name":"desktop","manufacturer":"HASwitchPlate","model":"HASPone v1.0.0","sw_version":1.00}}'
[+117.249s] MQTT OUT: 'homeassistant/number/desktop/config' : '{"name":"desktop active page","command_topic":"hasp/desktop/command/page","state_topic":"hasp/desktop/state/page","retain":true,"optimistic":true,"icon":"mdi:page-next-outline","unique_id":"desktop-a4cf12d5ca9d-page","device":{"identifiers":["desktop-a4cf12d5ca9d"],"name":"desktop","manufacturer":"HASwitchPlate","model":"HASPone v1.0.0","sw_version":1.00}}'
[+117.314s] MQTT OUT: 'hasp/desktop/light/state' : 'ON'
[+117.323s] MQTT OUT: 'hasp/desktop/brightness/state' : 100
[+117.335s] MQTT: subscribed to hasp/desktop/status
[+117.342s] HMI IN: [5 bytes]: 0x66 0x02 0xff 0xff 0xff
[+117.347s] HMI IN: [sendme Page] '2'
[+117.351s] MQTT OUT: 'hasp/desktop/state/json' : '{"event":"page","value":2}'
[+117.359s] MQTT OUT: 'hasp/desktop/state/page' : '2'
`
Beta Was this translation helpful? Give feedback.
All reactions