Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shelly 2.5 as roller shutter? #5

Closed
realguarroman opened this issue Feb 8, 2020 · 223 comments
Closed

Shelly 2.5 as roller shutter? #5

realguarroman opened this issue Feb 8, 2020 · 223 comments
Labels
enhancement New feature or request

Comments

@realguarroman
Copy link

Hello

Congratulations! I was waiting for a firmware for using only home kit, now I'm using homebridge and a shelly plugin.
If I install this firmware... Will I be able to configure my shelly 2.5 as a roller shutter in homekit?

Thanks

@macguru341
Copy link

Like for this , I’m also need it

@rojer
Copy link
Contributor

rojer commented Feb 8, 2020

it's a pretty big feature, no ETA.
if anyone is willing to contribute, PRs welcome.

@andyblac
Copy link
Collaborator

andyblac commented Feb 8, 2020

I do not yet know Mongoose, I am a python coder, but I am willing to learn. once I get setup so I can build / flash the fun begins 😄.

@rojer do you have a discord server so we can chat direct ?

@rojer
Copy link
Contributor

rojer commented Feb 8, 2020

most of your questions will probably be general mongoose os dev questions, you can use https://gitter.im/cesanta/mongoose-os
i'm hanging out there, and there are other folks that may be able to help

@andyblac
Copy link
Collaborator

andyblac commented Feb 8, 2020

thanks I'll take a look.

@rojer rojer added enhancement New feature or request help wanted labels Feb 8, 2020
@macguru341
Copy link

Hi, again great work, is there any ETA on Shelly 2.5 for shutter?

@rojer
Copy link
Contributor

rojer commented Feb 27, 2020

it's the first thing on my list, but haven't had the time yet

@PatrickHrdl
Copy link

@rojer
Hi! GREAT WORK! Thank you!
It would be great if it would soon be possible to use SHELLY 2,5 as a shutter switch in HomeKit. May I give you some money, maybe it will be faster? :-) :-) :-)

Thank you! BR, Patrick

@rojer
Copy link
Contributor

rojer commented Mar 8, 2020

tell me in more detail, how is your setup wired?

@PatrickHrdl
Copy link

Currently I have not yet installed the SHELLY 2.5.

I have a Rollershutter double switch. (With mechanical interlock)

One switch for UP, the other for DOWN.

What else do you want to know?
It should work like the SHELLY firmware, but for HomeKit.

The SHELLY takes the switch impulse and then drives itself (after calibration) completely down or up. Or even a percentage setting is possible.

@rojer
Copy link
Contributor

rojer commented Mar 9, 2020

i am not familiar with how shutters work, so i have all sorts of questions, for example - i assume one output is used to close and the other is used to open, but should output stay on or just produce a single pulse? if it should stay on, for how long?

@PatrickHrdl
Copy link

PatrickHrdl commented Mar 9, 2020 via email

@realguarroman
Copy link
Author

Maybe this video could help https://www.youtube.com/watch?v=fhp8DooeguI&list=PLl9nrhAAwWskc4jQxhlaedn0M57QOu_yj
It seems that there are two variables storing the amount of time used for open and close the shutters.
In the video they use the app Eve for adjusting this values and more things

@eurich
Copy link
Contributor

eurich commented Mar 10, 2020

Shelly 2 & 2.5 stock firmware has got different types of open / close working time:

  1. calibration - use power consumption in order to determine the open / close working time.
  2. manual setup open / close working time.. (in seconds)

Most important feature is the "interlock", so you can use relay1 (open) or relay2 (close) but not both at the same time..

@PatrickHrdl
Copy link

PatrickHrdl commented Mar 10, 2020 via email

@Thotty1986
Copy link

upup :=) Need the funktion :)

@rojer
Copy link
Contributor

rojer commented Mar 19, 2020

Maybe this video could help https://www.youtube.com/watch?v=fhp8DooeguI&list=PLl9nrhAAwWskc4jQxhlaedn0M57QOu_yj
It seems that there are two variables storing the amount of time used for open and close the shutters.

that's right. and they probably use current sensor for auto learning - when end is reached and shutters stop moving, current consumption will go up significantly.

In the video they use the app Eve for adjusting this values and more things

unfirtunately, i am very short on spare time now, so no promises...

@PatrickHrdl
Copy link

Can i help you with Money die programming Roller Shutter? :)

@rojer
Copy link
Contributor

rojer commented Mar 23, 2020

