Skip to content

Commit 55cd925

Browse files
timmmmmmmmmfrenck
authored andcommitted
Update remote.xiaomi_miio.markdown (home-assistant#11884)
Added configuration example to create UI button in Lovelace to send IR command.
1 parent 2cc03ae commit 55cd925

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

source/_integrations/remote.xiaomi_miio.markdown

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,25 @@ remote:
8585
- pronto:pronto_hex:[optional_repeat]
8686
```
8787
88+
## Add command as entity button in Lovelace UI
89+
90+
```yaml
91+
type: entity-button
92+
tap_action:
93+
action: call-service
94+
service: remote.send_command
95+
service_data:
96+
command: activate_towel_heater
97+
entity_id: remote.xiaomi_miio_ir
98+
hold_action:
99+
action: more-info
100+
show_icon: true
101+
show_name: true
102+
entity: remote.xiaomi_miio_ir
103+
icon: 'mdi:radiator'
104+
name: Activate Towel Heater
105+
```
106+
88107
## Use named commands to create UI buttons
89108
90109
```yaml

0 commit comments

Comments
 (0)