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
269 stars 71 forks source link

Code-snippet - only switch pump/heater - nothig more #680

Open ralphi opened 3 months ago

ralphi commented 3 months ago

Hi :-) That's a huge program .. I think most people, like me, only need to switch the heater and pump, depending on the electricity price/PV. Very few people have a smartphone with them in the pool ;-) Unfortunately I cannot extract the corresponding code snippet, or just the important lines with dependencies. My pool is 'IBIZA' with square pumps jet. Do you have a light version for me please with just the switch pump/heater Most people already have Wifi, MQTT, IOBroker, RedNode, LittleFS and so on as a template in their other 'Arduino-ino-Sketches for their home - so you don't need it. PS: On my board (6-Wire) I have a Con3 –> 5V GND ID0 TMS TDI TCK open connector. Can I use that too?

chunkysteveo commented 3 months ago

You can rewrite the html interface with just the heater switch and pump switch yourself if that is all you wanted to see?

If you're looking to turn on the heater based on electricity price or PV working - sounds like you'd then need a link into other systems like HA to track pricing / Sun, and automate turning on/off. Which would be the standard version that gets installed, with MQTT etc. Why would you want to strip these functionality out, to then try to add them back in with your own versions?

ralphi commented 3 months ago

Thanks for the quick reply :-) I only use and know the Arduino SDK :-( Unfortunately I can't get your sketch to compile (with rename main.h –> remote_bsp1.ino and libs –> Arduino/libraries).

.. undefined reference to `_Z23handlePrometheusMetricsv'
.. in function `_ZN6StringC4Ev':
.. undefined reference to `_Z11getBootTimev'
.. in function `_Z8startNTPv':
error: ld returned 1 exit status

As much effort as you put into the full program, I only need your help with the following code snippets:

github-actions[bot] commented 1 month ago

Stale issue message

ralphi commented 1 month ago

Now I bought the module from https://leitung.wifiwhirl.de/ (Gabriel). Worked very cleanly – easy to assemble. Gabriel also worked his way into the program and added a webhook at my request :-) I recommend it to anyone who wants to save themselves work..