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.
Python Plugin: Toyota Topic is solved
Moderator: leecollings
-
- 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
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
-
- Posts: 31
- Joined: Sunday 19 July 2015 10:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: Toyota
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.
-
- 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
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
-
- Posts: 31
- Joined: Sunday 19 July 2015 10:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: Toyota
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):
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
Who is online
Users browsing this forum: Filip and 1 guest