alandtse/tesla

Sync doors open/close from Teslamate MQTT

Open

#707 opened on Sep 1, 2023

View on GitHub
 (2 comments) (0 reactions) (0 assignees)Python (122 forks)github user discovery
enhancementgood first issuehelp wanted

Repository metrics

Stars
 (741 stars)
PR merge metrics
 (Avg merge 13d 8h) (14 merged PRs in 30d)

Description

Is your feature request related to a problem? Please describe. User wants to automate something car-related, where automation will be triggered by opening and closing car doors. Currently, door status is polled from Tesla servers, instead of using Streaming API/Teslamate+MQTT.

Describe the solution you'd like sensor.doors entity updated from Teslamate MQTT.

Describe alternatives you've considered Current workaround is using MQTT triggers, but automation gets triggered every dozen of seconds as Teslamate periodically re-sends "doors closed" MQTT message.

trigger:
  - platform: mqtt
    topic: teslamate/cars/1/doors_open
    payload: "false"
    id: closed
  - platform: mqtt
    topic: teslamate/cars/1/doors_open
    payload: "true"
    id: open

Additional context Task is simmilar to #698 , just another entity needs to be synced.

Contributor guide