at this point i think the biggest barrier for me personally is just not having the hardware and not being familiar with it.
can someone suggest what i can buy that would be representative of what's out there in the field?
if someone is willing to contribute hardware for me to work with, that would be even better.

@PatrickHrdl
Copy link

PatrickHrdl commented Mar 23, 2020 via email

@ghost
Copy link

ghost commented Apr 1, 2020

On Amazon (https://www.amazon.de/gp/offer-listing/B085HKH8LR/ref=sr_1_6?s=diy&search-type=ss&keywords=HomekitBG&qid=1585689734&sr=1-6) you can buy a shelly 2.5 with the HomeKit firmware as a roll shutter. But nowhere I can find the firmware to download or find the right settings to set it as a shutter, maybe one of you can help me.

@BlancoDeMallloca
Copy link

Hi all,

Thank you very much for the flash software. This is great work.

I am really interested in this development too. Unfortunately I am not a software expert.

Maybe this video could help https://www.youtube.com/watch?v=fhp8DooeguI&list=PLl9nrhAAwWskc4jQxhlaedn0M57QOu_yj
It seems that there are two variables storing the amount of time used for open and close the shutters.

that's right. and they probably use current sensor for auto learning - when end is reached and shutters stop moving, current consumption will go up significantly.

There is another video in German to show the usecase. https://m.youtube.com/watch?v=h0uxqDSpTz8

I think the endpositions (fully opened and fully closed) of the Roller are also determined by the motor of the roller shutter. So this feature could be implemented in a second step.

The main thing is to implement the feature that HomeKit detects Shelly 2.5 as a roller shutter and not as two separate switches. So the interlock would be Implemented to save the life of the roller shutter motor.

Thanks for your efforts.

@kaeferfreund
Copy link

kaeferfreund commented Apr 12, 2020

I'm currently working on this. For now I got the interlocking bit already done, so I already use it as the two switches. Before the second relay is turned on, the first is turned back off.

As for now I'm working on thermal protection, calibration and full positioning support like the ikea window blinds have. As this is more a side project there is no clear timeline.

@PatrickHrdl
Copy link

PatrickHrdl commented Apr 12, 2020 via email

@BlancoDeMallloca
Copy link

Cool! Thank you very much. This is awesome.

Will there be a pre release of the interlock? I am a little bit worried to „schredder“ my roller shutter if I am switching on both Shelly 2.5 channels at the same time

@kaeferfreund
Copy link

Currently I'm testing the software interlock with my own shutters, no problems so far. As development takes some time and @rojer provided such a great foundation, he should def. receive the compensation for his mos development claimed in his licensing program. This is why I'm still figuring out how and when the whole thing will be released. But I' glad to see that there is interest in this solution :)

@rojer
Copy link
Contributor

rojer commented Apr 12, 2020

thanks for the kind words. yeah, there is definitely interest, as you can see.
go ahead, get it working and send in a PR.

@MilanBacaCz
Copy link

I did Factory reset and it seems now it works.

@andyblac
Copy link
Collaborator

andyblac commented Oct 2, 2020

@rojer ok I have flashed spare shelly2.5 and setup as RolerShutter, can you just confirm what these do please.

Screenshot 2020-10-02 at 12 51 51

@rojer
Copy link
Contributor

rojer commented Oct 2, 2020

Separate - momentary: external inputs are separate, input 1 to open, input 2 to close and operate in push button mode - press and release input to start moving, press and release again to stop.
Separate - toggle: external inputs are separate but operate in toggle mode - press and hold to move, release to stop moving.
Single: only input 1 is used, operates in push buttone mode: press and release to cycle between open, stop, and close. input 2 is unused and is exported as a separate accessory.
Detached: inputs are not used for roller shutter control and are available as separate accessories instead.

@andyblac
Copy link
Collaborator

andyblac commented Oct 2, 2020

ok I've done that basics, give it a once over. now can someone here do a setup procedure from start to finish, I'll write it up for wiki, some screenshots would be good too. thanks
https://github.com/mongoose-os-apps/shelly-homekit/wiki/Roller-Shutter-Settings

@andyblac
Copy link
Collaborator

andyblac commented Oct 2, 2020

@rojer what is the difference between "Detached" for switch and roller shutter? is it necessary ?, could it be removed and if use wants "Detached" use switch mode, after all the homekit accessory is a switch ?

@rojer
Copy link
Contributor

rojer commented Oct 2, 2020

but what if they want to have roller shutter control via HAPbut don't need external inputs? must be rare, i know, but still - it was easy to add, so i did.

@andyblac
Copy link
Collaborator

andyblac commented Oct 2, 2020

so is the accessory a Window in HomeKit when in detached mode ?

@rojer
Copy link
Contributor

rojer commented Oct 2, 2020

yes, window + 2 stateless switches.

@andyblac
Copy link
Collaborator

andyblac commented Oct 2, 2020

ok I'll have to add to get a screenshot or do you have one ?

@andyblac
Copy link
Collaborator

andyblac commented Oct 2, 2020

also why is it called Window 1 (Window 1) , surely Window (Window) is better as it can only control 1 motor at a time ?

@andyblac
Copy link
Collaborator

andyblac commented Oct 2, 2020

and I presume the Input1 can be renamed to Input as well, also can I just copy the text from Input from Switch to roller shutter I presume the 3 options are the same ?

@andyblac
Copy link
Collaborator

andyblac commented Oct 2, 2020

ok just added the 2.5 to home in detached mode, it make no sense to me. I now have 5 accessories ??

Window Covering
2 x Switches. (No Response)
2 x Stateless Switches

IMG_0298
Screenshot 2020-10-02 at 13 33 38

@rojer
Copy link
Contributor

rojer commented Oct 2, 2020

i guess home will eventually realize that switches are not there and remove them. window + stateless switches is correct, plus you should have a primary bridge accessory hidden away somewhere.

@andyblac
Copy link
Collaborator

andyblac commented Oct 2, 2020

i guess home will eventually realize that switches are not there and remove them. window + stateless switches is correct, plus you should have a primary bridge accessory hidden away somewhere.

I added in Detached state.

@andyblac
Copy link
Collaborator

andyblac commented Oct 2, 2020

remember this is iOS14. yes I have a bridge listed in Home settings, they do not get titles now.

@andyblac
Copy link
Collaborator

andyblac commented Oct 2, 2020

oh wait this could be, Homebridge, it could have detected the shelly in official firmware, let me check.

@andyblac
Copy link
Collaborator

andyblac commented Oct 2, 2020

@rojer yup, that was it, Homebridge found the shelly as 1st boot, and added to homekit, I have removed it from the cache now it only shows 3 tiles 👍

@andyblac
Copy link
Collaborator

andyblac commented Oct 2, 2020

@rojer ok so only outstanding issue is Window 1 (Window 1), should this not just simply be Window (Window) ?

@andyblac
Copy link
Collaborator

andyblac commented Oct 2, 2020

please give the once over https://github.com/mongoose-os-apps/shelly-homekit/wiki/Roller-Shutter-Settings

we still need someone to do a setup guide, please. (not adding to homekit, but a guide on setting up in webUI, ie. calibration process.

@rojer
Copy link
Contributor

rojer commented Oct 2, 2020

i think changing window labeling makes sense, will do in the final release.

i'm waiting for confirmation from @epiphany11 that the calibration change i made works. this was a real issue.

@Pixel-Chris
Copy link

Pixel-Chris commented Oct 2, 2020

Are there different hap types for roller shutters awnings, blinds and so on....?

@andyblac
Copy link
Collaborator

andyblac commented Oct 2, 2020

You can change the icon in HomeKit to suite

@epiphany11
Copy link

@rojer seems to be working!

@rojer
Copy link
Contributor

rojer commented Oct 2, 2020

ok, pushed out 2.2.0, thanks everyone for your help with building this!

@rojer rojer closed this as completed Oct 2, 2020
@andyblac
Copy link
Collaborator

andyblac commented Oct 2, 2020

@rojer I would just like to say and I think I speak for everyone here, A Massive THANK YOU!!!!

@rojer
Copy link
Contributor

rojer commented Oct 2, 2020

my pleasure :)

@juancitomadrid
Copy link

@rojer I would just like to say and I think I speak for everyone here, A Massive THANK YOU!!!!

+1

Great work @rojer !!! Thanks for your time.

@pivale
Copy link

pivale commented Oct 25, 2020

I would say that you should ignore my situation for now :)

I will:

  • order some other shelly 2.5 and replace it to test

  • test this one in another window/motor

  • test this one with stock firmware

I won't be able to do it anytime soon for personal reasons, but I'll send you some feedback asap.

I've installed my other 2.5 and this never happened there.

I've managed to solve the problem on the one with issues by reinstalling stock firmware with latest version and then installing again HomeKit version.
A few days already and haven't had the problem since...

@rojer just to let you know what worked for me, might be a solution for other mysterious issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests