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

Basic UI no longer updates icons #2322

Closed
xsnrg opened this issue Oct 14, 2016 · 55 comments
Closed

Basic UI no longer updates icons #2322

xsnrg opened this issue Oct 14, 2016 · 55 comments

Comments

@xsnrg
Copy link

xsnrg commented Oct 14, 2016

from: https://community.openhab.org/t/icons-no-longer-updating-in-basicui/15199/7

Using Chrome or Firefox, icons no longer update in BasicUI.

I am using Linux as the client, and either Firefox or Chrome as the browser on the client, I have tried build 531, 536, and 537. I have used a NUC running LInux and a Pi2 as the servers. I have tried various devices, though lights are easiest to test, and have tried z-wave switches as well as insteon switches, trying to eliminate variables.

The icons did update nearly instantly prior to about Oct 8-9. I have been trying nearly every OH2 build for the last couple weeks.

Sitemap examples were asked for, most all of my sitemaps, including these devices, use groups, so the entries are simply of the form:

            Group label="First Floor Devices"       item=ff
            Group label="Second Floor Devices"      item=sf
            Group label="Basement Devices"          item=bs          
            Group label="Outside Lights"            item=outLights

the insteon items look as such:

Switch OfficeLight "office light" (ALL,lights,ff,ffA) [ "Lighting" ] {insteonplm="1F.4C.F9:F00.00.12#switch"}
Switch KitchenSinkLight "kitchen sink" (ALL,lights,ff,ffA) [ "Lighting" ] {insteonplm="33.1C.BA:F00.00.12#switch"}

MapDB is used for the z-wave items and all 2.x bindings.

Other information:

This appears to be a UI/visual thing. All devices still work normally, all rules for the devices still fire, and all output from device activity appears in the log.
Habdroid still works normally.
Refreshing the BasicUI page shows the proper icon states to match the switch items.

@wborn
Copy link
Contributor

wborn commented Oct 14, 2016

Yes I've also seen this issue after more testing. It looks a lot like the issue I reported in #2030. But this time around it is harder to reproduce. Some pages still have a proper eventsstream, but others don't. I've also seen the eventsstream stop like this on the demo.

When I enabled logging on the org.eclipse.smarthome.io.rest.sitemap package, I saw the frontend subscribing itself to events. But when events are generated (on such pages), there is never any logging of the events being sent the frontend.

@wborn
Copy link
Contributor

wborn commented Oct 14, 2016

I don't know if it is the same issue. But when I open 6 tabs to the same Basic UI in Chrome, it totally stops working. As soon as I go back from 6 to 5 it works again.

@smar000
Copy link

smar000 commented Oct 15, 2016

I am seeing the issue with the item states as well. For example, a simple string item:
String Last_Location_Method "Location method"

and a corresponding sitemap entry:
Text item=Last_Location_Method label="Last Location Method [%s]" icon="flow"

The Last_Location_Method state is then updated in a rule. The state is verified as updated via REST. However, the BasicUI sitemap no longer automatically updates the state of the item. A refresh of the page shows the correct state. As @xsnrg said, this seems to be a UI issue as the underlying system looks to be working (and HABdroid refreshes item states correctly).

@kaikreuzer
Copy link
Contributor

Thanks @smar000, an example like yours is what we need in order to reproduce things. A single item and a single widget on a sitemap. So I did exactly this and here is the result:

https://www.youtube.com/watch?v=gy6xpob_404 (seeing Chrome, Safari & Firefox side by side).

@mhilbush
Copy link
Contributor

I'm seeing the same thing as @smar000. I have an item CurrentTime that's updated every 60 seconds by the NTP binding. I see CurrentTime being updated every minute in events.log, however, the time is never updated in the Basic UI. It updates on the page only on the first load of the page, and when I refresh the page. I see this across multiple platforms (Windows, Mac, Android) and across multiple browsers (Chrome, Firefox, and Safari).

Is there something specific I should look at to help identify root cause?

@kaikreuzer
Copy link
Contributor

Can you reproduce the steps that I did in the video posted above? What is the difference to your situation?

@mhilbush
Copy link
Contributor

mhilbush commented Oct 15, 2016

Not exactly what you did. But here's a trace of events.log showing the CurrentTime updates, yet Chrome, Firefox, and Safari all are showing an old date.

screen shot 2016-10-15 at 6 58 20 am

Adding screenshot from my Android phone.
screenshot_20161015-070214

@mhilbush
Copy link
Contributor

mhilbush commented Oct 15, 2016

A couple other facts.

  • I have one system on build 524 and other one on 537. I see the same behavior on both systems.
  • I see these bundles. Does this look right?
openhab> bundle:list -s | grep basic
189 | Active   |  80 | 0.9.0.201610131442    | org.eclipse.smarthome.ui.basic, Fragments: 190
190 | Resolved |  80 | 2.0.0.201610140851    | org.openhab.ui.basicui, Hosts: 189

@kaikreuzer
Copy link
Contributor

I guess we are more interested in the version of the Basic UI ;-)

As mentioned above: Please help analyzing the problem by first confirming that what I do in the video is working for you as well, so we can be sure we start off common grounds.
Then try to slightly change this setup until it shows your issues.

@mhilbush
Copy link
Contributor

I guess we are more interested in the version of the Basic UI ;-)

