mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
Update customizing-devices.markdown (#429)
This commit is contained in:
parent
9164a4c245
commit
acaad9b698
@ -19,6 +19,9 @@ You may have to create the `www` directory yourself as it is not made automatica
|
|||||||
|
|
||||||
You can also use `icon` and refer to any icon from [MaterialDesignIcons.com](http://MaterialDesignIcons.com).
|
You can also use `icon` and refer to any icon from [MaterialDesignIcons.com](http://MaterialDesignIcons.com).
|
||||||
|
|
||||||
|
For switches with an assumed state two buttons are shown (turn off, turn on) instead of a switch. By setting `assumed_state` to `false` you will get the default switch icon.
|
||||||
|
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
homeassistant:
|
homeassistant:
|
||||||
@ -37,6 +40,8 @@ homeassistant:
|
|||||||
switch.wemo_switch_2:
|
switch.wemo_switch_2:
|
||||||
friendly_name: Kitchen kettle
|
friendly_name: Kitchen kettle
|
||||||
icon: mdi:kettle
|
icon: mdi:kettle
|
||||||
|
switch.rfxtrx_switch:
|
||||||
|
assumed_state: false
|
||||||
```
|
```
|
||||||
|
|
||||||
### [Next step: Setting up presence detection »](/getting-started/presence-detection/)
|
### [Next step: Setting up presence detection »](/getting-started/presence-detection/)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user