You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## User Guide: Integrating a Pool Heater with EMHASS for Home Assistant
12
+
13
+
This guide explains how to connect your pool heater to Home Assistant and optimize its energy usage using the EMHASS add-on. Learn to schedule heating during low-cost periods, align operation with solar surplus, and automate temperature control.
14
+
15
+
---
16
+
17
+
### **1. Prerequisites**
18
+
19
+
-**Pool Heater**:
20
+
- Must support on/off control via a relay (e.g., via a smart switch like Shelly, Sonoff, or Tuya).
21
+
- (Optional) Temperature sensor for pool water (e.g., Zigbee/Z-Wave sensor or DIY ESPHome device).
- Integration for controlling the heater (e.g., [Shelly](https://www.home-assistant.io/integrations/shelly/), [localTuya](https://github.com/rospogrigio/localtuya)).
25
+
26
+
---
27
+
28
+
### **2. Home Assistant Integration**
29
+
30
+
#### **A. Connect the Pool Heater**
31
+
32
+
1.**Smart Switch Setup**:
33
+
- Wire the pool heater’s power control to a smart relay (e.g., Shelly 1).
34
+
- Integrate the relay with Home Assistant (e.g., via Shelly’s official integration or MQTT).
35
+
- Entity example: `switch.pool_heater`.
36
+
2.**Temperature Monitoring**:
37
+
- Add a temperature sensor (e.g., `sensor.pool_temperature`).
38
+
- For DIY solutions, use an ESP32 with a waterproof DS18B20 probe and ESPHome.
39
+
40
+
#### **B. Verify Entities**
41
+
42
+
- Confirm these entities exist in Home Assistant:
43
+
- Heater control: `switch.pool_heater`
44
+
- Power consumption: `sensor.pool_heater_power` (via smart plug or energy monitor).
45
+
- Pool temperature: `sensor.pool_temperature`
46
+
47
+
---
48
+
49
+
### **3. EMHASS Configuration**
50
+
51
+
#### **A. Define Pool Heater as a Deferrable Load**
52
+
53
+
In EMHASS’s `config.json` or web UI:
54
+
55
+
```json
56
+
{
57
+
"deferrable_loads": {
58
+
"pool_heater": {
59
+
"entity_id": "switch.pool_heater",
60
+
"max_power": 4000, // Heater power in Watts (e.g., 4kW)
61
+
"def_start_time": "06:00", // Earliest allowed start time
62
+
"def_end_time": "22:00", // Latest allowed end time
63
+
"def_hours": [3, 12] // Min/max daily runtime in hours
64
+
}
65
+
}
66
+
}
67
+
```
68
+
69
+
- Adjust `def_hours` seasonally (e.g., `[^3][^9]` in summer, `[^6]` in winter).
70
+
71
+
72
+
#### **B. (Optional) Thermal Model for Temperature Control**
73
+
74
+
For precise temperature management, use EMHASS’s thermal model:
75
+
76
+
```json
77
+
{
78
+
"def_load_config": {
79
+
"pool_heater": {
80
+
"thermal_config": {
81
+
"heating_rate": 2.0, // Degrees per hour (adjust based on heater capacity)
82
+
"cooling_constant": 0.05, // Heat loss rate (adjust for pool insulation)
83
+
"start_temperature": 20, // Initial pool temperature
84
+
"desired_temperatures": [22, 22, ..., 22] // Target temps for each timestep
85
+
}
86
+
}
87
+
}
88
+
}
89
+
```
90
+
91
+
- Provide `outdoor_temperature_forecast` for accurate heat loss calculations.
92
+
93
+
---
94
+
95
+
### **4. Automation Examples**
96
+
97
+
#### **A. Solar-Powered Heating**
98
+
99
+
Run the heater only when solar production exceeds household load:
- [ESPHome Pool Sensor Example](https://esphome.io/components/sensor/dallas.html)
174
+
175
+
By integrating your pool heater with EMHASS, you can reduce energy costs, extend swimming seasons, and maintain comfortable water temperatures using solar power and smart scheduling.
0 commit comments