Skip to content

Commit

Permalink
Added instructions for creating MQTT binary sensor in HA for monitori…
Browse files Browse the repository at this point in the history
…ng polling status
  • Loading branch information
BigThunderSR committed Dec 12, 2023
1 parent 7d8f120 commit 3c6b057
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions HA-MQTT.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,24 @@ mode: single
icon: 'mdi:map-marker'
```
#### MQTT Polling Status Success Monitor
Create a MQTT binary sensor in Home Assistant
```yaml
mqtt:
binary_sensor:
- name: "<Vehicle_Name> OnStar Polling Status Successful"
unique_id: <vehicle_name>_onstar_polling_status_successful
availability_topic: homeassistant/<vehicle_vin>/available
payload_available: "true"
payload_not_available: "false"
state_topic: "homeassistant/onstar2mqtt/vehicle1/polling/lastpollsuccessful"
payload_on: "false"
payload_off: "true"
device_class: problem
```
### Automation
Create an automation to update the location whenever the odometer changes, instead of on a time interval.
Expand Down

1 comment on commit 3c6b057

@glassbase
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏆😊

Please sign in to comment.