MyToyota Dashboard

In this subforum you can show projects you have made, or you are busy with. Please create your own topic.

Moderator: leecollings

mxpwr
Posts: 41
Joined: Sunday 19 July 2015 10:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

MyToyota Dashboard

Post by mxpwr »

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
manjh
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

Post by manjh »

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
Installation instruction contains an error:

Code: Select all

git clone <repository_url>
Hans
mxpwr
Posts: 41
Joined: Sunday 19 July 2015 10:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Toyota

Post by mxpwr »

Thanks, I can fix that. Do you get any other error?
manjh
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

Post by manjh »

mxpwr wrote: Monday 04 August 2025 18:09 Thanks, I can fix that. Do you get any other error?
Yes.

Code: Select all

docker-compose up -d --build
should be

Code: Select all

docker compose up -d --build
Hans
manjh
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

Post by manjh »

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
mxpwr
Posts: 41
Joined: Sunday 19 July 2015 10:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Toyota

Post by mxpwr »

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"?
Thanks for trying. I vibe coded this in less than 10h with Gemini 2.5pro. I'll add the "view all" this weekend.
manjh
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

Post by manjh »

Great work!
Hans
manjh
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

Post by manjh »

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!
Hans
mxpwr
Posts: 41
Joined: Sunday 19 July 2015 10:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Toyota

Post by mxpwr »

manjh wrote: Thursday 07 August 2025 18:34 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!
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.
mxpwr
Posts: 41
Joined: Sunday 19 July 2015 10:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Toyota

Post by mxpwr »

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"?
i added "all" option and some other things (heatmap and histogram plot).
mxpwr
Posts: 41
Joined: Sunday 19 July 2015 10:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Toyota

Post by mxpwr »

MQTT for domoticz is integrated. current sensors are:
Odomoter
Fuel Consumption
Fuel Level
Lock Status
manjh
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

Post by manjh »

mxpwr wrote: Friday 08 August 2025 21:33
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"?
i added "all" option and some other things (heatmap and histogram plot).
I did the docker compose update. But don't see the difference on the screens. Do I need to manually restart something?
Hans
manjh
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

Post by manjh »

Mentioned this before: "docker-compose" does not work, "docker compose" does. Same thing for the update instructions.
Hans
manjh
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

Post by manjh »

mxpwr wrote: Thursday 07 August 2025 18:56
manjh wrote: Thursday 07 August 2025 18:34 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!
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.
Can you describe location and name of the log you need?
Hans
mxpwr
Posts: 41
Joined: Sunday 19 July 2015 10:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Toyota

Post by mxpwr »

I sent you a pm with the instructions.
After the update, you should have mqtt settings on the settings page.
Screenshot_20250809-095840.png
Screenshot_20250809-095840.png (184.17 KiB) Viewed 962 times
manjh
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

Post by manjh »

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.
Hans
manjh
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

Post by manjh »

Checked the log:

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)
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?
Last edited by manjh on Saturday 09 August 2025 12:53, edited 1 time in total.
Hans
manjh
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

Post by manjh »

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:

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
mxpwr
Posts: 41
Joined: Sunday 19 July 2015 10:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Toyota

Post by mxpwr »

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.
manjh
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

Post by manjh »

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 have a working MQ setup, it interfaces to Domoticz...
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
But no actual data messages, probably because they are skipped.

Would it be possible to (temporarily) remove that check on changed data, so it will always send data to MQTT after a refresh?
Hans
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests