Skip to content

Commit

Permalink
Merge pull request #242 from tylerpieper/patch-1
Browse files Browse the repository at this point in the history
Add an example automation to automatically update location
  • Loading branch information
michaelwoods authored Jan 9, 2023
2 parents 500e6e2 + e791f6e commit ca2b777
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions HA-MQTT.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,20 @@ sequence:
mode: single
icon: 'mdi:map-marker'
```
### Automation:
Create an automation to update the location whenever the odometer changes, instead of on a time interval.
```alias: Update EV Location
description: ""
trigger:
- platform: state
entity_id:
- sensor.odometer_mi
condition: []
action:
- service: script.locate_bolt_ev
data: {}
mode: single
```
#### Commands:
[OnStarJS Command Docs](https://github.com/samrum/OnStarJS#commands)
Expand Down

0 comments on commit ca2b777

Please sign in to comment.