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

Error when sending a command and the car is moving. #99

Open
3 tasks done
Nessy1970 opened this issue Jun 17, 2024 · 3 comments
Open
3 tasks done

Error when sending a command and the car is moving. #99

Nessy1970 opened this issue Jun 17, 2024 · 3 comments

Comments

@Nessy1970
Copy link

Nessy1970 commented Jun 17, 2024

Checklist

  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of any previous issues..

Describe the issue

I have an automation that deactivates the sentry when I park in certain areas, and another that activates it when I leave those areas.
The error occurs when I leave the area, the car is driving, the command is not sent to the vehicle: Error: not_parked
journal

Reproduction steps

  • id: tesla_model_3_sortie_zone_activation_sentinelle
    alias: "Sortie Zone Activation Sentinelle"
    initial_state: 'on'
    trigger:
    • platform: state
      entity_id: device_tracker.la_fleche_bleue_location
      condition:
    • condition: template
      value_template: '{{ trigger.from_state.state != trigger.to_state.state }}'
    • condition: template
      value_template: >-
      {%- set lieux = [ "A la Maison de David", "A la Maison de La Roquebrussanne", "Chez Sébastien et Angeline", "Chez Pierre et Véro", "home" ] -%}
      {{ trigger.from_state.state in lieux }}
      action:
    • service: switch.turn_on
      entity_id: switch.la_fleche_bleue_sentry_mode
      ...

Debug logs

No response

@Bre77
Copy link
Contributor

Bre77 commented Jun 18, 2024

The not_parked is from your Tesla directly, so you are probably going to need to add logic in your automation to wait for the sensor.la_fleche_bleue_shift_state to enter "Park" before calling switch.turn_on

@Nessy1970
Copy link
Author

Ok, but the refusal to execute the command comes from the integration or from the Tesla server itself?

@Bre77
Copy link
Contributor

Bre77 commented Jun 18, 2024

Ok, but the refusal to execute the command comes from the integration or from the Tesla server itself?

Neither

I believe the error message is generated by your vehicle when it receives the command.

When the integration gets this error message response it raises it.

Home Assistant -> Teslemetry -> Tesla Server -> Vehicle

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

2 participants