Hello,
I am running openhab2.3 on a raspberry pi3 B+. I have got a fibaro HC2. Both work fine separetly.
Now I connected them using the ha-bridge for raspberry which emulates a hue bridge. Even this works fine.
The only thing missing is the device state update in openhab if I use a wall switch or fibaro itself.
The reason is, that the ha-bridge does not support this response automatically.
In my opinion there are 3 opportunities which I would like to discuss with you or where I need some help:
1) Direct communication between fibaro and openhab
2) Communication between fibaro and ha-bridge
3) Buying a z-wave stick
1.a) Is there a possibility to connect Fibaro and openhab without using z-wave? Maybe with HTTP oder REST API. Fibaro supports both, but I guess, there will be no device update as well, right?
1.b) When somebody uses a wall switch I could start a scene on fibaro to change the state on openhab automatically. The openhab REST API says that the code looks like this:
curl -X PUT --header “Content-Type: text/plain” --header “Accept: application/json” -d “on” “http://myIP:8080/rest/items/myName/state”
But I don´t know how to send a curl-command on fibaro (which uses LUA coding). Maybe you can help here or know how to change the curl in a HTTP PUT which I can use in Fibaro as well.
2) Same as 1b but sending a command to the hA-bridge. The command is:
GET http://host:port/api//lights//bridgeupdatestate
However I didnt get it running yet. If you think, this is a good solution I would spend more time on it trying.
Here is the documentation: https://github.com/bwssytems/ha-bridge#hue-rest-api-usage
3) Yes. I guess this would be the easy way:-) But without using a z-wave stick I can still use my unsoldered raspberry. (USB and GPIO are missing; USB is broken as well). Thats why I would prefer the workaround from 1) or 2).
Even if I would by a z-wave stick, I would keep my fibaro HC2 because I have already got to many scenes running in LUA.
Any hint or help would be great.
Thank you.
Mr.Coffee