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
277 stars 72 forks source link

[Feature Request] Add command to update cost #371

Closed danteali closed 1 year ago

danteali commented 1 year ago

Hi, thanks for this awesome project, much appreciated.

Unfortunately my coding skills are lacking and was wondering how difficult it would be to add a command to allow the cost to be updated via MQTT.

I have a sensor in Home Assistant which regularly polls my current electricity cost from my provider. I would love to be able to then push any changes to the Spa via a Home Assistant automation (mqtt.publish).

wyliecoyoteuk commented 1 year ago

This would definitely be a useful feature, as I for example have one rate during the day and another for 00:30AM to 4:30AM

visualapproach commented 1 year ago

Hi,

Thanks for your suggestion. IMO It would be more efficient to do that in HA rather than to push prices to all devices and return to HA. The device publishes both energy consumption and power which can be integrated in HA and multiplied by the price in each moment in time. Maybe someone here already made such a sensor they want to share?

eried commented 1 year ago

I think it can be already done in HA, in the energy dashboard no? (I have tiber as electricity provider but since kWh has been so cheap lately I havent tested this)

chunkysteveo commented 1 year ago

Cheap kWh?! You mustn't live in the UK?! Our prices per kWh unit have tripled in cost this year! My hot tub has been off since June 😢

danteali commented 1 year ago

Lol, don't know why I didn't just think of ignoring the cost from the Spa and using the kWh + cost from supplier.

Would still like to be able to push the kWh price for consistency buy totally not essential.

Thanks

wyliecoyoteuk commented 1 year ago

I am on Octopus Go, and the timer function is a really useful. We have a double tariff, I have set up the Glowmarkt API in Home Assistant, and a helper for the Octopus Go tariff. Only problem is getting the usage to agree with the tariff timing, as the Glowmarkt API is an hour in front. We get cheap (0.075/KWh) between 00:30 and 4:30, so that's when the tub goes on. It is pretty well insulated and in a summerhouse, so it only loses about 1°C in 12 hours. We also charge the car, heat water and set timers for washing, drying, etc.

danteali commented 1 year ago

Damn that's cheap. I'm on Octopus too but not the Go tariff. Need to have a look and see what my options are for moving.

wyliecoyoteuk commented 1 year ago

Octopus Go is for people with an EV, 35.6p/KWh in the day (think it is now 42p) 7.5p/KWh in the early hours. We were lucky enough to fix it in for 12 months in August before the latest rises. At the moment, about 50% of our energy use is at the lower rate. But we have an ASHP for heating, so that will rise quite a bit in the colder weather. Just ordered some Solar panels and a battery!

danteali commented 1 year ago

Don't have an EV (yet) so not an option unfortunately.

And house is in the wrong orientation for solar panels which is a massive frustration. Thinking of getting them anyway even at the lower efficiency.

chunkysteveo commented 1 year ago

And house is in the wrong orientation for solar panels which is a massive frustration. Thinking of getting them anyway even at the lower efficiency.

You'd be surprised how well roof solar works in the UK when it's setup East/West in parallel. One side (East) works for half the day, the other essentially "takes over" on the West side as the Sun shifts over.

... or so I have heard and read - I have no solar yet, but my house is not South facing, but has a perfectly lined up East roof slope and West. One day.....!

(I'm assuming all this on you not having a huge South facing roof?!!)

wyliecoyoteuk commented 1 year ago

Our last house faced south, but it was in a conservation area, so no solar on the roof. Our current property faces almost due South, so should be good. I wish I had gone for it last year before the prices started going up.

chunkysteveo commented 1 year ago

Yeah, I'm predicting that solar will be more and more popular and the price of fitting will skyrocket... surpassing the reduction in panel costs.

wyliecoyoteuk commented 1 year ago

I had problems even getting a quote from local firms. Some have suspended enquiries, some are only taking jobs in a 15 mile radius, some are taking up to 8 weeks to quote. I had one quote that said they couldn't install until June or July 2023. After 3 weeks, I finally got a reasonable quote, and the install is scheduled for November.