mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-21 08:16:53 +00:00
Image source changed and {% raw %} {% endraw %} added. (#1443)
* Image source changed and {% raw %} {% endraw %} added. * Image added.
This commit is contained in:
parent
441a14f816
commit
749c88e025
@ -43,3 +43,50 @@ Configuration variables:
|
||||
|
||||
|
||||
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.
|
||||
|
||||
|
||||
**Example with more detail:**
|
||||
<p class='img'>
|
||||
<img src='/source/images/components/garadget/cover_garadget_details.png' />
|
||||
</p>
|
||||
|
||||
{% raw %}
|
||||
```yaml
|
||||
# Related configuration.yaml entry
|
||||
cover:
|
||||
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: '{{ states.cover.garage_door.state }}'
|
||||
garage_door_time_in_state:
|
||||
friendly_name: 'Since'
|
||||
value_template: '{{ states.cover.garage_door.attributes["time in state"] }}'
|
||||
garage_door_wifi_signal_strength:
|
||||
friendly_name: 'WiFi strength'
|
||||
value_template: '{{ states.cover.garage_door.attributes["wifi signal strength (dB)"] }}'
|
||||
unit_of_measurement: 'dB'
|
||||
|
||||
group:
|
||||
garage_door:
|
||||
name: Garage door
|
||||
entities:
|
||||
- cover.garage_door
|
||||
- sensor.garage_door_status
|
||||
- sensor.garage_door_time_in_state
|
||||
- sensor.garage_door_wifi_signal_strength
|
||||
|
||||
customize:
|
||||
sensor.garage_door_time_in_state:
|
||||
icon: mdi:timer-sand
|
||||
sensor.garage_door_wifi_signal_strength:
|
||||
icon: mdi:wifi
|
||||
```
|
||||
{% endraw %}
|
||||
|
BIN
source/images/components/garadget/cover_garadget_details.png
Normal file
BIN
source/images/components/garadget/cover_garadget_details.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 21 KiB |
Loading…
x
Reference in New Issue
Block a user