Integrating a Shelly 2.5

Hello everyone,

I'm struggeling to integrate my shelly 2.5 into my HE-system (C7). When I'm trying to discover it as a LAN-device, my HE can't discover it. Right now it is just added into my WLAN-Network with a static IP. What am I missing? I consulted the HE documentation first and looked through the different topics but couldn't find anything helpfull. Thanks in advance.

1 Like

I am not a Shelly user, however I believe this is what you need to do:

Instead of trying to Discover it, simply manually add a Virtual Device with the correct Driver 'Type' for the Shelly 2.5. Once you add it, you will then fill in the settings of the device, including its IP address.

2 Likes

Great, worked like a charm. Thank you. :smiley:

1 Like

Hi. I am planning to buy a hubitat to control some shellys 2.5. May I ask you a couple of questions? I would like to program a rule to do the following: If I short press the button up/down connected to one shelly, that specific roller moves up/down but If I long press the button up/down connected to one shelly(i.e more than 4 seconds) all the rollers move up/down. So my question are:
When you add a shelly 2.5 to HE adding a virtual device, are the variables Button up pressed and button down pressed available to be programmed in a rule?
If so, can I program actions depending on the duration of the press action?

Thank you in advance

First of all welcome to the community. :smile:

Then to answer your question, I've got one for of my own first. Are you talking about a hard wired switch, directly connected to your Shelly, or a smart switch/button?

Thank you!
I mean 2 push buttons (one to move the roller up and one to move the roller down) directly wired to each shelly.

OK, using just the hard wired switch for that, would be a little tricky. What you could do is using a smart Button, like the Ikea Styrbar to do the trick. You basically got 4 buttons in one device. 2 have the push command, the other two push, hold and release. Using the button controller app, you can easily programm everything the way you want it to be. Let's say the commands would be the following:

Button 1 pushed: Roller opens

Button 2 pushed: Roller closes

Button 3 pushed: Everything opens

Button 4 pushed: Everything closes

Button 3 Hold: Roller opens in steps till released

Button 4 Hold: Roller closes in steps till released.

It might bei possible to do something similar using the hard wired switch, but I'll have to Check, when I'm home and able to play arround with my Hub. :slightly_smiling_face:

Thank you for the idea but the installation is already done with the hard wired switches connected to the shellys and I do not want to add more devices. I can move all the rollers up and down at the same time using alexa routines but I would like to know whether it is possible to move all at the time programming long duration push in a HE rule. I would like to know before ordering the hubitat hub. I would be grateful if you find the answer playing arround with you hub. I am not sure but I think it may be possible to check in menu-devices-shelly 2.5 the available variables to be programmed... I kindly ask you to let me know if you find out....

The hub supports everything the device does. I looked at one of my 2.5s and it has hold, press and release commands. I think if the switch type is momentary you can differentiate a press from a hold. Mine are setup simply as "edge" type for lights. I'm using the built in driver.

Actually looked and my hub and the direct answer is YES.
image

That's a 1 I'm using for garage door, but you have held vs pressed (so long vs short) events.

Thank you very much, hold and press commands should be enough for my porpuse.

I´m intrigued to know whether is possible or not to specify in a HE rule a certain amount of time pressing a momentary button to trigger an accion . If you could find out would be very useful for me. In any case thank you very much, very helpful.
I take this opportunity to ask you how long have you had shelly devices working with HE hub and if you have had any problems.

Just found this option in the Rule Machine documentation, which I think solves my intrigue:

The And stays? option, also called a "sticky trigger," is option available for many types of trigger events. (If this option does not appear, that particular kind of trigger event does not support this option, generally events that do not relate to state changes.) For example, a trigger of Front door opens and stays that way for 0:05:00 will trigger only if the front door opens and remains in an opened state for 5 minutes. If the door is closed before that time, the rule will not trigger.

Thank you!

