Skip to content

Commit 749c88e

Browse files
Michel-Settembrinofabaff
authored andcommitted
Image source changed and {% raw %} {% endraw %} added. (home-assistant#1443)
* Image source changed and {% raw %} {% endraw %} added. * Image added.
1 parent 441a14f commit 749c88e

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

source/_components/cover.garadget.markdown

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,50 @@ Configuration variables:
4343
4444
4545
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.
46+
47+
48+
**Example with more detail:**
49+
<p class='img'>
50+
<img src='/source/images/components/garadget/cover_garadget_details.png' />
51+
</p>
52+
53+
{% raw %}
54+
```yaml
55+
# Related configuration.yaml entry
56+
cover:
57+
platform: garadget
58+
covers:
59+
190028001947343412342341:
60+
access_token: !secret garadget_access_token
61+
name: Garage door
62+
63+
sensor:
64+
platform: template
65+
sensors:
66+
garage_door_status:
67+
friendly_name: 'State of the door'
68+
value_template: '{{ states.cover.garage_door.state }}'
69+
garage_door_time_in_state:
70+
friendly_name: 'Since'
71+
value_template: '{{ states.cover.garage_door.attributes["time in state"] }}'
72+
garage_door_wifi_signal_strength:
73+
friendly_name: 'WiFi strength'
74+
value_template: '{{ states.cover.garage_door.attributes["wifi signal strength (dB)"] }}'
75+
unit_of_measurement: 'dB'
76+
77+
group:
78+
garage_door:
79+
name: Garage door
80+
entities:
81+
- cover.garage_door
82+
- sensor.garage_door_status
83+
- sensor.garage_door_time_in_state
84+
- sensor.garage_door_wifi_signal_strength
85+
86+
customize:
87+
sensor.garage_door_time_in_state:
88+
icon: mdi:timer-sand
89+
sensor.garage_door_wifi_signal_strength:
90+
icon: mdi:wifi
91+
```
92+
{% endraw %}

0 commit comments

Comments
 (0)