visualapproach / WiFi-remote-for-Bestway-Lay-Z-SPA

Hack - ESP8266 as WiFi remote control for Bestway Lay-Z spa Helsinki
GNU General Public License v3.0
287 stars 74 forks source link

Air + heating reports wrong power-usage #756

Open chsw opened 1 month ago

chsw commented 1 month ago

Hardware (please complete the following information):

Software (please complete the following information):

Your message On this pump (at least the one aimed for the Swedish market) only one of the heaters is active when both the heating and air bubbles are active at the same time. But the power-usage reported is both heat 1 and 2. According to an external power meter, the heating seems to use about 850w when active at the same time as the bubbles.

visualapproach commented 1 month ago

Ok, thanks for the info. I think I thought about it when adding the power meters, but decided no one would notice 🫤 Might have a look later. Thx

visualapproach commented 1 month ago

Ok, try dev branch and see if it is working now.

chsw commented 1 month ago

I tried the dev branch. It seems to report a more realistic power usage when using both air and bubbles, but it appears as it affected the energy usage reported (it looks like it only report the correct energy consumed when heating is active).

image

The first drop in the graph showing consumed energy correlates to installing the new firmware.

Unfortunately I also seem to have lost the ability to connect my module to my wifi. As soon as I connect to the layzspa-hotspot and tries to load the page, it reboots. It doesn't allow me to upload a new firmware either, so I haven't been able to verify if this issue is related to the changes made to the ap manager or if it is an hardware issue related to the fact that I run a d1 mini without level-converters.

visualapproach commented 1 month ago

If it worked before I don't think it's a hardware problem.

visualapproach commented 1 month ago

The reboot problem is fixed in todays dev version

visualapproach commented 1 month ago

Reagarding the energy graph. Can you double check this? And compare total kwh vs daily. Not sure what your graph represents. Thx

chsw commented 1 month ago

I managed to get it to connect to my wifi this morning, and upload the latest version from dev. Unfortunately its now "bricked" and I am unable to start the pump at all! Probably need to physically remove the module and flash it...

visualapproach commented 1 month ago

Does it not start the access point?

visualapproach commented 1 month ago

If you uploaded the file system also, you need to do all the settings again.

chsw commented 1 month ago

I only uploaded a new firmware (last 5 commits to dev). No Ap and no response what so ever on the display.

visualapproach commented 1 month ago

OK, well a USB flash would probably be good, so you can see what's happening in the serial monitor. It could be an error in the pump so first try a powercycle of the pump

chsw commented 1 month ago

I have tried to powercycle, but still nothing. I tried the same firmware on a spare esp, and I seem to work there. I cant really access the module inside the pump right now though.

chsw commented 1 month ago

But there is a plot twist. I did try a power cycle and the key combination to reset wifi, nothing worked. But it actually got online by itself a couple of hours later!

I suspect that it might have had connection issues to my wifi (AP Manager is disabled). Is this the expected behaviour in this situation?

visualapproach commented 1 month ago

Oh, if you disable the AP manager you will lock yourself out. I should remove the choice to turn it off but as it's there as a legacy. Just updated the "?" Text.

chsw commented 1 month ago

Ok, so if Ap manager is disabled and it have trouble connecting, it will not forward any data on the lines? I tried to press power-lock-timer-power to reset the wifi, but that didn't really do anything. Seems like I really should enable AP Manager again :)

chsw commented 1 month ago

About the issue with energy usage:

image

Energy is the energy entity and today the today entity, as shown in Home assistant using mqtt integration. Today seem to be unaffected, although the 75Kwh usage today is very strange. But since it had trouble this morning connecting, It might have to do with that.

The (total) energy seem to have two modes. One value which increases when the heater is on (probably the real value). And another value (which also increases over time, but is much smaller) when heater is off.

visualapproach commented 1 month ago

Ok, so if Ap manager is disabled and it have trouble connecting, it will not forward any data on the lines? I tried to press power-lock-timer-power to reset the wifi, but that didn't really do anything. Seems like I really should enable AP Manager again :)

I updated the network config page now. It should be more clear what the checkboxes mean. Basically - do not disable "soft AP".

You should also update to the latest dev firmware, because it will now remember the SSID/pswd even after you upload the file image.

visualapproach commented 1 month ago

About the issue with energy usage:

image

Energy is the energy entity and today the today entity, as shown in Home assistant using mqtt integration. Today seem to be unaffected, although the 75Kwh usage today is very strange. But since it had trouble this morning connecting, It might have to do with that.

The (total) energy seem to have two modes. One value which increases when the heater is on (probably the real value). And another value (which also increases over time, but is much smaller) when heater is off.

testing

visualapproach commented 1 month ago

confirmed. WIP

visualapproach commented 1 month ago

Fixed (dev branch)