安装自定义插件
- 获取syssi大神写的自定义插件,https://github.com/syssi/xiaomiplug
- 将插件复制到/config/custom_components/switch/
获取token
省略
配置Yaml
switch:
- platform: xiaomi_miio
name: Original Xiaomi Mi Smart WiFi Socket
host: 192.168.2.138
token: 米家智能插座增强版v3token
model: chuangmi.plug.v3
group:
mihome:
name: 米家
view: yes
icon: mdi:security-home
entities:
- group.socket
socket:
name: 插座
view: no
entities:
- switch.original_xiaomi_mi_smart_wifi_socket
- switch.original_xiaomi_mi_smart_wifi_socket_usb
homeassistant:
customize:
switch.original_xiaomi_mi_smart_wifi_socket:
friendly_name: 米家智能插座增强版电源
homebridge_hidden: true
switch.original_xiaomi_mi_smart_wifi_socket_usb:
friendly_name: 米家智能插座增强版USB
homebridge_hidden: true
|