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

Improve Legrand 064882 cable outlet heat mode

Open piitaya opened this issue 1 year ago • 20 comments

Proposed change

Following https://github.com/zigpy/zha-device-handlers/pull/2807

Pilot wire mode has been renamed to heat mode. Enum for device_mode has been removed as it's not used. The value is now exposed and you can read and write the cluster of the attribute. This will allow the creation of a climate entity in ZHA to control the heat mode.

Additional information

A PR has be open in Home Assistant Core to add the support using climate entity : https://github.com/home-assistant/core/pull/113059

To use the climate entity, user will needed to pass the device in wire pilot mode by toggling the new switch entity : wire pilot mode

image

image

image

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

piitaya avatar Mar 11 '24 12:03 piitaya