Danielhiversen / PyXiaomiGateway

PyXiaomiGateway
MIT License
152 stars 55 forks source link

New Aqara Vibration sensor unsupported device #95

Closed MarciPain closed 6 years ago

MarciPain commented 6 years ago

{'cmd': 'read_ack', 'model': 'vibration', 'sid': '158d0002a4e8ee', 'short_id': 13587, 'data': '{"voltage":3035}'}

monster1025 commented 6 years ago

Here is some other example data for vibration sensor:

{'cmd': 'report', 'model': 'vibration', 'sid': '158d0002a55439', 'short_id': 46149, 'data': '{"status":"vibrate"}'}
{'cmd': 'report', 'model': 'vibration', 'sid': '158d0002a55439', 'short_id': 46149, 'data': '{"status":"tilt"}'}
{'cmd': 'report', 'model': 'vibration', 'sid': '158d0002a55439', 'short_id': 46149, 'data': '{"status":"free_fall"}'}

{'cmd': 'report', 'model': 'vibration', 'sid': '158d0002a55439', 'short_id': 46149, 'data': '{"bed_activity":"266"}'}
{'cmd': 'report', 'model': 'vibration', 'sid': '158d0002a55439', 'short_id': 46149, 'data': '{"coordination":"-31,1027,190"}'}
{'cmd': 'report', 'model': 'vibration', 'sid': '158d0002a55439', 'short_id': 46149, 'data': '{"final_tilt_angle":"16"}'}
Danielhiversen commented 6 years ago

Should be supported by the library now https://github.com/Danielhiversen/PyXiaomiGateway/pull/89