shelly-homekit icon indicating copy to clipboard operation
shelly-homekit copied to clipboard

Detached with relay control

Open bmpalmeida opened this issue 2 years ago • 10 comments

I've tried to do a initial effort for targeting #147, specially on having the single click controlling the relay without relying on HomeKit.

I've created a new input mode, detached with relay control, and i tied the single click to the relay.

I've tried to make it very clean, and maybe there are some limitation, but i've tested in 1PM and 2.5 and its working as expected.

bmpalmeida avatar Jun 14 '22 08:06 bmpalmeida

just a suggestion but to have a new button type called "DetachedWithRelay" is not the way to go, as the button is no longer detached, maybe you could simply add a check box to "Momentary" button type options to add extra HomeKit button options, maybe call the check box "Advanced button options" or "HomeKit Buttons"

andyblac avatar Jun 25 '22 13:06 andyblac

Hi Andy, completely agree. Let me try to do it.

bmpalmeida avatar Jun 25 '22 14:06 bmpalmeida

Hi, i've just pushed a new version with the HomeKit button option.

I'm now stuck on one question, which i think its important to make this clean.

I'm using stateless switch, but it has its own input inverted, hap type, etc. i think i should create and HomeKit button class, and synchornize the options with the momentary switch, what do you think? its the best way to go?

bmpalmeida avatar Jun 28 '22 09:06 bmpalmeida

Sorry for long delay in replying, ye sounds good to me, @rojer what do you think?

andyblac avatar Nov 04 '22 12:11 andyblac

Hi Guys, Any update on this?

AlexDavidenko avatar Jan 03 '23 07:01 AlexDavidenko

Hi, is it possible to have the firmaware to flash? Thanks

grgmll avatar Apr 07 '23 14:04 grgmll

I totally expected this to already be in the firmware when I started using it. @timoschilling do you think it could be merged? Do you need any kind of help with it?

lorenzomorandini avatar Nov 05 '23 23:11 lorenzomorandini

Interesting feature. I hope it will be merged.

mattewre avatar Nov 08 '23 20:11 mattewre

@markirb any chance to include this functionality? should i follow this last approach and merge the code?

bmpalmeida avatar Jul 13 '24 20:07 bmpalmeida

Yes. Can you please resolve conflicts with a rebase? I will review then

markirb avatar Jul 13 '24 20:07 markirb