Openhab component

I’m migrating from openhab to homeassistant. I wrote a component that brings all openhab items into homeassistant. This lets me get everyone in the household using homeassistant, and I’ll comment each item out of openhab as I reconfigure it into homeassistant (or hide it if I still need it in openhab for an automation rule)

The component is at https://github.com/Br3nda/homeassistant-openhab-component

4 Likes

wow thank man… ur the best. I will be ur first QA
But I am getting this error
No server is currently available to service your request

Where do you see that error?

No luck here :slight_smile:

Error:
File “/home/homeassistant/.homeassistant/custom_components/switch/openhab.py”, line 16, in setup_platform
_ for item in response.json()[‘item’]:_
TypeError: list indices must be integers, not str

Same for “sensor”:
File “/home/homeassistant/.homeassistant/custom_components/sensor/openhab.py”, line 13, in setup_platform
_ for item in response.json()[‘item’]:_
TypeError: list indices must be integers, not str

Any ide?

/J

Are you using Openhab 1?

(or 2 …)

I’m using OH2

yeah, i was migrating from OH1 to Home assistant. this component on github only ever tested on OH1,