plasticrake / tplink-smarthome-api

TP-Link Smarthome WiFi API
MIT License
1.02k stars 141 forks source link

Add feature to fire brightness change events #106

Closed hufftheweevil closed 2 years ago

hufftheweevil commented 4 years ago

There is currently no way to trigger off of brightness changes for plugs/switches that support dimming. This feature adds a brightness-change event that fires when the brightness changes after polling. It is only supported when .supportsDimmer is true.

Apologizes if any of the typing isn't right - I'm still new to TS.

plasticrake commented 2 years ago

Worked on this PR branch not realizing I already did this and merged to masted on 2021-03-01! Closing this since its already in master. Much appreciated!