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

Converting state into accepted types #2334

Merged
merged 1 commit into from
Oct 31, 2016

Conversation

sjsf
Copy link
Contributor

@sjsf sjsf commented Oct 17, 2016

This PR is intended to deal with the fact that users might be so creative and link e.g. a SwitchItem to a color channel which maintains a HSBType state. In order to get these items updated successfully whenever values change, the State object needs to be converted into something accepted (if possible at all...).

When implementing this,

  • I needed access to the linked items (and not only their names). Therefore I changed the AbstractLinkRegistry.getLinkedItems() method to AbstractLinkRegistry.getLinkedItemNames() because that is what it actually does and introduced a ItemChannelLinkRegistry.getLinkedItems() method with returns what it promises. The alternative would have been to re-add the ThingManager -> ItemRegistry dependency which I assume we all are happy was dropped.
  • I decided to do the conversion in all three places: the ThingManager, ItemUpdater and AutoUpdater. Sending the state update event "as is" and doing the conversion in the ItemUpdater would lead to UIs still getting "wrong" events so they won't benefit from it. And doing it only in the ThingManager is not enough as there might be other origins for events having the "wrong" type. The ItemUtil seems like a good place for it.
  • I had to change the order of the acceptedDataTypes in some items so they have the most meaningful type at the top of the list. I'm very well aware of the TypeParser and therefore I'm wondering even more why they were ordered like that before... I'm just not 100% sure if anywhere else something might rely in this order being the over way round of if if worked until now "by chance" because there was no overlap and the result will always be the same.
  • I introduced the Convertible interface so that not all types have to implement that method. Alternatively an AbstractState could provide a default implemnentation, if you like that better. I whish we had Java 8...
  • I decided to put the conversion logic into the types themselves. The conversion logic doesn't seem to be context specific, so it does not need to be within the items. Alternatively we could have something like a TypeConverter which takes a State and a target type and does the conversion. I thought it's easier to maintain like this, but if you prefer a clearer SoC, I will happily factory it out.

An example to test it with:

sample.things:

Bridge hue:bridge:01234567890 "Philips Hue Bridge" [ ipAddress="192.168.0.42", userName="********" ] {
    0210 1 "Hue Bulb" [ lightId="1" ]
}

sample.items:

Switch hue_switch "Hue Bulb Switch" <light> { channel="hue:0210:01234567890:1:color" }
Dimmer hue_dimmer "Hue Bulb Dimmer" <light> { channel="hue:0210:01234567890:1:color" }
Color hue_color "Hue Bulb Color" <light> { channel="hue:0210:01234567890:1:color" }

sample.sitemap:

sitemap demo label="Sample" {
    Frame label="Sample" {
        Switch item=hue_switch
        Slider item=hue_dimmer
        Colorpicker item=hue_color
    }

}

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

@watou
Copy link
Contributor

watou commented Oct 17, 2016

Does this PR address any of the conversations at the ESH forum on this subject? The mechanism in openHAB 1 that allows bindings to determine and adapt to the item's accepted data types at state update time is not present in the ESH APIs, and allowing bindings like HTTP, MQTT, TCP, etc., to be implemented against the ESH APIs would be a nice addition. (Currently, the only way to get this capability is via OH1 bindings and the compat1x layer).

@sjsf
Copy link
Contributor Author

sjsf commented Oct 17, 2016

The mechanism in openHAB 1 that allows bindings to determine and adapt to the item's accepted data types at state update time is not present in the ESH APIs

Wouldn't channels be the right layer for bindings to adapt to? I mean, since opposed to OH1 we have the abstraction between the "real world" (Things) and the presentation layer (Items) in ESH, it sounds odd to me if bindings should know anything about items at all. Channels have an accepted item type which bindings can access. I think I would need to further understand the use-cases you are referring to, but it sounds to me like this discussion is a out-of-scope within this PR.

This PR addresses the presentation layer, mainly allowing "more simplistic" items to be bound to channels which are defined with more "sophisticated" datatypes (e.g. SwitchItem against a PercentType). Maybe this implicitly also solves some use-cases you have in mind...?

@watou
Copy link
Contributor

watou commented Oct 18, 2016

it sounds odd to me if bindings should know anything about items at all

The issue is usability. For example, only the user knows that an MQTT topic publishes decimal numbers, and wants a Number item to be updated when some client publishes on that topic. There is no feature of the ESH APIs that make this simple configuration possible, while the MQTT binding in openHAB 1.x adapts to the accepted data types of the bound item because that model ties bindings directly to items without channels adding another layer to contend with.

This PR addresses the presentation layer

If your PR is on a completely different subject that's fine with me, but my interest is seeing how the simple use cases of OH1 could be implemented with ESH APIs and to not miss an opportunity to improve the ESH APIs to address those use cases. Generally, embedding the concept in the architecture instead of at the presentation layer could potentially yield more benefits.

@kaikreuzer
Copy link
Contributor

