From a960d52e78a30a11b9f2c50a8df2499f10aac8fd Mon Sep 17 00:00:00 2001 From: Rohan Kapoor Date: Sat, 30 Mar 2019 01:44:55 -0700 Subject: [PATCH] Split out mopar into multiple platforms (#9068) * Split out mopar into multiple platforms * :fire: Removed unnecessary redirects --- source/_components/mopar.markdown | 32 +++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/source/_components/mopar.markdown b/source/_components/mopar.markdown index fc7306b5c70..61ccb5e898c 100644 --- a/source/_components/mopar.markdown +++ b/source/_components/mopar.markdown @@ -8,17 +8,23 @@ comments: false sharing: true footer: true logo: mopar.png -ha_category: Car +ha_category: + - Car + - Sensor + - Switch + - Lock ha_release: 0.53 ha_iot_class: Cloud Polling redirect_from: - /components/sensor.mopar/ --- -The `mopar` sensor provides the following for owners of FCA vehicles with a uConnect subscription: +The `mopar` component provides the following for owners of FCA vehicles with a uConnect subscription: - Sensor per vehicle with vehicle health report and other meta-data -- Service for remote commands: Lock/unlock, Engine on/off, Horn & lights +- Lock per vehicle allowing to lock/unlock the vehicle +- Switch per vehicle allowing to turn the engine on and off +- A service for running the horn & lights ## {% linkable_title Setup %} @@ -26,15 +32,14 @@ Be sure you have a [mopar.com](http://mopar.com) account with your vehicle(s) re ## {% linkable_title Configuration %} -To enable this sensor, add the following lines to your `configuration.yaml`. +To enable this component, add the following lines to your `configuration.yaml`. All platforms will be automatically loaded. ```yaml # Example configuration.yaml entry -sensor: - - platform: mopar - username: YOUR_USERNAME - password: YOUR_PASSWORD - pin: YOUR_UCONNECT_PIN +mopar: + username: YOUR_USERNAME + password: YOUR_PASSWORD + pin: YOUR_UCONNECT_PIN ``` {% configuration %} @@ -54,16 +59,15 @@ pin: ## {% linkable_title Service %} -Call the `sensor.mopar_remote_command` service to perform a remote command on your vehicle. +Call the `mopar.sound_horn` service to sound the horn and flash the lights on your vehicle. -- **vehicle_index** (*Required*): `vehicle_index` attribute found on sensor. -- **command** (*Required*): One of `LOCK/UNLOCK/START/STOP/HORN_LIGHT`. +| Service data attribute | Description | +| `vehicle_index` | The index of the vehicle to trigger. This is exposed in the sensor's device attributes. | Example data: ```json { - "vehicle_index": 0, - "command": "unlock" + "vehicle_index": 0 } ```