ImperiHome binding 2.0

Hi @greg, my latest changes have been merged April 20, so they should definitely be part of the snapshot builds. I think the stable 2.0 build is older, so if you’re using that you still need to manually update the JAR.

Hi @pdegeus - yep - so they are.
I just did an update to the latest snapshot and have now removed the manual jar…

Excellent work as always :wink:

@pdegeus Hi again, any chance you have the time to add the option for a stoppable shutter, I guess it would be a “link type”, went you set it, there will be a button for stop in the interface. Thanks

@pdegeus Hi again, any chance you have the time to add the option for a stoppable shutter, I guess it would be a “link type”, went you set it, there will be a button for stop in the interface. Thanks

1 Like

@andredts Sorry, haven’t had the time lately to work on this. We’re getting married in 10 days so it’s been a busy time :slight_smile: I’ll put a reminder for myself afterwards, I won’t forget you :wink:

1 Like

Thanks! No problem at all. Congratulations on your marriage.

Hi,

Can someone please explain how to use DevScene. I have tried several configuration and search on the internet without any results.

Thanks in advance.

I’m using it like this.

Item

Switch  LVR_Scene_Relax           "Relax"      ["iss:room:Living room", "iss:type:DevScene"]

Rule

rule "Living room standalone scene switch: relax"
when
    Item LVR_Scene_Relax received command ON
then
    sendCommand(MyLamp, ON)
    ...
end

Hi Pepijn,

I tried that but I get the following message:

[WARN ] [rihome.internal.ImperiHomeApiServlet] - Unrecognized request: /imperihome/iss/devices/656972c72c5b2e09f591a94e45aea8900afa8979/action/launchScene

Strange, it works for me on iOS. Are you using Android? Either way, I’ve updated the code to accept the URL your client is using. There’s a new build on my server, check out the link in the first post. Uninstall the current version and drop the JAR file in the ‘addons’ dir of openHAB.

@andredts The new build also contains support for the shutter stopper you’ve been waiting for. I haven’t tested it, could you try it out and report back?

1 Like

I’m using Android. I will test it tomorrow and will let you know the results. Thanks!

I have uninstalled the old version and put the new .jar file in the addon folder. Now I get the following error if I try to launch a scene in Imperihome:

[WARN ] [eclipse.jetty.servlet.ServletHandler] - /imperihome/iss/devices/656972c72c5b2e09f591a94e45aea8900afa8979/action/launchScene
java.lang.NullPointerException

I may have found it, there’s a new build on my server.

If the error persists, can you set the loglevel for org.openhab.io.imperihome to DEBUG and post all logging related to the request?

Thanks Pepijn for your quick responses and the solution. It’s working now!

Hi, thanks, Hope everything is great. Will test it asap, quick question, how I set it up? “iss:link:Stopper”?

Everything is great, thanks :slight_smile: Just getting used to the married life :wink:

You guessed right about the link. Check out the readme at https://github.com/pdegeus/openhab2-addons/tree/master/addons/io/org.openhab.io.imperihome.

Everything works great, but maybe it would be good to make things simpler, we could use just one item, as the Shutter in OH already has the STOP function, so we could just send STOP to the same item. Here are my items:

Rollershutter cortina “Cortina” (Suite) [“iss:type:DevShutter”, “iss:room:Suite” , “iss:link:stopper:Shutterstop”] {http=">[UP:GET:http://192.168.1.64:7474/code/up] >[DOWN:GET:http://192.168.1.64:7474/code/down] >[STOP:GET:http://192.168.1.64:7474/code/stop]"}

Switch Shutterstop [“iss:type:DevSwitch”, “iss:room:Suite”] {http=">[ON:GET:http://192.168.1.64:7474/code/stop]"}

I just created the new switch with the same http GET I used for STOP on previews versions, no need for rules, but even if I need the rules we could just listen to the STOP on same item.

Any way, I very pleased with work, thanks a lot.

I didn’t know the syntax using the http commands you’re using, handy! I don’t think that’s very common, especially with OH2 addons using channels.
I think using a separate switch makes it much more flexible, so if that works for you I’d rather leave it like this :slight_smile:

Just thought id share the new tablet ive upgraded to ( running Imperihome of course! )
It’s a 10inch Teclast P10. It was easy to open and because it has a DC jack for charging really easy to solder some wires to so i can power it ( powersupply in roof and cable hidden in the wall )

1 Like

Hello,

I have openhab 2.2 running on a raspberry pi. I upgraded to version 2.2 since everytime I tried to install a binding I would see the spinning circle. Everything seems to work except for imperihome. I install the binding and setup up the app on my android phone but the error I get is, Multiple local errors, falling back to remote mode.

Any ideas? Imperihome app does recognize my server since the id shpws up.