Shelly Plus 2PM inclusion

I'll be happy to send you the devices if you like.

I now realise how difficult it is to automate a house. I thought, wrongly, that everything was compatible. That was my mistake and I accept it.

I appreciate your help and dedication. I thank you very much for that.

How many devices are we talking about? Or is it just multiple of the PM2?

I also can do personal support via phone and screen sharing. I am sure I could get you up and running in no time for less than new devices. Send me a PM if interested. (Unofficial, I do not work for Hubitat)

hello
here is the screenshot of the errors
I’m away for 10 days. I promess to try when I’m back.

Looking at your log.

Some errors makes me confused.

First of all have you set device IP? 'Host unreachable' means hub can't find device IP in your network.

Could you enable debug logs and send new logs with debug logs enabled?

I'm back in 10 days.
I'll try then

1 Like

Hello.
As promise, I tried this morning. Now with success.

I give you the operation procedure :

1 Like

So you got it working now from the sounds of it?

Just thought of something, since it is going by IP you should go into your router and set that device as a fixed or assigned IP. Not sure what your router will call it but you are setting a DHCP reservation for the IP so if that device disconnects (like if a power outage) it always get the same IP.

Thank you for the advice,
I assigned an IP in the Shelly app

If that means you set the device itself to a static IP, just be warned that if that IP is within the DHCP pool of the router, there is a small chance the router could hand that IP out to some other device when the Shelly is offline, and then you would have an IP conflict when it comes back online.

Which IP address should I use?

New questions arise as we move forward.
how do you program the buttons for an adjustable sunshade with a shelly 2PM?

Depends on your router configuration. Its better to leave the device on DHCP and set the reserved ip in the router so it can manage everything.

Is the buttons connected to the Shelly device or is it a button device that is connected to Hubitat in some other way?

the buttons are on connected to Hubitat

I would use the built in "Button Controller" app. It lets you easily make rules based around different button presses. Under the hood it uses the Rule Machine engine. Button Controller 5.1 | Hubitat Documentation

If you want something more basic there is also a "Basic" button controller which is more in line with the style of the basic rules app.

So using that you can set up button presses to do different actions on the shelly device, depending on what commands are available.

Yes, I already used "Button Controller" app to make them moving.

I’m looking for something more. like :

  • opening at predefine value,
  • held button to move down, same held to move up, pushed to stop

Button held is an option in Button Controller to setup, assuming your device sends those events. The shelly driver would need to implement Start and Stop PositionChange (or LevelChange) commands. You would set th "Held" to start start then "Release" to the Stop command. This would make it move when held. If you want it to cycle between going up and down with the same button you would need to add some logic in there to track which it did last and then have it switch back and forth each button hold.

Opening to a predefined value should be possible as well, but what would be triggering it? If it is a button then instead of using th "open" command, use the Set Position (or setLevel) instead, and set a value to open to.

The mapping of shelly device input events to hubitat input events (button attributes) can be found here

Single, double, triple and long press are supported. So there is an option to map double and triple push to some predefined positions.

More sophisticated behavior can also be achieved with custom shelly scripts. The driver supports interaction with shelly scripts and getting some feedback from them.

Example of "run once" shelly script to set specific position (can be run each time 'child_script->on' button is pressed)

Shelly.call("Cover.GoToPosition", { id: 0, pos: 50 }, function (result, error_code, error_message) { die(); } );

For plus devices up to 10 scripts are available. So up to 10 presets can be used this way.

Hello Dimitry.
I use this driver
https://bitbucket.org/ge4d/hubitat-code/src/main/Bundles/Bundle1.zip

Is yours it different ?

It's mine)))