nfarina / homebridge-tesla

Tesla plugin for homebridge: https://github.com/nfarina/homebridge
154 stars 38 forks source link

Could Window control be added? #105

Open lostcup opened 1 year ago

lostcup commented 1 year ago

I noticed that Tesla has API for window controls, could it be added to be configured? I think a switch with Off for close and On for vent will be nice. Thank you.

POST /api/1/vehicles/{id}/command/window_control Controls the windows. Will vent or close all windows simultaneously. lat and lon values must be near the current location of the car for close operation to succeed. For vent, the lat and lon values are ignored, and may both be 0 (which has been observed from the app itself). Parameters

nfarina commented 1 year ago

I would be open to merging a PR for this!