Orvibo B25

YEAAAHH! Great step forward! CLI Output and logfile.json. Its on and off state is logged in terminal.

The switch appears in Home Assistant. But it don’t work with state and function, but thats maybe some of my other config problems? I activated mqtt in HA with “mqtt: discovery: true”. The homemate-bridge argument is “–mqtt-host localhost”. In HA is an entity called “switch.homemate_switch_19216818849”. Did I miss something in the MQTT-Protocol?

If you see the homemate_switch_ entity in HomeAssistant then your MQTT config is probably correct. I don’t see a 'cmd': 15 entry (state change) in the log.

Does toggling the switch from the HomeAssistant interface work? If you manually toggle the switch with the physical button does the HomeAssistant interface update?

I can confirm that this code is working with an Orvibo B25 AUS. I have not tested it with Home Assistant but I can toggle the switch state by sending commands via MQTT using mosquitto_pub.

Thanks so much for all the work you’ve put into this @insertjokehere . It makes my B25 switches much more useful.

Toggling in HA doesn’t work. If I hit the button in HA, it toggles in HA interface but skips to its default after a few seconds (HA-Log: WARNING (MainThread) [hbmqtt.broker] 2 messages not broadcasted). No reaction in the homemate-bridge log and no reaction on B25.

If I hit the physical button, no reaction in HA (except in DEBUG Logs), but reaction in homemate-bridge.

Thanks for your feedfback jimb0. I will try it maybe later with mosquitto. And special thanks to insertjokehere for this awesome work and your help.

//Edit: Here a debug logs of HA: B25 Registering, Turn Device off with HW Button, Turn device on

@hijinx: You don’t need an android device to extract PK. Just feed the Kepler.apk into the python script. The Kepler.apk is available for download with any device.

Hi guys. Is there any known way to get the device PK from iOS app? Or a non-android alternative?
I guess android simulatior may also be an option but no idea where to start…
Tx!

Right got you. It’s not a device specific key. Your script extracts it from the android app. Thanks got it

I just tested my B25 with the latest master version of homemate-bridge and Home Assistant, results as follows:

Works perfectly when using an external mqtt broker (mosquitto in this case). I am able to control the switch via HA without any issues.

Completely fails to work when using Home Assistant’s built-in hbmqtt.broker. Seems to be a mqtt protocol issue. None of my other mqtt devices (all using v3.1 protocol) could talk to HA’s built-in broker either.

Got it working with mosquitto. Just installed the package from the debian repos without further config.

I had to put in the configuration.yaml a mqtt-broker IP and a switch:

switch:

  • platform: mqtt
    command_topic: “homeassistant/switch/192_168_188_49/command”
    state_topic: “homeassistant/switch/192_168_188_49/state”
1 Like

Hey Snikch,

I have a pair of Orvibo S20’s (early version configured using the WiWo iOS App) but I’m completely new to Home Assistant and looking at my options for my existing smart devices.

You say that they work fine with Home Assistant but could you explain for a newbie how you got them to show up and be detected on the system please?

Much appreciated

Steve

I just followed the instructions here with discovery enabled and it worked for me. I locked in the IP once it had been discovered.

Nice one. Thanks for such an amazingly quick response :+1:

Thanks for your efforts ! How did you run using mosquitto_pub ? What command did you use ?

I have mosquitto Installed as a broker. I am unable to understand on how to divert traffic for homemate.orvibo.com to my IP. I have tried changing my hosts file to 192.168.1.2 homemate.orvibo.com:10001but haven’t got any success. On running homemate-bridge bys using the command : homemate-bridge --keys-file “C:\Users\Abdullah Shafiq\Desktop\Reverse\keys.json” --mqtt-host “192.168.1.2” but all I get is that it keeps listening on 0.0.0.0 port 10001 but even after waiting for more than a minute, I dont get anything

Should Orvibo be connected to my Wifi while performing these steps or should it be in configuration mode( red light blinking) ? @Philipp1001 @insertjokehere

Redirecting the traffic is something you will need to do on your router, the idea is that you want to make the socket connect to your server instead of the server Orvibo runs - editing your hosts file only redirect the traffic on the local machine

When I set this up I connected the sockets to my WiFi first, then put the redirect in place. I would be interested to know if you can connect the sockets while traffic is redirected

Thank you for your reply !! This has cleared my confusion. I will now try to redirect through my router

Hi guys,

I’m a newbie in python and I’m struggling to run the script to get the PK.
I put kepler.apk in /home directory.
How should I run it?like this:
pi@hassbian: homemate-bridge-seed-keyfile –keys-file keys.json /home/kepler
?
thank you in advance

Hi, may I ask do you have any updates? I still can’t get my S25(B25) Orvibo swither work. Thanks!

Eager to get this running but have no idea how to implement this in the docker version. Also homemate now works with GoogleAssistant and Echo, is this functionality broken using this approach?