]>
www.infradead.org Git - users/dwmw2/esp32-pool.git/log
David Woodhouse [Mon, 7 Apr 2025 16:22:36 +0000 (17:22 +0100)]
pool: Add frost protection
The motor on the bypass valve probably burned out when it was being moved
during the winter while it was frozen. Just open it up at 5°C and leave
it open regardless of the temperature of the roof sensor.
Also fix the 'pump_default' script to run later at boot after the time
zone has actually been set, or it does the wrong thing.
And fix the "turn pump on if it's above 20°C in the morning" logic to
actually operate between 7:30am and 10am as it promises, instead of only
between 7:30 to 8, and 8 to 9. Oops :)
David Woodhouse [Mon, 31 Mar 2025 08:43:38 +0000 (09:43 +0100)]
Make encoder direction a parameter
.... and then realise that of course the *board* is the same way round for
all of mine (prototype and in-the-wall); it's just that the motor is
different. So I didn't need it after all.
David Woodhouse [Sun, 9 Mar 2025 10:26:28 +0000 (10:26 +0000)]
Fix up "production" motor direction and GPIO for reed switch
David Woodhouse [Thu, 27 Feb 2025 14:32:31 +0000 (14:32 +0000)]
more cleanups and parameterisation for blinds
David Woodhouse [Wed, 12 Feb 2025 22:41:47 +0000 (22:41 +0000)]
parameterise voltage
David Woodhouse [Wed, 12 Feb 2025 22:22:38 +0000 (22:22 +0000)]
Go slower when rehoming
David Woodhouse [Wed, 12 Feb 2025 22:00:21 +0000 (22:00 +0000)]
reset home once tension is gone
David Woodhouse [Wed, 12 Feb 2025 21:38:26 +0000 (21:38 +0000)]
more stall testing
David Woodhouse [Wed, 12 Feb 2025 20:28:59 +0000 (20:28 +0000)]
parameterise current/speed/stallguard
David Woodhouse [Wed, 12 Feb 2025 16:22:39 +0000 (16:22 +0000)]
Stop motor *after* the part that depends on which way it's going...
David Woodhouse [Wed, 12 Feb 2025 14:47:40 +0000 (14:47 +0000)]
Only reset home on stall if travelling upwards
David Woodhouse [Wed, 12 Feb 2025 14:46:22 +0000 (14:46 +0000)]
Add reed switch, log all stop calls, device-specific wifi
David Woodhouse [Tue, 11 Feb 2025 23:01:06 +0000 (23:01 +0000)]
Reinstate Home command, adjust speed and stallguard thresholds
This will be better once the reed switches are wired up, but it works for now.
David Woodhouse [Tue, 11 Feb 2025 21:57:48 +0000 (21:57 +0000)]
Can go a little faster
David Woodhouse [Tue, 11 Feb 2025 21:51:13 +0000 (21:51 +0000)]
Round cover percentage so it reaches closed
David Woodhouse [Tue, 11 Feb 2025 21:34:27 +0000 (21:34 +0000)]
Reduce current, set microsteps to 1, speed to 500 steps/s
Hopefully no longer triggering the USB PD to cut out during motion
David Woodhouse [Tue, 11 Feb 2025 20:07:01 +0000 (20:07 +0000)]
If sunrise is before 07:30, we don't want to know
David Woodhouse [Tue, 11 Feb 2025 19:30:46 +0000 (19:30 +0000)]
Fixed 50ms poll for encoder, to make open/close detection thresholds meaningful
David Woodhouse [Tue, 11 Feb 2025 19:23:21 +0000 (19:23 +0000)]
Report opening/closing/idle
David Woodhouse [Tue, 11 Feb 2025 18:57:32 +0000 (18:57 +0000)]
Set timezone explicitly
David Woodhouse [Tue, 11 Feb 2025 18:57:24 +0000 (18:57 +0000)]
Add absolute humidity
David Woodhouse [Tue, 11 Feb 2025 18:56:51 +0000 (18:56 +0000)]
short motor coils at standstill
David Woodhouse [Tue, 11 Feb 2025 18:31:13 +0000 (18:31 +0000)]
First mostly working version of blind control
David Woodhouse [Sat, 28 Dec 2024 13:05:40 +0000 (13:05 +0000)]
recalibrate softener balance
David Woodhouse [Sun, 15 Dec 2024 16:49:32 +0000 (16:49 +0000)]
Fix thermostat restart for UFH
The thermostat doesn't know whether the heater is actually on or not, when
it re-engages heating mode. Tell it, otherwise it might leave the heating
on (or off) for ever.
David Woodhouse [Sun, 15 Dec 2024 16:48:34 +0000 (16:48 +0000)]
Move clamp filter to ntc_resistance not temperature
David Woodhouse [Sun, 15 Dec 2024 16:47:35 +0000 (16:47 +0000)]
Kitchen UFH calibration
David Woodhouse [Mon, 9 Dec 2024 09:05:09 +0000 (09:05 +0000)]
Use unified ufh.yaml for kitchen
David Woodhouse [Sun, 8 Dec 2024 16:46:39 +0000 (16:46 +0000)]
Turn off UFH when no valid temperature readings to avoid overheating
And bump the minimum to 8°C because the kitchen unit seems to be reporting
6.95°C even while the NTC isn't connected yet.
David Woodhouse [Sun, 8 Dec 2024 16:13:11 +0000 (16:13 +0000)]
Turn on at estimated time instead of actually ramping up
This should cause fewer switches on the relay.
David Woodhouse [Sun, 8 Dec 2024 14:20:06 +0000 (14:20 +0000)]
Split out underfloor heating / NTC logic to ufh.yaml
David Woodhouse [Mon, 2 Dec 2024 15:26:00 +0000 (15:26 +0000)]
Add kitchen unit
Runs the underfloor heating and humidity sensor above the cooker (which
will be used to trigger the extractor fan)
David Woodhouse [Mon, 2 Dec 2024 15:25:18 +0000 (15:25 +0000)]
No reboot on MQTT/WiFi outage
The Tongou boxes don't always come back from a reboot, so don't.
David Woodhouse [Mon, 2 Dec 2024 09:09:54 +0000 (09:09 +0000)]
Correct docs.
Best not to claim the GPIO used for ADC is three *different* pins. Make
them all agree with the actual code, according to the pin it ended up on.
David Woodhouse [Sun, 20 Oct 2024 15:08:12 +0000 (16:08 +0100)]
Set up MQTT AD for the smart meter
David Woodhouse [Fri, 18 Oct 2024 22:21:35 +0000 (23:21 +0100)]
Report 90 min max (to avoid trigging notifications for regen)
David Woodhouse [Fri, 18 Oct 2024 20:41:58 +0000 (21:41 +0100)]
Avoid rewriting flow temp
David Woodhouse [Thu, 17 Oct 2024 20:11:06 +0000 (21:11 +0100)]
Ramp up flow temp slowly
David Woodhouse [Wed, 16 Oct 2024 20:49:34 +0000 (21:49 +0100)]
Make auto flow temp properly optional
David Woodhouse [Wed, 16 Oct 2024 20:49:11 +0000 (21:49 +0100)]
less noise
David Woodhouse [Tue, 15 Oct 2024 18:30:42 +0000 (19:30 +0100)]
feed to Emoncms
David Woodhouse [Mon, 14 Oct 2024 22:35:03 +0000 (23:35 +0100)]
Feed EmonCMS
David Woodhouse [Mon, 14 Oct 2024 18:24:12 +0000 (19:24 +0100)]
add support for feeding to Emoncms
David Woodhouse [Mon, 14 Oct 2024 18:23:53 +0000 (19:23 +0100)]
More smoothing
David Woodhouse [Thu, 3 Oct 2024 19:48:49 +0000 (20:48 +0100)]
Kill local globals and just use climate
David Woodhouse [Thu, 3 Oct 2024 18:41:52 +0000 (19:41 +0100)]
Add climate thermostat
David Woodhouse [Thu, 3 Oct 2024 15:37:52 +0000 (16:37 +0100)]
Underfloor heating for bathroom
David Woodhouse [Sat, 28 Sep 2024 10:56:50 +0000 (11:56 +0100)]
send COP every time
David Woodhouse [Sat, 28 Sep 2024 10:36:46 +0000 (11:36 +0100)]
Compute COP
David Woodhouse [Sat, 28 Sep 2024 09:26:59 +0000 (10:26 +0100)]
Add heishamon
David Woodhouse [Sat, 28 Sep 2024 09:26:09 +0000 (10:26 +0100)]
rename power-light3
David Woodhouse [Sat, 28 Sep 2024 09:25:25 +0000 (10:25 +0100)]
clean up faikin
David Woodhouse [Sat, 28 Sep 2024 09:24:59 +0000 (10:24 +0100)]
BK7231 IPv6 support, hbridge, and BL0942 fixes
David Woodhouse [Fri, 6 Sep 2024 21:58:45 +0000 (22:58 +0100)]
oldsoftener bl0942 test
David Woodhouse [Fri, 6 Sep 2024 21:58:29 +0000 (22:58 +0100)]
Use cbu for Tongou units
David Woodhouse [Fri, 6 Sep 2024 21:58:08 +0000 (22:58 +0100)]
update other devices
David Woodhouse [Fri, 6 Sep 2024 21:57:41 +0000 (22:57 +0100)]
Add debug
David Woodhouse [Fri, 6 Sep 2024 15:18:38 +0000 (16:18 +0100)]
Update power unit names
David Woodhouse [Fri, 6 Sep 2024 08:56:16 +0000 (09:56 +0100)]
IPv6 support for bk72xx
David Woodhouse [Fri, 6 Sep 2024 08:55:46 +0000 (09:55 +0100)]
rough calibrations
David Woodhouse [Fri, 6 Sep 2024 08:54:45 +0000 (09:54 +0100)]
Separate MQTT log streams
David Woodhouse [Thu, 15 Aug 2024 05:10:45 +0000 (06:10 +0100)]
Add Tongou power meters
David Woodhouse [Sun, 11 Aug 2024 08:59:07 +0000 (09:59 +0100)]
Fix uniq_id for duplicate sensors
David Woodhouse [Sun, 11 Aug 2024 08:58:50 +0000 (09:58 +0100)]
Fix fan timeout if turned on via HA MQTT
David Woodhouse [Fri, 9 Aug 2024 17:37:02 +0000 (18:37 +0100)]
Faikin finally working (with external pullup on RX)
David Woodhouse [Thu, 8 Aug 2024 16:21:48 +0000 (17:21 +0100)]
Host mode ecodan support
David Woodhouse [Thu, 8 Aug 2024 16:06:08 +0000 (17:06 +0100)]
esp-idf for Faikin too
David Woodhouse [Wed, 7 Aug 2024 21:59:03 +0000 (22:59 +0100)]
update from MQTT
David Woodhouse [Wed, 7 Aug 2024 21:08:58 +0000 (22:08 +0100)]
Update paper to use base.yaml
David Woodhouse [Wed, 7 Aug 2024 15:53:51 +0000 (16:53 +0100)]
Convert pool to esp-idf and base.yaml
No IPv6 yet as pool currently has static IP
David Woodhouse [Wed, 7 Aug 2024 15:09:16 +0000 (16:09 +0100)]
Package for humidity common code too
David Woodhouse [Wed, 7 Aug 2024 15:16:52 +0000 (16:16 +0100)]
Use base package for softener
David Woodhouse [Wed, 7 Aug 2024 14:51:34 +0000 (15:51 +0100)]
Move common config to base.yaml package
Use oldsoftener as a test for now
David Woodhouse [Wed, 7 Aug 2024 15:12:43 +0000 (16:12 +0100)]
Use AtomS3 Lite for softener
David Woodhouse [Tue, 6 Aug 2024 08:46:33 +0000 (09:46 +0100)]
Use dimmer switch for hum threshold, harmonise bathroom and toilet
David Woodhouse [Mon, 5 Aug 2024 19:41:53 +0000 (20:41 +0100)]
Add humidity fan controller for toilet, tweak bathroom to match
Turns out WiFi reception here is even worse than in the bathroom. By
switching to esp-idf framework, turning off low power mode *and* setting
the preferred BSSID manually, it does actually work.
Update the bathroom to match. Untested until that actually does get back
on the network, or I go prod at it with a serial cable...
David Woodhouse [Wed, 31 Jul 2024 00:05:09 +0000 (01:05 +0100)]
Add esphome-ecodan-hp
David Woodhouse [Tue, 30 Jul 2024 23:24:47 +0000 (00:24 +0100)]
Add faikin module
David Woodhouse [Tue, 30 Jul 2024 20:36:08 +0000 (21:36 +0100)]
Stop turning the damn pump off!
David Woodhouse [Wed, 15 May 2024 10:13:39 +0000 (11:13 +0100)]
Open bypass valve when turning pump on even when the roof is warm
It *still* might be colder than the water temperature, and there's no
harm in letting it keep warming up for another minute.
Also stop writing the valve state to flash each time it changes.
David Woodhouse [Mon, 13 May 2024 10:26:07 +0000 (11:26 +0100)]
Documentation
David Woodhouse [Mon, 13 May 2024 09:56:33 +0000 (10:56 +0100)]
Force bypass valve open before timed pump switch-on at 10am
No point doing this at 6:59 now, as the pump doesn't come on
unconditionally at 7am any more.
David Woodhouse [Mon, 13 May 2024 09:28:07 +0000 (10:28 +0100)]
Turn pump on in the morning when roof temp above 20°C
Instead of coming on at 7am and using the pool water to warm the
roof. Turn on at 10am at the latest, anyway.
David Woodhouse [Fri, 10 May 2024 19:40:03 +0000 (20:40 +0100)]
Fix pump off time
Setting the off time to 20h in the pump_default script but still
invoking it at 19h didn't work very well. It turned the pump back
*on* again at 19h. After it had turned off nicely at about 18h.
Set it back to 19h as before
David Woodhouse [Fri, 10 May 2024 19:39:47 +0000 (20:39 +0100)]
Adjust on/off thresholds for valve
David Woodhouse [Thu, 9 May 2024 22:14:51 +0000 (23:14 +0100)]
Input temp offset to 0.1°C; there's too much hysteresis with 0.2°C
Also reduce the pump-off time to ten minutes. Half an hour is much too long.
David Woodhouse [Thu, 9 May 2024 09:38:56 +0000 (10:38 +0100)]
Retain switch settings across reboot
David Woodhouse [Thu, 9 May 2024 09:27:09 +0000 (10:27 +0100)]
Turn pump off when it gets cold after 5pm
There's still some water flow through the roof even when the bypass valve
is open. So stop pumping completely if it stays cold for more than half
an hour. But *only* after 5pm, because the pump *does* need to run for
enough hours each day to actually clean the water, and because this way
I don't need to bother with a trigger for actually turning it back on
again — if it's already cold after 5pm, it's unlikely to warm up again.
Bump the timed switch off to 8pm, because this should now be the primary
way the pump is turned off.
David Woodhouse [Thu, 9 May 2024 09:03:23 +0000 (10:03 +0100)]
Debug pump auto-on
David Woodhouse [Thu, 9 May 2024 07:31:13 +0000 (08:31 +0100)]
Adjust delta for new input sensor
David Woodhouse [Wed, 8 May 2024 11:39:34 +0000 (12:39 +0100)]
Force bypass valve open before turning pump on in the morning
David Woodhouse [Wed, 8 May 2024 11:16:46 +0000 (12:16 +0100)]
New solar_in sensor in new pipework
David Woodhouse [Wed, 14 Feb 2024 10:34:09 +0000 (10:34 +0000)]
Paper working now
David Woodhouse [Fri, 26 Jan 2024 10:24:27 +0000 (10:24 +0000)]
BUSY pin is inverted, not RESET
David Woodhouse [Fri, 26 Jan 2024 10:18:42 +0000 (10:18 +0000)]
Always turn the LEDs on
David Woodhouse [Sun, 14 Jan 2024 18:13:01 +0000 (18:13 +0000)]
Add epaper board
David Woodhouse [Mon, 27 Nov 2023 11:06:38 +0000 (11:06 +0000)]
Add water softener measure
David Woodhouse [Fri, 10 Nov 2023 12:24:42 +0000 (12:24 +0000)]
Add bathroom humidity sensor and fan control unit
David Woodhouse [Fri, 10 Nov 2023 12:24:21 +0000 (12:24 +0000)]
Filter out zero temperatures too
David Woodhouse [Fri, 8 Sep 2023 16:41:54 +0000 (17:41 +0100)]
Make it 0.2°C adjustment