mjg59 / python-broadlink

Python module for controlling Broadlink RM2/3 (Pro) remote controls, A1 sensor platforms and SP2/3 smartplugs
MIT License
1.38k stars 479 forks source link

Adds support for BG Electrical EHC31 Extension Lead (0x6480) #745

Closed squarefeet closed 5 months ago

squarefeet commented 1 year ago

Context

This PR adds support for the BG Electrical EHC31, a smart extension lead (or power-strip) with device type 0x6480.

I'm not a Python dev, but this small change seems to work! I tried to stick to existing conventions where I noticed them.

I've tested this extensively locally with my own little test script, and noted down in the comment for this new device's set_state() method my findings just in case they'd be of use to anyone else.

Note: Since I branched off master, this PR can't be automatically merged. If it'd be easier, I can re-create my fork from the new_product_ids branch and re-open this PR.

Proposed change

Type of change

Additional information

Checklist

felipediel commented 5 months ago

Closed with https://github.com/mjg59/python-broadlink/pull/784. Thanks @squarefeet!