Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Add UPB binding to OH2 #4811

Closed
watou opened this issue Nov 23, 2016 · 12 comments
Closed

Add UPB binding to OH2 #4811

watou opened this issue Nov 23, 2016 · 12 comments
Labels
Milestone

Comments

@watou
Copy link
Contributor

watou commented Nov 23, 2016

The UPB binding has been shown to work properly under openHAB 2 (by @DaAwesomeP). So it should be added.

See https://github.com/openhab/openhab2-addons/issues/1461

It can be configured with refresh (optional), port and network.

@cvanorman May I use your real name on the UPB binding in openHAB 2 (if so, what is it?), or would you prefer to have no author credit at all (the only two options)?

@watou watou added the openHAB2 label Nov 23, 2016
@watou watou added this to the 1.9.0 milestone Nov 23, 2016
@cvanorman
Copy link
Contributor

My full name is Chris Van Orman and, yes, you may use it.

@DaAwesomeP
Copy link

DaAwesomeP commented Nov 23, 2016

@cvanorman just want to thank you again for the binding. Today I successfully set up dummy links to control OH switch states that aren't actually devices.

@watou
Copy link
Contributor Author

watou commented Nov 23, 2016

I have a branch ready to add the binding to OH2. Only thing left afaik is @cvanorman's preference on author attribution.

@DaAwesomeP
Copy link

DaAwesomeP commented Nov 23, 2016

@watou if the binding will be mapped to any "things," remeber that there are two types: devices and links.

Switch Link20 "Link 20" {upb="id=20 link=true"}
Dimmer Link17 "Link 17" {upb="id=17 link=true"}
Switch Device2 "Device 2" {upb="id=2"}
Dimmer Device12 "Device 12" {upb="id=12"}

@watou
Copy link
Contributor Author

watou commented Nov 23, 2016

OK! Thanks Chris!

@watou
Copy link
Contributor Author

watou commented Nov 23, 2016

No Things in OH1 bindings!

watou added a commit to watou/openhab that referenced this issue Nov 23, 2016
Signed-off-by: John Cocula <john@cocula.com>
@watou watou closed this as completed in ba60275 Nov 24, 2016
@DaAwesomeP
Copy link

Thank you!

@gmoneyman
Copy link

I am stuck. I decided to upgrade to OpenHab 2.0 because of the myopenhab change and the future with direct communication with Amazon Alexa.

I used the Openhabian image so I headless using Karaf which I am not that familiar. The problem is with the UPB binding or the new image communication with the USB port or the binding. The owfs.config is using /dev/ttyUSB0 and so is the upb.cfg file.
This is what the lsusb looks like:

[08:19:51] pi@openHABianPi:~$ sudo lsusb
[sudo] password for pi:
Bus 001 Device 004: ID 17dd:5500
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I can get figure out where the logs are stored but I took a screen shot of the log.

Someone help……

screenshot-1
screenshot-2

@watou
Copy link
Contributor Author

watou commented Dec 20, 2016

@gmoneyman: Do you see your device /dev/ttyUSB0 in a directory listing?

ls -l /dev

What are its ownership and permissions? Could you paste your upb.cfg file here exactly as it is on disk?

@gmoneyman
Copy link

gmoneyman commented Dec 20, 2016 via email

@DaAwesomeP
Copy link

This sounds related to my issue in #4814. I could not get the OH2 binding to see any configuration or connect to the right serial port, resulting in an error.

@watou
Copy link
Contributor Author

watou commented Dec 20, 2016

Do you see your device /dev/ttyUSB0 in a directory listing? / No, it is not.

You must first make sure you have the device name for a working serial port on your machine that is connected to your hardware before the binding will be able to work with it. There might be other forums or maybe https://community.openhab.org that can help with that part.

mvolaart pushed a commit to mvolaart/openhab that referenced this issue Dec 23, 2016
Signed-off-by: John Cocula <john@cocula.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants