Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Remote_start failed #136

Open
Mark612 opened this issue Jan 17, 2025 · 17 comments
Open

Remote_start failed #136

Mark612 opened this issue Jan 17, 2025 · 17 comments

Comments

@Mark612
Copy link

Mark612 commented Jan 17, 2025

We run this command every morning. Remote start. About 25% of the time the car does not start and we get this error:

_File "/usr/src/homeassistant/homeassistant/components/button/init.py", line 132, in async_press_action
await self.async_press()
File "/config/custom_components/subaru/button.py", line 146, in async_press
await async_call_remote_service(
...<6 lines>...
)
File "/config/custom_components/subaru/remote_service.py", line 111, in async_call_remote_service
raise HomeAssistantError(f"Service {cmd} failed for {car_name}: {err_msg}")
homeassistant.exceptions.HomeAssistantError: Service remote_start failed for xxxxxxxxx: Remote service request completion message never received

@jamietre
Copy link

jamietre commented Jan 23, 2025

I've only started using this in the last few weeks, but it has been reliable until yesterday. Since then all remote starts have failed with this error. Seems like a different issue, but since this was just opened adding detail here.

homeassistant.exceptions.HomeAssistantError: Service remote_start failed for <redacted>: HTTP 500: 
{
  "httpCode":500,
  "errorCode":"error",
  "errorMessage":"java.lang.NullPointerException - null"
} 

RequestInfo(
  url=URL('https://mobileapi.prod.subarucs.com/g2v30/service/g2/engineStart/execute.json'), method='POST',
  headers=<CIMultiDictProxy(
    'Host': 'mobileapi.prod.subarucs.com',
    'User-Agent': 'Mozilla/5.0 (Linux; Android 10; Android SDK built for x86 Build/QSR1.191030.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/74.0.3729.185 Mobile Safari/537.36', 
    'Origin': 'file://', 
    'X-Requested-With': 'com.subaru.telematics.app.remote', 
    'Accept-Language': 'en-US,en;q=0.9', 
    'Accept-Encoding': 'gzip, deflate', 
    'Accept': '*/*', 
    'Cookie': 'JSESSIONID=<redacted>; X-Oracle-BMC-LBS-Route=<redacted>', 
    'Content-Length': '468', 
    'Content-Type': 'application/json')>, 
    real_url=URL('https://mobileapi.prod.subarucs.com/g2v30/service/g2/engineStart/execute.json')
  )

@rstremke
Copy link

Also had remote start failures all day, today. Tried at least a dozen different times in the past 12 hours just to check. Seems like a nondescript error. Even the logs aren't very verbose. Remote start works fine via the mySubaru iOS app on my phone.

"Service remote_start failed for Ryans Outback: aiohttp.ClientConnectionError"

@Mark612
Copy link
Author

Mark612 commented Jan 24, 2025

@jamietre
Copy link

jamietre commented Jan 24, 2025

They may be making changes.

Yeah, though the android app has not been updated since November 2024. That doesn't mean it's impossible they improved some security mechanism without updating the app (like maybe a token expires frequently that didn't used to?) but still strange.

@stboch
Copy link

stboch commented Jan 24, 2025

I have remote started several times over the last week, a no issues here. can you submit a diagnostic?

@jamietre
Copy link

I have remote started several times over the last week, a no issues here. can you submit a diagnostic?

Be glad to - do you have a pointer to how to do this? This would be my first.

@rstremke
Copy link

Probably not diagnostically useful, but just as another data point: I have two Subarus and all their status entities have been unavailable since yesterday. Tire pressure, range, average mileage, etc. They're still all visible on the mySubaru app - just like remote start for me.

If there are any logs I produce to assist, please let me know.

@stboch
Copy link

stboch commented Jan 24, 2025

Under the triple dots in the subaru integration you should see download diagnostics.

@rstremke
Copy link

@jamietre
Copy link

Of course when I tried it now it worked fine 😖 It doesn't seem like the error log file includes anything earlier than today. If it happens again I'll definitely grab the diagnostics.

@rstremke
Copy link

Everything appears to be working again for me. Diagnostics, remote start, lock/unlock, etc. Didn't even restart HA, so assume it was something on Subaru's side.

@stboch
Copy link

stboch commented Jan 25, 2025

Glad it's working. In my past experience the API is buggy at times. I have auto lock automations built in and added logic to check for the errors to ensure the command was executed.

@rstremke
Copy link

Glad it's working. In my past experience the API is buggy at times. I have auto lock automations built in and added logic to check for the errors to ensure the command was executed.

Any chance you'd share the logic/code to confirm command execution? Been looking for something like that myself.

@stboch
Copy link

stboch commented Jan 27, 2025

You need to create a helper so that the status doesn't get changed when the script fails, then monitor for the completion of the script, if the status is still on the lock event still failed. I don't track what the reason for failure is...
Automation:
`alias: Auto Lock Stevens CarI
description: ""
mode: single
triggers:

  • at:
    • "22:02:06"
    • "00:42:08"
      trigger: time
      conditions: []
      actions:
  • action: input_boolean.turn_on
    metadata: {}
    data: {}
    target:
    entity_id: input_boolean.subaru_status
  • action: script.turn_on
    target:
    entity_id: script.lock_stevens_car
    data: {}
  • wait_template: "{{ is_state('script.lock_stevens_car', 'off') }}"
    continue_on_timeout: true
  • condition: state
    entity_id: input_boolean.subaru_status
    state: "on"
  • delay:
    hours: 0
    minutes: 2
    seconds: 0
  • action: script.turn_on
    target:
    entity_id: script.lock_stevens_car
    data: {}
    `
    Script:
    alias: Lock Stevens Car
    sequence:
  • device_id: xxxxxxxxxxxxxxxxxxxxxxxxxxx
    domain: lock
    entity_id: lock.stevens_door_locks
    type: lock
  • action: input_boolean.turn_off
    metadata: {}
    data: {}
    target:
    entity_id: input_boolean.subaru_status
    mode: single
    icon: mdi:lock

@rhoskins61
Copy link

Briefly and just for info, I updated HA to 2025.2 and Remote Start failed. I checked a diagnostic log and it did indicate that that latest version would break the integration. I rolled back HA to 2025.1.x and it started working again.

So, I guess the integration needs an update?

@G-Two
Copy link
Owner

G-Two commented Feb 9, 2025

@rhoskins61 what version of this integration are you using? I am using 0.7.16 under HA 2025.2.1 and have not seen any broken integration messages.

@rhoskins61
Copy link

@rhoskins61 what version of this integration are you using? I am using 0.7.16 under HA 2025.2.1 and have not seen any broken integration messages.

You are correct. Didn't receive an auto-update, but performed a manual integration update and everything is back to normal.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants