zha-device-handlers icon indicating copy to clipboard operation
zha-device-handlers copied to clipboard

Add battery reporting for Zemismart ZM85EL cover motors

Open michalmo opened this issue 1 year ago • 12 comments

Proposed change

Zemismart ZM85EL series devices that I own report battery status as Tuya attribute 0x0D. This PR adds optional support for reporting battery level to TuyaManufacturerWindowCover and moves the 3 manufacturer ids of these devices to a new quirk, with battery support enabled.

Additional information

ZM85EL manufacturer ids are:

  • _TZE200_pw7mji0l ZM85EL-1Z (added in #1616) - I do not own a device with this id
  • _TZE200_68nvbio9 alternative id for ZM85EL-1Z bought from Zemismart store on Aliexpress (added in #1349) - I own this device
  • _TZE200_cf1sl3tj ZM85EL-2Z (added in #1652) - I own this device

These devices appeared in different quirks which have the same signatures and configuration.

Checklist

  • [x] The changes are tested and work correctly
  • [x] pre-commit checks pass / the code has been formatted using Black
  • [ ] Tests have been added to verify that the new code works

michalmo avatar May 18 '23 11:05 michalmo