SmartEVSE / SmartEVSE-3

Smart Electric Vehicle Charging Station (EVSE)
MIT License
113 stars 85 forks source link

Which pins show that car/cable is connected? #41

Closed leadenchopsticks closed 3 months ago

leadenchopsticks commented 1 year ago

I have connected the SWITCH terminal of my SmartEVSE3 to a switch actuator of my KNX installation, so I can trigger the EVSE on/off based on the lowest hourly electricity rate. This is working great. Now to further optimize my scripts I'd like to know if my car is connected to the EVSE, even when not charging (e.g. switch is off). I was thinking of using the locking actuator pins for this and connect them to a binary input device. However I guess that the locking actuator will not do anything when I connect my car while the EVSE is still off.

Would this be possible at all using the SmartEVSE pins, or should I be looking at using an API for this?

arpiecodes commented 1 year ago

You could take a look at the Serkri fork, the version there offers an HTTP API you could use to determine whether the car is connected or not. https://github.com/serkri/SmartEVSE-3

dingo35 commented 3 months ago

You can use the HTTP REST API, or the MQTT API, or the HomeAssistant integration for this; look at the docs!