Danielhiversen / PyXiaomiGateway

PyXiaomiGateway
MIT License
152 stars 55 forks source link

Vibration sensor implementation missing "touched" state #148

Closed timdonovanuk closed 5 years ago

timdonovanuk commented 5 years ago

Current implementation supports vibration, tilt, coord & bed (https://github.com/Danielhiversen/PyXiaomiGateway/pull/89#issuecomment-418480291) but there is another state called touched, that shows up in the Aqara app, that is not implemented. Not sure how to run PyXiaomiGateway manually otherwise I'd see what the gateway outputs. Cheers.

syssi commented 5 years ago

The event is already supported and called "vibrate". It's just called "touched" at the MiHome app. You should listen for this event:

Event: xiaomi_aqara.movement
Parameters:
  entity_id: binary_sensor.vibration_158d0002a4f9f8
  movement_type: vibrate
timdonovanuk commented 5 years ago

Then what is vibrate tracked as? Because MiHome tracks vibrate as a distinctly more powerful event, than "touched"?