alandtse/tesla

Sync doors open/close from Teslamate MQTT

クローズ

#707 opened on 2023/09/01

 (3 件のコメント) (0 件のリアクション) (0 人の担当者)Python (128 件のフォーク)github user discovery
enhancementgood first issuehelp wantedstale

Repository metrics

Stars
 (776 個のスター)
PR merge metrics
 (平均マージ 13d 8h) (30d で 14 merged PRs)

説明

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.

コントリビューターガイド