Skip to content

Commit 6b19601

Browse files
authored
Update Tesla.md
1 parent 5c8888e commit 6b19601

File tree

1 file changed

+157
-1
lines changed
  • docs/ Inverters_and_batteries/Tesla

1 file changed

+157
-1
lines changed

docs/ Inverters_and_batteries/Tesla/Tesla.md

Lines changed: 157 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,160 @@ parent: Inverters and Batteries
44
layout: default
55
---
66

7-
# Tesla
7+
# Tesla
8+
9+
<img src="https://r2cdn.perplexity.ai/pplx-full-logo-primary-dark%402x.png" class="logo" width="120"/>
10+
11+
## 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].
60+
61+
**B. Configure EMHASS for Solar PV**
62+
63+
- In the EMHASS configuration, set:
64+
65+
```json
66+
{
67+
"sensor_power_photovoltaics": "sensor.powerwall_solar_now"
68+
}
69+
```
70+
71+
or, for solar-only:
72+
73+
```json
74+
{
75+
"sensor_power_photovoltaics": "sensor.tesla_solar_production"
76+
}
77+
```
78+
79+
- Also set your main household load sensor, e.g.:
80+
81+
```json
82+
{
83+
"sensor_power_load_no_var_loads": "sensor.house_load"
84+
}
85+
```
86+
87+
88+
---
89+
90+
## **3. Battery Integration with EMHASS**
91+
92+
**A. Identify Battery Sensors**
93+
94+
- The Powerwall integration provides:
95+
- Battery state of charge: `sensor.powerwall_charge` (percent)[^1]
96+
- Battery power: `sensor.powerwall_battery_now` (kW, negative for charging)[^1]
97+
- Battery capacity: `sensor.powerwall_battery_capacity` (kWh)[^1]
98+
99+
**B. Configure EMHASS for Battery**
100+
101+
- In the EMHASS configuration, add:
102+
103+
```json
104+
{
105+
"sensor_battery_power": "sensor.powerwall_battery_now",
106+
"sensor_battery_soc": "sensor.powerwall_charge",
107+
"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` |
135+
| Battery SOC | `sensor.powerwall_charge` | `sensor_battery_soc` |
136+
137+
138+
---
139+
140+
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].
141+
142+
<div style="text-align: center">⁂</div>
143+
144+
[^1]: https://www.home-assistant.io/integrations/powerwall/
145+
146+
[^2]: https://www.reddit.com/r/Powerwall/comments/1h5pl7n/home_assistant_with_powerwall_3_and_gateway_2/
147+
148+
[^3]: https://www.home-assistant.io/docs/energy/battery/
149+
150+
[^4]: https://community.home-assistant.io/t/tesla-solar-without-powerwall-supported/306812
151+
152+
[^5]: https://robpickering.com/home-assistant-energy-monitoring-of-tesla-solar-panels/
153+
154+
[^6]: https://www.reddit.com/r/TeslaSolar/comments/vcyhm9/tesla_solar_and_home_assistant/
155+
156+
[^7]: https://community.home-assistant.io/t/custom-tesla-integration-and-energy-dashboard/676295
157+
158+
[^8]: https://community.home-assistant.io/t/converting-tesla-solar-watts-sensor-to-kwh-correctly/528780
159+
160+
[^9]: https://www.solarquotes.com.au/blog/best-ev-chargers-2025/
161+
162+
[^10]: https://community.home-assistant.io/t/tesla-solar-charging-script-automation/607903
163+

0 commit comments

Comments
 (0)