From f52eccfe36af50a88a21764b3f79bd4c54af4391 Mon Sep 17 00:00:00 2001 From: BigThunderSR <17056173+BigThunderSR@users.noreply.github.com> Date: Sat, 28 Oct 2023 09:26:17 -0500 Subject: [PATCH] MD updates --- HA-MQTT.md | 35 ++++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/HA-MQTT.md b/HA-MQTT.md index 1728886d..bf519c3f 100644 --- a/HA-MQTT.md +++ b/HA-MQTT.md @@ -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: @@ -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). @@ -38,10 +40,12 @@ 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 @@ -49,7 +53,8 @@ device_tracker: your_car_name: homeassistant/device_tracker/YOUR_CAR_VIN/getlocation/state ``` -#### script yaml: +#### script yaml + ```yaml alias: Car - Location sequence: @@ -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: @@ -75,8 +83,10 @@ action: mode: single ``` -#### Commands: +#### Commands + [OnStarJS Command Docs](https://github.com/samrum/OnStarJS#commands) + 1. `getAccountVehicles` 2. `startVehicle` 3. `cancelStartVehicle` @@ -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: []