Merge pull request #242 from tylerpieper/patch-1
Add an example automation to automatically update location
This commit is contained in:
commit
ca2b7775fc
14
HA-MQTT.md
14
HA-MQTT.md
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user