I have a Xiaomi IR remote wifi device (aka Chuangmi IR), and I would like to control my Panasonic AC with it. Basic configuration and sending on/off codes are working fine, but I would make a simple on/off switch to the Hass home screen.
current config:
remote:
- platform: xiaomi_miio
host: 192.168.1.13
name: xremote
token: secret
slot: 1
timeout: 30
hidden: false
commands:
ac_off:
command:
- raw:Z6W3AbUBAAAIBQAArAY...........
ac_on:
command:
- raw:Z6W3AbUBAAAMBQAAqw..........
script:
panasonic_ac_off:
sequence:
- service: remote.send_command
entity_id: 'remote.xremote'
data:
command:
- 'ac_off'
panasonic_ac_on:
sequence:
- service: remote.send_command
entity_id: 'remote.xremote'
data:
command:
- 'ac_on'
So it’s working fine but I’m a littlebit confused among the scripts, switches and services… How can I get a simple on/off switch easier instead of the two script activate button on the web GUI?
Thanks!