Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tesla Driver Driver
#1
Finally got around to writing  a quick driver to interface with Tesla. I used the TeslaFi with aToken interface instead of the native Tesla api as there is lots of issues with polling your car and it not going to sleep. TeslaFi api seems to be very advanced and does a great job at letting the car go to sleep,  so I used it... Looks like TeslaFi polls the car every minute or two. CQC Driver updates every 30 seconds. TeslaFi limits all requests and commands to 3 data calls per minute but that should be enough.
Test Driver attached. All data fields are read only.

[Image: tXf3Tpg.jpg]


Attached Files
.cqcdrvpack   TeslaFi_1.5.CQCDrvPack (Size: 14.49 KB / Downloads: 2)
_______________
Denon 3808ci, 2112ci ,Sonos, NoVo Grand Concerto, Z-Wave(Lights,Locks), Hue, SmartThings,
iPads,Tivo,Hikvision,Elk-M1,TED5000,Somfy RTS blinds+ZRTSI, Amazon Echos+Dots, Polk XRT12,
Honeywell Wi-Fi 9000, Caleo Wi-Fi Thermostats, Rainmachine
Reply
#2
Use the progress bar widget for that sort of thing.
Dean Roddey
Explorans limites defectum
Reply
#3
(02-22-2020, 05:42 AM)Dean Roddey Wrote: Use the progress bar widget for that sort of thing.
Not sure that will work for me.. I need a 97.3 degree mask cut off angle (sideways left to right). Probably would not be too hard to add as an enhancement for the progress bar widget a + or - degree edge angle but not sure anyone else would need that capability.

Unless you can think the progress bar can do  and angled edge some way most likely will just go with a Field Mapped Image and make 10 semi-transparent battery gauge indicators for 10%,20%,.....100%.

Thanks
Kevin
_______________
Denon 3808ci, 2112ci ,Sonos, NoVo Grand Concerto, Z-Wave(Lights,Locks), Hue, SmartThings,
iPads,Tivo,Hikvision,Elk-M1,TED5000,Somfy RTS blinds+ZRTSI, Amazon Echos+Dots, Polk XRT12,
Honeywell Wi-Fi 9000, Caleo Wi-Fi Thermostats, Rainmachine
Reply
#4
The progress bar can do just about anything visually, since you provide the image mask for the fill. You'd set it for left to right, but create a triangular mask most likely, so that it gets higher as it moves right.
Dean Roddey
Explorans limites defectum
Reply
#5
(02-23-2020, 07:39 AM)Dean Roddey Wrote: The progress bar can do just about anything visually, since you provide the image mask for the fill. You'd set it for left to right, but create a triangular mask most likely, so that it gets higher as it moves right.
Sorry, Not sure I understand.  Seems the line between the image mask and the Bar Bgn is always a straight line.  The mask or the background does not move to allow a slanted Fill line.
_______________
Denon 3808ci, 2112ci ,Sonos, NoVo Grand Concerto, Z-Wave(Lights,Locks), Hue, SmartThings,
iPads,Tivo,Hikvision,Elk-M1,TED5000,Somfy RTS blinds+ZRTSI, Amazon Echos+Dots, Polk XRT12,
Honeywell Wi-Fi 9000, Caleo Wi-Fi Thermostats, Rainmachine
Reply
#6
The mask can be any shape you want it to be. It can have holes in it, or be a cutout within a large image or whatever. It's just a transparency mask. Wherever it allows the fill color to show, it'll show there. If it's a triangle on its side, then as the fill goes over, it'll get larger vertically as until it's filling it vertically at the end.
Dean Roddey
Explorans limites defectum
Reply
#7
Dean,
I may need to bail out of using the progress bar. I gave it another try today  but cannot get it to work. (my test masks and fill attached). Range of field is 0-100).
Can't figure it out. something about the Fill image the Widget does not like. odd.
Also I think the Bar Bgn color is a must right?  Must the Bar Bgn be a color? Maybe a show stopper. Can it be transparent(to allow for a uncovering of the image that is behind?).


Thanks
kevin


