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 Tesla Solar and Powerwall with EMHASS for Home Assistant
12
+
13
+
This guide explains how to connect your Tesla solar panels and Powerwall battery system to Home Assistant, and how to use the EMHASS add-on for advanced energy management. Separate sections cover solar PV and battery integration, including sensor setup and best practices.
14
+
15
+
---
16
+
17
+
### **1. Tesla Solar and Powerwall Integration with Home Assistant**
18
+
19
+
#### **A. Powerwall Integration**
20
+
21
+
- Home Assistant natively supports Tesla Powerwall via the `powerwall` integration[^1].
22
+
- The integration can often be auto-discovered. If not, add it manually:
23
+
24
+
1. Go to **Settings > Devices \& Services**.
25
+
2. Click **Add Integration** and search for "Tesla Powerwall".
26
+
3. Follow the on-screen instructions to connect to your Powerwall Gateway[^1].
27
+
- The integration provides a wide range of sensors, including:
28
+
- Solar production (`sensor.powerwall_solar_now`)
29
+
- Battery state of charge (`sensor.powerwall_charge`)
30
+
- Battery power (`sensor.powerwall_battery_now`)
31
+
- Site/grid power, load, and more[^1].
32
+
33
+
34
+
#### **B. Tesla Solar-Only Integration**
35
+
36
+
- If you have Tesla solar panels without a Powerwall, direct integration is more limited.
37
+
- The official Tesla integration supports vehicles, not solar panels[^4].
38
+
- For some setups, the [Tesla Custom Integration by alandtse](https://github.com/alandtse/tesla) (via HACS) can expose a `sensor.tesla_solar_panel` for solar production[^5].
39
+
- This sensor typically reports instantaneous power in Watts. To use it for energy dashboards or EMHASS, convert it to kWh using Home Assistant’s integration platform (see below)[^5].
40
+
41
+
---
42
+
43
+
## **2. Solar PV Integration with EMHASS**
44
+
45
+
**A. Identify Your Solar PV Sensor**
46
+
47
+
- For Powerwall users: Use `sensor.powerwall_solar_now` (power in kW)[^1].
48
+
- For Tesla Custom Integration users: Use `sensor.tesla_solar_panel` (power in W)[^5].
49
+
- Convert Watts to kWh using the Riemann sum integration:
50
+
51
+
```yaml
52
+
- platform: integration
53
+
source: sensor.tesla_solar_panel
54
+
name: tesla_solar_production
55
+
unit_prefix: k
56
+
round: 2
57
+
```
58
+
59
+
- Use the resulting `sensor.tesla_solar_production` for energy values in EMHASS[^5].
"battery_capacity_kwh": 13.5 // Replace with your actual Powerwall size
108
+
}
109
+
```
110
+
111
+
- Adjust charge/discharge limits and reserve settings as needed.
112
+
113
+
**C. Enable Battery Optimization**
114
+
115
+
- EMHASS will now optimize Powerwall charging and discharging, considering your solar production, consumption, and tariffs.
116
+
117
+
---
118
+
119
+
## **4. Tips and Troubleshooting**
120
+
121
+
- **Powerwall 3 Note:** Integration with Powerwall 3 may require the Gateway’s IP address. Some users report issues connecting directly to the Powerwall 3 device; ensure you are using the correct credentials and network address[^2].
122
+
- **Solar-Only Systems:** If you do not have a Powerwall, your options for direct solar integration are limited. Consider using the Tesla Custom Integration or CT clamp sensors for solar monitoring[^3][^5].
123
+
- **Data Conversion:** Always ensure your solar production sensor reports energy (kWh) for EMHASS compatibility. Use Home Assistant’s integration platform if needed[^5].
124
+
- **Automations:** Use EMHASS outputs in your automations to control loads, schedule battery charging, and more.
125
+
126
+
---
127
+
128
+
## **Summary Table: Key Configuration Entities**
129
+
130
+
| Function | Home Assistant Entity Example | EMHASS Config Parameter |
131
+
| :-- | :-- | :-- |
132
+
| Solar PV Power | `sensor.powerwall_solar_now` | `sensor_power_photovoltaics` |
133
+
| Main Load | `sensor.powerwall_load_now` | `sensor_power_load_no_var_loads` |
134
+
| Battery Power | `sensor.powerwall_battery_now` | `sensor_battery_power` |
By following these steps, you can connect your Tesla solar and Powerwall system to Home Assistant and use EMHASS to optimize your energy usage, maximize self-consumption, and automate your home’s energy management[^1][^3][^5].
0 commit comments