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. Will let it run a few weeks to kick the tires so to speak.

[Image: tXf3Tpg.jpg]


Attached Files
.cqcdrvpack   TeslaFi_1.3.CQCDrvPack (Size: 14.27 KB / Downloads: 1)
_______________
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: 1)
_______________
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
  Russound MCA-66 on TCP driver lapointe.sc@gmail.com 5 55 05-24-2020, 06:23 AM
Last Post: gReatAutomation
  Samsung SmartTV Driver George M 0 24 05-20-2020, 09:04 AM
Last Post: George M
  OpenWeatherMap Weather Driver Using OneCall API kblagron 11 149 05-18-2020, 04:09 AM
Last Post: dlmorgan999
  RainMachine Sprinkler Irrigation Controller Driver kblagron 48 2,104 05-18-2020, 03:42 AM
Last Post: kfly
  JVC D-ILA Driver jokermac 34 3,747 04-13-2020, 01:28 AM
Last Post: Mark Stega
  LIFX Driver bobskie708 15 5,811 01-05-2020, 11:00 AM
Last Post: simplextech
  Universal Devices ISY Insteon Driver wuench 369 173,948 12-28-2019, 05:15 PM
Last Post: simplextech
  RunTimer2 driver rbroders 18 7,569 10-17-2019, 04:38 PM
Last Post: rbroders
  Writing Driver - Varying commands based on checksum gReatAutomation 3 757 07-22-2019, 01:08 PM
Last Post: Dean Roddey
  Samsung HLxxA750 DLP Beta Driver jrunde 37 21,245 07-19-2019, 01:24 PM
Last Post: gReatAutomation

Forum Jump:


Users browsing this thread: 1 Guest(s)