Attached Files
.zip   Progress test mask and background.zip (Size: 22.19 KB / Downloads: 3)
_______________
Denon 3808ci, 2112ci ,Sonos, NoVo Grand Concerto, Z-Wave(Lights,Locks), Hue, SmartThings,
iPads,Tivo,Hikvision,Elk-M1,TED5000,Somfy RTS blinds+ZRTSI, Amazon Echos+Dots, Polk XRT12,
Honeywell Wi-Fi 9000, Caleo Wi-Fi Thermostats, Rainmachine
Reply
#8
Ok after pulling my non-existent hair out past few hours looks like the issue is that it works on the Windows IV but not on the WebRiva. Is that what you would expect?
on WebRiva I use nocache=1 to test so should be a cache issue.

Thanks
kevin

Here is the side by side windows IV and WebRiva. test widget is set to 60 (above car image)
[Image: evyursd.jpg]
_______________
Denon 3808ci, 2112ci ,Sonos, NoVo Grand Concerto, Z-Wave(Lights,Locks), Hue, SmartThings,
iPads,Tivo,Hikvision,Elk-M1,TED5000,Somfy RTS blinds+ZRTSI, Amazon Echos+Dots, Polk XRT12,
Honeywell Wi-Fi 9000, Caleo Wi-Fi Thermostats, Rainmachine
Reply
#9
Ok this may drive me to drink... More...
I did a stop app shell/stop app service and looks like it is now working on WebRiva. Must be some other kind of cache that was stuck.
Will do more testing later but no need to look into at this point until I can reproduce the issue again.
Thanks
Kevin
_______________
Denon 3808ci, 2112ci ,Sonos, NoVo Grand Concerto, Z-Wave(Lights,Locks), Hue, SmartThings,
iPads,Tivo,Hikvision,Elk-M1,TED5000,Somfy RTS blinds+ZRTSI, Amazon Echos+Dots, Polk XRT12,
Honeywell Wi-Fi 9000, Caleo Wi-Fi Thermostats, Rainmachine
Reply
#10
Driver version 1.3 released.
I added the ability for CQC to unlock the doors, turn on Climate Control(pre heat/cool car), and go pick up kids from school. (well all but the last one works, as I don't have the balls to do that one... yet)

I added the 3 command buttons just like the Tesla App. Remote start button does not do anything but added for future use.
thx
Kevin
_______________
Denon 3808ci, 2112ci ,Sonos, NoVo Grand Concerto, Z-Wave(Lights,Locks), Hue, SmartThings,
iPads,Tivo,Hikvision,Elk-M1,TED5000,Somfy RTS blinds+ZRTSI, Amazon Echos+Dots, Polk XRT12,
Honeywell Wi-Fi 9000, Caleo Wi-Fi Thermostats, Rainmachine
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  OpenWeatherMap Weather Driver Using OneCall API kblagron 13 5,162 02-24-2023, 02:07 AM
Last Post: kblagron
  Onkyo/Integra Receiver Driver sic0048 6 327 01-08-2023, 10:24 PM
Last Post: kblagron
  RainMachine Sprinkler Irrigation Controller Driver kblagron 60 23,209 07-17-2022, 08:36 PM
Last Post: kblagron
  SmartThings API V1 driver kfly 5 1,254 02-22-2022, 07:55 AM
Last Post: kfly
  Help on editing existing Driver Spot 5 997 02-03-2022, 06:50 PM
Last Post: kblagron
  New to driver development - where to start? jokermac 2 927 09-22-2021, 04:01 PM
Last Post: Spot
  Yamaha RX-V673 IP control Driver jdmevo123 22 12,206 03-27-2021, 03:02 PM
Last Post: Spot
  Updated SMS Driver gReatAutomation 0 891 01-28-2021, 12:53 PM
Last Post: gReatAutomation
  Sage Media Server driver (beta) Fonceur 698 356,940 07-26-2020, 04:59 PM
Last Post: sic0048
  Russound MCA-66 on TCP driver lapointe.sc@gmail.com 5 3,128 05-24-2020, 06:23 AM
Last Post: gReatAutomation

Forum Jump:


Users browsing this thread: 1 Guest(s)