Skip to content

Commit

Permalink
Add a home assistant example
Browse files Browse the repository at this point in the history
  • Loading branch information
mcolyer committed Feb 12, 2018
1 parent ccb9311 commit 1aca28e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@ It lets you control [Etekcity Voltson] smart plugs via your local server rather
* Plugs send "true" or "false" to `/voltson/{plug-uuid}/state` once they've actually changed state. Messages are retained.
* Plugs send "online" or "offline" to `/voltson/{plug-uuid}/availability` depending on whether they are connected. Messages are retained.

#### Home Assistant Example

```
- platform: mqtt
command_topic: "/voltson/UUID-GOES-HERE"
state_topic: "/voltson/UUID-GOES-HERE/state"
availability_topic: "/voltson/UUID-GOES-HERE/available"
retain: true
payload_on: 'true'
payload_off: 'false'
```

### TODO

Expand Down

0 comments on commit 1aca28e

Please sign in to comment.