alandtse/tesla

Sync doors open/close from Teslamate MQTT

已关闭

#707 创建于 2023年9月1日

 (3 条评论) (0 个反应) (0 位负责人)Python (128 个派生)github user discovery
enhancementgood first issuehelp wantedstale

仓库指标

星标
 (777 个星标)
PR 合并指标
 (平均合并 13天 8小时) (30 天内合并 14 个 PR)

描述

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.

贡献者指南