JamesSwift / localbytes-plug-pm

An ESPHome firmware for the Localbytes smart plug
GNU General Public License v3.0
23 stars 20 forks source link

Variable/Subs for Button and LED default states #18

Open edwardpoll opened 1 month ago

edwardpoll commented 1 month ago

Hi James,

Not an issue as such but wanted to reach out, would it be possible for you to add variables for the default button and led states so we can sub them in and out as we do for the default power state.

Not a massive change and would help enormously with my automation states without having to fork away from your maintained code.

Cheers!

JamesSwift commented 1 month ago

Hi @edwardpoll. That's a good idea. I don't actually have any of these plugs in use anymore though - I gave them to my nephew - so I'm not able to test any changes I make to the repo. If you want to test the change on your end and submit a pull request I'll happily merge it. Although you might want to switch to the https://github.com/LocalBytes/esphome-localbytes-plug LocalBytes maintained version now, and submit your pull request there.