Yeah, sorry about that. :-(

@mhilbush
Copy link
Contributor

Here you go. This is on my Ubuntu box running build 524, where I have only Chrome and Firefox installed.
https://youtu.be/zgx64m45xpg

@kaikreuzer
Copy link
Contributor

What your video lacks is the moment that you initially request the UI.
Note that it is normal that you won't have any updates if you just leave the browser on the page and do changes to items or sitemaps or you restart the runtime.

@mhilbush
Copy link
Contributor

What your video lacks is the moment that you initially request the UI.

Ok, ok.
https://youtu.be/ZicFT1lT0CQ

@smar000
Copy link

smar000 commented Oct 15, 2016

Thanks @kaikreuzer. I have also just tried again using exactly same approach as on your video. Using build 537 of OH and Chrome 53.0.2785.143m on Windows 10, my results are the same as before - i.e. the item state does not dynamically update and remains as - until I do a refresh of the page.

However, I repeated the test using IE 11 (actually 11.321.14393.0), and this time, the updates show correctly.

The problem therefore may be something to do with the build of Chrome.

UPDATE: I have just updated my Chrome to 54.02840.59m, and the state updates are now showing correctly!! On a somewhat related note, the visibility tag of sitemaps is still not working (I have charts of different periods displayed via the visibility tag being set by a button state). Was this also supposed to be addressed by the recent fixes in the BasicUI or is this a different issue?

@vlad-ivanov-name
Copy link
Contributor

vlad-ivanov-name commented Oct 15, 2016

Was this also supposed to be addressed by the recent fixes in the BasicUI or is this a different issue?

Yes. It worked for me, but I had to restart openhab in order to get related events.

@vlad-ivanov-name
Copy link
Contributor

vlad-ivanov-name commented Oct 15, 2016

As a side note, please try cleaning you browser cache. It's a very unlikely cause but since we are trying to narrow down a problem it's worth a try.

@xsnrg
Copy link
Author

xsnrg commented Oct 15, 2016

I have tried Chrome with incognito, cleared cache in normal mode, and firefox normal and private browsing. The result is the same for me in every case. The icons do not update. A refresh of the browser in each case shows the proper icons that reflect the states. It looks like @mhilbush 's video.

@xsnrg
Copy link
Author

xsnrg commented Oct 15, 2016

To try to get more information that may be valuable, I created a new sitemap that looks like this:

sitemap test label="test sitemap"
{
    Frame label="fake switches" {
        Switch label="Fake 1"       item=fakeswitch1
        Switch label="Fake 2"       item=fakeswitch2
        }
}

and the corresponding .items file:

Switch fakeswitch1 
Switch fakeswitch2

I load this new site map in chrome and it exhibits the same behaviour that the actual items do in my live sitemap, so I hit good ole F12 in the browser on this stripped down sitemap, and there are some errors:

background.js:21 Uncaught ReferenceError: FSM is not defined(…)(anonymous function) @ background.js:21
options.js:54 Uncaught TypeError: Cannot set property 'innerHTML' of null(…)buildSlider @ options.js:54(anonymous function) @ options.js:123
thank_you.js:7 Uncaught TypeError: Cannot set property 'innerHTML' of null(…)(anonymous function) @ thank_you.js:7
options.js:25 Uncaught TypeError: Cannot set property 'onchange' of null(…)(anonymous function) @ options.js:25
fsm.js:28 Uncaught TypeError: FSM.method is not a function(…)(anonymous function) @ fsm.js:28

@vlad-ivanov-name
Copy link
Contributor

None of referenced Javascript files belong to BasicUI (it should be smarthome.js or mdl.js). Do they appear every time page is refreshed?

@xsnrg
Copy link
Author

xsnrg commented Oct 15, 2016

Good question, yes, they are there all the time, but I think we can ignore this as they are not there in incognito mode, so there must be a plugin on that browser. I will chase that down later. Ignoring those then, there are no js errors. Incognito mode behaves the same without the errors. Will keep digging.

@vlad-ivanov-name
Copy link
Contributor

Thanks for checking this. Chrome can display event stream if you click on Network tab in devtools, refresh the page, click that long subscription ID and then click “Event stream” tab. Do you see any events in there?

@xsnrg
Copy link
Author

xsnrg commented Oct 15, 2016

This is bizarre. It started working correctly. There are no events without moving a switch, as you would expect, but when the switch is toggled, there are events. They are below, and the icons are updated as one would suspect. I completely restarted chrome and it is still working, so I reloaded and went back to my sitemap. My sitemap is not working, and there are no events in the stream.

What I am going to do now is make my test sitemap look more like my real one. In looking at the network stream, there is a new subscription for each frame of the sitemap. I want my test sitemap to reflect the same frame navigation. Will follow back up.

{"widgetId":"0000","label":"Fake 1","visibility":true,"item":{"state":"ON","type":"Switch","name":"fakeswitch1","tags":[],"groupNames":[]},"sitemapName":"test","pageId":"test"}    
12:34:51.668
event   {"widgetId":"0000","label":"Fake 1","visibility":true,"item":{"state":"OFF","type":"Switch","name":"fakeswitch1","tags":[],"groupNames":[]},"sitemapName":"test","pageId":"test"}   
12:34:53.222
event   {"widgetId":"0000","label":"Fake 1","visibility":true,"item":{"state":"ON","type":"Switch","name":"fakeswitch1","tags":[],"groupNames":[]},"sitemapName":"test","pageId":"test"}    
12:34:54.971
event   {"widgetId":"0000","label":"Fake 1","visibility":true,"item":{"state":"OFF","type":"Switch","name":"fakeswitch1","tags":[],"groupNames":[]},"sitemapName":"test","pageId":"test"}   

@BClark09
Copy link

This seems to be an intermittent problem for everyone, the eventsource is created (times out after 1 minute and a new one is created), but it doesn't respond to any changes.

image

Every now and then I get a working view, and the eventsource receives the event and updates the widget accordingly.

@vlad-ivanov-name
Copy link
Contributor

In looking at the network stream, there is a new subscription for each frame of the sitemap.

Subscription should be the same, but its ID is sent every time a navigation event occurs, so server knows which widgets should receive events.

@xsnrg
Copy link
Author

xsnrg commented Oct 15, 2016

so... try this sitemap with the same .items file from before.

sitemap test label="test sitemap"
{
    Frame label="first fake frame" {    
        Switch label="Fake 1"       item=fakeswitch1
        }
    Frame label="2nd fake frame" {
        Switch label="Fake 2"       item=fakeswitch2
        }
}

The first switch operates and updates. The second switch also has events appear in the stream, but the browser does not update the elements.

@xsnrg
Copy link
Author

xsnrg commented Oct 15, 2016

I just upgraded to build 542, and now I have a consistent experience to report. Here is a video:

youtube video

Starting from a fresh chrome browser, I go to the bookmark that I have set for my sitemap. The sitemap loads, and there is a subscription. I click on a link to go to the next page, and there is not a new subscription. Is the assumption here is that the same subscription should work, or should there be a new one? The events do not show up in the stream for the switch on this page. Refresh the page, and now there is a new subscription, and the switch information updates with events in the stream.

I am not sure what is different in this build, if anything, but this is reproducible for me now.

@vlad-ivanov-name
Copy link
Contributor

vlad-ivanov-name commented Oct 15, 2016

Is the assumption here is that the same subscription should work

Yes, it should. The subscription is updated with the address of the subpage you go into.

Unless it's not updated, of course. But in your video there seems to be a request with a proper page ID (you could also check subscriptionId parameter for the basicui/app?w=... request).

@mhilbush
Copy link
Contributor

I turned on trace level debugging and saw this. Problem is my sitemap is not called demo... I changed the name of my sitemap to demo.sitemap, and the basic UI updates started working.

2016-10-17 06:50:03.479 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Created new subscription with id dd012e48-e046-4ba6-8a1a-d135d998ed9d
2016-10-17 06:50:03.485 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription dd012e48-e046-4ba6-8a1a-d135d998ed9d changed to page basic-ui-test of sitemap basic-ui-test
2016-10-17 06:50:03.486 [DEBUG] [est.sitemap.internal.SitemapResource] - Client requested sitemap event stream for subscription dd012e48-e046-4ba6-8a1a-d135d998ed9d.
2016-10-17 06:50:07.326 [DEBUG] [thome.io.rest.core.item.ItemResource] - Received HTTP POST request at 'items/MySwitch1' with value 'ON'.
2016-10-17 06:50:09.670 [DEBUG] [thome.io.rest.core.item.ItemResource] - Received HTTP POST request at 'items/MySwitch1' with value 'OFF'.
2016-10-17 06:50:10.778 [DEBUG] [thome.io.rest.core.item.ItemResource] - Received HTTP POST request at 'items/MySwitch1' with value 'ON'.
2016-10-17 06:50:11.347 [DEBUG] [thome.io.rest.core.item.ItemResource] - Received HTTP POST request at 'items/MySwitch1' with value 'OFF'.
2016-10-17 06:50:12.907 [DEBUG] [thome.io.rest.core.item.ItemResource] - Received HTTP POST request at 'items/MySwitch2' with value 'ON'.
2016-10-17 06:50:13.506 [DEBUG] [thome.io.rest.core.item.ItemResource] - Received HTTP POST request at 'items/MySwitch2' with value 'OFF'.
2016-10-17 06:50:14.012 [DEBUG] [thome.io.rest.core.item.ItemResource] - Received HTTP POST request at 'items/MySwitch2' with value 'ON'.
2016-10-17 06:50:14.490 [DEBUG] [thome.io.rest.core.item.ItemResource] - Received HTTP POST request at 'items/MySwitch2' with value 'OFF'.
2016-10-17 06:50:17.261 [DEBUG] [basic.internal.servlet.WebAppServlet] - Servlet request received!
2016-10-17 06:50:17.261 [DEBUG] [basic.internal.servlet.WebAppServlet] - reading sitemap demo
2016-10-17 06:50:17.261 [TRACE] [el.core.internal.ModelRepositoryImpl] - Configuration model 'demo.sitemap' can not be found
2016-10-17 06:50:17.261 [TRACE] [sitemap.internal.SitemapProviderImpl] - Sitemap demo cannot be found

@mhilbush
Copy link
Contributor

Well, maybe not. I can't seem to reproduce the behavior that made it work.

@mhilbush
Copy link
Contributor

@kaikreuzer What's happeneing here is pretty strange. I can consistently reproduce this behavior after a fresh restart of OH2.
https://youtu.be/mpEcXMPkiFQ

@mhilbush
Copy link
Contributor

mhilbush commented Oct 17, 2016

In another scenario, if I start with the sitemap named demo, it works. After changing to another sitemap, it never works again (even with demo). Again, I can reproduce this only after a restart.
https://youtu.be/CCEX-PDEPCw

@vlad-ivanov-name
Copy link
Contributor

vlad-ivanov-name commented Oct 17, 2016

So I did some debugging and there is a potential problem: it seems like sitemap name is compared to the sitemap file name.

In the example given by @xsnrg, sitemap should be saved under name test.sitemap. Or demo.sitemap, and then it should start with sitemap demo. For me it works even after a constant abusive page refresh.

This, however, doesn't answer why is there an inconsistent behaviour (I wasn't able to reproduce that, it either works or it doesn't). Maybe when a PageChangeListener is created once, it stays alive while other configurations are tested?

@kaikreuzer
Copy link
Contributor

Or demo.sitemap, and then it should start with sitemap demo

This is indeed required and was so since the beginning of sitemaps in OH1. We might want to add some validation that logs a warning if this is not the case.

@kaikreuzer
Copy link
Contributor

So is there actually an issue left here? Could anyone summarize?

@wborn
Copy link
Contributor

wborn commented Oct 17, 2016

Yes I still have a reproducible issue with the demo (see comment above). The sitemap name is demo.sitemap and it starts of with sitemap demo label="Main Menu". The timing of my example may seem absurd. But when I change it to 500ms and spam the refresh button of my browser, the eventsstream always breaks.

@BClark09
Copy link

Unfortunately so. I have a default.sitemap which starts "sitemap default", and I am still experiencing this issue inconsistently. I can't seem to find a way to reproduce this problem reliably, since sometimes doing the same steps works, sometimes it doesn't. Furthermore:

sitemap default label="Main Menu"
{
    Frame label="Areas"
    {
        Text label="Bedroom" icon="bedroom" 
        {
            Frame label="Bedroom Light" 
            {
                Switch         item=Bedroom_Light_Toggle label="Switch" icon="switch"
                Colorpicker    item=Bedroom_Light_Colour
                Switch         item=Bedroom_Light_ColourLoop
            }
            Frame label="Motion Sensor"
            {
                Switch         item=Bedroom_MotionSensor_Enabled                                

                Text           item=Bedroom_MotionSensor_Luminance
                Text           item=Bedroom_MotionSensor_Battery
                Text           item=Bedroom_MotionSensor_Temperature
                Text           item=Bedroom_MotionSensor_Motion
            }
        }
        Text label="Kitchen" icon="kitchen" 
        {
            Frame label="Kitchen Controls" 
            {
                Switch         item=Kitchen_Light_Toggle label="Switch" icon="switch"
                Slider         item=Kitchen_Light_Brightness
            }
        }
}

The last time this issue occurred was with the above sitemap, I went into "Bedroom" and I saw a live update of my sensors and my hue lights, either when they come on from a rule or if I changed them manually with HABdroid. If I went back and into "Kitchen", no events would come through for either of the two items, go back to "Bedroom" and it still works for them.

@mhilbush
Copy link
Contributor

Or demo.sitemap, and then it should start with sitemap demo

Ah, that was it for me. If the name inside the sitemap file doesn't match the name of the sitemap file (before the .), then it almost works (i.e. the pages render correctly, but nothing updates). And, yes, I would agree a warning would be very helpful. 👍

@xsnrg
Copy link
Author

xsnrg commented Oct 17, 2016

I too, knew of the rule they must match. My example sitemap as well as my home sitemap follow the rule and still exhibit the issue.

$ cat test.sitemap 
sitemap test label="test sitemap"

@vlad-ivanov-name
Copy link
Contributor

vlad-ivanov-name commented Oct 17, 2016

@kaikreuzer out of curiosity, have you been able to reproduce the issue?

Also, I think it wouldn't hurt to post what platform we're running openhab on. I tested on Linux (Fedora), openjdk 1.8.0_101.

@xsnrg
Copy link
Author

xsnrg commented Oct 17, 2016

Tested on Fedora 23 server with Oracle JDK version "1.8.0_60".
Client chrome 54, and Firefox 49 on Fedora 24

@wborn
Copy link
Contributor

wborn commented Oct 17, 2016

openHAB 2.0.0-SNAPSHOT Build _#_546
Chrome 54.0.2840.59 (64-bit)
Oracle Java 1.8.0_101 (64-bit)
Ubuntu 16.04.1 LTS
Firefox 49.0

My issue is something in the backend. Because when the eventsstream breaks on a certain page, it breaks on all my browsers for that page. Also on browers/devices that did not yet connect. It really reminds me of the issue I reported in #2030.

@vlad-ivanov-name
Copy link
Contributor

Well this is certainly not a browser compatibility issue. Event stream was used in BasicUI before, just in a different way.

That's two people with Oracle JDK, by the way.

@xsnrg
Copy link
Author

xsnrg commented Oct 17, 2016

Just reproduced it on a Pi2, also Oracle JDK 1.8.0_70

@wborn
Copy link
Contributor

wborn commented Oct 17, 2016

My issue is only reproducible with my stress test rule when only one browser connected to the Open windows page and I spam the refresh button. When I spam the refresh button while a second browser is also connected, it keeps working.

@vlad-ivanov-name
Copy link
Contributor

vlad-ivanov-name commented Oct 18, 2016

It would be good to try with openjdk then.

@BClark09
Copy link

Pi3 (Debian Jessie), also Oracle JDK 1.8.0_65

Will try open JDK and get back to you.

@wborn
Copy link
Contributor

wborn commented Oct 18, 2016

I think I found the issue. At line 116 in SitemapSubscriptionService the listener is removed whereas I think it should remove the sitemapPage. The .remove(..) works on map keys, which should be the sitemapPage. Whereas the listener is the value of the map.

When I apply this change my reproduction scenario can no longer reproduce the issue. I can then spam the reload button all I want. Maybe you can crosscheck this change @resetnow ?

@vlad-ivanov-name
Copy link
Contributor

vlad-ivanov-name commented Oct 18, 2016

I'll check it in an hour or so, thanks for the suggestion

@vlad-ivanov-name
Copy link
Contributor

vlad-ivanov-name commented Oct 18, 2016

I think I found the issue. At line 116 in SitemapSubscriptionService the listener is removed whereas I think it should remove the sitemapPage. The .remove(..) works on map keys, which should be the sitemapPage. Whereas the listener is the value of the map.

Sounds right to me. It's not clear to me why I can't reproduce the issue though. Could you open a PR? (I'm not fluent in Java so maintainers may have different opinion on this).

@wborn
Copy link
Contributor

wborn commented Oct 18, 2016

Here's a fix for people who are eager to test and want to see if my fix also solves their issue:

bundle:list | grep 'Sitemap REST API'
  • Update the bundle (e.g. when bundle ID is 118):
bundle:update 118 file:///home/pi/org.eclipse.smarthome.io.rest.sitemap-0.9.0-SNAPSHOT.jar
  • Restart ESH/openHAB

@xsnrg
Copy link
Author

xsnrg commented Oct 19, 2016

Thanks for the sleuthing folks!

chaton78 pushed a commit to chaton78/smarthome that referenced this issue Oct 26, 2016
…-archived#2338)

* Fixes eclipse-archived#2322 Basic UI no longer updates icons

Signed-off-by: Wouter Born <eclipse@maindrain.net>
chaton78 added a commit to chaton78/smarthome that referenced this issue Nov 8, 2016
Signed-off-by: chaton78 <plarin@gmail.com>

Fix NPE in RulesItemRefresher which occurs during shutdown (eclipse-archived#2263)

Signed-off-by: Michael Vorburger <mike@vorburger.ch>

adapted groovy version (eclipse-archived#2265)

Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>

defer creation of sound input until its first use (eclipse-archived#2261)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Bug fix: item creation while channel linking (eclipse-archived#2262)

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

added Karaf feature for rest.voice (eclipse-archived#2273)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

removing generics from OSGiTest base class (eclipse-archived#2274)

since the framework requires minimum OSGi version 4.2
Generics was added  to ServiceReference in OSGi v.4.3

Signed-off-by: Miki Jankov <miki.jankov87@gmail.com>

Contribution of an HumanLanguageInterpreter that allows to process voice commands in DSL rules (eclipse-archived#2272)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

replaced apache by jetty http client (eclipse-archived#2275)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

fetch supported locales only once instead of three times (eclipse-archived#2276)

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

added sitemap event subscription mechanism (eclipse-archived#2030)

* added sitemap event subscription mechanism

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* allow setting the current page on the initial request and added logging

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* BasicUI: SSE sitemap events support (eclipse-archived#5)

Signed-off-by: Vlad Ivanov <vlad-mbx@ya.ru>

* added clean up of closed SSE connections

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* avoided servlet exception on unknown subscription id

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* BasicUI: refactor: move some template processing code to abstract class

Signed-off-by: Vlad Ivanov <vlad-mbx@ya.ru>

* BasicUI: fix widget referencing for SSE stream

Signed-off-by: Vlad Ivanov <vlad-mbx@ya.ru>

* BasicUI: fix icon and value update for some widgets

Signed-off-by: Vlad Ivanov <vlad-mbx@ya.ru>

* BasicUI: remove test logging

Signed-off-by: Vlad Ivanov <vlad-mbx@ya.ru>

* refactored code to avoid duplicate events

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* fixed cleanup of page change listeners

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* also consider change events of group items

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Dbus transport fixes (eclipse-archived#2280)

* fix indentation
* add dbus transport bundle aggregate io pom
* fix version
* add karaf feature

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

fix type in javasound pom (eclipse-archived#2279)

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

Type: differ between a full and simple string representation (eclipse-archived#2230)

* Type: differ between full string representation and toString()
* The full string representation must be compatible to the static
  `valueOf(String)` method of the respective Type implementation.
* The toString() returned representation should be as usable a concise
  but informative representation that is easy for a concise but
  informative representation that is easy for a person to read. It does
  not need to be compatible to the `valueOf(String)` method of the
  respective Type implementation.

So, whenever you need a representation that can be consumed by
`valueOf(String)` later, you should use the full string representation.

Until now `toString()` returned the full string representation which has
been changed now.
If you rely on a representation that can be consumed by
`valueOf(String)` later, you need to adapt your code.

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

easy way to add third party JARs to TP for development only (eclipse-archived#2283)

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

fix esh-ui-basic feature dependencies (eclipse-archived#2284)

Fixes: eclipse-archived#2281
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

addressed performance worries (eclipse-archived#2288)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Send sitemap events on sitemap visibility updates (eclipse-archived#2290)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

extended firmware version test by additional assertions required for a binding that will use a combined firmware version, i.e. a version that consist of actual two versions (eclipse-archived#2244)

Signed-off-by: Thomas Höfer <t.hoefer@telekom.de>

Create an action which can enable or disable a set of rules. (eclipse-archived#1914)

Signed-off-by: Plamen Peev <p.peev@prosyst.bg>

add capability to feature because it is missing in the bundle manifest (eclipse-archived#2291)

Adds for I18nProvider service capability as it is missing in the
esh.core bundle manifest

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

Introduction of an AudioServlet to provide audio streams through HTTP (eclipse-archived#2287)

* Introduction of an AudioServlet to provide audio streams through HTTP

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* fixed missing stream removal

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Fix for eclipse-archived#2249; Add handling of REFRESH command and introduce lastMotionDetected channel for MotionSensor (eclipse-archived#2277)

Signed-off-by: Hans-Jörg Merk <hans-joerg.merk@t-online.de>

changed volume of AudioSink from float to PercentType (eclipse-archived#2286)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

temporarily ignore failing test (eclipse-archived#2293)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Rewind and Fast forward in player widget (eclipse-archived#2292)

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

BasicUI updates (eclipse-archived#2294)

* BasicUI: sitemap visibility events support
* BasicUI: fix text widget icon update

Signed-off-by: Vlad Ivanov <vlad-mbx@ya.ru>

Implemented configuration status handling for hue bridge. (eclipse-archived#1819)

Signed-off-by: Alexander Kostadinov <alexander.g.kostadinov@gmail.com>

updated license headers of archetype (eclipse-archived#2296)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

check for uniqueness of channels (eclipse-archived#2266)

...in ThingHelper and ThingBuilder so no duplicate channels can be created.

The ChannelUID is used as the only parameter as it defines the identity
of a Channel.

fixes eclipse-archived#2256
fixes eclipse-archived#2210
Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>
Also-by: Markus Rathgeb <maggu2810@gmail.com>

Changed ESH-PREFIX and cleaned up warnings (eclipse-archived#2298)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

remove error message on successful thing creation (eclipse-archived#2299)

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

Added X-Accel-Buffering=no header to SSE response in order to disable response buffering when using nginx as a proxy server. (eclipse-archived#2300)

This allows you to use nginx proxy buffering and still have working SSE.

Signed-off-by: IVAN GEORGIEV ILIEV <ivan.iliev@musala.com>

Some improvements on audio streams: (eclipse-archived#2302)

- Introduced FixedLengthAudioStream
- Provide Content-Length in AudioServlet
- Ignore file extensions in urls in AudioServlet
- added ability to reset a FileAudioStream

Signed-off-by: Kai Kreuzer <kai@openhab.org>

some code cleanup on sonos (eclipse-archived#2303)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Set the notification sound volume on first access instead of initialisation (eclipse-archived#2307)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

added support to serve a single AudioStream multiple times concurrently through HTTP (eclipse-archived#2305)

* added support to serve a single AudioStream multiple times concurrently through HTTP

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* incorporated review feedback

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Audio servlet improvements (eclipse-archived#2310)

* use seconds directly
* reorder code to allow usage of try-with-resources

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

adapted MacTTS to use FixedLengthAudioStream (eclipse-archived#2311)

* adapted MacTTS to use FixedLengthAudioStream

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* set length only once

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* removed null check

Signed-off-by: Kai Kreuzer <kai@openhab.org>

persisting group functions in the ManagedItemProvider (eclipse-archived#2309)

fixes eclipse-archived#2269
Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>

initial contribution of a web audio sink (eclipse-archived#2313)

* initial contribution of a web audio sink

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* Make sure that streams are closed correctly.

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Support audio events (eclipse-archived#2314)

* Support audio events

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

BasicUI: minor fixes (eclipse-archived#2316)

Signed-off-by: Vlad Ivanov <vlad-mbx@ya.ru>

add capability to feature because it is missing in the bundle manifest (eclipse-archived#2319)

Adds for AudioHTTPServer service capability as it is missing in the
esh.core.audio bundle manifest

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

[LIFX] FindBugs issues fix (eclipse-archived#2318)

* Unlock lightCounterLock when exceptions occur
* Potential NPE in handlePowerStatus

Signed-off-by: Wouter Born <eclipse@maindrain.net>

Improved README files for all bindings (typos, grammar, text). (eclipse-archived#2328)

Signed-off-by: Alexander Kostadinov <alexander.g.kostadinov@gmail.com>

Removed unnecessary explicit call of parent constructor (parent class is the Object class). (eclipse-archived#2330)

Signed-off-by: Alexander Kostadinov <alexander.g.kostadinov@gmail.com>

Room and Outside temperature now working

Add support for set point temperature and mode.
Add support for heat level

New Library sinope-core 0.0.1 snapshot

Updated documentation

Update readme.md

Update readme.md

Update readme.md

Added Headers, Java Cleanup and Format

Formatting

Project compliance

Update readme.md

Implemented tests for the Wemo Binding. (eclipse-archived#2247)

During the test implementation several problems were found and some tests are
ignored.

Signed-off-by: Svilen Valkanov <svilen.valkanov@musala.com>

Fix FirmwareUpdateServiceOSGiTest - separate waitForAssert to check thing status and initial firmware status propagation (eclipse-archived#2301)

Signed-off-by: Thomas Höfer <t.hoefer@telekom.de>

Applied error class (eclipse-archived#2335)

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

Fixes eclipse-archived#2322 Basic UI no longer updates icons (eclipse-archived#2338)

* Fixes eclipse-archived#2322 Basic UI no longer updates icons

Signed-off-by: Wouter Born <eclipse@maindrain.net>

Implemented tests for NTP Binding (eclipse-archived#2243)

I have implemented several tests for the NTP Binding. Also, I have made small changes in the code of the NtpHandler and NtpBindingConstants

Signed-off-by: Petar Valchev <petar.valchev@musala.com>

renamed channelType to channelKind in the model (eclipse-archived#2342)

Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>

added meta data for audio and voice services (eclipse-archived#2339)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Implemented tests for FolderObserver (eclipse-archived#2074)

There are 8 test cases testing the functionality of
org.eclipse.smarthome.model.core.internal.folder.FolderObserver.
They check if the correct ModelRepository's methods are invoked
when certain events in the watched directory are triggered.

The tests are fixed in order to run properly on MacOS.

Markus comments are addressed.

Signed-off-by: Mihaela Memova <mihaela.memova@musala.com>

Fixes eclipse-archived#2332 Selection sitemap item does not show current selection after (eclipse-archived#2347)

Basic UI page (re)load

Signed-off-by: Wouter Born <eclipse@maindrain.net>

Fixed mistyped variable for Wemo binding OSGi tests. (eclipse-archived#2349)

Signed-off-by: Alexander Kostadinov <alexander.g.kostadinov@gmail.com>

disable NTP tests until issue is solved (eclipse-archived#2351)

Related to: eclipse-archived#2345
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

fix NTP test Eclipse's project settings

* remove maven nature from Groovy test project
* add Grovy project settings

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

increase timeout for NTP channel updates

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

fix NTP test eclipse launch configuration

* Remove a lot of UI bundles
* Add Apache Commons Collections (necessary for core)

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

enable NTP test again

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

initial contribution of Sonos AudioSink support (eclipse-archived#2306)

* initial contribution of Sonos AudioSink support

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* fix NPEs

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Changes in the FSInternetRadio binding. (eclipse-archived#2348)

Some changes are made in org.eclipse.smarthome.bindig.fsinternetradio.
They are mainly related to cleaning up some unneccessary checks and
code lines that can never be reached.
The HTTP client now is stopped with the deactivation of the bundle.
The hardcoded "fsapi" String is now extracted into an instance variable.

Signed-off-by: Mihaela Memova <mihaela.memova@musala.com>

Added SatisfiableRESTResource and SatisfiableResourceFilter and refactored all ESH RESTResource that have mandatory static dependencies to optional and dynamic and made them implement the new interface. (eclipse-archived#2320)

This is done in order to avoid deactivation/reactivation of RESTResources whenever some of their dependencies go missing as this in turn causes the entire Jersey model to reload which can be very very costly on weak CPU devices.
Instead when a dependency goes missing the SatisfiableResourceFilter will call the newly introduced SatisfiableRESTResource#isSatisfied before the matched resource method is executed and will return 503 Unavailable if the service is not satisfied.
Currently when a RESTResource is deactivated and Jersey is reloading the JAX RS OSGi Connector implementation will return 503 so the behaviour is consistent.

Signed-off-by: IVAN GEORGIEV ILIEV <ivan.iliev@musala.com>

improve "get port" mechanism (eclipse-archived#2331)

* improve "get port" mechanism

It is not mandatory that the system property is used for setting the
service port. So we should also respect the service property.

The configuration admin is e.g. used by Pax Web.

See also: http://felix.apache.org/documentation/subprojects/apache-felix-http-service.html
The service can both be configured using OSGi environment properties and
using Configuration Admin. ... If you use both methods, Configuration Admin
takes precedence.

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

Scheduler : fix eclipse-archived#2105 (eclipse-archived#2270)

Also-by: Markus Rathgeb <maggu2810@gmail.com>
Signed-off-by: Karel Goderis <karel.goderis@me.com>

Fix FirmwareUpdateServiceOSGiTest - separate waitForAssert to check thing status and initial firmware status propagation (eclipse-archived#2301)

Signed-off-by: Thomas Höfer <t.hoefer@telekom.de>

Applied error class (eclipse-archived#2335)

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

Fixes eclipse-archived#2322 Basic UI no longer updates icons (eclipse-archived#2338)

* Fixes eclipse-archived#2322 Basic UI no longer updates icons

Signed-off-by: Wouter Born <eclipse@maindrain.net>

Implemented tests for NTP Binding (eclipse-archived#2243)

I have implemented several tests for the NTP Binding. Also, I have made small changes in the code of the NtpHandler and NtpBindingConstants

Signed-off-by: Petar Valchev <petar.valchev@musala.com>

Squash'ed commit

Signed-off-by: chaton78 <plarin@gmail.com>

renamed channelType to channelKind in the model (eclipse-archived#2342)

Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>

added meta data for audio and voice services (eclipse-archived#2339)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Implemented tests for FolderObserver (eclipse-archived#2074)

There are 8 test cases testing the functionality of
org.eclipse.smarthome.model.core.internal.folder.FolderObserver.
They check if the correct ModelRepository's methods are invoked
when certain events in the watched directory are triggered.

The tests are fixed in order to run properly on MacOS.

Markus comments are addressed.

Signed-off-by: Mihaela Memova <mihaela.memova@musala.com>

Fixes eclipse-archived#2332 Selection sitemap item does not show current selection after (eclipse-archived#2347)

Basic UI page (re)load

Signed-off-by: Wouter Born <eclipse@maindrain.net>

Fixed mistyped variable for Wemo binding OSGi tests. (eclipse-archived#2349)

Signed-off-by: Alexander Kostadinov <alexander.g.kostadinov@gmail.com>

disable NTP tests until issue is solved (eclipse-archived#2351)

Related to: eclipse-archived#2345
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

fix NTP test eclipse launch configuration

* Remove a lot of UI bundles
* Add Apache Commons Collections (necessary for core)

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

Squashed commits

Signed-off-by: chaton78 <plarin@gmail.com>

enable NTP test again

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

initial contribution of Sonos AudioSink support (eclipse-archived#2306)

* initial contribution of Sonos AudioSink support

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* fix NPEs

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Changes in the FSInternetRadio binding. (eclipse-archived#2348)

Some changes are made in org.eclipse.smarthome.bindig.fsinternetradio.
They are mainly related to cleaning up some unneccessary checks and
code lines that can never be reached.
The HTTP client now is stopped with the deactivation of the bundle.
The hardcoded "fsapi" String is now extracted into an instance variable.

Signed-off-by: Mihaela Memova <mihaela.memova@musala.com>

Added SatisfiableRESTResource and SatisfiableResourceFilter and refactored all ESH RESTResource that have mandatory static dependencies to optional and dynamic and made them implement the new interface. (eclipse-archived#2320)

This is done in order to avoid deactivation/reactivation of RESTResources whenever some of their dependencies go missing as this in turn causes the entire Jersey model to reload which can be very very costly on weak CPU devices.
Instead when a dependency goes missing the SatisfiableResourceFilter will call the newly introduced SatisfiableRESTResource#isSatisfied before the matched resource method is executed and will return 503 Unavailable if the service is not satisfied.
Currently when a RESTResource is deactivated and Jersey is reloading the JAX RS OSGi Connector implementation will return 503 so the behaviour is consistent.

Signed-off-by: IVAN GEORGIEV ILIEV <ivan.iliev@musala.com>

improve "get port" mechanism (eclipse-archived#2331)

* improve "get port" mechanism

It is not mandatory that the system property is used for setting the
service port. So we should also respect the service property.

The configuration admin is e.g. used by Pax Web.

See also: http://felix.apache.org/documentation/subprojects/apache-felix-http-service.html
The service can both be configured using OSGi environment properties and
using Configuration Admin. ... If you use both methods, Configuration Admin
takes precedence.

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

Scheduler : fix eclipse-archived#2105 (eclipse-archived#2270)

Also-by: Markus Rathgeb <maggu2810@gmail.com>
Signed-off-by: Karel Goderis <karel.goderis@me.com>

allow referencing a channel type in the DSL (eclipse-archived#2343)

in the Thing DSL it is possible to define channels manually.
However, it was not possible so far to reference a binding's
channel type which is defined in the XMLs.

Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>

fixed UpnpDiscoveryService to call thingDiscovered for each RemoteDevice already available in the upnp registry (eclipse-archived#2367)

Signed-off-by: Andre Fuechsel <andre.fuechsel@telekom.de>

Refactored automation.core module && adapted to use Declarative Services (eclipse-archived#2194)

Signed-off-by: Vasil Ilchev <v.ilchev@prosyst.bg>

NTP Binding Tests Fix (eclipse-archived#2377)

Fixed the bug in the NTP Binding, related to the time change.

Signed-off-by: Petar Valchev <petar.valchev@musala.com>

avoid NPE if no services are found (eclipse-archived#2373)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Changed AudioHTTPServer to return relative urls instead of absolute (eclipse-archived#2374)

This moves the responsibility of constructing the absolute url to call to the consumer - which is imho the much better approach, as e.g. a consumer like a web browser might request it remotely (from a different network) and thus only it knows which server+port to contact (and with this to avoid any cross origin problems).

- adapted Sonos binding to make relative url absolute
- added configuration parameter for callback url to Sonos binding (if not set, heuristic approach through scanning available network interfaces is taken)
- tested it also successfully with webaudio sink in Paper UI

Signed-off-by: Kai Kreuzer <kai@openhab.org>

removed duplicate thing and channel definitions (looks like they are still there only by accident) (eclipse-archived#2375)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Added space above channel group name (eclipse-archived#2382)

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

converting state types into accepted type before sending item state events (eclipse-archived#2334)

fixes eclipse-archived#2253
Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>

Allow to define channel labels in the DSL (eclipse-archived#2381)

Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>

Prevent scriptarea from overlapping with outputs (eclipse-archived#2346)

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

SetupPageController tests (eclipse-archived#2358)

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

Removed readOnly switch's state text (eclipse-archived#2336)

* Hide readOnly item
* Removed switch item state text

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

Support multiselect with custom values (eclipse-archived#2355)

* Support multiselect with custom values

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

Use jQuery-ui from npm (eclipse-archived#2385)

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

Supported contexts' documentation (eclipse-archived#2168)

Supported contexts' documentation

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

fix Paper UI build (eclipse-archived#2317)

Fixes: eclipse-archived#2219
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

Updated Thing types Sample left-over.

Updated pom.xml

Signed-off-by: chaton78 <plarin@gmail.com>

Update Config comments

Signed-off-by: Pascal Larin <plarin@gmail.com>

Squashed Commits

Signed-off-by: chaton78 <plarin@gmail.com>
chaton78 added a commit to chaton78/smarthome that referenced this issue Nov 8, 2016
Signed-off-by: chaton78 <plarin@gmail.com>

Fix NPE in RulesItemRefresher which occurs during shutdown (eclipse-archived#2263)

Signed-off-by: Michael Vorburger <mike@vorburger.ch>

adapted groovy version (eclipse-archived#2265)

Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>

defer creation of sound input until its first use (eclipse-archived#2261)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Bug fix: item creation while channel linking (eclipse-archived#2262)

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

added Karaf feature for rest.voice (eclipse-archived#2273)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

removing generics from OSGiTest base class (eclipse-archived#2274)

since the framework requires minimum OSGi version 4.2
Generics was added  to ServiceReference in OSGi v.4.3

Signed-off-by: Miki Jankov <miki.jankov87@gmail.com>

Contribution of an HumanLanguageInterpreter that allows to process voice commands in DSL rules (eclipse-archived#2272)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

replaced apache by jetty http client (eclipse-archived#2275)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

fetch supported locales only once instead of three times (eclipse-archived#2276)

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

added sitemap event subscription mechanism (eclipse-archived#2030)

* added sitemap event subscription mechanism

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* allow setting the current page on the initial request and added logging

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* BasicUI: SSE sitemap events support (eclipse-archived#5)

Signed-off-by: Vlad Ivanov <vlad-mbx@ya.ru>

* added clean up of closed SSE connections

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* avoided servlet exception on unknown subscription id

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* BasicUI: refactor: move some template processing code to abstract class

Signed-off-by: Vlad Ivanov <vlad-mbx@ya.ru>

* BasicUI: fix widget referencing for SSE stream

Signed-off-by: Vlad Ivanov <vlad-mbx@ya.ru>

* BasicUI: fix icon and value update for some widgets

Signed-off-by: Vlad Ivanov <vlad-mbx@ya.ru>

* BasicUI: remove test logging

Signed-off-by: Vlad Ivanov <vlad-mbx@ya.ru>

* refactored code to avoid duplicate events

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* fixed cleanup of page change listeners

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* also consider change events of group items

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Dbus transport fixes (eclipse-archived#2280)

* fix indentation
* add dbus transport bundle aggregate io pom
* fix version
* add karaf feature

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

fix type in javasound pom (eclipse-archived#2279)

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

Type: differ between a full and simple string representation (eclipse-archived#2230)

* Type: differ between full string representation and toString()
* The full string representation must be compatible to the static
  `valueOf(String)` method of the respective Type implementation.
* The toString() returned representation should be as usable a concise
  but informative representation that is easy for a concise but
  informative representation that is easy for a person to read. It does
  not need to be compatible to the `valueOf(String)` method of the
  respective Type implementation.

So, whenever you need a representation that can be consumed by
`valueOf(String)` later, you should use the full string representation.

Until now `toString()` returned the full string representation which has
been changed now.
If you rely on a representation that can be consumed by
`valueOf(String)` later, you need to adapt your code.

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

easy way to add third party JARs to TP for development only (eclipse-archived#2283)

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

fix esh-ui-basic feature dependencies (eclipse-archived#2284)

Fixes: eclipse-archived#2281
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

addressed performance worries (eclipse-archived#2288)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Send sitemap events on sitemap visibility updates (eclipse-archived#2290)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

extended firmware version test by additional assertions required for a binding that will use a combined firmware version, i.e. a version that consist of actual two versions (eclipse-archived#2244)

Signed-off-by: Thomas Höfer <t.hoefer@telekom.de>

Create an action which can enable or disable a set of rules. (eclipse-archived#1914)

Signed-off-by: Plamen Peev <p.peev@prosyst.bg>

add capability to feature because it is missing in the bundle manifest (eclipse-archived#2291)

Adds for I18nProvider service capability as it is missing in the
esh.core bundle manifest

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

Introduction of an AudioServlet to provide audio streams through HTTP (eclipse-archived#2287)

* Introduction of an AudioServlet to provide audio streams through HTTP

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* fixed missing stream removal

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Fix for eclipse-archived#2249; Add handling of REFRESH command and introduce lastMotionDetected channel for MotionSensor (eclipse-archived#2277)

Signed-off-by: Hans-Jörg Merk <hans-joerg.merk@t-online.de>

changed volume of AudioSink from float to PercentType (eclipse-archived#2286)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

temporarily ignore failing test (eclipse-archived#2293)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Rewind and Fast forward in player widget (eclipse-archived#2292)

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

BasicUI updates (eclipse-archived#2294)

* BasicUI: sitemap visibility events support
* BasicUI: fix text widget icon update

Signed-off-by: Vlad Ivanov <vlad-mbx@ya.ru>

Implemented configuration status handling for hue bridge. (eclipse-archived#1819)

Signed-off-by: Alexander Kostadinov <alexander.g.kostadinov@gmail.com>

updated license headers of archetype (eclipse-archived#2296)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

check for uniqueness of channels (eclipse-archived#2266)

...in ThingHelper and ThingBuilder so no duplicate channels can be created.

The ChannelUID is used as the only parameter as it defines the identity
of a Channel.

fixes eclipse-archived#2256
fixes eclipse-archived#2210
Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>
Also-by: Markus Rathgeb <maggu2810@gmail.com>

Changed ESH-PREFIX and cleaned up warnings (eclipse-archived#2298)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

remove error message on successful thing creation (eclipse-archived#2299)

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

Added X-Accel-Buffering=no header to SSE response in order to disable response buffering when using nginx as a proxy server. (eclipse-archived#2300)

This allows you to use nginx proxy buffering and still have working SSE.

Signed-off-by: IVAN GEORGIEV ILIEV <ivan.iliev@musala.com>

Some improvements on audio streams: (eclipse-archived#2302)

- Introduced FixedLengthAudioStream
- Provide Content-Length in AudioServlet
- Ignore file extensions in urls in AudioServlet
- added ability to reset a FileAudioStream

Signed-off-by: Kai Kreuzer <kai@openhab.org>

some code cleanup on sonos (eclipse-archived#2303)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Set the notification sound volume on first access instead of initialisation (eclipse-archived#2307)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

added support to serve a single AudioStream multiple times concurrently through HTTP (eclipse-archived#2305)

* added support to serve a single AudioStream multiple times concurrently through HTTP

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* incorporated review feedback

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Audio servlet improvements (eclipse-archived#2310)

* use seconds directly
* reorder code to allow usage of try-with-resources

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

adapted MacTTS to use FixedLengthAudioStream (eclipse-archived#2311)

* adapted MacTTS to use FixedLengthAudioStream

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* set length only once

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* removed null check

Signed-off-by: Kai Kreuzer <kai@openhab.org>

persisting group functions in the ManagedItemProvider (eclipse-archived#2309)

fixes eclipse-archived#2269
Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>

initial contribution of a web audio sink (eclipse-archived#2313)

* initial contribution of a web audio sink

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* Make sure that streams are closed correctly.

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Support audio events (eclipse-archived#2314)

* Support audio events

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

BasicUI: minor fixes (eclipse-archived#2316)

Signed-off-by: Vlad Ivanov <vlad-mbx@ya.ru>

add capability to feature because it is missing in the bundle manifest (eclipse-archived#2319)

Adds for AudioHTTPServer service capability as it is missing in the
esh.core.audio bundle manifest

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

[LIFX] FindBugs issues fix (eclipse-archived#2318)

* Unlock lightCounterLock when exceptions occur
* Potential NPE in handlePowerStatus

Signed-off-by: Wouter Born <eclipse@maindrain.net>

Improved README files for all bindings (typos, grammar, text). (eclipse-archived#2328)

Signed-off-by: Alexander Kostadinov <alexander.g.kostadinov@gmail.com>

Removed unnecessary explicit call of parent constructor (parent class is the Object class). (eclipse-archived#2330)

Signed-off-by: Alexander Kostadinov <alexander.g.kostadinov@gmail.com>

Room and Outside temperature now working

Add support for set point temperature and mode.
Add support for heat level

New Library sinope-core 0.0.1 snapshot

Updated documentation

Update readme.md

Update readme.md

Update readme.md

Added Headers, Java Cleanup and Format

Formatting

Project compliance

Update readme.md

Implemented tests for the Wemo Binding. (eclipse-archived#2247)

During the test implementation several problems were found and some tests are
ignored.

Signed-off-by: Svilen Valkanov <svilen.valkanov@musala.com>

Fix FirmwareUpdateServiceOSGiTest - separate waitForAssert to check thing status and initial firmware status propagation (eclipse-archived#2301)

Signed-off-by: Thomas Höfer <t.hoefer@telekom.de>

Applied error class (eclipse-archived#2335)

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

Fixes eclipse-archived#2322 Basic UI no longer updates icons (eclipse-archived#2338)

* Fixes eclipse-archived#2322 Basic UI no longer updates icons

Signed-off-by: Wouter Born <eclipse@maindrain.net>

Implemented tests for NTP Binding (eclipse-archived#2243)

I have implemented several tests for the NTP Binding. Also, I have made small changes in the code of the NtpHandler and NtpBindingConstants

Signed-off-by: Petar Valchev <petar.valchev@musala.com>

renamed channelType to channelKind in the model (eclipse-archived#2342)

Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>

added meta data for audio and voice services (eclipse-archived#2339)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Implemented tests for FolderObserver (eclipse-archived#2074)

There are 8 test cases testing the functionality of
org.eclipse.smarthome.model.core.internal.folder.FolderObserver.
They check if the correct ModelRepository's methods are invoked
when certain events in the watched directory are triggered.

The tests are fixed in order to run properly on MacOS.

Markus comments are addressed.

Signed-off-by: Mihaela Memova <mihaela.memova@musala.com>

Fixes eclipse-archived#2332 Selection sitemap item does not show current selection after (eclipse-archived#2347)

Basic UI page (re)load

Signed-off-by: Wouter Born <eclipse@maindrain.net>

Fixed mistyped variable for Wemo binding OSGi tests. (eclipse-archived#2349)

Signed-off-by: Alexander Kostadinov <alexander.g.kostadinov@gmail.com>

disable NTP tests until issue is solved (eclipse-archived#2351)

Related to: eclipse-archived#2345
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

fix NTP test Eclipse's project settings

* remove maven nature from Groovy test project
* add Grovy project settings

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

increase timeout for NTP channel updates

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

fix NTP test eclipse launch configuration

* Remove a lot of UI bundles
* Add Apache Commons Collections (necessary for core)

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

enable NTP test again

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

initial contribution of Sonos AudioSink support (eclipse-archived#2306)

* initial contribution of Sonos AudioSink support

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* fix NPEs

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Changes in the FSInternetRadio binding. (eclipse-archived#2348)

Some changes are made in org.eclipse.smarthome.bindig.fsinternetradio.
They are mainly related to cleaning up some unneccessary checks and
code lines that can never be reached.
The HTTP client now is stopped with the deactivation of the bundle.
The hardcoded "fsapi" String is now extracted into an instance variable.

Signed-off-by: Mihaela Memova <mihaela.memova@musala.com>

Added SatisfiableRESTResource and SatisfiableResourceFilter and refactored all ESH RESTResource that have mandatory static dependencies to optional and dynamic and made them implement the new interface. (eclipse-archived#2320)

This is done in order to avoid deactivation/reactivation of RESTResources whenever some of their dependencies go missing as this in turn causes the entire Jersey model to reload which can be very very costly on weak CPU devices.
Instead when a dependency goes missing the SatisfiableResourceFilter will call the newly introduced SatisfiableRESTResource#isSatisfied before the matched resource method is executed and will return 503 Unavailable if the service is not satisfied.
Currently when a RESTResource is deactivated and Jersey is reloading the JAX RS OSGi Connector implementation will return 503 so the behaviour is consistent.

Signed-off-by: IVAN GEORGIEV ILIEV <ivan.iliev@musala.com>

improve "get port" mechanism (eclipse-archived#2331)

* improve "get port" mechanism

It is not mandatory that the system property is used for setting the
service port. So we should also respect the service property.

The configuration admin is e.g. used by Pax Web.

See also: http://felix.apache.org/documentation/subprojects/apache-felix-http-service.html
The service can both be configured using OSGi environment properties and
using Configuration Admin. ... If you use both methods, Configuration Admin
takes precedence.

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

Scheduler : fix eclipse-archived#2105 (eclipse-archived#2270)

Also-by: Markus Rathgeb <maggu2810@gmail.com>
Signed-off-by: Karel Goderis <karel.goderis@me.com>

Fix FirmwareUpdateServiceOSGiTest - separate waitForAssert to check thing status and initial firmware status propagation (eclipse-archived#2301)

Signed-off-by: Thomas Höfer <t.hoefer@telekom.de>

Applied error class (eclipse-archived#2335)

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

Fixes eclipse-archived#2322 Basic UI no longer updates icons (eclipse-archived#2338)

* Fixes eclipse-archived#2322 Basic UI no longer updates icons

Signed-off-by: Wouter Born <eclipse@maindrain.net>

Implemented tests for NTP Binding (eclipse-archived#2243)

I have implemented several tests for the NTP Binding. Also, I have made small changes in the code of the NtpHandler and NtpBindingConstants

Signed-off-by: Petar Valchev <petar.valchev@musala.com>

Squash'ed commit

Signed-off-by: chaton78 <plarin@gmail.com>

renamed channelType to channelKind in the model (eclipse-archived#2342)

Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>

added meta data for audio and voice services (eclipse-archived#2339)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Implemented tests for FolderObserver (eclipse-archived#2074)

There are 8 test cases testing the functionality of
org.eclipse.smarthome.model.core.internal.folder.FolderObserver.
They check if the correct ModelRepository's methods are invoked
when certain events in the watched directory are triggered.

The tests are fixed in order to run properly on MacOS.

Markus comments are addressed.

Signed-off-by: Mihaela Memova <mihaela.memova@musala.com>

Fixes eclipse-archived#2332 Selection sitemap item does not show current selection after (eclipse-archived#2347)

Basic UI page (re)load

Signed-off-by: Wouter Born <eclipse@maindrain.net>

Fixed mistyped variable for Wemo binding OSGi tests. (eclipse-archived#2349)

Signed-off-by: Alexander Kostadinov <alexander.g.kostadinov@gmail.com>

disable NTP tests until issue is solved (eclipse-archived#2351)

Related to: eclipse-archived#2345
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

fix NTP test eclipse launch configuration

* Remove a lot of UI bundles
* Add Apache Commons Collections (necessary for core)

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

Squashed commits

Signed-off-by: chaton78 <plarin@gmail.com>

enable NTP test again

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

initial contribution of Sonos AudioSink support (eclipse-archived#2306)

* initial contribution of Sonos AudioSink support

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* fix NPEs

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Changes in the FSInternetRadio binding. (eclipse-archived#2348)

Some changes are made in org.eclipse.smarthome.bindig.fsinternetradio.
They are mainly related to cleaning up some unneccessary checks and
code lines that can never be reached.
The HTTP client now is stopped with the deactivation of the bundle.
The hardcoded "fsapi" String is now extracted into an instance variable.

Signed-off-by: Mihaela Memova <mihaela.memova@musala.com>

Added SatisfiableRESTResource and SatisfiableResourceFilter and refactored all ESH RESTResource that have mandatory static dependencies to optional and dynamic and made them implement the new interface. (eclipse-archived#2320)

This is done in order to avoid deactivation/reactivation of RESTResources whenever some of their dependencies go missing as this in turn causes the entire Jersey model to reload which can be very very costly on weak CPU devices.
Instead when a dependency goes missing the SatisfiableResourceFilter will call the newly introduced SatisfiableRESTResource#isSatisfied before the matched resource method is executed and will return 503 Unavailable if the service is not satisfied.
Currently when a RESTResource is deactivated and Jersey is reloading the JAX RS OSGi Connector implementation will return 503 so the behaviour is consistent.

Signed-off-by: IVAN GEORGIEV ILIEV <ivan.iliev@musala.com>

improve "get port" mechanism (eclipse-archived#2331)

* improve "get port" mechanism

It is not mandatory that the system property is used for setting the
service port. So we should also respect the service property.

The configuration admin is e.g. used by Pax Web.

See also: http://felix.apache.org/documentation/subprojects/apache-felix-http-service.html
The service can both be configured using OSGi environment properties and
using Configuration Admin. ... If you use both methods, Configuration Admin
takes precedence.

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

Scheduler : fix eclipse-archived#2105 (eclipse-archived#2270)

Also-by: Markus Rathgeb <maggu2810@gmail.com>
Signed-off-by: Karel Goderis <karel.goderis@me.com>

allow referencing a channel type in the DSL (eclipse-archived#2343)

in the Thing DSL it is possible to define channels manually.
However, it was not possible so far to reference a binding's
channel type which is defined in the XMLs.

Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>

fixed UpnpDiscoveryService to call thingDiscovered for each RemoteDevice already available in the upnp registry (eclipse-archived#2367)

Signed-off-by: Andre Fuechsel <andre.fuechsel@telekom.de>

Refactored automation.core module && adapted to use Declarative Services (eclipse-archived#2194)

Signed-off-by: Vasil Ilchev <v.ilchev@prosyst.bg>

NTP Binding Tests Fix (eclipse-archived#2377)

Fixed the bug in the NTP Binding, related to the time change.

Signed-off-by: Petar Valchev <petar.valchev@musala.com>

avoid NPE if no services are found (eclipse-archived#2373)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Changed AudioHTTPServer to return relative urls instead of absolute (eclipse-archived#2374)

This moves the responsibility of constructing the absolute url to call to the consumer - which is imho the much better approach, as e.g. a consumer like a web browser might request it remotely (from a different network) and thus only it knows which server+port to contact (and with this to avoid any cross origin problems).

- adapted Sonos binding to make relative url absolute
- added configuration parameter for callback url to Sonos binding (if not set, heuristic approach through scanning available network interfaces is taken)
- tested it also successfully with webaudio sink in Paper UI

Signed-off-by: Kai Kreuzer <kai@openhab.org>

removed duplicate thing and channel definitions (looks like they are still there only by accident) (eclipse-archived#2375)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Added space above channel group name (eclipse-archived#2382)

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

converting state types into accepted type before sending item state events (eclipse-archived#2334)

fixes eclipse-archived#2253
Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>

Allow to define channel labels in the DSL (eclipse-archived#2381)

Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>

Prevent scriptarea from overlapping with outputs (eclipse-archived#2346)

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

SetupPageController tests (eclipse-archived#2358)

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

Removed readOnly switch's state text (eclipse-archived#2336)

* Hide readOnly item
* Removed switch item state text

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

Support multiselect with custom values (eclipse-archived#2355)

* Support multiselect with custom values

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

Use jQuery-ui from npm (eclipse-archived#2385)

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

Supported contexts' documentation (eclipse-archived#2168)

Supported contexts' documentation

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

fix Paper UI build (eclipse-archived#2317)

Fixes: eclipse-archived#2219
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

Updated Thing types Sample left-over.

Updated pom.xml

Signed-off-by: chaton78 <plarin@gmail.com>

Update Config comments

Signed-off-by: Pascal Larin <plarin@gmail.com>

Squashed Commits

Signed-off-by: chaton78 <plarin@gmail.com>
chaton78 added a commit to chaton78/smarthome that referenced this issue Nov 8, 2016
Fix NPE in RulesItemRefresher which occurs during shutdown (#2263)

Signed-off-by: Michael Vorburger <mike@vorburger.ch>

adapted groovy version (#2265)

Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>

defer creation of sound input until its first use (#2261)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Bug fix: item creation while channel linking (#2262)

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

added Karaf feature for rest.voice (#2273)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

removing generics from OSGiTest base class (#2274)

since the framework requires minimum OSGi version 4.2
Generics was added  to ServiceReference in OSGi v.4.3

Signed-off-by: Miki Jankov <miki.jankov87@gmail.com>

Contribution of an HumanLanguageInterpreter that allows to process voice commands in DSL rules (#2272)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

replaced apache by jetty http client (#2275)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

fetch supported locales only once instead of three times (#2276)

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

added sitemap event subscription mechanism (#2030)

* added sitemap event subscription mechanism

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* allow setting the current page on the initial request and added logging

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* BasicUI: SSE sitemap events support (#5)

Signed-off-by: Vlad Ivanov <vlad-mbx@ya.ru>

* added clean up of closed SSE connections

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* avoided servlet exception on unknown subscription id

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* BasicUI: refactor: move some template processing code to abstract class

Signed-off-by: Vlad Ivanov <vlad-mbx@ya.ru>

* BasicUI: fix widget referencing for SSE stream

Signed-off-by: Vlad Ivanov <vlad-mbx@ya.ru>

* BasicUI: fix icon and value update for some widgets

Signed-off-by: Vlad Ivanov <vlad-mbx@ya.ru>

* BasicUI: remove test logging

Signed-off-by: Vlad Ivanov <vlad-mbx@ya.ru>

* refactored code to avoid duplicate events

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* fixed cleanup of page change listeners

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* also consider change events of group items

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Dbus transport fixes (#2280)

* fix indentation
* add dbus transport bundle aggregate io pom
* fix version
* add karaf feature

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

fix type in javasound pom (#2279)

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

Type: differ between a full and simple string representation (#2230)

* Type: differ between full string representation and toString()
* The full string representation must be compatible to the static
  `valueOf(String)` method of the respective Type implementation.
* The toString() returned representation should be as usable a concise
  but informative representation that is easy for a concise but
  informative representation that is easy for a person to read. It does
  not need to be compatible to the `valueOf(String)` method of the
  respective Type implementation.

So, whenever you need a representation that can be consumed by
`valueOf(String)` later, you should use the full string representation.

Until now `toString()` returned the full string representation which has
been changed now.
If you rely on a representation that can be consumed by
`valueOf(String)` later, you need to adapt your code.

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

easy way to add third party JARs to TP for development only (#2283)

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

fix esh-ui-basic feature dependencies (#2284)

Fixes: https://github.com/eclipse/smarthome/issues/2281
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

addressed performance worries (#2288)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Send sitemap events on sitemap visibility updates (#2290)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

extended firmware version test by additional assertions required for a binding that will use a combined firmware version, i.e. a version that consist of actual two versions (#2244)

Signed-off-by: Thomas Höfer <t.hoefer@telekom.de>

Create an action which can enable or disable a set of rules. (#1914)

Signed-off-by: Plamen Peev <p.peev@prosyst.bg>

add capability to feature because it is missing in the bundle manifest (#2291)

Adds for I18nProvider service capability as it is missing in the
esh.core bundle manifest

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

Introduction of an AudioServlet to provide audio streams through HTTP (#2287)

* Introduction of an AudioServlet to provide audio streams through HTTP

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* fixed missing stream removal

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Fix for #2249; Add handling of REFRESH command and introduce lastMotionDetected channel for MotionSensor (#2277)

Signed-off-by: Hans-Jörg Merk <hans-joerg.merk@t-online.de>

changed volume of AudioSink from float to PercentType (#2286)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

temporarily ignore failing test (#2293)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Rewind and Fast forward in player widget (#2292)

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

BasicUI updates (#2294)

* BasicUI: sitemap visibility events support
* BasicUI: fix text widget icon update

Signed-off-by: Vlad Ivanov <vlad-mbx@ya.ru>

Implemented configuration status handling for hue bridge. (#1819)

Signed-off-by: Alexander Kostadinov <alexander.g.kostadinov@gmail.com>

updated license headers of archetype (#2296)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

check for uniqueness of channels (#2266)

...in ThingHelper and ThingBuilder so no duplicate channels can be created.

The ChannelUID is used as the only parameter as it defines the identity
of a Channel.

fixes #2256
fixes #2210
Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>
Also-by: Markus Rathgeb <maggu2810@gmail.com>

Changed ESH-PREFIX and cleaned up warnings (#2298)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

remove error message on successful thing creation (#2299)

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

Added X-Accel-Buffering=no header to SSE response in order to disable response buffering when using nginx as a proxy server. (#2300)

This allows you to use nginx proxy buffering and still have working SSE.

Signed-off-by: IVAN GEORGIEV ILIEV <ivan.iliev@musala.com>

Some improvements on audio streams: (#2302)

- Introduced FixedLengthAudioStream
- Provide Content-Length in AudioServlet
- Ignore file extensions in urls in AudioServlet
- added ability to reset a FileAudioStream

Signed-off-by: Kai Kreuzer <kai@openhab.org>

some code cleanup on sonos (#2303)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Set the notification sound volume on first access instead of initialisation (#2307)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

added support to serve a single AudioStream multiple times concurrently through HTTP (#2305)

* added support to serve a single AudioStream multiple times concurrently through HTTP

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* incorporated review feedback

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Audio servlet improvements (#2310)

* use seconds directly
* reorder code to allow usage of try-with-resources

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

adapted MacTTS to use FixedLengthAudioStream (#2311)

* adapted MacTTS to use FixedLengthAudioStream

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* set length only once

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* removed null check

Signed-off-by: Kai Kreuzer <kai@openhab.org>

persisting group functions in the ManagedItemProvider (#2309)

fixes #2269
Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>

initial contribution of a web audio sink (#2313)

* initial contribution of a web audio sink

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* Make sure that streams are closed correctly.

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Support audio events (#2314)

* Support audio events

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

BasicUI: minor fixes (#2316)

Signed-off-by: Vlad Ivanov <vlad-mbx@ya.ru>

add capability to feature because it is missing in the bundle manifest (#2319)

Adds for AudioHTTPServer service capability as it is missing in the
esh.core.audio bundle manifest

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

[LIFX] FindBugs issues fix (#2318)

* Unlock lightCounterLock when exceptions occur
* Potential NPE in handlePowerStatus

Signed-off-by: Wouter Born <eclipse@maindrain.net>

Improved README files for all bindings (typos, grammar, text). (#2328)

Signed-off-by: Alexander Kostadinov <alexander.g.kostadinov@gmail.com>

Removed unnecessary explicit call of parent constructor (parent class is the Object class). (#2330)

Signed-off-by: Alexander Kostadinov <alexander.g.kostadinov@gmail.com>

Room and Outside temperature now working

Add support for set point temperature and mode.
Add support for heat level

New Library sinope-core 0.0.1 snapshot

Updated documentation

Update readme.md

Update readme.md

Update readme.md

Added Headers, Java Cleanup and Format

Formatting

Project compliance

Update readme.md

Implemented tests for the Wemo Binding. (#2247)

During the test implementation several problems were found and some tests are
ignored.

Signed-off-by: Svilen Valkanov <svilen.valkanov@musala.com>

Fix FirmwareUpdateServiceOSGiTest - separate waitForAssert to check thing status and initial firmware status propagation (#2301)

Signed-off-by: Thomas Höfer <t.hoefer@telekom.de>

Applied error class (#2335)

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

Fixes #2322 Basic UI no longer updates icons (#2338)

* Fixes #2322 Basic UI no longer updates icons

Signed-off-by: Wouter Born <eclipse@maindrain.net>

Implemented tests for NTP Binding (#2243)

I have implemented several tests for the NTP Binding. Also, I have made small changes in the code of the NtpHandler and NtpBindingConstants

Signed-off-by: Petar Valchev <petar.valchev@musala.com>

renamed channelType to channelKind in the model (#2342)

Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>

added meta data for audio and voice services (#2339)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Implemented tests for FolderObserver (#2074)

There are 8 test cases testing the functionality of
org.eclipse.smarthome.model.core.internal.folder.FolderObserver.
They check if the correct ModelRepository's methods are invoked
when certain events in the watched directory are triggered.

The tests are fixed in order to run properly on MacOS.

Markus comments are addressed.

Signed-off-by: Mihaela Memova <mihaela.memova@musala.com>

Fixes #2332 Selection sitemap item does not show current selection after (#2347)

Basic UI page (re)load

Signed-off-by: Wouter Born <eclipse@maindrain.net>

Fixed mistyped variable for Wemo binding OSGi tests. (#2349)

Signed-off-by: Alexander Kostadinov <alexander.g.kostadinov@gmail.com>

disable NTP tests until issue is solved (#2351)

Related to: https://github.com/eclipse/smarthome/issues/2345
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

fix NTP test Eclipse's project settings

* remove maven nature from Groovy test project
* add Grovy project settings

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

increase timeout for NTP channel updates

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

fix NTP test eclipse launch configuration

* Remove a lot of UI bundles
* Add Apache Commons Collections (necessary for core)

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

enable NTP test again

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

initial contribution of Sonos AudioSink support (#2306)

* initial contribution of Sonos AudioSink support

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* fix NPEs

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Changes in the FSInternetRadio binding. (#2348)

Some changes are made in org.eclipse.smarthome.bindig.fsinternetradio.
They are mainly related to cleaning up some unneccessary checks and
code lines that can never be reached.
The HTTP client now is stopped with the deactivation of the bundle.
The hardcoded "fsapi" String is now extracted into an instance variable.

Signed-off-by: Mihaela Memova <mihaela.memova@musala.com>

Added SatisfiableRESTResource and SatisfiableResourceFilter and refactored all ESH RESTResource that have mandatory static dependencies to optional and dynamic and made them implement the new interface. (#2320)

This is done in order to avoid deactivation/reactivation of RESTResources whenever some of their dependencies go missing as this in turn causes the entire Jersey model to reload which can be very very costly on weak CPU devices.
Instead when a dependency goes missing the SatisfiableResourceFilter will call the newly introduced SatisfiableRESTResource#isSatisfied before the matched resource method is executed and will return 503 Unavailable if the service is not satisfied.
Currently when a RESTResource is deactivated and Jersey is reloading the JAX RS OSGi Connector implementation will return 503 so the behaviour is consistent.

Signed-off-by: IVAN GEORGIEV ILIEV <ivan.iliev@musala.com>

improve "get port" mechanism (#2331)

* improve "get port" mechanism

It is not mandatory that the system property is used for setting the
service port. So we should also respect the service property.

The configuration admin is e.g. used by Pax Web.

See also: http://felix.apache.org/documentation/subprojects/apache-felix-http-service.html
The service can both be configured using OSGi environment properties and
using Configuration Admin. ... If you use both methods, Configuration Admin
takes precedence.

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

Scheduler : fix #2105 (#2270)

Also-by: Markus Rathgeb <maggu2810@gmail.com>
Signed-off-by: Karel Goderis <karel.goderis@me.com>

Implemented tests for the Wemo Binding. (#2247)

During the test implementation several problems were found and some tests are
ignored.

Signed-off-by: Svilen Valkanov <svilen.valkanov@musala.com>

Fix FirmwareUpdateServiceOSGiTest - separate waitForAssert to check thing status and initial firmware status propagation (#2301)

Signed-off-by: Thomas Höfer <t.hoefer@telekom.de>

Applied error class (#2335)

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

Fixes #2322 Basic UI no longer updates icons (#2338)

* Fixes #2322 Basic UI no longer updates icons

Signed-off-by: Wouter Born <eclipse@maindrain.net>

Implemented tests for NTP Binding (#2243)

I have implemented several tests for the NTP Binding. Also, I have made small changes in the code of the NtpHandler and NtpBindingConstants

Signed-off-by: Petar Valchev <petar.valchev@musala.com>

renamed channelType to channelKind in the model (#2342)

Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>

added meta data for audio and voice services (#2339)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Implemented tests for FolderObserver (#2074)

There are 8 test cases testing the functionality of
org.eclipse.smarthome.model.core.internal.folder.FolderObserver.
They check if the correct ModelRepository's methods are invoked
when certain events in the watched directory are triggered.

The tests are fixed in order to run properly on MacOS.

Markus comments are addressed.

Signed-off-by: Mihaela Memova <mihaela.memova@musala.com>

Fixes #2332 Selection sitemap item does not show current selection after (#2347)

Basic UI page (re)load

Signed-off-by: Wouter Born <eclipse@maindrain.net>

Fixed mistyped variable for Wemo binding OSGi tests. (#2349)

Signed-off-by: Alexander Kostadinov <alexander.g.kostadinov@gmail.com>

disable NTP tests until issue is solved (#2351)

Related to: https://github.com/eclipse/smarthome/issues/2345
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

fix NTP test Eclipse's project settings

* remove maven nature from Groovy test project
* add Grovy project settings

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

increase timeout for NTP channel updates

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

fix NTP test eclipse launch configuration

* Remove a lot of UI bundles
* Add Apache Commons Collections (necessary for core)

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

enable NTP test again

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

initial contribution of Sonos AudioSink support (#2306)

* initial contribution of Sonos AudioSink support

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* fix NPEs

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Changes in the FSInternetRadio binding. (#2348)

Some changes are made in org.eclipse.smarthome.bindig.fsinternetradio.
They are mainly related to cleaning up some unneccessary checks and
code lines that can never be reached.
The HTTP client now is stopped with the deactivation of the bundle.
The hardcoded "fsapi" String is now extracted into an instance variable.

Signed-off-by: Mihaela Memova <mihaela.memova@musala.com>

Added SatisfiableRESTResource and SatisfiableResourceFilter and refactored all ESH RESTResource that have mandatory static dependencies to optional and dynamic and made them implement the new interface. (#2320)

This is done in order to avoid deactivation/reactivation of RESTResources whenever some of their dependencies go missing as this in turn causes the entire Jersey model to reload which can be very very costly on weak CPU devices.
Instead when a dependency goes missing the SatisfiableResourceFilter will call the newly introduced SatisfiableRESTResource#isSatisfied before the matched resource method is executed and will return 503 Unavailable if the service is not satisfied.
Currently when a RESTResource is deactivated and Jersey is reloading the JAX RS OSGi Connector implementation will return 503 so the behaviour is consistent.

Signed-off-by: IVAN GEORGIEV ILIEV <ivan.iliev@musala.com>

improve "get port" mechanism (#2331)

* improve "get port" mechanism

It is not mandatory that the system property is used for setting the
service port. So we should also respect the service property.

The configuration admin is e.g. used by Pax Web.

See also: http://felix.apache.org/documentation/subprojects/apache-felix-http-service.html
The service can both be configured using OSGi environment properties and
using Configuration Admin. ... If you use both methods, Configuration Admin
takes precedence.

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

Scheduler : fix #2105 (#2270)

Also-by: Markus Rathgeb <maggu2810@gmail.com>
Signed-off-by: Karel Goderis <karel.goderis@me.com>

allow referencing a channel type in the DSL (#2343)

in the Thing DSL it is possible to define channels manually.
However, it was not possible so far to reference a binding's
channel type which is defined in the XMLs.

Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>

fixed UpnpDiscoveryService to call thingDiscovered for each RemoteDevice already available in the upnp registry (#2367)

Signed-off-by: Andre Fuechsel <andre.fuechsel@telekom.de>

Refactored automation.core module && adapted to use Declarative Services (#2194)

Signed-off-by: Vasil Ilchev <v.ilchev@prosyst.bg>

NTP Binding Tests Fix (#2377)

Fixed the bug in the NTP Binding, related to the time change.

Signed-off-by: Petar Valchev <petar.valchev@musala.com>

avoid NPE if no services are found (#2373)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Changed AudioHTTPServer to return relative urls instead of absolute (#2374)

This moves the responsibility of constructing the absolute url to call to the consumer - which is imho the much better approach, as e.g. a consumer like a web browser might request it remotely (from a different network) and thus only it knows which server+port to contact (and with this to avoid any cross origin problems).

- adapted Sonos binding to make relative url absolute
- added configuration parameter for callback url to Sonos binding (if not set, heuristic approach through scanning available network interfaces is taken)
- tested it also successfully with webaudio sink in Paper UI

Signed-off-by: Kai Kreuzer <kai@openhab.org>

removed duplicate thing and channel definitions (looks like they are still there only by accident) (#2375)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Added space above channel group name (#2382)

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

converting state types into accepted type before sending item state events (#2334)

fixes #2253
Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>

Allow to define channel labels in the DSL (#2381)

Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>

Prevent scriptarea from overlapping with outputs (#2346)

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

SetupPageController tests (#2358)

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

Removed readOnly switch's state text (#2336)

* Hide readOnly item
* Removed switch item state text

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

Support multiselect with custom values (#2355)

* Support multiselect with custom values

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

Use jQuery-ui from npm (#2385)

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

Supported contexts' documentation (#2168)

Supported contexts' documentation

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

fix Paper UI build (#2317)

Fixes: https://github.com/eclipse/smarthome/issues/2219
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

Updated Thing types Sample left-over.

Updated pom.xml

Signed-off-by: chaton78 <plarin@gmail.com>

Update Config comments

Signed-off-by: Pascal Larin <plarin@gmail.com>

Initial Release

Signed-off-by: chaton78 <plarin@gmail.com>

Fix NPE in RulesItemRefresher which occurs during shutdown (#2263)

Signed-off-by: Michael Vorburger <mike@vorburger.ch>

adapted groovy version (#2265)

Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>

defer creation of sound input until its first use (#2261)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Bug fix: item creation while channel linking (#2262)

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

added Karaf feature for rest.voice (#2273)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

removing generics from OSGiTest base class (#2274)

since the framework requires minimum OSGi version 4.2
Generics was added  to ServiceReference in OSGi v.4.3

Signed-off-by: Miki Jankov <miki.jankov87@gmail.com>

Contribution of an HumanLanguageInterpreter that allows to process voice commands in DSL rules (#2272)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

replaced apache by jetty http client (#2275)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

fetch supported locales only once instead of three times (#2276)

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

added sitemap event subscription mechanism (#2030)

* added sitemap event subscription mechanism

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* allow setting the current page on the initial request and added logging

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* BasicUI: SSE sitemap events support (#5)

Signed-off-by: Vlad Ivanov <vlad-mbx@ya.ru>

* added clean up of closed SSE connections

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* avoided servlet exception on unknown subscription id

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* BasicUI: refactor: move some template processing code to abstract class

Signed-off-by: Vlad Ivanov <vlad-mbx@ya.ru>

* BasicUI: fix widget referencing for SSE stream

Signed-off-by: Vlad Ivanov <vlad-mbx@ya.ru>

* BasicUI: fix icon and value update for some widgets

Signed-off-by: Vlad Ivanov <vlad-mbx@ya.ru>

* BasicUI: remove test logging

Signed-off-by: Vlad Ivanov <vlad-mbx@ya.ru>

* refactored code to avoid duplicate events

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* fixed cleanup of page change listeners

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* also consider change events of group items

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Dbus transport fixes (#2280)

* fix indentation
* add dbus transport bundle aggregate io pom
* fix version
* add karaf feature

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

fix type in javasound pom (#2279)

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

Type: differ between a full and simple string representation (#2230)

* Type: differ between full string representation and toString()
* The full string representation must be compatible to the static
  `valueOf(String)` method of the respective Type implementation.
* The toString() returned representation should be as usable a concise
  but informative representation that is easy for a concise but
  informative representation that is easy for a person to read. It does
  not need to be compatible to the `valueOf(String)` method of the
  respective Type implementation.

So, whenever you need a representation that can be consumed by
`valueOf(String)` later, you should use the full string representation.

Until now `toString()` returned the full string representation which has
been changed now.
If you rely on a representation that can be consumed by
`valueOf(String)` later, you need to adapt your code.

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

easy way to add third party JARs to TP for development only (#2283)

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

fix esh-ui-basic feature dependencies (#2284)

Fixes: https://github.com/eclipse/smarthome/issues/2281
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

addressed performance worries (#2288)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Send sitemap events on sitemap visibility updates (#2290)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

extended firmware version test by additional assertions required for a binding that will use a combined firmware version, i.e. a version that consist of actual two versions (#2244)

Signed-off-by: Thomas Höfer <t.hoefer@telekom.de>

Create an action which can enable or disable a set of rules. (#1914)

Signed-off-by: Plamen Peev <p.peev@prosyst.bg>

add capability to feature because it is missing in the bundle manifest (#2291)

Adds for I18nProvider service capability as it is missing in the
esh.core bundle manifest

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

Introduction of an AudioServlet to provide audio streams through HTTP (#2287)

* Introduction of an AudioServlet to provide audio streams through HTTP

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* fixed missing stream removal

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Fix for #2249; Add handling of REFRESH command and introduce lastMotionDetected channel for MotionSensor (#2277)

Signed-off-by: Hans-Jörg Merk <hans-joerg.merk@t-online.de>

changed volume of AudioSink from float to PercentType (#2286)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

temporarily ignore failing test (#2293)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Rewind and Fast forward in player widget (#2292)

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

BasicUI updates (#2294)

* BasicUI: sitemap visibility events support
* BasicUI: fix text widget icon update

Signed-off-by: Vlad Ivanov <vlad-mbx@ya.ru>

Implemented configuration status handling for hue bridge. (#1819)

Signed-off-by: Alexander Kostadinov <alexander.g.kostadinov@gmail.com>

updated license headers of archetype (#2296)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

check for uniqueness of channels (#2266)

...in ThingHelper and ThingBuilder so no duplicate channels can be created.

The ChannelUID is used as the only parameter as it defines the identity
of a Channel.

fixes #2256
fixes #2210
Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>
Also-by: Markus Rathgeb <maggu2810@gmail.com>

Changed ESH-PREFIX and cleaned up warnings (#2298)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

remove error message on successful thing creation (#2299)

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

Added X-Accel-Buffering=no header to SSE response in order to disable response buffering when using nginx as a proxy server. (#2300)

This allows you to use nginx proxy buffering and still have working SSE.

Signed-off-by: IVAN GEORGIEV ILIEV <ivan.iliev@musala.com>

Some improvements on audio streams: (#2302)

- Introduced FixedLengthAudioStream
- Provide Content-Length in AudioServlet
- Ignore file extensions in urls in AudioServlet
- added ability to reset a FileAudioStream

Signed-off-by: Kai Kreuzer <kai@openhab.org>

some code cleanup on sonos (#2303)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Set the notification sound volume on first access instead of initialisation (#2307)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

added support to serve a single AudioStream multiple times concurrently through HTTP (#2305)

* added support to serve a single AudioStream multiple times concurrently through HTTP

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* incorporated review feedback

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Audio servlet improvements (#2310)

* use seconds directly
* reorder code to allow usage of try-with-resources

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

adapted MacTTS to use FixedLengthAudioStream (#2311)

* adapted MacTTS to use FixedLengthAudioStream

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* set length only once

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* removed null check

Signed-off-by: Kai Kreuzer <kai@openhab.org>

persisting group functions in the ManagedItemProvider (#2309)

fixes #2269
Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>

initial contribution of a web audio sink (#2313)

* initial contribution of a web audio sink

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* Make sure that streams are closed correctly.

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Support audio events (#2314)

* Support audio events

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

BasicUI: minor fixes (#2316)

Signed-off-by: Vlad Ivanov <vlad-mbx@ya.ru>

add capability to feature because it is missing in the bundle manifest (#2319)

Adds for AudioHTTPServer service capability as it is missing in the
esh.core.audio bundle manifest

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

[LIFX] FindBugs issues fix (#2318)

* Unlock lightCounterLock when exceptions occur
* Potential NPE in handlePowerStatus

Signed-off-by: Wouter Born <eclipse@maindrain.net>

Improved README files for all bindings (typos, grammar, text). (#2328)

Signed-off-by: Alexander Kostadinov <alexander.g.kostadinov@gmail.com>

Removed unnecessary explicit call of parent constructor (parent class is the Object class). (#2330)

Signed-off-by: Alexander Kostadinov <alexander.g.kostadinov@gmail.com>

Room and Outside temperature now working

Add support for set point temperature and mode.
Add support for heat level

New Library sinope-core 0.0.1 snapshot

Updated documentation

Update readme.md

Update readme.md

Update readme.md

Added Headers, Java Cleanup and Format

Formatting

Project compliance

Update readme.md

Implemented tests for the Wemo Binding. (#2247)

During the test implementation several problems were found and some tests are
ignored.

Signed-off-by: Svilen Valkanov <svilen.valkanov@musala.com>

Fix FirmwareUpdateServiceOSGiTest - separate waitForAssert to check thing status and initial firmware status propagation (#2301)

Signed-off-by: Thomas Höfer <t.hoefer@telekom.de>

Applied error class (#2335)

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

Fixes #2322 Basic UI no longer updates icons (#2338)

* Fixes #2322 Basic UI no longer updates icons

Signed-off-by: Wouter Born <eclipse@maindrain.net>

Implemented tests for NTP Binding (#2243)

I have implemented several tests for the NTP Binding. Also, I have made small changes in the code of the NtpHandler and NtpBindingConstants

Signed-off-by: Petar Valchev <petar.valchev@musala.com>

renamed channelType to channelKind in the model (#2342)

Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>

added meta data for audio and voice services (#2339)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Implemented tests for FolderObserver (#2074)

There are 8 test cases testing the functionality of
org.eclipse.smarthome.model.core.internal.folder.FolderObserver.
They check if the correct ModelRepository's methods are invoked
when certain events in the watched directory are triggered.

The tests are fixed in order to run properly on MacOS.

Markus comments are addressed.

Signed-off-by: Mihaela Memova <mihaela.memova@musala.com>

Fixes #2332 Selection sitemap item does not show current selection after (#2347)

Basic UI page (re)load

Signed-off-by: Wouter Born <eclipse@maindrain.net>

Fixed mistyped variable for Wemo binding OSGi tests. (#2349)

Signed-off-by: Alexander Kostadinov <alexander.g.kostadinov@gmail.com>

disable NTP tests until issue is solved (#2351)

Related to: https://github.com/eclipse/smarthome/issues/2345
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

fix NTP test Eclipse's project settings

* remove maven nature from Groovy test project
* add Grovy project settings

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

increase timeout for NTP channel updates

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

fix NTP test eclipse launch configuration

* Remove a lot of UI bundles
* Add Apache Commons Collections (necessary for core)

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

enable NTP test again

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

initial contribution of Sonos AudioSink support (#2306)

* initial contribution of Sonos AudioSink support

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* fix NPEs

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Changes in the FSInternetRadio binding. (#2348)

Some changes are made in org.eclipse.smarthome.bindig.fsinternetradio.
They are mainly related to cleaning up some unneccessary checks and
code lines that can never be reached.
The HTTP client now is stopped with the deactivation of the bundle.
The hardcoded "fsapi" String is now extracted into an instance variable.

Signed-off-by: Mihaela Memova <mihaela.memova@musala.com>

Added SatisfiableRESTResource and SatisfiableResourceFilter and refactored all ESH RESTResource that have mandatory static dependencies to optional and dynamic and made them implement the new interface. (#2320)

This is done in order to avoid deactivation/reactivation of RESTResources whenever some of their dependencies go missing as this in turn causes the entire Jersey model to reload which can be very very costly on weak CPU devices.
Instead when a dependency goes missing the SatisfiableResourceFilter will call the newly introduced SatisfiableRESTResource#isSatisfied before the matched resource method is executed and will return 503 Unavailable if the service is not satisfied.
Currently when a RESTResource is deactivated and Jersey is reloading the JAX RS OSGi Connector implementation will return 503 so the behaviour is consistent.

Signed-off-by: IVAN GEORGIEV ILIEV <ivan.iliev@musala.com>

improve "get port" mechanism (#2331)

* improve "get port" mechanism

It is not mandatory that the system property is used for setting the
service port. So we should also respect the service property.

The configuration admin is e.g. used by Pax Web.

See also: http://felix.apache.org/documentation/subprojects/apache-felix-http-service.html
The service can both be configured using OSGi environment properties and
using Configuration Admin. ... If you use both methods, Configuration Admin
takes precedence.

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

Scheduler : fix #2105 (#2270)

Also-by: Markus Rathgeb <maggu2810@gmail.com>
Signed-off-by: Karel Goderis <karel.goderis@me.com>

Fix FirmwareUpdateServiceOSGiTest - separate waitForAssert to check thing status and initial firmware status propagation (#2301)

Signed-off-by: Thomas Höfer <t.hoefer@telekom.de>

Applied error class (#2335)

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

Fixes #2322 Basic UI no longer updates icons (#2338)

* Fixes #2322 Basic UI no longer updates icons

Signed-off-by: Wouter Born <eclipse@maindrain.net>

Implemented tests for NTP Binding (#2243)

I have implemented several tests for the NTP Binding. Also, I have made small changes in the code of the NtpHandler and NtpBindingConstants

Signed-off-by: Petar Valchev <petar.valchev@musala.com>

Squash'ed commit

Signed-off-by: chaton78 <plarin@gmail.com>

renamed channelType to channelKind in the model (#2342)

Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>

added meta data for audio and voice services (#2339)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Implemented tests for FolderObserver (#2074)

There are 8 test cases testing the functionality of
org.eclipse.smarthome.model.core.internal.folder.FolderObserver.
They check if the correct ModelRepository's methods are invoked
when certain events in the watched directory are triggered.

The tests are fixed in order to run properly on MacOS.

Markus comments are addressed.

Signed-off-by: Mihaela Memova <mihaela.memova@musala.com>

Fixes #2332 Selection sitemap item does not show current selection after (#2347)

Basic UI page (re)load

Signed-off-by: Wouter Born <eclipse@maindrain.net>

Fixed mistyped variable for Wemo binding OSGi tests. (#2349)

Signed-off-by: Alexander Kostadinov <alexander.g.kostadinov@gmail.com>

disable NTP tests until issue is solved (#2351)

Related to: https://github.com/eclipse/smarthome/issues/2345
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

fix NTP test eclipse launch configuration

* Remove a lot of UI bundles
* Add Apache Commons Collections (necessary for core)

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

Squashed commits

Signed-off-by: chaton78 <plarin@gmail.com>

enable NTP test again

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

initial contribution of Sonos AudioSink support (#2306)

* initial contribution of Sonos AudioSink support

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* fix NPEs

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Changes in the FSInternetRadio binding. (#2348)

Some changes are made in org.eclipse.smarthome.bindig.fsinternetradio.
They are mainly related to cleaning up some unneccessary checks and
code lines that can never be reached.
The HTTP client now is stopped with the deactivation of the bundle.
The hardcoded "fsapi" String is now extracted into an instance variable.

Signed-off-by: Mihaela Memova <mihaela.memova@musala.com>

Added SatisfiableRESTResource and SatisfiableResourceFilter and refactored all ESH RESTResource that have mandatory static dependencies to optional and dynamic and made them implement the new interface. (#2320)

This is done in order to avoid deactivation/reactivation of RESTResources whenever some of their dependencies go missing as this in turn causes the entire Jersey model to reload which can be very very costly on weak CPU devices.
Instead when a dependency goes missing the SatisfiableResourceFilter will call the newly introduced SatisfiableRESTResource#isSatisfied before the matched resource method is executed and will return 503 Unavailable if the service is not satisfied.
Currently when a RESTResource is deactivated and Jersey is reloading the JAX RS OSGi Connector implementation will return 503 so the behaviour is consistent.

Signed-off-by: IVAN GEORGIEV ILIEV <ivan.iliev@musala.com>

improve "get port" mechanism (#2331)

* improve "get port" mechanism

It is not mandatory that the system property is used for setting the
service port. So we should also respect the service property.

The configuration admin is e.g. used by Pax Web.

See also: http://felix.apache.org/documentation/subprojects/apache-felix-http-service.html
The service can both be configured using OSGi environment properties and
using Configuration Admin. ... If you use both methods, Configuration Admin
takes precedence.

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

Scheduler : fix #2105 (#2270)

Also-by: Markus Rathgeb <maggu2810@gmail.com>
Signed-off-by: Karel Goderis <karel.goderis@me.com>

allow referencing a channel type in the DSL (#2343)

in the Thing DSL it is possible to define channels manually.
However, it was not possible so far to reference a binding's
channel type which is defined in the XMLs.

Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>

fixed UpnpDiscoveryService to call thingDiscovered for each RemoteDevice already available in the upnp registry (#2367)

Signed-off-by: Andre Fuechsel <andre.fuechsel@telekom.de>

Refactored automation.core module && adapted to use Declarative Services (#2194)

Signed-off-by: Vasil Ilchev <v.ilchev@prosyst.bg>

NTP Binding Tests Fix (#2377)

Fixed the bug in the NTP Binding, related to the time change.

Signed-off-by: Petar Valchev <petar.valchev@musala.com>

avoid NPE if no services are found (#2373)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Changed AudioHTTPServer to return relative urls instead of absolute (#2374)

This moves the responsibility of constructing the absolute url to call to the consumer - which is imho the much better approach, as e.g. a consumer like a web browser might request it remotely (from a different network) and thus only it knows which server+port to contact (and with this to avoid any cross origin problems).

- adapted Sonos binding to make relative url absolute
- added configuration parameter for callback url to Sonos binding (if not set, heuristic approach through scanning available network interfaces is taken)
- tested it also successfully with webaudio sink in Paper UI

Signed-off-by: Kai Kreuzer <kai@openhab.org>

removed duplicate thing and channel definitions (looks like they are still there only by accident) (#2375)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Added space above channel group name (#2382)

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

converting state types into accepted type before sending item state events (#2334)

fixes #2253
Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>

Allow to define channel labels in the DSL (#2381)

Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>

Prevent scriptarea from overlapping with outputs (#2346)

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

SetupPageController tests (#2358)

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

Removed readOnly switch's state text (#2336)

* Hide readOnly item
* Removed switch item state text

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

Support multiselect with custom values (#2355)

* Support multiselect with custom values

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

Use jQuery-ui from npm (#2385)

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

Supported contexts' documentation (#2168)

Supported contexts' documentation

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

fix Paper UI build (#2317)

Fixes: https://github.com/eclipse/smarthome/issues/2219
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

Updated Thing types Sample left-over.

Updated pom.xml

Signed-off-by: chaton78 <plarin@gmail.com>

Update Config comments

Signed-off-by: Pascal Larin <plarin@gmail.com>

Squashed Commits

Signed-off-by: chaton78 <plarin@gmail.com>

Supports playing audio events on Safari and IE (#2344)

* Support audio events on Safari and IE
* Use relative url for audio

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

Added nginx proxy buffering fix to SitemapResource.java as well. (#2388)

Signed-off-by: IVAN GEORGIEV ILIEV <ivan.iliev@musala.com>

added a warning in case the sitemap model name does not match the filename (#2380)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Channel translations (#2387)

* fixed CoreThingXmlTest launch config
* added t9n support for channel definitions

fixes #2356
Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>

fix GenerericItem.getStateAs for non-Convertibles (#2393)

When the target type is identical to the current state's
type, then the current state should be returned.

fixes #2334
Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>

improved the implementation for the Sonos callbackUri configuration parameter (#2386)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Channel linkedItems bug+ui fixes (#2395)

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

Changed PersistentInbox to remove only results created by the same discovery service (#2369)

* PersistentInbox#removeOlderResults removes only results that have been added by the same discovery service
* PersistentInbox removes older results too when the discoverer is not known (it is not persisted)

Signed-off-by: Andre Fuechsel <andre.fuechsel@telekom.de>

Add test to ensure that group functions persist (#2156)

With 1cf093e we can create group items with group functions via the REST API, but the group functions are not currently persisted: ManagedItemProvider.PersistedItem is missing affordances to store group functions and ManagedItemProvider is missing code making use of them.

This change adds a test to ensure that group functions are saved and restored correctly. The test is currently failing but might benefit the future implementer.

Signed-off-by: Martin Kühl <martin.kuehl@gmail.com>

Allow copying channel UID to clipboard (#2398)

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

Sorted bindings, services and service tabs (#2400)

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

Preference page UI changes (#2401)

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

fix ColorItem type conversion (#2406)

fixes #2399
Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>

support for referencing of system channels within channel groups (#2397)

fixes #1701
Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>

BasicUI: fix possible NPE in widget renderer, fixes #2378 (#2411)

Signed-off-by: Vlad Ivanov <vlad-mbx@ya.ru>

NTP Binding Tests Localization Fix (#2407)

Fixed the bug in the NTP Binding, related to returning a different time zone in different locales.

Signed-off-by: Petar Valchev <petar.valchev@musala.com>

NTP Binding Tests Time Change Fix (#2414)

Fixed the bug in the NTP Binding, related to the time change.

Signed-off-by: Petar Valchev <petar.valchev@musala.com>

Wemo Tests back to default timeout. (#2416)

Wemo tests now use the default timeout in waitForAssert statements to
prevent test failures on slower machines.

Fixes #2392.

Signed-off-by: Svilen Valkanov <svilen.valkanov@musala.com>

Upstream pull

Signed-off-by: Pascal Larin <plarin@gmail.com>

Implemented tests for NTP Binding (#2243)

I have implemented several tests for the NTP Binding. Also, I have made small changes in the code of the NtpHandler and NtpBindingConstants

Signed-off-by: Petar Valchev <petar.valchev@musala.com>

renamed channelType to channelKind in the model (#2342)

Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>

added meta data for audio and voice services (#2339)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Fixed mistyped variable for Wemo binding OSGi tests. (#2349)

Signed-off-by: Alexander Kostadinov <alexander.g.kostadinov@gmail.com>

fix NTP test Eclipse's project settings

* remove maven nature from Groovy test project
* add Grovy project settings

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

increase timeout for NTP channel updates

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

fix NTP test eclipse launch configuration

* Remove a lot of UI bundles
* Add Apache Commons Collections (necessary for core)

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

initial contribution of Sonos AudioSink support (#2306)

* initial contribution of Sonos AudioSink support

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* fix NPEs

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Added SatisfiableRESTResource and SatisfiableResourceFilter and refactored all ESH RESTResource that have mandatory static dependencies to optional and dynamic and made them implement the new interface. (#2320)

This is done in order to avoid deactivation/reactivation of RESTResources whenever some of their dependencies go missing as this in turn causes the entire Jersey model to reload which can be very very costly on weak CPU devices.
Instead when a dependency goes missing the SatisfiableResourceFilter will call the newly introduced SatisfiableRESTResource#isSatisfied before the matched resource method is executed and will return 503 Unavailable if the service is not satisfied.
Currently when a RESTResource is deactivated and Jersey is reloading the JAX RS OSGi Connector implementation will return 503 so the behaviour is consistent.

Signed-off-by: IVAN GEORGIEV ILIEV <ivan.iliev@musala.com>

improve "get port" mechanism (#2331)

* improve "get port" mechanism

It is not mandatory that the system property is used for setting the
service port. So we should also respect the service property.

The configuration admin is e.g. used by Pax Web.

See also: http://felix.apache.org/documentation/subprojects/apache-felix-http-service.html
The service can both be configured using OSGi environment properties and
using Configuration Admin. ... If you use both methods, Configuration Admin
takes precedence.

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

Initial Release

Signed-off-by: chaton78 <plarin@gmail.com>

Fix NPE in RulesItemRefresher which occurs during shutdown (#2263)

Signed-off-by: Michael Vorburger <mike@vorburger.ch>

adapted groovy version (#2265)

Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>

defer creation of sound input until its first use (#2261)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Bug fix: item creation while channel linking (#2262)

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

added Karaf feature for rest.voice (#2273)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

removing generics from OSGiTest base class (#2274)

since the framework requires minimum OSGi version 4.2
Generics was added  to ServiceReference in OSGi v.4.3

Signed-off-by: Miki Jankov <miki.jankov87@gmail.com>

Contribution of an HumanLanguageInterpreter that allows to process voice commands in DSL rules (#2272)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

replaced apache by jetty http client (#2275)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

fetch supported locales only once instead of three times (#2276)

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

added sitemap event subscription mechanism (#2030)

* added sitemap event subscription mechanism

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* allow setting the current page on the initial request and added logging

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* BasicUI: SSE sitemap events support (#5)

Signed-off-by: Vlad Ivanov <vlad-mbx@ya.ru>

* added clean up of closed SSE connections

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* avoided servlet exception on unknown subscription id

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* BasicUI: refactor: move some template processing code to abstract class

Signed-off-by: Vlad Ivanov <vlad-mbx@ya.ru>

* BasicUI: fix widget referencing for SSE stream

Signed-off-by: Vlad Ivanov <vlad-mbx@ya.ru>

* BasicUI: fix icon and value update for some widgets

Signed-off-by: Vlad Ivanov <vlad-mbx@ya.ru>

* BasicUI: remove test logging

Signed-off-by: Vlad Ivanov <vlad-mbx@ya.ru>

* refactored code to avoid duplicate events

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* fixed cleanup of page change listeners

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* also consider change events of group items

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Dbus transport fixes (#2280)

* fix indentation
* add dbus transport bundle aggregate io pom
* fix version
* add karaf feature

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

fix type in javasound pom (#2279)

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

Type: differ between a full and simple string representation (#2230)

* Type: differ between full string representation and toString()
* The full string representation must be compatible to the static
  `valueOf(String)` method of the respective Type implementation.
* The toString() returned representation should be as usable a concise
  but informative representation that is easy for a concise but
  informative representation that is easy for a person to read. It does
  not need to be compatible to the `valueOf(String)` method of the
  respective Type implementation.

So, whenever you need a representation that can be consumed by
`valueOf(String)` later, you should use the full string representation.

Until now `toString()` returned the full string representation which has
been changed now.
If you rely on a representation that can be consumed by
`valueOf(String)` later, you need to adapt your code.

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

easy way to add third party JARs to TP for development only (#2283)

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

fix esh-ui-basic feature dependencies (#2284)

Fixes: https://github.com/eclipse/smarthome/issues/2281
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

addressed performance worries (#2288)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Send sitemap events on sitemap visibility updates (#2290)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

extended firmware version test by additional assertions required for a binding that will use a combined firmware version, i.e. a version that consist of actual two versions (#2244)

Signed-off-by: Thomas Höfer <t.hoefer@telekom.de>

Create an action which can enable or disable a set of rules. (#1914)

Signed-off-by: Plamen Peev <p.peev@prosyst.bg>

add capability to feature because it is missing in the bundle manifest (#2291)

Adds for I18nProvider service capability as it is missing in the
esh.core bundle manifest

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

Introduction of an AudioServlet to provide audio streams through HTTP (#2287)

* Introduction of an AudioServlet to provide audio streams through HTTP

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* fixed missing stream removal

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Fix for #2249; Add handling of REFRESH command and introduce lastMotionDetected channel for MotionSensor (#2277)

Signed-off-by: Hans-Jörg Merk <hans-joerg.merk@t-online.de>

changed volume of AudioSink from float to PercentType (#2286)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

temporarily ignore failing test (#2293)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Rewind and Fast forward in player widget (#2292)

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

BasicUI updates (#2294)

* BasicUI: sitemap visibility events support
* BasicUI: fix text widget icon update

Signed-off-by: Vlad Ivanov <vlad-mbx@ya.ru>

Implemented configuration status handling for hue bridge. (#1819)

Signed-off-by: Alexander Kostadinov <alexander.g.kostadinov@gmail.com>

updated license headers of archetype (#2296)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

check for uniqueness of channels (#2266)

...in ThingHelper and ThingBuilder so no duplicate channels can be created.

The ChannelUID is used as the only parameter as it defines the identity
of a Channel.

fixes #2256
fixes #2210
Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>
Also-by: Markus Rathgeb <maggu2810@gmail.com>

Changed ESH-PREFIX and cleaned up warnings (#2298)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

remove error message on successful thing creation (#2299)

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

Added X-Accel-Buffering=no header to SSE response in order to disable response buffering when using nginx as a proxy server. (#2300)

This allows you to use nginx proxy buffering and still have working SSE.

Signed-off-by: IVAN GEORGIEV ILIEV <ivan.iliev@musala.com>

Some improvements on audio streams: (#2302)

- Introduced FixedLengthAudioStream
- Provide Content-Length in AudioServlet
- Ignore file extensions in urls in AudioServlet
- added ability to reset a FileAudioStream

Signed-off-by: Kai Kreuzer <kai@openhab.org>

some code cleanup on sonos (#2303)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Set the notification sound volume on first access instead of initialisation (#2307)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

added support to serve a single AudioStream multiple times concurrently through HTTP (#2305)

* added support to serve a single AudioStream multiple times concurrently through HTTP

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* incorporated review feedback

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Audio servlet improvements (#2310)

* use seconds directly
* reorder code to allow usage of try-with-resources

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

adapted MacTTS to use FixedLengthAudioStream (#2311)

* adapted MacTTS to use FixedLengthAudioStream

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* set length only once

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* removed null check

Signed-off-by: Kai Kreuzer <kai@openhab.org>

persisting group functions in the ManagedItemProvider (#2309)

fixes #2269
Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>

initial contribution of a web audio sink (#2313)

* initial contribution of a web audio sink

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* Make sure that streams are closed correctly.

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Support audio events (#2314)

* Support audio events

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

BasicUI: minor fixes (#2316)

Signed-off-by: Vlad Ivanov <vlad-mbx@ya.ru>

add capability to feature because it is missing in the bundle manifest (#2319)

Adds for AudioHTTPServer service capability as it is missing in the
esh.core.audio bundle manifest

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

[LIFX] FindBugs issues fix (#2318)

* Unlock lightCounterLock when exceptions occur
* Potential NPE in handlePowerStatus

Signed-off-by: Wouter Born <eclipse@maindrain.net>

Improved README files for all bindings (typos, grammar, text). (#2328)

Signed-off-by: Alexander Kostadinov <alexander.g.kostadinov@gmail.com>

Removed unnecessary explicit call of parent constructor (parent class is the Object class). (#2330)

Signed-off-by: Alexander Kostadinov <alexander.g.kostadinov@gmail.com>

Room and Outside temperature now working

Add support for set point temperature and mode.
Add support for heat level

New Library sinope-core 0.0.1 snapshot

Updated documentation

Update readme.md

Update readme.md

Update readme.md

Added Headers, Java Cleanup and Format

Formatting

Project compliance

Update readme.md

Implemented tests for the Wemo Binding. (#2247)

During the test implementation several problems were found and some tests are
ignored.

Signed-off-by: Svilen Valkanov <svilen.valkanov@musala.com>

Fix FirmwareUpdateServiceOSGiTest - separate waitForAssert to check thing status and initial firmware status propagation (#2301)

Signed-off-by: Thomas Höfer <t.hoefer@telekom.de>

Applied error class (#2335)

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

Fixes #2322 Basic UI no longer updates icons (#2338)

* Fixes #2322 Basic UI no longer updates icons

Signed-off-by: Wouter Born <eclipse@maindrain.net>

Implemented tests for NTP Binding (#2243)

I have implemented several tests for the NTP Binding. Also, I have made small changes in the code of the NtpHandler and NtpBindingConstants

Signed-off-by: Petar Valchev <petar.valchev@musala.com>

renamed channelType to channelKind in the model (#2342)

Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>

added meta data for audio and voice services (#2339)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Implemented tests for FolderObserver (#2074)

There are 8 test cases testing the functionality of
org.eclipse.smarthome.model.core.internal.folder.FolderObserver.
They check if the correct ModelRepository's methods are invoked
when certain events in the watched directory are triggered.

The tests are fixed in order to run properly on MacOS.

Markus comments are addressed.

Signed-off-by: Mihaela Memova <mihaela.memova@musala.com>

Fixes #2332 Selection sitemap item does not show current selection after (#2347)

Basic UI page (re)load

Signed-off-by: Wouter Born <eclipse@maindrain.net>

Fixed mistyped variable for Wemo binding OSGi tests. (#2349)

Signed-off-by: Alexander Kostadinov <alexander.g.kostadinov@gmail.com>

disable NTP tests until issue is solved (#2351)

Related to: https://github.com/eclipse/smarthome/issues/2345
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

fix NTP test Eclipse's project settings

* remove maven nature from Groovy test project
* add Grovy project settings

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

increase timeout for NTP channel updates

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

fix NTP test eclipse launch configuration

* Remove a lot of UI bundles
* Add Apache Commons Collections (necessary for core)

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

enable NTP test again

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

initial contribution of Sonos AudioSink support (#2306)

* initial contribution of Sonos AudioSink support

Signed-off-by: Kai Kreuzer <kai@openhab.org>

* fix NPEs

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Changes in the FSInternetRadio binding. (#2348)

Some changes are made in org.eclipse.smarthome.bindig.fsinternetradio.
They are mainly related to cleaning up some unneccessary checks and
code lines that can never be reached.
The HTTP client now is stopped with the deactivation of the bundle.
The hardcoded "fsapi" String is now extracted into an instance variable.

Signed-off-by: Mihaela Memova <mihaela.memova@musala.com>

Added SatisfiableRESTResource and SatisfiableResourceFilter and refactored all ESH RESTResource that have mandatory static dependencies to optional and dynamic and made them implement the new interface. (#2320)

This is done in order to avoid deactivation/reactivation of RESTResources whenever some of their dependencies go missing as this in turn causes the entire Jersey model to reload which can be very very costly on weak CPU devices.
Instead when a dependency goes missing the SatisfiableResourceFilter will call the newly introduced SatisfiableRESTResource#isSatisfied before the matched resource method is executed and will return 503 Unavailable if the service is not satisfied.
Currently when a RESTResource is deactivated and Jersey is reloading the JAX RS OSGi Connector implementation will return 503 so the behaviour is consistent.

Signed-off-by: IVAN GEORGIEV ILIEV <ivan.iliev@musala.com>

improve "get port" mechanism (#2331)

* improve "get port" mechanism

It is not mandatory that the system property is used for setting the
service port. So we should also respect the service property.

The configuration admin is e.g. used by Pax Web.

See also: http://felix.apache.org/documentation/subprojects/apache-felix-http-service.html
The service can both be configured using OSGi environment properties and
using Configuration Admin. ... If you use both methods, Configuration Admin
takes precedence.

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

Scheduler : fix #2105 (#2270)

Also-by: Markus Rathgeb <maggu2810@gmail.com>
Signed-off-by: Karel Goderis <karel.goderis@me.com>

Fix FirmwareUpdateServiceOSGiTest - separate waitForAssert to check thing status and initial firmware status propagation (#2301)

Signed-off-by: Thomas Höfer <t.hoefer@telekom.de>

Applied error class (#2335)

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>

Fixes #2322 Basic UI no longer updates icons (#2338)

* Fixes #2322 Basic UI no longer updates icons

Signed-off-by: Wouter Born <eclipse@maindrain.net>

Implemented tests for NTP Binding (#2243)

I have implemented several tests for the NTP Binding. Also, I have made small changes in the code of the NtpHandler and NtpBindingConstants

Signed-off-by: Petar Valchev <petar.valchev@musala.com>

Squash'ed commit

Signed-off-by: chaton78 <plarin@gmail.com>

renamed channelType to channelKind in the model (#2342)

Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>

added meta data for audio and voice services (#2339)

Signed-off-by: Kai Kreuzer <kai@openhab.org>

Implemented tests for FolderObserver (#2074)

There are 8 test cases testing the functionality of
org.eclipse.smarthome.model.core.internal.folder.FolderObserver.
They check if the correct ModelRepository's methods are invoked
when certain events in the watched directory are triggered.

The tests are fixed in order to run properly on MacOS.

Markus comments are addressed.

Signed-off-by: Mihaela Memova <mihaela.memova@musala.com>

Fixes #2332 Selection sitemap item does not show current selection after (#2347)

Basic UI page (re)load

Signed-off-by: Wouter Born <eclipse@maindrain.net>

Fixed mistyped variable for Wemo binding OSGi tests. (#2349)

Signed-off-by: Alexander Kostadinov <alexander.g.kostadinov@gmail.com>

disable NTP tests until issue is solved (#2351)

Related to: https://github.com/eclipse/smarthome/issues/2345
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>

fix NTP test eclipse launch configuration

* Remove a lot of UI bundles
* Add Ap…
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants