rossdargan
(Ross Dargan)
January 13, 2016, 9:05pm
1
I upgraded my openhab install to 1.8 but now some of my transforms are not working.
I’m guessing this is a permission issue but I’m a bit of a noob on linux so not really sure what I should do about it.
I did chown some of the files to get the configuration files shared via samba - so it could be that after upgrading this has caused issues?
rossdargan
(Ross Dargan)
January 13, 2016, 9:24pm
2
These are the permissions if that helps!
watou
(John Cocula)
January 13, 2016, 9:30pm
3
Is the openHAB server not running under the openhab user account?
rossdargan
(Ross Dargan)
January 13, 2016, 9:31pm
4
No, I believe it’s running as my user… but I honestly don’t know how to tell!
rossdargan
(Ross Dargan)
January 13, 2016, 9:36pm
5
Ok, looks like it is running as openhab!
rlkoshak
(Rich Koshak)
January 13, 2016, 10:01pm
6
I’m willing to bet money that you are missing a closing something (quote, paren, etc). It is looking for a file named
/etc/openhab/configurations/transform/bbsb_a2.map)], >[OFF:192.168.1.15:53008:MAP(bbsb_a2.map
which obviously doesn’t exist as a file. Check your binding again and make sure it is in the right format and all opening things have closing things.
rossdargan
(Ross Dargan)
January 13, 2016, 10:05pm
7
Here is the item, I don’t think there is anything in there wrong :-s
Switch Switch_LoungeLight “Lounge Light” (Lounge,Lights,bbsb) { udp=">[ON:192.168.1.15:53008:MAP(bbsb_a2.map)], >[OFF:192.168.1.15:53008:MAP(bbsb_a2.map)]" }
No errors in the designer either
I swear this was all working before upgrading. I took an image of the vm this is running on so I could roll back if it would help (it would be a pita, but could be done!)
rlkoshak
(Rich Koshak)
January 13, 2016, 10:14pm
8
In the examples on the wiki it has the transform part in single quotes. From the wiki page :
tcp=">[ON:192.168.0.1:3000:'MAP(my.device.map)')], >[OFF:192.168.0.1:3000:'MAP(my.device.map)']"
tcp="<[192.168.0.2:3000:'REGEX((.*))']"
NOTE: It looks like there is an errant closing paren in that first example for the ON clause.
rossdargan
(Ross Dargan)
January 13, 2016, 10:19pm
9
It’s still not working - I’m getting this error now.
Caused by: java.io.FileNotFoundException: /etc/openhab/configurations/transform/bbsb_a2.map)’], >[OFF:192.168.1.15:53008:'MAP(bbsb_a2.map (No such file or directory)
Do you think it’s actually looking for a file called ‘/etc/openhab/configurations/transform/bbsb_a2.map)’], >[OFF:192.168.1.15:53008:‘MAP(bbsb_a2.map’?!
rlkoshak
(Rich Koshak)
January 13, 2016, 10:55pm
10
Yes. That is why I think something is wrong with your binding def. I don’t use this binding so all I have to go on is the wiki and the error though.
watou
(John Cocula)
January 13, 2016, 10:56pm
11
Yes, that’s what it’s trying to do. There has to be some error in your .items file.
rossdargan
(Ross Dargan)
January 13, 2016, 11:12pm
12
my binding changed from 1.7 to 1.8, my items haven’t changed. I’m convinced it’s an issue with the binding.
I have noticed the regex to pattern match the mappings got updated in November with this: https://github.com/openhab/openhab/commit/0c2a234a161b64a75b0c012bdc90750b316949f0#diff-7a36b1ec45b626f7e08698a655a97547
I don’t really understand how thats used so I can’t be 100%, buy my spidey sense is going off!
I’m going to try and roll back that addon to the 1.7 version.
watou
(John Cocula)
January 13, 2016, 11:15pm
13
@steve1 , could you have a look at this?
rossdargan
(Ross Dargan)
January 13, 2016, 11:16pm
14
Switching back to 1.7 binding fixes it.
So it’s possible my items config is wrong, and needs changing to a different format, but it did used to work!
watou
(John Cocula)
January 13, 2016, 11:18pm
15
It would be a regression in the binding to break existing binding strings in 1.8 from how they worked previously.
steve1
(steve1)
January 14, 2016, 1:10am
16
Yes, this is a regression. The modified regex matches space-separated binding config elements and it should match comma-separated elements. I’ve submitted a bug fix (PR #3792 ).
1 Like
rossdargan
(Ross Dargan)
January 14, 2016, 12:26pm
17
I take it there is no harm with me just sticking with the 1.7 version of the binding for now then?