AlexxIT / XiaomiGateway3

Home Assistant custom component for control Xiaomi Multimode Gateway (aka Gateway 3), Xiaomi Multimode Gateway 2, Aqara Hub E1 on default firmwares over LAN
https://github.com/AlexxIT/Blog
MIT License
2.48k stars 351 forks source link

Add device request #1507

Open gujiys opened 1 day ago

gujiys commented 1 day ago

Please help add new device https://home.miot-spec.com/spec/ydhome.switch.s2

gujiys commented 1 day ago

from custom_components.xiaomi_gateway3.core.devices import *

DEVICES = [{ 2448: ["ydhome", "Two-Button Switch ", "ydhome.switch.s2"], "spec": [ BaseConv("left_switch", "switch", mi="2.p.1"), BaseConv("right_switch", "switch", mi="3.p.1"), ] }] + DEVICES