Minor changes

This commit is contained in:
Fabian Affolter 2017-04-28 10:23:52 +02:00
parent 8ec4d8d172
commit ede87269af
No known key found for this signature in database
GPG Key ID: DDF3D6F44AAB1336

View File

@ -20,12 +20,11 @@ To enable Garadget Covers in your installation, add the following to your `confi
```yaml
# Example configuration.yaml entry
cover:
platform: garadget
covers:
190028001947343412342341:
username: UseYourLogin@garadget.com
password: abc123
name: Left Garage Door
- platform: garadget
covers:
190028001947343412342341:
username: UseYourLogin@garadget.com
password: abc123
4c003f001151353432134214:
access_token: df4cc785ff818f2b01396c44142342fccdef
```
@ -33,13 +32,13 @@ cover:
Configuration variables:
- **covers** array (*Required*): List of your doors.
- **device** (*Required*): This is the device id from your Garadget portal.
- **device** (*Required*): This is the device id from your Garadget portal.
- Either:
- **username** (*Required*): Your Garadget account username.
- **password** (*Required*): Your Garadget account password.
- Or:
- **access_token** (*Required*): A generated access_token from your garadget account
- **name** (*Optional*): Name to use in the Frontend, will use name configured in Garadget otherwise.
- **access_token** (*Required*): A generated `access_token` from your Garadget account.
- **name** (*Optional*): Name to use in the frontend, will use name configured in Garadget otherwise.
If provided, the **access_token** will be used, otherwise the **username** and **password** will be used to automatically generate an access token at start time.
@ -53,25 +52,25 @@ If provided, the **access_token** will be used, otherwise the **username** and *
```yaml
# Related configuration.yaml entry
cover:
platform: garadget
covers:
190028001947343412342341:
access_token: !secret garadget_access_token
name: Garage door
- platform: garadget
covers:
190028001947343412342341:
access_token: !secret garadget_access_token
name: Garage door
sensor:
platform: template
sensors:
garage_door_status:
friendly_name: 'State of the door'
value_template: {% raw %}'{{ states.cover.garage_door.state }}'{% endraw %}
garage_door_time_in_state:
friendly_name: 'Since'
value_template: {% raw %}'{{ states.cover.garage_door.attributes["time in state"] }}'{% endraw %}
garage_door_wifi_signal_strength:
friendly_name: 'WiFi strength'
value_template: {% raw %}'{{ states.cover.garage_door.attributes["wifi signal strength (dB)"] }}'{% endraw %}
unit_of_measurement: 'dB'
- platform: template
sensors:
garage_door_status:
friendly_name: 'State of the door'
value_template: {% raw %}'{{ states.cover.garage_door.state }}'{% endraw %}
garage_door_time_in_state:
friendly_name: 'Since'
value_template: {% raw %}'{{ states.cover.garage_door.attributes["time in state"] }}'{% endraw %}
garage_door_wifi_signal_strength:
friendly_name: 'WiFi strength'
value_template: {% raw %}'{{ states.cover.garage_door.attributes["wifi signal strength (dB)"] }}'{% endraw %}
unit_of_measurement: 'dB'
group:
garage_door: