Skip to content

Commit ec26660

Browse files
emloveballoob
authored andcommitted
Automatic push documentation (home-assistant#2553)
* Automatic push documentation * Example event automation * Use event trigger built-in checking
1 parent fa74ce2 commit ec26660

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

source/_components/device_tracker.automatic.markdown

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,15 @@ footer: true
1010
logo: automatic.png
1111
ha_category: Presence Detection
1212
ha_release: 0.28
13+
ha_iot_class: "Cloud Push"
1314
---
1415

1516

1617
The `automatic` platform offers presence detection by retrieving your car's information from the [Automatic](http://automatic.com/) cloud service.
1718

18-
To use an Automatic ODB reader in your installation, add the following to your `configuration.yaml` file:
19+
To use Automatic with Home Assistant, first you must [create a free development account](https://developer.automatic.com/). Automatic will generate a Client ID and Secret for you to use in your Home Assistant configuration. You will also need to update your Event Delivery preferences to ensure Home Assistant can receive updates. On the developer page, under App Settings / Event Delivery, select "Websocket" for Event Delivery Preference.
20+
21+
Once your developer account is created, add the following to your `configuration.yaml` file:
1922

2023
```yaml
2124
# Example configuration.yaml entry
@@ -38,4 +41,19 @@ Configuration variables:
3841
- **password** (*Required*): The password for your given ODB reader account.
3942
- **devices** (*Optional*): The list of vehicle display names you wish to track. If not provided, all vehicles will be tracked.
4043
44+
Home Assistant will also fire events when an update is received from Automatic. These can be used to trigger automations, as shown in the example below. A list of available event types can be found in the [Automatic Real-Time Events documentation](https://developer.automatic.com/api-reference/#real-time-events).
45+
46+
47+
```yaml
48+
# Example automatic event automation
49+
automation:
50+
- trigger:
51+
- platform: event
52+
event_type: automatic_update
53+
event_data:
54+
type: "ignition:on"
55+
action:
56+
- service: light.turn_off
57+
```
58+
4159
See the [device tracker component page](/components/device_tracker/) for instructions how to configure the cars to be tracked.

0 commit comments

Comments
 (0)