Danielhiversen / PyXiaomiGateway

PyXiaomiGateway
MIT License
152 stars 55 forks source link

Wired Switch in Wireless Mode #145

Open timdonovanuk opened 5 years ago

timdonovanuk commented 5 years ago

Hi,

The wired Xiaomi wall switche (https://www.gearbest.com/alarm-systems/pp_610096.html?wid=1433363 + the others powdered models) support a mode referred to as "wireless mode" or sometimes "decoupled".

In normal mode:

In wireless/decoupled mode:

This wireless/decoupled state (pushed) is not currently tracked in HA. It's been discussed in a few places and although some people mentioned the gateway doesn't actually send the wireless/decoupled state, it doesn't look like anyone ever actually logged an issue here, so I'm not sure if that's the case?

Cheers!

syssi commented 5 years ago

Correct. The button(gateway) doesn't publish events in decoupled mode (at the LAN protocol v1!). As long as the firmware doesn't expose the events we are stuck.

timdonovanuk commented 5 years ago

Ah okay, just wanted to verify, thanks! That's a real bummer for my HA plans :(

Edit: I'm going to try skipping the gateway and communicating with the switches via zigbee usb module. I wonder then if they report anything..will report back in a few weeks as I don't have the hardware needed yet!