raetha / wyzesense2mqtt

Configurable WyzeSense to MQTT Gateway intended for use with Home Assistant or other platforms that use MQTT discovery mechanisms.
MIT License
79 stars 22 forks source link

Add V2 Motion and Contact Sensor support #54

Closed AK5nowman closed 3 years ago

AK5nowman commented 3 years ago

This does not support the keypad. A new firmware needs to be flashed to the Wyze V1 dongle in order to receive keypad events.

drinfernoo commented 3 years ago

One thing I noticed here is that (even though the sensors are now working) device_class is still returning as null...

{
  "event": "alarm",
  "available": true,
  "mac": "77C00CE1",
  "device_class": null,
  "last_seen": 1620923753.433,
  "last_seen_iso": "2021-05-13T09:35:53.433000",
  "signal_strength": -22,
  "battery": 103,
  "name": "Back Porch Motion",
  "state": 0
}
drinfernoo commented 3 years ago

Aha! Fixed the device_class issue here: https://github.com/AK5nowman/wyzesense2mqtt/pull/1