HASS ORVIBO Plugs - cannot make it work!

Hey guys,

I have 4 Orvibo Plugs. Since I’m moving to HASS (which will eventually be integrated with Homebridge) I wanted to try the Orvibo integration but I cannot seem to make the plugs to be recognised in any way. It’s like the Orvibo service doesn’t even start.

I just started my Hass journey, my server is a MacMini, I’m also struggling with Plex integration :frowning:
any help would be appreciated!

thanks,

Dario

The format for orvibo configuration has recently changed. You can use the following (assuming you know the IPs of your orvibo’s and they are statically addressed)

In switches.yaml:

- platform: orvibo
  discovery: false
  switches:
  -  host: 10.0.1.11
     name: living_room_lamp
  -  host: 10.0.1.21
     name: sound_machine

Hey, thanks for that. I assume you mean the switches part in configuration.yaml? I didn’t see any switches.yaml. If I’m mistaken please correct me.

I changed configuration.yaml as per your suggestion with no luck:

Orvibo

switch:

  • platform: orvibo
    discovery: false
    switches:
    • host: 192.168.1.74
      name: Lighthouse1
    • host: 192.168.1.75
      name: Lighthouse2

The yaml parser doesn’t return any error. Still, no Orvibo plugs are discovered/recognised.
Also, My Plex media server is not recognised (It was and now it stopped) but the only thing the Hass sees is my Panasonic Tv.

This is the only error I get when launching Hass:

Exception in thread Thread-2:
Traceback (most recent call last):
File “/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/threading.py”, line 914, in _bootstrap_inner
self.run()
File “/Users/dario/.homeassistant/deps/netdisco/service.py”, line 59, in run
self._scan()
File “/Users/dario/.homeassistant/deps/netdisco/service.py”, line 76, in _scan
for service in self.discovery.get_info(disc):
File “/Users/dario/.homeassistant/deps/netdisco/discovery.py”, line 76, in get_info
return self.discoverables[dis].get_info()
File “/Users/dario/.homeassistant/deps/netdisco/discoverables/homekit.py”, line 21, in get_info
return [self.info_from_entry(entry) for entry in self.get_entries()]
File “/Users/dario/.homeassistant/deps/netdisco/discoverables/homekit.py”, line 21, in
return [self.info_from_entry(entry) for entry in self.get_entries()]
File “/Users/dario/.homeassistant/deps/netdisco/discoverables/homekit.py”, line 16, in info_from_entry
info[‘host’] = ‘http://{}’.format(self.ip_from_host(entry.server))
File “/Users/dario/.homeassistant/deps/netdisco/discoverables/init.py”, line 108, in ip_from_host
return repr(ips[0]) if ips else host
TypeError: repr returned non-string (type bytes)

Any error when you run:
hass --script check_config

Script check ok, turns out the configuration.yaml was duplicated and would not receive the config. Now I managed to make it work with the suggested syntax.

Thanks!

D

If you don’t have a switches.yaml you will need to do:

switch:
  - platform: orvibo
    discovery: false
    switches:
    -  host: 10.0.1.11
       name: living_room_lamp
    -  host: 10.0.1.21
       name: sound_machine

Edit: just saw that you already included this. Does you log show anything about orvibo? Do they show up as unname switches?

If I follow your suggestion, only the last switch shows up. For example, sound_machine.

I also have two MQTT switches, so I tried switch 1: for the Orvibo’s and switch 2: and switch 3: for the other switches. No matter what I tried, I can’t get it to work like it did prior to verison 0.28

That’s the config that is currently working:

switch:

  • platform: orvibo
    discovery: false
    switches:
    • host: 192.168.1.74
      name: “Lighthouse 1”
    • host: 192.168.1.75
      name: “Lighthouse 2”

I found the problem was one of my Orvibo’s was offline (had to be reconfigured). Apparently it could not reconnect after I rebooted my router a few days ago. This has happened before, but I always forget to check, because the timer function was still working, so I assumed it was OK.

Thanks for your help.

1 Like

hey, been battling to get the newer Orvibo smart switches set up on homebridge but can’t fond a decent config.json file to help me on this! woudl the code youbhave added above work??

I am having problems here too. I added code as above with the IP address and tried the older form with the MAC address as well. I put this in the configuration.yaml. I also tried creating a switches.yaml, but an attempt to include it from the configuration.yaml gave an error. I am just not sure where to put the code. I am also confused that downloading an integration does not seem to be needed. The questions are: Do I need to download an integration, and where do I put the code? configuration.yaml?

No need to download the integration since it’s a part of the core set. It will activate itself when config tells it to.

Here’s a sample of my configuration.yaml:

switch: !include switches.yaml

Here’s my switches.yaml:

- platform: orvibo
  switches:
     - host: 10.0.0.21
       name: "Andrew Monitor"
     - host: 10.0.0.14
       name: "Garage Fan"
       #name: "Dining Room Christmas Tree"

Make sure configuration.yaml and switches.yaml are in the same folder.

I am still getting the error, “Invalid config for [switch]: required key not provided @ data[‘platform’]. Got None. (See /config/configuration.yaml, line 13).”

Line 13 is “switch: !include switches.yaml”

Can you send a screenshot?

I played with the indentation and spacing and the error went away, I am not sure I can make it re-appear. I do think I am on the right track though. Thank you for your help (and it was very helpful). I am going to play with the indentation and spacing. Now that I know I do not need the integration downloaded and that there needs to be a switches.yaml in the same folder as the configuration.yaml, I can stop going down those 2 dead ends.

1 Like

Last question, for now. Will the Orvibo integration show up on the integrations page?