MyToyota Dashboard
Moderator: leecollings
-
- Posts: 41
- Joined: Sunday 19 July 2015 10:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: Toyota
Ah, thanks for clarification. I'll add that option.
-
- Posts: 798
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
Re: Python Plugin: Toyota
Meanwhile I am experiencing problems logging into the MyToyota app, is it just me or is their server down?
I tried updating the app, and cleared the cache. No result...
I tried updating the app, and cleared the cache. No result...
Hans
-
- Posts: 41
- Joined: Sunday 19 July 2015 10:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: Toyota
Same here. Can't login through the app.
-
- Posts: 41
- Joined: Sunday 19 July 2015 10:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: Toyota
It works on my iphone and the the python backend, but not my Android phone. I updated Android 16 QPR2 Beta 1, maybe it's related to that.
-
- Posts: 798
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
Re: Python Plugin: Toyota
Received a reply from Toyota tech support, they have problems in their servers and are working on a solution.
Meanwhile the plugin works OK, and also the login via the Toyota website. So it's just the app.
Makes you wonder, a huge company that can build technically wonderful automobiles, but have problems getting a reliable Android app running...
Hans
-
- Posts: 798
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
-
- Posts: 41
- Joined: Sunday 19 July 2015 10:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: Toyota
My plan is to add the option to change settings via http post requests. Then you can have domoticz change the polling interval whenever needed.
-
- Posts: 41
- Joined: Sunday 19 July 2015 10:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: Toyota
The feature is added now.
you can use curl to create the POST request for testing and you can find an example lua script in the readme to trigger it in Domoticz when a specific event occurs.
The curl command to change the polling to 300seconds looks like this:
Code: Select all
curl --silent -X POST -H 'Content-Type: application/json' -d '{"mode": "interval", "interval_seconds": 300}' http://192.168.1.123:8000/api/settings/polling
- waltervl
- Posts: 6029
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: Python Plugin: Toyota
For python plugins a polling setting is normally done by a python plugin parameter. There are 6 parameters available. Debug setting is mostly one of them, so you have 2 spare available.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 798
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
Re: Python Plugin: Toyota
I don't think this is a "real" Domoticz plugin. It is a standalone app that can export values via MQTT, and from there values can be forwarded to Domoticz. At least, that is how I did it.
What we're looking for now is the way back: from Domoticz there will be the ability to change a setting (polling frequency) in the app.
Reason is that we would want a polling frequency of 30 or even 60 minutes normally, except when the vehicle is charging at home. This charging process is completely controlled by Domoticz, and I would want the info from the vehicle to be as accurate as possible. So I would like to change the polling frequency to (maybe) 5 minutes during the charging period. As soon as charging is terminated from Domoticz, polling frequency can go back to 30 or 60 minutes.
Having said all this, making the app a "native" Domoticz plugin is tempting, integration is easier.
On the other hand, it can now run as fully standalone app, or it can feed data into Domoticz or HA. So perhaps this is more flexible?
Hans
-
- Posts: 41
- Joined: Sunday 19 July 2015 10:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: Toyota
Making a domoticz only plugin would remove a lot of functionality I was looking for when I created the dashboard. The current method offers a lot of flexibility how to integrate and use it with domoticz or other automation systems.
- waltervl
- Posts: 6029
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: Python Plugin: Toyota
Then you better create a new topic because this is originally about a plugin and then probably also not a lot to do with python and Domoticz...
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 798
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
Re: Python Plugin: Toyota
Perhaps you're right. Any suggestions on where we can continue this? Or should we move the content?
Hans
-
- Posts: 798
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
Re: Python Plugin: Toyota
Thanks, I will update and test this new feature as soon as I find a little time.mxpwr wrote: ↑Monday 25 August 2025 19:03The feature is added now.
you can use curl to create the POST request for testing and you can find an example lua script in the readme to trigger it in Domoticz when a specific event occurs.
The curl command to change the polling to 300seconds looks like this:Code: Select all
curl --silent -X POST -H 'Content-Type: application/json' -d '{"mode": "interval", "interval_seconds": 300}' http://192.168.1.123:8000/api/settings/polling
Meanwhile, would an import of data via MQTT not be a neat (=easier) way to do it?
Hans
-
- Posts: 41
- Joined: Sunday 19 July 2015 10:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: Toyota
Good idea, didn't think about that option. Ill have a look at it.
-
- Posts: 798
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
Re: Python Plugin: Toyota
It would open the way to having perhaps some more settings updated this way.
With a config window similar to the "sensors to publish"...
Hans
- waltervl
- Posts: 6029
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: MyToyota Dashboard
Splitted the messages into a new topic for the MyToyata Dashboard application.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 798
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
-
- Posts: 798
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
Re: Python Plugin: Toyota
Apologies, I've not yet tested the new development due to some other things I had to attend to.
I'll be away for a short while, back on September 1 or 2 .
Meanwhile, have you had a chance to think about the MQTT interface into the application?
Hans
-
- Posts: 41
- Joined: Sunday 19 July 2015 10:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: MyToyota Dashboard
I added the code, but want to do some more refactoring before I push the changes. Something this weekend.
Who is online
Users browsing this forum: No registered users and 1 guest