Hi, everyone.
I have received second question about openhab2 binding, so made very basic implementation.
Since I am not Java programmer, it may be not good as work as any of my JS scripts.
For oh2 support I implemented requests over pub/sub channel, so at least version `bobaos.pub@2.0.8` is required.
Source code is located at: https://github.com/shabunin/org.openhab.binding.bobaos
Compiled jar file: https://drive.google.com/file/d/13T7...ew?usp=sharing
Put this file at /usr/share/openhab2/addons/, change owhership:
Restart openhab2 if needed:
`sudo systemctl restart openhab2.service`
https://youtu.be/f3S6JqlxPRQ
At the moment, only Switch channels are supported.
If you want to implement other types, like dimmer, etc, you should look at oh2 manuals at first.
In sources, channel description should be added at https://github.com/shabunin/org.open...hing-types.xml
GUI command handling(line 58) and feedback callback(line 108) can be found at
https://github.com/shabunin/org.open...osHandler.java
Help required.
As I said before, I'm not a Java developer and don't use openhab2 myself. So, I committed basic implementation of binding and hope somebody can find it useful, take a look and accomplish binding with other supported channels: dimmers, sensors, etc. Feel free to fork and do the job.
Thanks for the attention.
I have received second question about openhab2 binding, so made very basic implementation.
Since I am not Java programmer, it may be not good as work as any of my JS scripts.
For oh2 support I implemented requests over pub/sub channel, so at least version `bobaos.pub@2.0.8` is required.
Source code is located at: https://github.com/shabunin/org.openhab.binding.bobaos
Compiled jar file: https://drive.google.com/file/d/13T7...ew?usp=sharing
Put this file at /usr/share/openhab2/addons/, change owhership:
Code:
sudo chown openhab:openhab /usr/share/openhab2/addons/org.openhab.binding.bobaos.jar
`sudo systemctl restart openhab2.service`
https://youtu.be/f3S6JqlxPRQ
At the moment, only Switch channels are supported.
If you want to implement other types, like dimmer, etc, you should look at oh2 manuals at first.
In sources, channel description should be added at https://github.com/shabunin/org.open...hing-types.xml
GUI command handling(line 58) and feedback callback(line 108) can be found at
https://github.com/shabunin/org.open...osHandler.java
Help required.
As I said before, I'm not a Java developer and don't use openhab2 myself. So, I committed basic implementation of binding and hope somebody can find it useful, take a look and accomplish binding with other supported channels: dimmers, sensors, etc. Feel free to fork and do the job.
Thanks for the attention.
Kommentar