Tesla hardware module
Moderator: leecollings
- dyter
- Posts: 40
- Joined: Thursday 08 February 2018 15:48
- Target OS: NAS (Synology & others)
- Domoticz version: 8841
- Location: Lyon
- Contact:
Re: Tesla hardware module
Is it possible to have alarm alert or sentry alert ?
Domoticz v2024.1 on Synology Docker host, RFLink, ESPEasy wemos D1, Ecodevices, relays x8, dahua doorbell, reolink cameras ....
Re: Tesla hardware module
Is it possibile to have Domoticz web interface loading in Tesla web browser?
I always get offline status....
I always get offline status....
-
- Posts: 347
- Joined: Friday 03 April 2015 17:09
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Tesla hardware module
I would like to get a notification from the Tesla API into Domoticz when for example the Tesla is set into the gear to start riding.
When this is possible, I can make a rule in Domoticz that when the Tesla is home and out into the gear (start driving) to open the garage door automatically. Any idea, suggestions on how to do this?
When this is possible, I can make a rule in Domoticz that when the Tesla is home and out into the gear (start driving) to open the garage door automatically. Any idea, suggestions on how to do this?
Re: Tesla hardware module
No help?chrispazz wrote:Is it possibile to have Domoticz web interface loading in Tesla web browser?
I always get offline status....
-
- Posts: 115
- Joined: Sunday 19 January 2020 22:29
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest B
- Location: Netherlands
- Contact:
-
- Posts: 115
- Joined: Sunday 19 January 2020 22:29
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest B
- Location: Netherlands
- Contact:
Re: Tesla hardware module
Unfortunately this is not possible. The Tesla API is a polling based API. You don’t want to poll every second to overload the system, (besides that, a poll already cost 10 seconds) and 10 second delay for something like this is already too much. Also I don’t think the gear is a setting available in the Tesla api. Unfortunately the Tesla can not send out a command all by itself.rgroothuis wrote: ↑Wednesday 02 December 2020 15:14 I would like to get a notification from the Tesla API into Domoticz when for example the Tesla is set into the gear to start riding.
When this is possible, I can make a rule in Domoticz that when the Tesla is home and out into the gear (start driving) to open the garage door automatically. Any idea, suggestions on how to do this?
-
- Posts: 115
- Joined: Sunday 19 January 2020 22:29
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest B
- Location: Netherlands
- Contact:
-
- Posts: 347
- Joined: Friday 03 April 2015 17:09
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Tesla hardware module
I was more or less afraid of this, thanks for the confirmation. Based on polling this is not really going to work. THanks.MrHobbes74 wrote: ↑Tuesday 08 December 2020 0:18The car is polled every 20 minutes, or every minute when home and charging. The detection of an alert (if possible, I’m not sure) will be extremely late I’m afraid.....
-
- Posts: 347
- Joined: Friday 03 April 2015 17:09
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Tesla hardware module
I guess this is about accessing the Domoticz from the display within the Tesla, correct? First question to answer, can you access your Domoticz from the outside world? Have you tested to make a connection from a mobile phone or computer when NOT on the local network. If this doesn't work, then from the Tesla it will for sure also not work. And you also need to look into SSL type certificates and connections, I guess Tesla is checking on a valid certificate when making a connection to a server like Domoticz.MrHobbes74 wrote: ↑Tuesday 08 December 2020 0:07I do not know. But how is this related to the Tesla module in domoticz? Perhaps it’s related to your router?
I will try it from my Tesla in the next couple of days or so. Will let you know the outcome.
Re: Tesla hardware module
Yes, I am trying to access it from display within Tesla.
I am already using my domoticz instance from internet with a domain and a correct SSL (let's encrypt) certificate....
I am already using my domoticz instance from internet with a domain and a correct SSL (let's encrypt) certificate....
-
- Posts: 347
- Joined: Friday 03 April 2015 17:09
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Tesla hardware module
I tried it today, Tesla connected to my local network. Typed in the local IP address of my Domoticz server and nothing was displayed on screen. I guess Tesla is blocking a lot of things like Javascript etc. Only alternative way is work with fixed URL’s and/or build you own web-page.
-
- Posts: 536
- Joined: Friday 23 December 2016 16:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: Netherlands Purmerend
- Contact:
Re: Tesla hardware module
Top my knowledge Tesla builds a VPN to the Tesla network and then goto the internet. So you can only access the domoticz from a public ipaddress.
-
- Posts: 3
- Joined: Sunday 13 December 2020 10:07
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Tesla hardware module
Hi there
I’m new to the Tesla function and I can’t get the home location working. I cannot see the location reported by the Tesla in the logs, so unable to align the values with Domoticz settings.
Is there a deeper level of logging I can access please?
I’m on a recent NAS synology build
Regards
Tim
I’m new to the Tesla function and I can’t get the home location working. I cannot see the location reported by the Tesla in the logs, so unable to align the values with Domoticz settings.
Is there a deeper level of logging I can access please?
I’m on a recent NAS synology build
Regards
Tim
-
- Posts: 115
- Joined: Sunday 19 January 2020 22:29
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest B
- Location: Netherlands
- Contact:
Re: Tesla hardware module
To see the location, you need to enable debug logging mode in the settings.
-
- Posts: 3
- Joined: Sunday 13 December 2020 10:07
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Tesla hardware module
Hi. Thanks for reply
I got the following from debug:
{"gps_as_of":1607864476,"heading":261,"latitude":5x.xxx,"longitude":-0.xxx,"native_latitude":51.xxx,"native_location_supported":1,"native_longitude":-0.xxxx,"native_type":"wgs","power":0,"shift_state":null,"speed":null,"timestamp":1607866064846},"gui_settings":
And then changed my Domoticz location to xxxx Does it need closer accuracy than this, because it’s still reporting “not at home” in Domoticz.
Thanks in advance
Tim
I got the following from debug:
{"gps_as_of":1607864476,"heading":261,"latitude":5x.xxx,"longitude":-0.xxx,"native_latitude":51.xxx,"native_location_supported":1,"native_longitude":-0.xxxx,"native_type":"wgs","power":0,"shift_state":null,"speed":null,"timestamp":1607866064846},"gui_settings":
And then changed my Domoticz location to xxxx Does it need closer accuracy than this, because it’s still reporting “not at home” in Domoticz.
Thanks in advance
Tim
Last edited by Xylophone on Sunday 13 December 2020 15:48, edited 1 time in total.
-
- Posts: 115
- Joined: Sunday 19 January 2020 22:29
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest B
- Location: Netherlands
- Contact:
Re: Tesla hardware module
Yea you need to use all digits! What you put in still has a range of 400-500 meters.
-
- Posts: 3
- Joined: Sunday 13 December 2020 10:07
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Tesla hardware module
Ah. Good point thanks for the “doh”
Now working!
Tim
Now working!
Tim
-
- Posts: 115
- Joined: Sunday 19 January 2020 22:29
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest B
- Location: Netherlands
- Contact:
- dyter
- Posts: 40
- Joined: Thursday 08 February 2018 15:48
- Target OS: NAS (Synology & others)
- Domoticz version: 8841
- Location: Lyon
- Contact:
Re: Tesla hardware module
I make a script for a short car home detection, because when the car is home I want to save energy.MrHobbes74 wrote: ↑Tuesday 08 December 2020 0:18 The car is polled every 20 minutes, or every minute when home and charging. The detection of an alert (if possible, I’m not sure) will be extremely late I’m afraid.....
And when the car isn't home, I log it because his always wake up (sentry, drive ...)
Code: Select all
commandArray = {}
if (devicechanged['Tesla Ping'] == 'Off') then
commandArray['OpenURL'] ='http://127.0.0.1:8084/json.htm?type=command¶m=updatehardware&htype=120&username=[username]&password=[password]'&name=Tesla&enabled=true&idx=18&datatimeout=0&extra=[VIN]&Mode1=5&Mode2=5&Mode3=1 AFTER 1'
elseif devicechanged['Tesla Ping'] == 'On' then
commandArray['OpenURL'] ='http://127.0.0.1:8084/json.htm?type=command¶m=updatehardware&htype=120&username=[username]&password=[password]'&name=Tesla&enabled=true&idx=18&datatimeout=0&extra=[VIN]&Mode1=60&Mode2=5&Mode3=0 AFTER 1'
end
return commandArray
Domoticz v2024.1 on Synology Docker host, RFLink, ESPEasy wemos D1, Ecodevices, relays x8, dahua doorbell, reolink cameras ....
-
- Posts: 33
- Joined: Monday 30 March 2020 19:06
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: DE
- Contact:
Re: Tesla hardware module
Can you help me how to update an oder version of this module? I can't find the original installation instruction and no instruction to update an existing one?
Also I have an feature request: Perhaps you can implement an counter for the car status (awake or not) to see, how long and at which time the car sleeps.
Thanks
Also I have an feature request: Perhaps you can implement an counter for the car status (awake or not) to see, how long and at which time the car sleeps.
Thanks
Who is online
Users browsing this forum: No registered users and 1 guest