So I’ve been fiddling around with this and just can’t get it to work. Teslafi is a website that monitors my car and retrieves all sorts of data that I can pull into HA which I have working fine.
It also allows me to send a few commands to the car. One of these is to turn on the HVAC/air conditioning. I’m using the correct urls as if I pop them in to a web browser they fire just fine, I just can’t get them to work in a switch in HA.
I used the sample code from HA guides and adapted it to my code…
# TeslaFi Switches
- platform: command_line
command_on: "/usr/bin/curl -X GET https://www.teslafi.com/feed.php?token=xxxxx&command=auto_conditioning_start"
command_off: "/usr/bin/curl -X GET https://www.teslafi.com/feed.php?token=xxxxx&command=auto_conditioning_stop"