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

Shelly Dimmer / Dimmer2 support possible ?

Open andyblac opened this issue 5 years ago β€’ 122 comments

as title do you think Shelly Dimmer would possible ?

andyblac avatar Feb 12 '20 19:02 andyblac

in principle, yes. but it has secondary microcontroller, which is an additional complication.

rojer avatar Feb 12 '20 22:02 rojer

I could do with it, would you be willing to take a look if I send you one ?

andyblac avatar Feb 13 '20 12:02 andyblac

could this help ? https://github.com/alexryd/homebridge-shelly

andyblac avatar Feb 13 '20 13:02 andyblac

no, that's not relevant.

i would not recvommend starting with dimmer. implementing input as push button would be easier and get you acquainted with what implementing a HAP service entails.

rojer avatar Feb 13 '20 13:02 rojer

an a dimmer act as on/off too ?

andyblac avatar Feb 13 '20 13:02 andyblac

what's the use for the dimmer without, you know, dimming functionality? i think we should hold off declaring support for shelly dimmer until dimming is implemented. in terms of HAP, that would mean implementing a lightbulb service, which supports variable brightness.

rojer avatar Feb 13 '20 13:02 rojer

so if I purchased a shelly dimmer I could try adding as a switch to start ?

andyblac avatar Feb 13 '20 13:02 andyblac

The dimmer is indeed not the device to start with. If lighting is your thing, try the LED drivers, they should be much simpler, using PWM for output control.

As for the dimmer -- we plan on releasing info about the UART protocol used to control the small MCU which does the actual dimming, but no ETA.

kzyapkov avatar Feb 13 '20 13:02 kzyapkov

ahhhh. atm I'm using Philips Hue, but tbh it is unreliable, found shelly's much more so and it is instant, I was hoping to replace my Hue with Shelly's.

andyblac avatar Feb 13 '20 13:02 andyblac

please drop a note to [email protected], we may be able to help

kzyapkov avatar Feb 13 '20 13:02 kzyapkov

atm I have zero knowledge of HAP or MOS, I am a python coder. mOS looks vastly different, I am trying to read through this git code to try to get an understanding of it.

andyblac avatar Feb 13 '20 13:02 andyblac

right, so dimmer is not a good start. better pick a simpler issue to tackle. for HAP, your bible is HAP-Specification-Non-Commercial-Version.pdf. you can download it from here. you'll need to login with apple id but it's free of charge. get familiar with the concepts - controller, accessory, service, characteristic, event. then read existing code to understand how services are defined and characteristics and events managed. fortunately, it's not that much - all of the "switch" service implemented by shellies is contained here.

in terms of coding - yeah, it's the good old C, not Python. not much do be done about it, i'm afraid. either you pick it up, or you won't be able to do much.

rojer avatar Feb 13 '20 13:02 rojer

thanks, I have some homework to do πŸ˜„

andyblac avatar Feb 13 '20 13:02 andyblac

Hi guys! How are you doing? I've caught up on this thread and had a look at the HAP. From my understanding a dimmer would be implemented using the brightness characteristic. Correct? So instead of a switch, the device would need to authenticate as a light bulb service. Is that assumption correct? Unfortunately I also don't have any experience in HAP and MOS, but it sounds like a fun project. If I can help with anything I'm all keen. Just give me a yell. Would be awesome to have support for the Shelly dimmer!

sebastianheise avatar Feb 24 '20 09:02 sebastianheise

yes, that is correct.

On Mon 24 Feb 2020, 09:34 Sebastian Heise, [email protected] wrote:

Hi guys! How are you doing? I've caught up on this thread and had a look at the HAP. From my understanding a dimmer would be implemented using the brightness characteristic. Correct? So instead of a switch, the device would need to authenticate as a light bulb service. Is that assumption correct? Unfortunately I also don't have any experience in HAP and MOS, but it sounds like a fun project. If I can help with anything I'm all keen. Just give me a yell. Would be awesome to have support for the Shelly dimmer!

β€” You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mongoose-os-apps/shelly-homekit/issues/14?email_source=notifications&email_token=AAEBW22ZN6MVSONBO7SYKX3REOIAXA5CNFSM4KUBHZDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMXEHNI#issuecomment-590234549, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEBW2YH2NXSTSSSHOR4HF3REOIAXANCNFSM4KUBHZDA .

rojer avatar Feb 24 '20 09:02 rojer

@rojer Do you have plans for Shelly Dimmer 2 at the moment? Or is time still your problem?

It would be great if you can find a solutionπŸ‘ŒπŸ»πŸ˜€

Olly68 avatar Aug 08 '20 14:08 Olly68

Would this help with the dimmer - https://github.com/curla92/LED-Dimmer-Homekit

ree109 avatar Aug 20 '20 00:08 ree109

Anyone tried it yet?

On Wed, 19 Aug 2020 at 7:47 PM ree109 [email protected] wrote:

Would this help with the dimmer - https://github.com/curla92/LED-Dimmer-Homekit

β€” You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mongoose-os-apps/shelly-homekit/issues/14#issuecomment-676832486, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQPL2JLGMPVB7LIBAZRTTRTSBRXADANCNFSM4KUBHZDA .

vanrri avatar Aug 20 '20 01:08 vanrri

Just so you don't get Bored!!! HAHA, Can This Be Next Please!!!

andyblac avatar Oct 02 '20 19:10 andyblac

yes, i think i'll tackle either dimmer or rgbw2 next. we'll see.

rojer avatar Oct 02 '20 19:10 rojer

cool cheers!!!

andyblac avatar Oct 02 '20 19:10 andyblac

yes, i think i'll tackle either dimmer or rgbw2 next. we'll see.

do you need any devices ?, I don't mind donating one of each for you to work with.

andyblac avatar Oct 02 '20 19:10 andyblac

no, i'm all set. i've had a couple for a while now.

rojer avatar Oct 02 '20 19:10 rojer

ok np.

andyblac avatar Oct 02 '20 19:10 andyblac

+1 for Dimmer next :)

freddair avatar Oct 10 '20 07:10 freddair

yes, dimmer is next (after garage door is out), in particular dimmer2, which is what i have for testing.

rojer avatar Oct 11 '20 13:10 rojer

yes, dimmer is next (after garage door is out), in particular dimmer2, which is what i have for testing.

if I can help with debug info for Dimmer1 let me know.

andyblac avatar Oct 11 '20 13:10 andyblac

+1 for Dimmer1

freddair avatar Nov 04 '20 10:11 freddair

+1 for Dimmer 1 πŸ‘πŸ»

Leo-W536 avatar Nov 04 '20 16:11 Leo-W536

i now have dimmer2, so can help testing that too πŸ˜„

andyblac avatar Nov 04 '20 16:11 andyblac