-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Conversation
Signed-off-by: John Cocula <john@cocula.com>
If further changes are needed, a new PR can be opened. |
Thank you! |
@watou this doesn't seem to work. I configured it properly in
Config: # The refresh frequency, in milliseconds (optional, defaults to 3600000)
#refresh=
# The UPB modem port. Valid values are e.g. COM1 for Windows and /dev/ttyS0 or
# /dev/ttyUSB0 for Linux (required)
port=/dev/ttyS0
# UPB Netword ID (required, must be a value between 0 and 255, inclusive)
network=135 An example item:
Do I need to reconfigure all of my items to some new syntax? |
Can you configure the binding from the Paper UI? |
Where can I configure it in Paper UI? It's not in the Bindings config tab. |
So I switched to |
@watou is there anything I can do? I've been using the old binding. The
|
Can you adapt the instructions here: https://github.com/openhab/openhab/wiki/symlinks To open the port? Or is the config not being read properly by the binding code? |
This is a hardware serial port on the back of the computer. Its assignment never changes, so a udev rule is unnecessary. Adding the old binding into # The refresh frequency, in milliseconds (optional, defaults to 3600000)
refresh=3600000
# The UPB modem port. Valid values are e.g. COM1 for Windows and /dev/ttyS0 or
# /dev/ttyUSB0 for Linux (required)
port=/dev/ttyS0
# UPB Netword ID (required, must be a value between 0 and 255, inclusive)
network=135 It's very possible that the config is not being read properly by the binding since that's definitely something that changed from the older working version of the addon to the PaperUI-installed version. |
Sorry, I wasn't clear. I was referring to this part:
I've made a small change so that the
|
I added I enabled the DEBUG logging and used the JAR you gave me and put it into
There are no errors, but it doesn't work. There are also no debug messages logged about the command sent as there usually are when it sends a command. I don't know what magic sauce is in the bundle I've been using. It's from here. |
Sorry for my slow and infrequent responses, my time is not usually my own. I tried downloading a clean openhab2-online distribution and had no issues with getting the serial connection to work. It is receiving messages when I press a physical switch, but it does not seem to be receiving the list of supported items. When I activate an item in OpenHAB, the binding doesn't respond. Regardless, I will have some time over the Christmas break here and will investigate converting it to the OpenHAB2 way of "things". Hopefully, that will address these issues. |
@cvanorman there's one slight annoyance in the binding that would be awesome if it could be improved. I'm currently using some empty links to trigger rules in OH. The slight problem is that in each one, I have to check for a double command, as all of my switches broadcast twice for reliability. This can definitely be patched, as each command contains a byte for "command 1 of 2" and "command 2 of 2." It should be as simple as storing the last received command and seeing if it's the same command other than the broadcast count. It should still work if it misses the first broadcast but only receives the second. Sadly, the PIM automatically sends the multi-broadcast commands, but it doesn't filter them out for the received commands. |
Signed-off-by: John Cocula <john@cocula.com>
I have done an update to this binding (see openhab/openhab2-addons#1620). |
@cvanorman This look OK to you?
Signed-off-by: John Cocula john@cocula.com