Skip to content

Commit

Permalink
Update HA-MQTT.md
Browse files Browse the repository at this point in the history
  • Loading branch information
BigThunderSR authored Mar 25, 2024
1 parent 7adc6c5 commit 62b0ddb
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions HA-MQTT.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ mode: single

MQTT device_tracker auto discovery capability is enabled starting at v1.12.0

The device_tracker auto discovery config is published to: "homeassistant/device_tracker/(VIN)/config" and the GPS coordinates are still read from the original topic automatically at: "homeassistant/device_tracker/(VIN)/getlocation/state".
The device_tracker auto discovery config is published to: "homeassistant/device_tracker/YOUR_CAR_VIN/config" and the GPS coordinates are still read from the original topic automatically at: "homeassistant/device_tracker/YOUR_CAR_VIN/getlocation/state".

~~Unfortunately, the MQTT Device tracker uses a home/not_home state and the MQTT Json device tracker does not support
the discovery schema so a manual entity configuration is required.~~
Expand Down Expand Up @@ -90,10 +90,13 @@ mqtt:
binary_sensor:
- name: "<Vehicle_Name> OnStar Polling Status Successful"
unique_id: <vehicle_name>_onstar_polling_status_successful
availability_topic: homeassistant/<vehicle_vin>/available
availability_topic: homeassistant/YOUR_CAR_VIN/available
payload_available: "false"
payload_not_available: "true"
state_topic: "homeassistant/onstar2mqtt/vehicle1/polling/lastpollsuccessful"
state_topic: "YOUR_POLLLING_STATUS_TOPIC/lastpollsuccessful"
# NOTE: If "MQTT_ONSTAR_POLLING_STATUS_TOPIC" is not explicitly set,
# "YOUR_POLLLING_STATUS_TOPIC" defaults to "homeassistant/YOUR_CAR_VIN/polling_status/".
# If set, provide whatever value you set it to in this field.
payload_on: "false"
payload_off: "true"
device_class: problem
Expand All @@ -108,10 +111,13 @@ mqtt:
sensor:
- name: "<Vehicle_Name> OnStar Last Polling Status Timestamp"
unique_id: <vehicle_name>_last_polling_status_timestamp
availability_topic: homeassistant/<vehicle_vin>/available
availability_topic: homeassistant/YOUR_CAR_VIN/available
payload_available: "false"
payload_not_available: "true"
state_topic: "homeassistant/onstar2mqtt/vehicle1/polling/state"
state_topic: "YOUR_POLLLING_STATUS_TOPIC/state"
# NOTE: If "MQTT_ONSTAR_POLLING_STATUS_TOPIC" is not explicitly set,
# "YOUR_POLLLING_STATUS_TOPIC" defaults to "homeassistant/YOUR_CAR_VIN/polling_status/".
# If set, provide whatever value you set it to in this field.
value_template: "{{ value_json.completionTimestamp }}"
icon: mdi:calendar-clock
device_class: timestamp
Expand Down

0 comments on commit 62b0ddb

Please sign in to comment.