MyToyota Dashboard
Moderator: leecollings
-
- Posts: 41
- Joined: Sunday 19 July 2015 10:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
MyToyota Dashboard
I tried to use the pytoyoda package to feed data to domoticz which sort of works, but it's not pretty, so I wrote an independent frontend for it
https://github.com/stone17/mytoyota-dashboard
I plan on adding domoticz integration next using mqtt, but maybe someone wants to try this one and give input
Edit Waltervl: split off the Toyota python plugin topic
https://github.com/stone17/mytoyota-dashboard
I plan on adding domoticz integration next using mqtt, but maybe someone wants to try this one and give input
Edit Waltervl: split off the Toyota python plugin topic
-
- Posts: 797
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
Re: Python Plugin: Toyota
Installation instruction contains an error:mxpwr wrote: ↑Sunday 03 August 2025 14:04 I tried to use the pytoyoda package to feed data to domoticz which sort of works, but it's not pretty, so I wrote an independent frontend for it
https://github.com/stone17/mytoyota-dashboard
I plan on adding domoticz integration next using mqtt, but maybe someone wants to try this one and give input
Code: Select all
git clone <repository_url>
Hans
-
- Posts: 41
- Joined: Sunday 19 July 2015 10:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: Toyota
Thanks, I can fix that. Do you get any other error?
-
- Posts: 797
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
Re: Python Plugin: Toyota
Yes.
Code: Select all
docker-compose up -d --build
Code: Select all
docker compose up -d --build
Hans
-
- Posts: 797
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
Re: Python Plugin: Toyota
No other errors found! Aside from these two typo's in the installation instruction, the setup went very smoothly.
I am impressed with this plugin!
Will be playing with it some more.
Already see one change request: in "historical data" the options are 7, 30 or 90 days. Could you add "all"?
I am impressed with this plugin!
Will be playing with it some more.
Already see one change request: in "historical data" the options are 7, 30 or 90 days. Could you add "all"?
Hans
-
- Posts: 41
- Joined: Sunday 19 July 2015 10:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: Toyota
Thanks for trying. I vibe coded this in less than 10h with Gemini 2.5pro. I'll add the "view all" this weekend.manjh wrote: ↑Tuesday 05 August 2025 13:33 No other errors found! Aside from these two typo's in the installation instruction, the setup went very smoothly.
I am impressed with this plugin!
Will be playing with it some more.
Already see one change request: in "historical data" the options are 7, 30 or 90 days. Could you add "all"?
-
- Posts: 797
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
Re: Python Plugin: Toyota
Missing on the dashboard panel: battery level (%), and EV consumption (kWh/100).
Perhaps because the author has a hybrid, not a PHEV?
If you want, I can do the testing!
Perhaps because the author has a hybrid, not a PHEV?
If you want, I can do the testing!
Hans
-
- Posts: 41
- Joined: Sunday 19 July 2015 10:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: Toyota
Yes, I have a hybrid. I was wondering if this will work with other types of cars. If you get me your logs, I can probably fix this.
-
- Posts: 41
- Joined: Sunday 19 July 2015 10:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: Toyota
i added "all" option and some other things (heatmap and histogram plot).manjh wrote: ↑Tuesday 05 August 2025 13:33 No other errors found! Aside from these two typo's in the installation instruction, the setup went very smoothly.
I am impressed with this plugin!
Will be playing with it some more.
Already see one change request: in "historical data" the options are 7, 30 or 90 days. Could you add "all"?
-
- Posts: 41
- Joined: Sunday 19 July 2015 10:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: Toyota
MQTT for domoticz is integrated. current sensors are:
Odomoter
Fuel Consumption
Fuel Level
Lock Status
Odomoter
Fuel Consumption
Fuel Level
Lock Status
-
- Posts: 797
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
Re: Python Plugin: Toyota
I did the docker compose update. But don't see the difference on the screens. Do I need to manually restart something?mxpwr wrote: ↑Friday 08 August 2025 21:33i added "all" option and some other things (heatmap and histogram plot).manjh wrote: ↑Tuesday 05 August 2025 13:33 No other errors found! Aside from these two typo's in the installation instruction, the setup went very smoothly.
I am impressed with this plugin!
Will be playing with it some more.
Already see one change request: in "historical data" the options are 7, 30 or 90 days. Could you add "all"?
Hans
-
- Posts: 797
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
Re: Python Plugin: Toyota
Mentioned this before: "docker-compose" does not work, "docker compose" does. Same thing for the update instructions.
Hans
-
- Posts: 797
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
Re: Python Plugin: Toyota
Can you describe location and name of the log you need?
Hans
-
- Posts: 41
- Joined: Sunday 19 July 2015 10:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: Toyota
I sent you a pm with the instructions.
After the update, you should have mqtt settings on the settings page.
After the update, you should have mqtt settings on the settings page.
-
- Posts: 797
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
Re: Python Plugin: Toyota
Got it, update done.
Now going into MQTT work.
I did the settings as described, added a source node to Node-Red. Nothing comes in.
Now going into MQTT work.
I did the settings as described, added a source node to Node-Red. Nothing comes in.
Hans
-
- Posts: 797
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
Re: Python Plugin: Toyota
Checked the log:
So it looks like it is sending data, but my MQTT does not receive. Tried this with both my test and prod MQTT/NodeRed setup.
It seems the app skips sending info to the broker when nothing has changed. This makes it a bit difficult to test...
I tried to unlock the car and then refresh the data, it show the status OK on the dashboard. But no change to MQTT.
I remember you mentioned there are only a few items at this point sent to MQ, perhaps I shoould wait for that?
Code: Select all
2025-08-09 10:19:01,331 - app.mqtt - INFO - Preparing to publish MQTT data for VIN: (removed VIN)
2025-08-09 10:19:01,331 - app.mqtt - DEBUG - Using MQTT base topic: mytoyota
2025-08-09 10:19:01,332 - app.mqtt - INFO - Finished publishing data for (removed VIN)
It seems the app skips sending info to the broker when nothing has changed. This makes it a bit difficult to test...
I tried to unlock the car and then refresh the data, it show the status OK on the dashboard. But no change to MQTT.
I remember you mentioned there are only a few items at this point sent to MQ, perhaps I shoould wait for that?
Last edited by manjh on Saturday 09 August 2025 12:53, edited 1 time in total.
Hans
-
- Posts: 797
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
Re: Python Plugin: Toyota
Just to make sure the settings are OK, I changed the IP address of the MQTT server to a non-existing server.
This throws some error messages. Basically it is OK, since there is no server. But perhaps it is more user friendly to catch this error and display a simple error message, including the IP address that was used.
For instance: "Non existing path to MQTT server, using IP 10.0.0.123"
These are the errors I see now:
This throws some error messages. Basically it is OK, since there is no server. But perhaps it is more user friendly to catch this error and display a simple error message, including the IP address that was used.
For instance: "Non existing path to MQTT server, using IP 10.0.0.123"
These are the errors I see now:
Code: Select all
[/code2025-08-09 10:22:54,996 - app.mqtt - ERROR - Failed to connect to MQTT broker: [Errno 113] No route to host
Traceback (most recent call last):
File "/app/app/mqtt.py", line 29, in get_client
client.connect(host, port)
File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 1435, in connect
return self.reconnect()
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 1598, in reconnect
self._sock = self._create_socket()
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 4609, in _create_socket
sock = self._create_socket_connection()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 4640, in _create_socket_connection
return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/socket.py", line 863, in create_connection
raise exceptions[0]
File "/usr/local/lib/python3.11/socket.py", line 848, in create_connection
sock.connect(sa)
OSError: [Errno 113] No route to host]
Hans
-
- Posts: 41
- Joined: Sunday 19 July 2015 10:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: Toyota
You need to have the mqtt server set up. See instructions here.
https://wiki.domoticz.com/MQTT
I updated the readme with mqtt instructions, but this part is still missing.
https://wiki.domoticz.com/MQTT
I updated the readme with mqtt instructions, but this part is still missing.
-
- Posts: 797
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
Re: Python Plugin: Toyota
I have a working MQ setup, it interfaces to Domoticz...mxpwr wrote: ↑Saturday 09 August 2025 12:30 You need to have the mqtt server set up. See instructions here.
https://wiki.domoticz.com/MQTT
I updated the readme with mqtt instructions, but this part is still missing.
I use the Aedes broker in Node-Red. When I attach a debug node to the output, I can see the connection with the Toyota app.
Code: Select all
9-8-2025, 12:50:51node: debug 31
client : msg : Object
{ topic: "client", payload: object, _msgid: "44843fdb118ce35a" }
9-8-2025, 12:50:51node: debug 31
clientReady : msg : Object
{ topic: "clientReady", payload: object, _msgid: "a08a65a7ec844676" }
9-8-2025, 12:50:54node: debug 31
clientDisconnect : msg : Object
{ topic: "clientDisconnect", payload: object, _msgid: "b21b327f330f
Would it be possible to (temporarily) remove that check on changed data, so it will always send data to MQTT after a refresh?
Hans
Who is online
Users browsing this forum: No registered users and 0 guests