Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support g3 vehicles that report door lock status #121

Open
G-Two opened this issue May 8, 2024 · 11 comments
Open

Support g3 vehicles that report door lock status #121

G-Two opened this issue May 8, 2024 · 11 comments
Labels
enhancement New feature or request

Comments

@G-Two
Copy link
Owner

G-Two commented May 8, 2024

A recent g3 diagnostics dump shows that newer vehicles report door lock status. Subarulink needs to be updated to pass these fields to enable lock/unlock state to be tracked.

          "doorBootPosition": "CLOSED",
          "doorEngineHoodPosition": "CLOSED",
          "doorFrontLeftPosition": "OPEN",
          "doorFrontRightPosition": "CLOSED",
          "doorRearLeftPosition": "CLOSED",
          "doorRearRightPosition": "CLOSED",
          "doorBootLockStatus": "LOCKED",
          "doorFrontLeftLockStatus": "UNLOCKED",
          "doorFrontRightLockStatus": "LOCKED",
          "doorRearLeftLockStatus": "LOCKED",
          "doorRearRightLockStatus": "LOCKED",
@G-Two G-Two added the enhancement New feature or request label May 8, 2024
@G-Two
Copy link
Owner Author

G-Two commented May 26, 2024

https://github.com/G-Two/homeassistant-subaru/releases/tag/v0.7.15rc1

  • Please provide success/failure feedback if you have a newer 'g3' vehicle (I don't have one, so I'm doing this in the blind)
    • Attach your HA generated device diagnostics output
    • Let me know if there is a disparity of what is shown in HA vs what is shown in the MySubaru app

@dshokouhi
Copy link

Hello I have now updated to 0.7.16rc0 and i dont see lock status, here are my diagnostics

subaru-64b34aa382b637aa4cc56e148055beb7-2023 Ascent Touring-5a95f47322c4e5f550994c18d0e6d09e (1).json

this is what I see currently:

image

@G-Two
Copy link
Owner Author

G-Two commented Nov 28, 2024

@dshokouhi I have published v0.7.16rc1, which will hopefully show an overall lock status (unlocked if any door is unlocked), as well as additional attributes within the lock entity that show the reported state of each door. Since I don't have a supported car, I have no idea how often this information is reported back by the vehicle (i.e. it is unclear if the door is manually unlocked with the keyfob if the new state is reported by the telematics). If it does work for you, I'd appreciate any feedback on how well the feature works. Thanks!

@dshokouhi
Copy link

thanks so far looks good have not had a chance to do thorough testing but I can tell you that when I loaded up the changes the locks state was unlocked due to 1 door being unlocked

image

polled the vehicle as I know it was all locked but this door was closed a few min after engine shut off (have not enabled polling yet)

image

state updated as expected!

I can do further testing this weekend to see how it all updates with respect to keyfob, manual entry etc...

@vmcosco
Copy link

vmcosco commented Feb 18, 2025

Just got a 2025 Outback Tourning XT on Saturday. My door locks have been stuck in "Locking" since I unlocked via HA 24 hours ago.

Image

@stboch
Copy link

stboch commented Feb 18, 2025

If you push the refresh button for the car does the status fix itself?

@vmcosco
Copy link

vmcosco commented Feb 18, 2025

If you push the refresh button for the car does the status fix itself?

It does not. I tried "refresh" and "poll". Neither worked. The only way to fix it was to reload the integration

@G-Two
Copy link
Owner Author

G-Two commented Feb 19, 2025

Did the lock command ever reach the car? Can you send debug logs?

@vmcosco
Copy link

vmcosco commented Feb 19, 2025

Did the lock command ever reach the car? Can you send debug logs?

The command does reach the car. If unlocked, the doors lock. How do I pull the debug logs?

@vmcosco
Copy link

vmcosco commented Feb 20, 2025

I wanted to share another thing. Yesterday I remotely locked the door from the integration to confirm that the command was reaching the car. The car locked and lock got stuck in "locking" status as previously reported. I reloaded the integration to reset the lock state. This time, instead of going back to the lock slider showing "locked", it returned a status of unknown and is showing the separate lock and unlock buttons like my 2021 Outback always does. Just wanted to share in case this helps.

Image

@G-Two
Copy link
Owner Author

G-Two commented Feb 22, 2025

How do I pull the debug logs?

To help diagnose the issue there 3 sets of data that will help:

Device diagnostics

  • A snapshot of the current state of the integration, along with some vehicle capability information
  • Any known private information should be redacted automatically, but be sure to verify before posting

Steps

  1. Click download diagnostics

Image

  1. Verify no private information is included
  2. Drop file into this issue

subarulink debug logs

  • Logs subarulink, the underlying Python package that is communicating with the MySubaru API
  • Can/should be done in conjunction with the integration debug logs below

Steps

  1. Enable subarulink debug logs in configuration.yaml
logger:
  logs:
    subarulink: debug
  1. Restart Home Assistant
  2. Follow steps below for integration debug logs which will also end up downloading these debug logs

Integration Debug Logs

  • Additional logging of this custom component

Steps

  1. Enable integration debug logs
Image
  1. Perform the problematic action (lock or unlock)
  2. Disable debug logs (your browser will automatically download)

Warning

These logs potentially contain a ton of private information that you will need to redact before posting. This is especially true when subarulink debugging is also enabled.

  1. Scrub log file for private information
  2. Drop log file into this issue
  3. Remove subarulink: debug from configuration.yaml and restart Home Assistant

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants