Skip to content

Commit

Permalink
MD updates
Browse files Browse the repository at this point in the history
  • Loading branch information
BigThunderSR committed Oct 28, 2023
1 parent 3eb7655 commit f52eccf
Showing 1 changed file with 24 additions and 11 deletions.
35 changes: 24 additions & 11 deletions HA-MQTT.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
Sample configs for MQTT Home Assistant integration.
# Sample configs for MQTT Home Assistant integration

### Commands
## Commands

### Example script yaml

#### example script yaml:
```yaml
alias: Car - Start Vehicle
sequence:
Expand All @@ -14,7 +15,8 @@ mode: single
icon: 'mdi:car-electric'
```
#### Trigger precondition via calendar
### Trigger precondition via calendar
````yaml
alias: Car Precondition
description: Precondition if group.family is home (ie, at least one person).
Expand All @@ -38,18 +40,21 @@ mode: single
````
### Location
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.
device tracker yaml:
Device Tracker YAML:
```yaml
device_tracker:
- platform: mqtt_json
devices:
your_car_name: homeassistant/device_tracker/YOUR_CAR_VIN/getlocation/state
```
#### script yaml:
#### script yaml
```yaml
alias: Car - Location
sequence:
Expand All @@ -60,8 +65,11 @@ sequence:
mode: single
icon: 'mdi:map-marker'
```
### Automation:
### Automation
Create an automation to update the location whenever the odometer changes, instead of on a time interval.
```alias: Update EV Location
description: ""
trigger:
Expand All @@ -75,8 +83,10 @@ action:
mode: single
```
#### Commands:
#### Commands
[OnStarJS Command Docs](https://github.com/samrum/OnStarJS#commands)
1. `getAccountVehicles`
2. `startVehicle`
3. `cancelStartVehicle`
Expand All @@ -87,17 +97,20 @@ mode: single
8. `chargeOverride`
9. `cancelChargeOverride`
10. `getLocation`
#### New in this build of onstar2mqtt:

#### New in this build of onstar2mqtt

11. `alertFlash`
12. `alertHonk`


### Lovelace Dashboard

Create a new dashboard, or use the cards in your own view. The `mdi:car-electric` icon works well here.

![lovelace screenshot](images/lovelace.png)

#### dashboard yaml:
#### dashboard yaml

```yaml
views:
- badges: []
Expand Down

0 comments on commit f52eccf

Please sign in to comment.