Python Plugin: Toyota Topic is solved

Python and python framework

Moderator: leecollings

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

Re: Python Plugin: Toyota

Post by mxpwr »

manjh wrote: Monday 18 August 2025 13:31 Re-tested latest version, all is OK except for lock status. In my case it always comes back with `Locked`.
There should be a detailed log on the api response for the lock status? If you send that to me, I can see if I can find the problem.
manjh
Posts: 783
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 »

Hmmmm. when I click the"Logs" page, the app shows the message "Connecting to log stream..." and the freezes. I cannot move to another page anymore. Closing the browser helps, I can the access the main page again.
Hans
mxpwr
Posts: 31
Joined: Sunday 19 July 2015 10:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Toyota

Post by mxpwr »

Depending on your server you night have to wait 10 seconds or so until it connects to the log stream. I haven't had the time up optimize that part. You could also run the server outside the docker, then you get the logs in the terminal.
manjh
Posts: 783
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 18 August 2025 13:51
manjh wrote: Monday 18 August 2025 13:31 Re-tested latest version, all is OK except for lock status. In my case it always comes back with `Locked`.
There should be a detailed log on the api response for the lock status? If you send that to me, I can see if I can find the problem.
I think this may be an error in the Toyota part, when I unlock the car the original Toyota app also shows all doors as "locked". And I am 100% sure they are unlocked. So I guess this is not an error in the plugin!
Hans
mxpwr
Posts: 31
Joined: Sunday 19 July 2015 10:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Toyota

Post by mxpwr »

That's interesting, for me the app is usually is correct.
But I noticed that pytoyoda sometimes doesn't return a true or false, but a none, and it's not consistent if the none is open or closed. It should look like this (locked is actually none, but I added logic to set the status to closed if the individual items are set to closed):

Code: Select all

2025-08-20 05:35:45,614 - app.fetcher - DEBUG - last_updated=datetime.datetime(2025, 8, 19, 18, 8, 33, tzinfo=TzInfo(UTC)) doors=driver_seat=closed=True locked=True driver_rear_seat=closed=True locked=True passenger_seat=closed=True locked=True passenger_rear_seat=closed=True locked=True trunk=closed=True locked=True windows=driver_seat=closed=True driver_rear_seat=closed=True passenger_seat=closed=True passenger_rear_seat=closed=True hood=closed=True locked=None
2025-08-20 05:35:45,615 - app.fetcher - DEBUG - Processing door 'front_left': raw closed=True, raw locked=True
2025-08-20 05:35:45,615 - app.fetcher - DEBUG - Processing door 'front_right': raw closed=True, raw locked=True
2025-08-20 05:35:45,615 - app.fetcher - DEBUG - Processing door 'rear_left': raw closed=True, raw locked=True
2025-08-20 05:35:45,615 - app.fetcher - DEBUG - Processing door 'rear_right': raw closed=True, raw locked=True
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest