alandtse/tesla

Sync doors open/close from Teslamate MQTT

Chiusa

#707 aperta il 1 set 2023

 (3 commenti) (0 reazioni) (0 assegnatari)Python (127 fork)github user discovery
enhancementgood first issuehelp wantedstale

Metriche repository

Star
 (777 stelle)
Metriche merge PR
 (Merge medio 13g 8h) (14 PR mergiate in 30 g)

Descrizione

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.

Guida contributor