Guess you answered the other part...I have 4 shelly 1 and 2 shelly 2.5. 2 of the 1's are in use for a couple garage doors along with reed switches and the zooz garage door app to run my garage doors and it's been wonderful. I haven't had a single hiccup. The 2.5s are just running lights, one is in a double gang box and the other in a 3 gang where the 3rd is a legit smart switch. Just simple on/off situation and as I said before I have the switch type configured as "edge" so every flip of the physical switch just changes the state of the relay. It's a (US style) 3-way with the wall switch and hub control. When I get around to it I am going to run bell wire around an outbuilding and use more of the reed switches in series to have a "something is open" indicator for the (manual) garage doors, windows and man door. I'm currently using some cheap sonoff zigbee contacts for the windows and man door and they are flaky.

Good to know that tour experience with shelly has been ok so far.
Thanks for your help!

Have just recieved my HE C7 and I´m trying to add my first device( shelly 2.5 as roller shutter). Steps: computer, HE and shelly2.5 on the same LAN. I can control the shelly with the computer using the device web browster without problems. I press add device on HE webpage , virtual, set name, set type shelly wifi switch, and IP address. I return to devices but I dont get any child node.
If I repeat the process adding device by brand I get the same problem.
Any idea of what I am doing wrong?

Wrong driver. You need to set it to the "Shelly 2/2.5 as Roller Shutter" Driver.

Shelly Drivers

Then your device_page should look like this:

Sorry for the delay. Thank you very much for your help. I have installed the drivers you linked and it is working now, but I need to make a rule triggered by the event that takes place when I have pressed one of the push buttons wired to one of the shellys input, by I cant see any variable that shows that shellys input 1 is on or off. Same issue for input 2. Any way to access these variables?

Only indirectly. Input 1 and 2 are used in this case to either trigger an up or down movement. What you can do is write a rule based on the position of your roller shutter in percent. Hubitat is defining your roller shutter as a bulb (don't ask me why), so you can easily write rules based on that. Here is an example of one of my rules:

Just a note for my lamps, before there is any confusion, because of seemingly unnecessary additional steps (turn on, set dim etc.). This is because of some older Ikea-Bulbs which tend to have some issues with a few steps at once. Your rule would be much shorter. :slight_smile:

Thank you but position is not valid for my porpuse. I need to make rules on the rule machine with diferent actions depending on how long I press the push buttons wired to the shelly 2,5 inputs, so I need to know the state of the inputs. Maybe with other drivers?? It seems strange to me that it is not possible to access something so basic of the shelly device , while other advanced variables are availabl, but Im totally newbie on HE.
I take this opportunity to ask you also about the difference between set level and set position on the device page.
And one more, if a shelly 2,5 is on the list of compatible devices with hubitat, do you know why is it necessary to install drivers to make it work?

I honestly don't think, that there is any device which is keeping such a specific record. Even button-devices, which are programmed to distinguish between push, double tap, hold and release don't recognize such a specific request...
But tell me, what you are trying to achieve. Maybe, we can find a solution. :slight_smile:

I think, that not even the S 2.5 is really keeping track of the time the button is pushed. All the shelly devices are programmed to work as rocker switches or push buttons or something like this. This means, that they are only recognizing basic events (pushed, hold) and start activating or deactivating the relay. But as far as I'm aware, there is no event recording and especially no specific time recording.

None. Both do exactly the same thing.

It is only necessary, if you want to use it as a roller shade. As a regular switch, turning bulbs on and off, the native driver works flawless. :slight_smile:

I have 7 roller shutters in one flat. Each one controlled by a shelly 2.5. Each shelly has 2 physical push buttons wired to its inputs, one to open the roller and the other to close it. I want to get this: If in my room I press the physical push button(wired to input 1) during i,e 3 seconds, not only the roller of my room will open, but the other 6 too. If the state of the variable input 1 is available somehow, when I create a rule´s trigger on the rule machine there is an option called stays on( called sticky trigger on the manual), where I can choose the time that the input has to remain on to trigger the actions, which would be 6 actions to open the 6 rollers.