02-21-2020, 07:36 PM (This post was last modified: 02-21-2022, 10:02 AM by kfly.)
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.
_______________
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
(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
02-23-2020, 07:39 AM (This post was last modified: 02-23-2020, 07:40 AM by Dean Roddey.)
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.
(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
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.
02-24-2020, 06:17 AM (This post was last modified: 02-24-2020, 07:45 AM by kfly.)
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
_______________
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
02-24-2020, 07:50 AM (This post was last modified: 02-24-2020, 07:52 AM by kfly.)
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)
_______________
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
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
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