Danielhiversen / PyXiaomiGateway

PyXiaomiGateway
MIT License
152 stars 55 forks source link

Add Aqara button(WXKG11LM) another model name 'remote.b1acn01' #108

Closed kdby-io closed 5 years ago

kdby-io commented 5 years ago

I tried to add Aqara button(WXKG11LM) that has another model name 'remote.b1acn01', and got an error bottom.

Unsupported device found! Please create an issue at https://github.com/Danielhiversen/PyXiaomiGateway/issues and provide the following data: {'cmd': 'read_ack', 'model': 'remote.b1acn01', 'sid': 'XXX', 'short_id': XXX, 'data': '{"voltage":XXX}'}

chriswalken commented 5 years ago

Wondering if you tested this. I tried adding this one liner and it still doesn't create the binary sensor.

If I also add it in '/usr/src/app/homeassistant/components/binary_sensor/xiaomi_aqara.py' beside 'sensor_switch.aq2' it gets added but I'm not seeing events fire. It's possible that issue is something else in my setup (adding a gateway and buttons for the first time).

chriswalken commented 5 years ago

The events not showing up was due to having the docker setup with '--net=bridge'. Once I switched to '--net=host' it now works. But again, it required updating the second file mentioned above as well.

If possible can you please confirm and update your commit.

Thanks for trying to get this in the branch!