Hello everyone, I’m reaching out to seek some guidance on automating the solar charging of my Tesla Model S. I’ve been trying to set up a rule in openHAB to manage this process, but I’m hitting a bit of a snag and could really use some advice or pointers.
My Setup: I have a solar power system connected to a Kostal Plenticore Plus 10 inverter without a battery. The electric car is charged using an older version of the Tesla wall charger, which doesn’t have WiFi capabilities. The goal is to start charging the car when the solar power output exceeds 4000W and stop charging once it drops below this threshold.
What I’ve Done So Far: I’ve set up the Tesla car and the inverter as things in openHAB. I have various channels configured, including DCPower on the inverter, which returns the energy value, Charge Cable on the car, and Charge Enable Request, which is a switch. The challenge lies in creating the rule logic. I understand that I need to monitor the DCPower value, but I’m struggling with how to incorporate this into the rule’s ‘when’ section effectively.
The Issue: The main hurdle is translating the DCPower value into a condition that triggers the charging process. I’m not entirely sure how to structure the logic to start charging when the power exceeds 4000W and stop when it falls below. I’ve looked for examples or documentation that might illustrate a similar setup, but I haven’t found anything quite matching my scenario.
Possible Solutions: I’m considering whether I need to use a transformation or converter to make the DCPower value usable in the rule’s condition. Perhaps there’s a way to map the numerical value to a boolean state that the rule can interpret. I’m also thinking about whether there are any existing rules or bindings that handle similar power threshold checks that I could adapt.
Looking for Help: If anyone has experience with setting up similar automation rules, especially involving power thresholds and device charging, I’d greatly appreciate any tips, resources, or example rules you could share. Understanding how to structure the logic or where to look for relevant documentation would be incredibly helpful.
Thank you in advance for any assistance you can provide. I’m really excited to get this automation working and would love to hear from anyone who has tackled a similar project!