I think the discussion @watou is referring to is #583.
So in general, there might be a need to have the possibility for a binding to find out what types are linked to it and how these links are configured (note that we do not yet have configurations on links). Imho we should NOT allow it to find out about the individual items that are linked to it, though. #583 probably goes beyond the scope of this PR, but it is fair of @watou to mention it here as it might have an impact on the chosen implementation (which I didn't yet review, so I don't have any opinion on this right now).

@SJKA Without having had a look at your code yet, only having read your description: It strikes me odd that you also touch ItemUpdater and AutoUpdateBinding - they only deal with Item events, so on this level, everything should be alright already. There is no need to convert a Percent command to an ON state, because if the item is a switch, a Percent command is anyhow invalid and we do not have to care for such cases (actually we should not). Am I missing something?

@sjsf
Copy link
Contributor Author

sjsf commented Oct 19, 2016

There is no need to convert a Percent command to an ON state, because if the item is a switch, a Percent command is anyhow invalid and we do not have to care for such cases (actually we should not).

Okay, I just thought it would be cool as we easily can allow such stuff using the same code, but actually wasn't aware that it should fail by intention. I'll remove it then.

@kaikreuzer
Copy link
Contributor

wasn't aware that it should fail by intention

Well, this was my suggestion - if others think it is worthwhile to also accept invalid commands, I am open to discuss.

@kaikreuzer
Copy link
Contributor

I'll remove it then.

@SJKA Just ftr, I am still waiting for this before merging, right?

@sjsf
Copy link
Contributor Author

sjsf commented Oct 28, 2016

Hmm. I think I was not precise enough with my cites...

I removed the conversions in the AutoUpdateBinding and from the ItemUpdater.

However, IMHO we should keep the conversion from PercentType to OnOffType. I actually didn't invent it, but refactored it from DimmerItem.java. So it's not about sending (wrong) commands at all. Think of a dimmable light, where you have linked a switch item against. In order to make that switch getting updated correctly if somebody changes the brightness, we need this conversion.

@kaikreuzer
Copy link
Contributor

Ok, sorry, I actually didn't notice that you had removed the changes in ItemUpdater and AutoUpdateBinding already - my comment referred to these, so all fine!

I had to change the order of the acceptedDataTypes in some items

I think these changes should be ok - afair, the order was mainly relevant for StringType, since parsing as a String always succeeds (so UNDEF etc. has to come first).

Alternatively an AbstractState could provide a default implemnentation, if you like that better. I whish we had Java 8...

I agree, a default impl would be much nicer - something to add to https://github.com/eclipse/smarthome/wiki/Java-8-CP2-cleanup, I think.
May I suggest a change in the method name? How about calling it simply as(Type type) instead of convertTo?

Alternatively we could have something like a TypeConverter which takes a State

No, I am fine with having the logic in the types. But as you mention "TypeConverter": I wonder if we should make the as() method available on Type and not only on State (once we add it as a Java8 default impl. For now, this would mainly impact the JavaDoc of the Convertible interface)? I don't have a use case at hand right now, but it feels ok to also leave the option to have it implemented on Commands.

…vents

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

sjsf commented Oct 31, 2016

May I suggest a change in the method name? How about calling it simply as(Type type) instead of convertTo?

Yes, sure. I changed it.

I wonder if we should make the as() method available on Type and not only on State (once we add it as a Java8 default impl. For now, this would mainly impact the JavaDoc of the Convertible interface)?

I agree, it feels okay. The main reason why I haven't done that so far is the lovely type erasure in Java: The items actually want a State, not a Type, therefore we'd need to cast it at every usage. This would be solvable if we could change the signature to something like this:

public <T extends Type> T as(Class<T> target);

However, Java does not accept any sub-type of Type as T for a return value (i.e. OnOffType.ON is marked as an error). We would clutter the code completely with casts at this side then.

Again, with Java 8 we would get the chance to implement some magic in the interface that does the casting only in a single place, but so far I don't see a straight-forward way of doing this while keeping both sides clean to read. Maybe I missed something...?

@kaikreuzer
Copy link
Contributor

The items actually want a State, not a Type, therefore we'd need to cast it at every usage.

Ok, that's a very valid argument.

Copy link
Contributor

@kaikreuzer kaikreuzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@kaikreuzer kaikreuzer merged commit c2295a3 into eclipse-archived:master Oct 31, 2016
sjsf pushed a commit to sjsf/smarthome that referenced this pull request Nov 3, 2016
When the target type is identical to the current state's
type, then the current state should be returned.

fixes eclipse-archived#2334
Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>
kaikreuzer pushed a commit that referenced this pull request Nov 3, 2016
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>
@sjsf sjsf deleted the stateConversion branch November 4, 2016 09:01
chaton78 added a commit to chaton78/smarthome that referenced this pull request 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 pushed a commit to chaton78/smarthome that referenced this pull request Nov 8, 2016
)

When the target type is identical to the current state's
type, then the current state should be returned.

fixes eclipse-archived#2334
Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>
chaton78 added a commit to chaton78/smarthome that referenced this pull request 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 pull request 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…
@kaikreuzer kaikreuzer added this to the 0.9.0 milestone Nov 30, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ThingManager should adapt state updates to linked item type
3 participants