Binding for Orvibo S20?

This is great news, I currently have a PHP version but wanted to fully incorporate into openHAB. I got the dev environment up and running this weekend but ran out of time to actually do any binding creation. I may hold off on creating something from scratch myself if your work is near release, Java is by far my worst dev language.

I have 7 more of these on the way and not having to use the crappy Wiwo app at all would be amazing, currently I do use the timer functionality but usually I set once and forget.

I’ve created a PR here https://github.com/openhab/openhab2/pull/570 if you want to test however it is still an early piece of work.

Thanks for the speedy update, I will check this out tonight.

I had to setup an openHAB2 instance since I have not taken the plunge yet and it did detect all the switches and I was able to switch them on/off.

Since the nest and harmony bindings are not ready for v2 I will not be able to use this yet unfortunately.

Are you sure the Nest binding does not work on openHAB 2? I thought compat-layer issues had been resolved?

There’s a difference between works with and written for OH2. I can definitely confirm the Harmony binding works with OH2.

1 Like

I’ve like to test this out, I have a number of these sockets and have started getting into OH2 with all my other devices.

How do I download the .jar file through the github link?

Cheers!

It seems the PR got nuked when I had to refactor my github repo due to the karaf repo split. I’ll create a new PR once I’ve made sure the code works with the recent ESH changes.

I don’t know if I’ll provide a jar yet though (some issues I’d like to resolve first) so you may have to build it yourself if you want to test it.

I created an Orvibo S20 binding for OpenHAB2 for my personal use.

Unfortunately, I didn’t see Daniel’s code before doing a binding of my own, otherwise I could have save my time!

2 Likes

The S20 binding for OH2 has been merged.

You can find details here

1 Like

I have tried orvibo binding which is within in openhab2-addons project. It works via some Habmin configuration.

I also go to erangaj’s github to have a look. Actually by my best understanding of the README there, the add S20 into wifi network function I mention below is also NOT in his orvibo bindings.

I notice by the REAME, it is mentioned that the S20 is supposed to be within the wifi network already while using the openhab2 orvibo binding to discover it.
So that means, I have to use wiwo app(from orvibo) to add S20 to wifi network first.
Is it possible or do somebody have any plan to add this function of add S20 to wifi network only be done by wiwo app to openhab orvibo binding?
If so, we may somehow not need the app.

Thank you very much.

Are you using the official binding or erangaj’s?

It might be possible to do it within the binding but I have not looked much into this. From what I’ve read the way the device is added to your network using the app is that your phone sends out packets over wifi containing your network ssid and password which I’m not particularly keen on.

1 Like

Thank you for your response.

I use your binding within official openhab. But by checking erangaj’s github page, his version also need the S20 be included wifi network previously.

Yes. I believe so. But vendor may have specific data format definition for communication between app and S20. I have no idea how hard to get that data format definition used by the app.

Thank you.

Controlling the Orvibo S20 is working fine for me, but what about password protection?
The “Remote Password” that you can modify via the WiWo App prevents other users from controlling the switch.
I saw some UDP packet definition for the S20 somewhere that also mentioned a field for “password” to be send with the command, so having a little bit more protection of for the switch from being “hacked”. (Maybe password is clear text, but at least a password is required…)
Would that be something that could be implemented?

Could you raise an issue here to add that functionality to the core library?

My OpenHAB.org account is not valid for Github and I would rather avoid creating just another account for a service I am not really interested in. Hope this is understandable :slight_smile:
Can’t you log this issue or maybe anyone else with a Github account and interested in that feature?

Fair enough. Issue raised and you can track progress here.

:+1: Thanks!
If I can find the mentioned details regarding password field in the UDP communication I will post it here…

@Robin_Emde I had a look briefly last night. The password doesn’t seem to work how you think it does. The password doesn’t stop someone from turning your socket on or off. Mostly it stops people changing the device name or the inbuilt scheduling function if you use that.

Oh! :worried: I’m sorry for having caused unnecessary efforts for you. But good to know what it really does, seems I have missed some details about that. Thanks anyway!