Граф коммитов

2251 Коммитов

Автор SHA1 Сообщение Дата
Markus Rathgeb 46bdb39c0b Paper UI: fix broken bridge configuration (#1523)
If you edit a thing the Paper UI itself allows to edit the label, the
bridge and the configuration.
The JavaScript does not send a changed Bridge UID.

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2016-05-17 16:53:18 +02:00
Kai Kreuzer f721acb584 create links/items for advanced channels so that tests succeed (#1522)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-05-17 14:53:42 +02:00
Thomas Höfer 10dc755233 minor refactoring for the normalizer concept (#1513)
Signed-off-by: Thomas Höfer <t.hoefer@telekom.de>
2016-05-17 14:52:13 +02:00
Kai Kreuzer 72b148b38a ItemChannelProvider now informs listeners about removed elements - fixes failing test of #1518 (#1521)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-05-17 13:40:31 +02:00
Marin Mitev 21758ada25 fix issue #1425 cron timers context (#1520)
Signed-off-by: Marin Mitev <marin.mitev@gmail.com>
2016-05-17 11:00:49 +02:00
Kai Kreuzer 22313789e8 fixed test that was accidentally reverted by #1288 (#1518)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-05-17 07:12:31 +02:00
adimova f9b4992792 #1498 - fix the processing of automation resource queue (#1499)
Signed-off-by: Ana Dimova <a.dimova@prosyst.bg>
2016-05-16 23:35:17 +02:00
pwolfart 5aba84aff3 [1452] MapDB database corruption (#1455)
Updated mapdb from version 1.0.2 to 1.0.9.

Forum: https://www.eclipse.org/forums/index.php?t=msg&th=1075047&goto=1724448&#msg_1724448

Bug: https://github.com/eclipse/smarthome/issues/1452

Signed-off-by: Patrick Wolfart <p.wolfart@jung.de>
2016-05-16 22:48:53 +02:00
aounhaider1 1652919328 Removed calls to setup things (#1288)
Refactorings in Paper UI:
- Things are created using the /rest/things endpoint
- Channel enablement/disablement is done through /rest/links
- Control UI now uses thing structure instead of tagged items
- Preferences "advanced" flag has been removed and is now determined from the server through /rest/links/auto

Refactored link handling in core.things:
- removed Thing links
- removed usage of ThingSetupManager
- made ThingLinkManager a service
- implemented auto-creation and deletion of links for managed things
- implemented ChannelItemProvider, which creates items for links that point to non-existent items

Also-by: Kai Kreuzer <kai@openhab.org>
Signed-off-by: Aoun Bukhari <bukhari@itemis.de>
2016-05-16 19:46:19 +02:00
Dan e64f0cf236 DimmerItems were not converting deciamltypes correctly, also group items where not using the thier baseItem when setting state. This fixes #1476 (#1514)
Signed-off-by: Dan Cunningham <dan@digitaldan.com>
2016-05-15 20:51:13 +02:00
Markus Rathgeb a443baa1b3 PaperUI: config: add support for DECIMAL and step width (#1512)
* configurations of type "decimal" are not handled
* the step width is currently not used

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2016-05-15 20:22:36 +02:00
Yordan Mihaylov 68ec9d79df #905 Automation : Add possibility to add Rules to the fly to a RuleProvider (#1500)
Signed-off-by: Yordan Mihaylov <j.mihailov@prosyst.com>
2016-05-15 20:20:55 +02:00
Markus Rathgeb 4e1eb3f60b use modified provider-swagger for JAX-RS (#1504)
Related to: 7e35fa0f03
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2016-05-13 18:40:13 +02:00
Thomas Höfer f6a99a262a With #1487 the author became optional for binding xml definition. This PR updates the documentation (#1510)
Signed-off-by: Thomas Höfer <t.hoefer@telekom.de>
2016-05-13 13:33:56 +02:00
aounhaider1 4833659a35 Sort extensions by label (#1509)
Signed-off-by: Aoun Bukhari <bukhari@itemis.de>
2016-05-12 20:39:35 +02:00
Simon Kaufmann af43942752 fixed tests & reduced logging spam (#1503)
...as they got broken by #1419

Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>
2016-05-11 13:43:15 +02:00
Simon Kaufmann d3649ab96a Deferring ThingHandler.initialize() until all XMLs have been parsed (#1419)
Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>
2016-05-10 23:11:16 +02:00
Markus Rathgeb 68c3d00a09 fix minimum / maximum text (#1496)
If the minimum / maximim is set to some value that evaluates to false
(e.g. 0, 0.0, ...) then the minimum / maximum text is not shown.
The slider element is shown only if the minimum and maximum text
evaluates to true.
So with the current test no slider is shown if the min / max is e.g. 0,
0.0, ...

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2016-05-10 23:00:29 +02:00
Stefan Bußweiler ed2713c1c5 Mark ThingHandler methods as deprecated. (#1494)
Signed-off-by: Stefan Bussweiler <s.bussweiler@external.telekom.de>
2016-05-10 15:00:53 +02:00
Stefan Bußweiler 9b33529d5c Fixed test case. (#1493)
Signed-off-by: Stefan Bussweiler <s.bussweiler@external.telekom.de>
2016-05-10 14:04:35 +02:00
Andre Fuechsel 00935e80da Make author optional in binding.xml (#1487)
Bug: #1478
Signed-off-by: Andre Fuechsel <andre.fuechsel@telekom.de>
2016-05-10 12:54:55 +02:00
aounhaider1 37a42463f7 Added 'development mode' task in gulp file (#1491)
* added 'development mode' task in gulp file
* inject files in order

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>
2016-05-10 11:07:23 +02:00
Stefan Bußweiler 0d39338c06 Apply default configuration if parameter is not present. (#1482)
Signed-off-by: Stefan Bussweiler <s.bussweiler@external.telekom.de>
2016-05-10 09:58:24 +02:00
Markus Rathgeb 1b5ad07d5e drop usage of Guava (#1481)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2016-05-09 21:30:15 +02:00
Markus Rathgeb a5075cfd4a use http instead of https caused by infrastructure (hudson) (#1485)
Related to: https://github.com/eclipse/smarthome/pull/1450
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2016-05-09 19:35:13 +02:00
Kai Kreuzer 5bee40dcd6 do not remove configuration entries that are already present (#1484)
fixes #1438

Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-05-09 19:08:50 +02:00
aounhaider1 a511d72905 set dropdown options value according to context (#1469)
Signed-off-by: Aoun Bukhari <bukhari@itemis.de>
2016-05-09 17:04:00 +02:00
Markus Rathgeb 4ab38d71de remove bundled libs of transform.jsonpath (#1450)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2016-05-09 15:52:37 +02:00
Roland Edelhoff 3c02299e64 update sonos binding (#1196)
Signed-off-by: Roland Menznerowski <roland.menznerowski@itemis.de>
2016-05-05 01:23:52 +02:00
Kai Kreuzer fa1949c8e0 Revert "Updated notes.md (#1186)"
This reverts commit d46f4babfa.
2016-05-04 23:15:02 +02:00
aounhaider1 dfdf479b92 Gulp inject in package.json (#1470)
Signed-off-by: Aoun Bukhari <bukhari@itemis.de>
2016-05-04 20:27:28 +02:00
Markus Rathgeb b82fc6d6c4 add another fine tuning of the jersey start levels (#1468)
Without this start-level tuning you can run in a
HTTP ERROR 503: Jersey is not ready yet!

The OSGi console log could look similar to this one:

```text
2016-05-04 17:27:10,704 | ERROR | lixDispatchQueue | sse                              | 172 - org.eclipse.smarthome.io.rest.sse - 0.8.0.a16 | FrameworkEvent ERROR - org.eclipse.smarthome.io.rest.sse
org.osgi.framework.BundleException: Activator start error in bundle org.eclipse.smarthome.io.rest.sse [172].
	at org.apache.felix.framework.Felix.activateBundle(Felix.java:2276)[org.apache.felix.framework-5.4.0.jar:]
	at org.apache.felix.framework.Felix.startBundle(Felix.java:2144)[org.apache.felix.framework-5.4.0.jar:]
	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1371)[org.apache.felix.framework-5.4.0.jar:]
	at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)[org.apache.felix.framework-5.4.0.jar:]
	at java.lang.Thread.run(Thread.java:745)[:1.8.0_74]
Caused by: java.lang.ExceptionInInitializerError
	at org.eclipse.smarthome.io.rest.sse.internal.SseActivator.start(SseActivator.java:44)
	at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697)
	at org.apache.felix.framework.Felix.activateBundle(Felix.java:2226)
	... 4 more
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: Provider org.glassfish.jersey.server.internal.RuntimeDelegateImpl could not be instantiated: java.lang.IllegalStateException: No generator was provided and there is no default generator registered
	at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:152)[34:javax.ws.rs-api:2.0.1]
	at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:120)[34:javax.ws.rs-api:2.0.1]
	at javax.ws.rs.core.MediaType.valueOf(MediaType.java:179)[34:javax.ws.rs-api:2.0.1]
	at org.glassfish.jersey.media.sse.SseFeature.<clinit>(SseFeature.java:62)[218:org.glassfish.jersey.media.jersey-media-sse:2.22.2]
	... 7 more
Caused by: java.lang.ClassNotFoundException: Provider org.glassfish.jersey.server.internal.RuntimeDelegateImpl could not be instantiated: java.lang.IllegalStateException: No generator was provided and there is no default generator registered
	at javax.ws.rs.ext.FactoryFinder.newInstance(FactoryFinder.java:122)[34:javax.ws.rs-api:2.0.1]
	at javax.ws.rs.ext.FactoryFinder.find(FactoryFinder.java:213)[34:javax.ws.rs-api:2.0.1]
	at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:135)[34:javax.ws.rs-api:2.0.1]
	... 10 more
Caused by: java.lang.IllegalStateException: No generator was provided and there is no default generator registered
	at org.glassfish.hk2.internal.ServiceLocatorFactoryImpl.internalCreate(ServiceLocatorFactoryImpl.java:308)[205:org.glassfish.hk2.api:2.4.0.b34]
	at org.glassfish.hk2.internal.ServiceLocatorFactoryImpl.create(ServiceLocatorFactoryImpl.java:293)[205:org.glassfish.hk2.api:2.4.0.b34]
	at org.glassfish.jersey.internal.inject.Injections._createLocator(Injections.java:138)[215:org.glassfish.jersey.core.jersey-common:2.22.2]
	at org.glassfish.jersey.internal.inject.Injections.createLocator(Injections.java:109)[215:org.glassfish.jersey.core.jersey-common:2.22.2]
	at org.glassfish.jersey.server.internal.RuntimeDelegateImpl.<init>(RuntimeDelegateImpl.java:64)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[:1.8.0_74]
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)[:1.8.0_74]
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[:1.8.0_74]
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)[:1.8.0_74]
	at java.lang.Class.newInstance(Class.java:442)[:1.8.0_74]
	at javax.ws.rs.ext.FactoryFinder.newInstance(FactoryFinder.java:118)[34:javax.ws.rs-api:2.0.1]
	... 12 more
```

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2016-05-04 17:43:13 +02:00
aounhaider1 d46f4babfa Updated notes.md (#1186)
* gulp task to avoid building during development

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>
2016-05-04 17:18:32 +02:00
Kai Kreuzer 81088ca8a2 create Bridges instead of Things, if the input is a Bridge (#1467)
fixes #1440

Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-05-04 16:57:15 +02:00
aounhaider1 d90cc8e8af removed check if thing has an item from thing (#1466)
Signed-off-by: Aoun Bukhari <bukhari@itemis.de>
2016-05-04 16:51:59 +02:00
Kai Kreuzer b09808fe0d fixed feature name (#1464)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-05-04 13:31:39 +02:00
Yordan Mihaylov 1cc7715b5f Right behavior of getByTags(Set<String> tags) method #1413 (#1456)
Signed-off-by: Yordan Mihaylov <j.mihailov@prosyst.com>
2016-05-04 11:22:20 +02:00
Sebastian Janzen e423ad03ff Remove wrong JavaDoc (#1463)
Signed-off-by: Sebastian Janzen <sebastian@janzen.it>
2016-05-04 08:54:22 +02:00
aounhaider1 134aae6ad6 Show thingType label only of binding is available (#1461)
Signed-off-by: Aoun Bukhari <bukhari@itemis.de>
2016-05-03 18:37:31 +02:00
aounhaider1 23e9601afa Navigate to rule list after rule is completely updated (#1460)
Signed-off-by: Aoun Bukhari <bukhari@itemis.de>
2016-05-03 17:58:19 +02:00
Yordan Mihaylov 96364f6171 Add debug message when a rule is triggred. #1432 (#1459)
Signed-off-by: Yordan Mihaylov <j.mihailov@prosyst.com>
2016-05-03 17:56:50 +02:00
Yordan Mihaylov c8ed2e7902 Remove unused scopeIds from Rule and RuleEngine (#1458)
Signed-off-by: Yordan Mihaylov <j.mihailov@prosyst.com>
2016-05-03 16:57:45 +02:00
aounhaider1 934cfa18ee bug fix: select box considering integer 0 as null (#1457)
Signed-off-by: Aoun Bukhari <bukhari@itemis.de>
2016-05-03 15:24:10 +02:00
Markus Rathgeb 96bf6b7319 fix test for fixed discovery cfg handling (#1454)
Bug: https://github.com/eclipse/smarthome/issues/1414
Related to: https://github.com/eclipse/smarthome/pull/1451
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2016-05-03 12:57:14 +02:00
aounhaider1 34fa968a99 Resolved responsivness issues (#1430)
* Resolved responsivness issues

Signed-off-by: Aoun Bukhari <bukhari@itemis.de>
2016-05-03 10:26:37 +02:00
Kai Kreuzer 6a557849f2 added digitalSTROM binding to build, feature and docs (#1453)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-05-03 09:42:25 +02:00
Markus Rathgeb 3ac8b67ddc discovery: fix check if configuration key is present (#1451)
Bug: https://github.com/eclipse/smarthome/issues/1414
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2016-05-03 09:21:15 +02:00
Michael Ochel 7ded36975b Add digitalSTROM-Binding (#513)
Rewritten digitalSTROM-Binding of the openHAB1-Binding from Alexander Betker.
Differences/Updates:
 * The functionality and concept is completely revised and updated
 * reorganized structure
 * updated digtalSTROM-API and constant classes
 * supports the new ESH-Features e.g. discovery

For the supported devices and so on please have a look at the readme.md.

Also-By: Alexander Betker <alexanderbetker@gmail.com>
Also-By: Alex Maier <alex.maier@th-koeln.de>
Also-by: Matthias Siegele <digitalSTROM-ESH-binding@web.de>
Signed-off-by: Michael Ochel <michael.ochel@koeln.de>
2016-05-02 22:19:35 +02:00
Simon Kaufmann 60db3349f9 added config normalization (#1423)
Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>
2016-05-02 11:12:07 +02:00
Markus Rathgeb 83d0cbbec1 fix jersey servlet support (#1448)
If the jersey modules are initiated on the same level as the ones that
registered the ServletContainer class, this could lead to errors using
asyncrhonous processing:
javax.servlet.ServletException: java.lang.UnsupportedOperationException:
Asynchronous processing not supported on Servlet 2.x container.

See e.g.
https://gist.github.com/maggu2810/ef57c2656fa9f76052042da5f70d9d2f

This could be worked around to start the Jersey components in front of
the usage.
The important module is jersey-core-server, that adds support for
servlet 3.x.

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2016-05-02 10:20:28 +02:00