Commit Graph

663 Commits

Author SHA1 Message Date
lolodomo
0820701ffc [DSL rule] New implicit variable newState (#973)
Fix #925

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2019-08-13 21:13:03 +02:00
lolodomo
aebcc6cd9a [DSL] Unique job key for createTimer in DSL rule (#972)
Fixes #943

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2019-08-13 21:12:23 +02:00
J-N-K
a17d63ad64 increase paho inflight message limit (#970)
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
2019-08-12 11:08:39 +02:00
Wouter Born
9d2f09936d Fix null annotations order and cleanup (#958)
* Move null annotations between modifiers and variable type
* Remove redundant public modifiers from interfaces where applicable
* Remove redundant `@NonNull` annotations

Signed-off-by: Wouter Born <github@maindrain.net>
2019-08-08 09:42:30 +02:00
J-N-K
f433a5683f fix TopicSubscribers (#955)
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
2019-08-05 22:14:31 +02:00
lolodomo
f03f328bf0 DateTimeType: new methods toZone and toLocaleZone (#945)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2019-08-02 13:57:39 +03:00
Wouter Born
9e7c6af1c8 Fix "No SerialPortProvider found" on startup (#939)
Change reference cardinality from MULTIPLE to AT_LEAST_ONE so the serial port provider can be used immediately when ThingHandlers are initialized.

Fixes #937

This would always result in the following logging on startup:

[WARN ] [serial.internal.SerialPortManagerImpl] - No SerialPortProvider found for: /dev/ttyUSB0

Bindings without serial port reconnection logic would need to be manually restarted (Z-Wave Binding).

Signed-off-by: Wouter Born <github@maindrain.net>
2019-07-29 22:23:18 +03:00
Christoph Weitkamp
95e0190d55 Avoid multiple type castings (#946)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-07-28 11:32:15 +02:00
Christoph Weitkamp
c95dfcb1cc Added formatting tests for DateTimeType (#938)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-07-22 21:56:22 +02:00
Christoph Weitkamp
4f3e1c17cb Added equality tests for parsing and timzone (#933)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-07-22 10:44:10 +02:00
Markus Rathgeb
ef05b4d878 start with an upper case on "initial contribution" (#931)
Related to: https://github.com/openhab/openhab-core/pull/916/#discussion_r305082016

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-07-21 12:24:58 +02:00
Kai Kreuzer
b6aae6907f Revert "openHAB JAX-RS publisher (#905)"
This reverts commit ad81f040de.
2019-07-17 11:55:29 +02:00
Kai Kreuzer
b3aabd73ab Revert "remove leftovers of REST optimize (#907)"
This reverts commit c86cbea3ba.
2019-07-17 11:55:29 +02:00
Christoph Weitkamp
4b7eddf16e [automation] Fixed topic (#922)
- Fixed topic for `ThingStatusTriggerHandler`. Is is called "things", not "thing".

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-07-12 21:01:42 +02:00
Christoph Weitkamp
17c756513a [automation] Added 'ThingStatusTrigger' for NGRE (#911)
* Added ThingStatusTrigger for NGRE

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-07-10 11:57:54 +02:00
Christoph Weitkamp
abab07dfb9 [automation] Added nullness annotations (#910)
* Added nullness annotations

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-07-08 10:53:25 +02:00
maniac103
7bad7f6e3f Add missing null check to PageChangeListener. (#909)
If visibility of a sitemap widget that does not have a (valid) item is
changed, 'itemToBeSent' becomes null, in which case we need to omit
filling out 'event.item' and 'event.state' (and keep them as null).

Closes #897

Signed-off-by: Danny Baumann <dannybaumann@web.de>
2019-07-04 11:36:22 +02:00
Markus Rathgeb
c86cbea3ba remove leftovers of REST optimize (#907)
The project has been replaced by REST publisher and the sources should
be removed by https://github.com/openhab/openhab-core/pull/905
It seems something went wrong.
Let's remove it now!

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-07-02 16:45:40 +02:00
Markus Rathgeb
ad81f040de openHAB JAX-RS publisher (#905)
* add project for publisher
* add unmodified com.eclipsesource.jaxrs.publisher sources
* modify and use modified publisher
* drop tracker usage (only for custom whitelist by fragments)
* add the new code to new classes and namespace

Also-by: Kai Kreuzer <kai@openhab.org>
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-07-01 21:08:03 +02:00
Christoph Weitkamp
01f4724575 Added action for bank holiday from a given userfile (#901)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-06-26 13:23:37 +02:00
Kai Kreuzer
957cbe045c moved resources folder out of java source folder (#900)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-06-26 06:42:37 +02:00
Christoph Weitkamp
c2af2465d1 Added nullness annotations (#898)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-06-25 18:36:32 +02:00
Christoph Weitkamp
6d073daa82 Updated xml schema locations to openHAB (#899)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-06-25 18:30:07 +02:00
Daniel Walters
22937ae02f Fix typo in exception message (#896)
Signed-off-by: Daniel Walters <danielwalters1@hotmail.com>
2019-06-25 06:44:13 +02:00
Björn Brings
7fdef0717e Reduce polling frequency of usb serial scanner (#889)
* Reduce polling frequency

Signed-off-by: Björn Brings <bjoernbrings@web.de>
2019-06-24 19:13:59 +02:00
Kai Kreuzer
ce352d0ca7 corrected artifact name (#893)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-06-23 22:02:44 +02:00
Markus Rathgeb
5fda143230 simplify contains, get, compute separation (#887)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-06-20 21:35:43 +02:00
Markus Rathgeb
7d7f8d044d don't fail on nullable locale (currently not forbidden) (#886)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-06-20 21:34:18 +02:00
Markus Rathgeb
2ed5110668 slightly cleaner nullness handling (don't split contains and get) (#885)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-06-20 21:33:36 +02:00
Markus Rathgeb
fe9b060391 firmware: transfer latest FW don't require a info about previous FW (#884)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-06-20 21:25:22 +02:00
Markus Rathgeb
a23cd23a37 map entries of member variables could change between lines (#883)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-06-20 21:24:55 +02:00
Markus Rathgeb
a75fbe1e42 Class::getCanonicalName may return null (#882)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-06-20 21:24:20 +02:00
Markus Rathgeb
bf9f86354b fix nullness violation in MapDB test (#881)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-06-20 21:23:53 +02:00
Markus Rathgeb
b897de2f5e get semantic type can return null, isAssignableFrom requires non-null (#880)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-06-20 21:23:33 +02:00
Markus Rathgeb
6cdfd635f4 compine filter and map for tooling (#879)
It should not matter if the instructions are split or not.
But if it is splitted the nullness tooling don't know that the stream
after the filter contains only non null elements.
As it should not matter and to make the tooling happy...

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-06-20 21:23:05 +02:00
Markus Rathgeb
ebda4b8fc7 handle nullness in unget handler of composite module correctly (#878)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-06-20 21:22:22 +02:00
Markus Rathgeb
f1dfb553c7 we don't know if the rule has been deleted async. (#877)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-06-20 21:21:41 +02:00
Markus Rathgeb
361d42b20a if null must not be returned, null must not be returned (#875)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-06-20 21:20:27 +02:00
Markus Rathgeb
0fc38a910b the format pattern must not be null (#874)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-06-20 21:19:46 +02:00
Markus Rathgeb
8e195d4058 don't use safe caller for event delegation to subscribers (#861)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-06-19 23:43:17 +02:00
Markus Rathgeb
fefbef50f5 UID: allow to encode arbitrary string (+decode) (#864)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-06-19 22:42:27 +02:00
Wouter Born
0f1c1bbb2d Fix Ephemeris ClassNotFoundException (#869)
Fixes #868

Also-by: Markus Rathgeb <maggu2810@gmail.com>
Signed-off-by: Wouter Born <github@maindrain.net>
2019-06-13 20:03:16 +02:00
Wouter Born
f3ced23830 Fix serial ports missing when ports are added to system property (#866)
* Get all serial port identifiers by calling RXTX with and without using the gnu.io.rxtx.SerialPorts property
* Filter getSerialPortIdentifiers() stream on distinct port names
* Fix thread safety issues by saving getPortIdentifiers() Enumeration result to new list

Fixes #805

Signed-off-by: Wouter Born <github@maindrain.net>
2019-06-12 08:58:41 +02:00
Kai Kreuzer
d0dfbe3f44 Ephemeris service (#506)
Also-by: Gaël L'hopital <gael@lhopital.org>
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-06-11 10:20:04 +02:00
Markus Rathgeb
849753befe small improvements of hexutils API and impl. (#862)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-06-10 17:07:04 +02:00
Markus Rathgeb
5977002c5f workaround for #597 (#863)
Fixes: #597

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-06-10 11:28:09 +02:00
Markus Rathgeb
3b74ea1dad use separate class for named thread factory (#860)
... to make it usable for others

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-06-09 20:32:01 +02:00
Markus Rathgeb
9018e9ae80 move event logging for better analyze options (#856)
* move event logging for better analyze options
* add another optional event handling logging

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-06-09 10:33:42 +02:00
Christoph Weitkamp
1f20e8277a model: Use constructor injection to simplify lifecycle (#857)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-06-09 10:33:22 +02:00
Wouter Born
b99c439d77 Fix Jetty warnings by excluding weak cipher suites (#858)
Newer Jetty versions log warnings when weak cipher suites are configured.
This occurs when using Karaf 4.2.6 with Jetty 9.4.18.v20190429.

See also: https://github.com/eclipse/jetty.project/pull/3050

Signed-off-by: Wouter Born <github@maindrain.net>
2019-06-09 10:32:46 +02:00
Christoph Weitkamp
306165dcfb Added 'RefreshType.REFRESH' and 'BinaryPrefix' to imports (#854)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-06-05 13:41:33 +02:00
Christoph Weitkamp
edd148f3f6 automation: Refactoring of 'DefaultScriptScopeProvider' (#851)
* automation: Use constructor injection to simplify lifecycle
* Refactoring of 'DefaultScriptScopeProvider' class

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-06-03 20:47:22 +02:00
Christoph Weitkamp
5d7a19541f model: Refactoring of 'RuleEngineImpl' (#853)
* Refactoring of 'RuleEngineImpl'
* Use 'EventType' type instead of the FQCN

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-06-03 16:11:18 +02:00
Christoph Weitkamp
e2e53cb5c2 Fixed JavaDoc to get rid of the Quartz includes (#852)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-06-03 14:49:09 +02:00
Christoph Weitkamp
64a466ff7d Added nullness annotations (#850)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-06-03 14:05:33 +02:00
Christoph Weitkamp
7f0d61d6a6 thing: Use constructor injection to simplify lifecycle (#849)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-06-03 13:14:41 +02:00
Christoph Weitkamp
59ffc98b23 model: Use constructor injection to simplify lifecycle (#840)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-06-02 15:55:53 +02:00
Markus Rathgeb
e9418cb4c1 split between activation logic (#836)
If a component should be activated an instance is constructed and that
object is activated.
Let's split the construction and activation logic also if constructor
injection is used.

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-05-28 21:36:33 +02:00
Christoph Weitkamp
eef779e91a Added nullness annotations (#837)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-05-28 17:56:48 +02:00
Christoph Weitkamp
3ab9bab2f4 rest/sse: Use constructor injection to simplify lifecycle (#838)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-05-28 17:46:20 +02:00
Christoph Weitkamp
8b59505145 discovery: use constructor injection to simplify lifecycle (#835)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-05-27 22:47:03 +02:00
maniac103
36ae91856c Always send correct 'item' member in SSE events (#691)
* Make sure to always send the correct 'item' member in SSE events.

If a change to item A causes visibility changes to item B, we previously
sent an SSE event for B including the new visibility for B, but included
item and state of A. This leads to client confusion, as it'll update its
internal state for the widget belonging to B with the item state of A.
Make sure to always send the item for B and to omit state in that case.

Closes #690

Signed-off-by: Danny Baumann <dannybaumann@web.de>
2019-05-25 10:12:11 +02:00
Christoph Weitkamp
0d736a700e Use correct profile builder (#831)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-05-24 19:41:55 +02:00
J-N-K
d35665c201 partly reverts #795 as it creates runtime exceptions (#828)
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
2019-05-19 18:18:44 +02:00
Markus Rathgeb
c547414003 set http context ID for smarthome HTTP context (#818)
The Pax Web Extender is much more happy if this property is present.
Let's make it happy...

Fixes: https://github.com/openhab/openhab-distro/issues/891

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-05-18 00:25:38 +02:00
Markus Rathgeb
7780d0d133 Travis CI: check POM convention (#795)
* Travis CI: check POM convention

We could use Travis CI to execute some checks in front of the normal
build.

This change adds a check if the POM files follow our POM conventions.

If something fails, it show which files violates the convention and the
command that should be executed to fix the situation.

For example if the base POM file breaks the convention:

    At least one POM file breaks the convention, please use sortpom to fix the POM file(s).
    	modified:   pom.xml
    You should run the following command in the root directory of your working copy:
        mvn com.github.ekryd.sortpom:sortpom-maven-plugin:sort -Dsort.keepBlankLines=true -Dsort.createBackupFile=false -Dsort.predefinedSortOrder=recommended_2008_06

* add sortpom plugin to verify phase
* do not use dependency reduced pom (use scope)

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-05-18 00:07:14 +02:00
Markus Rathgeb
0aaad726ff persistent inbox: ensure all members have been set before usage (#826)
Fixes #823

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-05-16 14:20:50 +02:00
Markus Rathgeb
457df1e853 rule engine should not depend on specific registry implementation (#819)
The current rule registry implementation provides a configuration for
the "rule reinitialization delay". That configuration is not used by the
rule registry itself but used by the rule engine implementation.
This required the rule engine implementation to contain a special code
path that checks if the injected rule registry is an instance of that
special implementation to access that configuration parameter.
As the configuration is not used by the registry itself, it does not
make sense that it is a configuration of that component.
If the rule engine (at least this special implementation) would like to
use a configurable parameter, it should be part of that specific
component implementation.

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-05-15 23:03:05 +02:00
Markus Rathgeb
ccd66f1491 use constructor injection to simplify lifecycle (#822)
Fixes #811

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-05-15 20:05:22 +02:00
Markus Rathgeb
d55d59d3b5 MQTT: disable https hostname verification (#820)
After the bump of Paho from 1.2.0 to 1.2.1 the library enables the https
hostname verification.
This breaks compatibility with current consumers.
Connections cannot be established anymore.

We disable the https hostname verification to keep the old behaviour.
We should add an API so the hostname verification can be enabled if
desired.

This also makes the version 1.2.1 the lower version limit as we need to
use the API to disable the verification internally.

Related to: https://github.com/openhab/openhab-core/issues/815

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-05-15 17:57:49 +02:00
Markus Rathgeb
dc5ddba83c [model] don't require to download antlr generator on build time (#810)
The antlr generator has been downloaded by a specific download maven
plugin at build time.
Instead of calling the plugin goals it would be much simpler to add the
downloaded file to the repository (I assume it has been not possible on
the Eclipse repository before).
Another benefit would be the IDE integration as the IDE does not need to
know if the plugin needs to be executed or not...

The provided antlr generator has been taken from:
http://download.itemis.com/antlr-generator-3.2.0-patch.jar

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-05-14 09:04:35 +02:00
Markus Rathgeb
4480e04137 persistent inbox: do not use incomplete initialized object (#813)
Fixes: https://github.com/openhab/openhab-core/issues/812

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-05-10 09:00:41 +02:00
Christoph Weitkamp
0f74348f51 Factored out 'LocalizedKey' into separate class (#808)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-05-09 11:57:40 +02:00
Markus Rathgeb
bba6df5372 add printf for console (#793)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-05-09 08:29:56 +02:00
Christoph Weitkamp
2a9485bc3b Improvements for 'DefaultSystemChannelTypeProvider' (#807)
* Use constructor dependency injection
* Added nullness annotations

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-05-09 07:51:56 +02:00
Christoph Weitkamp
b5f33d341d Added i18n feature for profiles (#785)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-05-09 07:50:55 +02:00
Markus Rathgeb
1996f69e6f [automation] Fix activation of rules (#796)
Related to: https://github.com/openhab/openhab-core/issues/722
Related to: https://github.com/openhab/openhab-core/issues/783

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-05-08 15:18:21 +02:00
Kai Kreuzer
9f4ad2880f removed classpath entries of non-existent folders in order to solve compilation errors in IDE (#806)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-05-07 23:29:07 +02:00
Markus Rathgeb
d19ee33be9 [audio] audio servlet: don't change map while used by interation (#801)
We should not remove entries (so keys) from the map while we are using
the key set (a view) of that map (see JavaDoc: otherwise "results of the
iteration undefined").

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-05-07 21:26:04 +02:00
Christoph Weitkamp
81423aa22e Separate i18n infrastructure for 'ChannelGroup' (#804)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-05-07 19:32:11 +02:00
Markus Rathgeb
52c2456461 [automation] Disabled storage must not be null anymore (#797)
Related to: https://github.com/openhab/openhab-core/pull/787

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-05-06 13:32:15 +02:00
Markus Rathgeb
b7b5dfc9fa POM Code Convention (#790)
There is a recommended ordering for all Maven POM files.
See: https://maven.apache.org/developers/conventions/code.html

The POM files has been "fixed" by using the "sortpom-maven-plugin".
The blank lines has been kept to keep the element separation for
readability.
The plugin also fixes indentation etc.
Have a look at: https://github.com/Ekryd/sortpom/wiki

The profile has been set to "recommended_2008_06" that states:
The POM Code Convention that was chosen by Maven developers in 2008

Command that has been executed:

    mvn \
      com.github.ekryd.sortpom:sortpom-maven-plugin:sort \
      -Dsort.keepBlankLines=true \
      -Dsort.predefinedSortOrder=recommended_2008_06

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-05-05 17:47:41 +02:00
Markus Rathgeb
83e6962244 add human readable notation of serial protocol type (#794)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-05-05 17:42:06 +02:00
Markus Rathgeb
eaaf01a5fd use mandatory storage services (#787)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-05-02 21:11:00 +02:00
Markus Rathgeb
f881ef87f1 model: prevent simultan access of singleton (#773)
The singleton instance of "Diagnostician" is used without
synchronization.
The singleton "Diasnostician" instance is using the singleton
"EValidator.Registry" instance (without synchronization).
In very rare high load situations there has been CME detected.

My first "solution" has been to synchronize the access of
Diagnostician's instance method by using

```java
synchronized (Diagnostician.INSTANCE) {
    ...
```

But after realize that EMF is using internally other singletons I tried
to find any information about EMF and thread safety.

I found this one: https://javahacks.net/2016/07/13/emf-thread-safety/

  EMF models are not thread-safe by default and writing multithreaded
  applications is not that simple.
  The more complex our application became, the more often we got
  concurrent modification exceptions and had problems with filtering and
  sorting operations.

So, I assume instead of adding synchronizations to our code that is
using EMF (IIRC this has been already done on the ESH hosted code base
long time ago) we should try to execute EMF code in a safe manner.

This implementation adds a "SafeEMF" OSGi service that should be used to
execute EMF code to ensure none code of EMF (or at least the ones that
calls has been migrated to the SafeEMF usage) is accessed by separate
threads at the same time.

Related to: https://github.com/openhab/openhab-core/issues/772

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-05-01 23:19:07 +02:00
Markus Rathgeb
bafc39f91b automation: some cleanup (#776)
* automation: first cleanup
* automation: do not set all enabled rules to idle state

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-05-01 23:04:07 +02:00
Christoph Weitkamp
8d5d789371 Changed ordering of annotation and quialifier
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-04-30 13:22:26 +02:00
Christoph Weitkamp
5888c8b5d6 Added RawButtonToggleRollershutterProfile, RawRockerStopMoveProfile and RawRockerUpDownProfile
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-04-30 13:22:26 +02:00
Christoph Weitkamp
b8de327e15 Added i18n feature for dynamic command descriptions (#771)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-04-29 19:16:47 +02:00
Christoph Weitkamp
31760bf3a7 Updated xml schema locations to openhab (#769)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-04-29 19:15:24 +02:00
Christoph Weitkamp
92e58ebfd1 Updated xml schema definition locations to openhab (#768)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-04-29 19:14:51 +02:00
Christoph Weitkamp
76387f2b79 Changed visibility of lists to allow subclasses to acces them (#770)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-04-29 19:10:07 +02:00
Christoph Weitkamp
1bbf250d1f Removed deprecated methods (#721)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-04-28 18:52:16 +02:00
Markus Rathgeb
25d7f14dfc safe caller: respect classloader of the class and the interfaces (#763)
Related to: https://github.com/openhab/openhab2-addons/issues/5519

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-04-28 16:20:53 +02:00
Markus Rathgeb
1ac2e8978b automation: remove specific handling for CompositeModuleHandlerFactory (#764)
The member variable "compositeFactory" that holds the
"CompositeModuleHandlerFactory" instance is set in the activation method
by calling the constructor of of "CompositeModuleHandlerFactory".
This reference is destroyed and unset in the deactivate method.

There exists DS managed multiple optional references to
"ModuleHandlerFactory".
The "add" logic does not touch the "compositeFactory" variable.
The "remove" logic checks if the given service reference is a
"CompositeModuleHandlerFactory" and unsets the "compositeFactory" member
variable.

If e.g. a module handler factory is injected that also implements the
CompositeModuleHandlerFactory the CompositeModuleHandlerFactory created
by the activate method is still be used. If that specific module handler
factory is removed again, the variable "compositeFactory" is unset and
there is NO CompositeModuleHandlerFactory present anymore.

There are two options:
* The instance created in the activate method should be used as long as
  no other one is injected.
* The instance created in the activate method should be used all the
  time.

The whole code base does not contain another specific implementation for
CompositeModuleHandlerFactory, so there is no (at least in openHAB Core)
change that a CompositeModuleHandlerFactory is injected.

So instead of adding a non deterministic usage of "some" composite
module handler factory (which will require a fix of the "set module
handler factory method" and some others), let's drop the buggy code in
the "remove module handler factory" and use the manually created
composite module handler factory all the time.

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-04-28 16:19:06 +02:00
Christoph Weitkamp
bc91446ae1 Added i18n feature for dynamic state descriptions (#655)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-04-26 12:54:40 +02:00
Christoph Weitkamp
d0800c902e Added RawButtonTogglePlayerProfile, RawRockerNextPreviousProfile and RawRockerRewindFastforwardProfile (#747)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-04-26 12:53:16 +02:00
Markus Rathgeb
ce72e1083f drop blocking async SSE implementation (#754)
There workaround for a servlet implementation lower then 3 can be removed.
After we migrated from ESH to openHAB Core we could set servlet >= 3 as a requirement.

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-04-25 20:05:22 +02:00
Christoph Weitkamp
387b439509 Reduced logging level in AbstractRegistry (#755)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-04-25 15:10:33 +02:00
Markus Rathgeb
e92cdace3c REST SSE: disable compression also if servlet 3 support is present (#752)
We should disable the compression regardless if servlet 3 is used or
not. It does not matter which servlet version is used, the client should
receive the messages as soon as possible without compression or
buffering.
You can identify the lost SSE feature as soon as you enable the usage of
Jetty's GzipHandler.

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-04-24 17:03:48 +02:00
Christoph Weitkamp
89da305fd3 Import SmartHomeUnits in Script Scope (#745)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-04-18 21:45:33 +02:00
Scott Rushworth
77992e7df6 Sort by filename instead of path (#724)
Currently, the scripts are loaded based on the lexicographical order of
the absolute paths of the scripts. This makes it difficult to control
the load order. This change bases the load order solely on the filename,
as was originally used before
https://github.com/eclipse/smarthome/pull/3855, and preserves the
ability to use scripts with the same filename.

Signed-off-by: Scott Rushworth <openhab@5iver.com>
2019-04-18 20:15:50 +02:00
Gaël L'hopital
20ee4b8fe0 Added change and update timestamp profiles (#732)
* Added change and update timestamp profiles

Signed-off-by: Gaël L'hopital <gael@lhopital.org>
2019-04-18 12:59:15 +02:00
Wouter Born
f4348cd6e8 Attach source JARs without forking to fix Jenkins warnings (#741)
This fixes the following warnings on Jenkins builds:

[WARNING] Failed to getClass for org.apache.maven.plugins.source.SourceJarMojo

See also: https://issues.jenkins-ci.org/browse/JENKINS-27372

Signed-off-by: Wouter Born <github@maindrain.net>
2019-04-17 06:55:41 +02:00
Wouter Born
fb972f385a Configure LanguageServer exit behavior (#742)
Xtext 2.17 allows for configuring the LanguageServer exit behavior so the SecurityManager workaround can be removed.

Fixes: https://github.com/eclipse/smarthome/issues/6291
Undos: https://github.com/openhab/openhab-core/pull/409

See also:
* "Configurable Server Exit Behavior" in the Xtext 2.16.0 release notes:
  https://www.eclipse.org/Xtext/releasenotes.html#/releasenotes/2018/12/04/version-2-16-0
* https://github.com/eclipse/xtext-core/issues/885

Signed-off-by: Wouter Born <github@maindrain.net>
2019-04-17 06:52:42 +02:00
Markus Rathgeb
32845ef36d differ between min. karaf version (OSGi) und karaf compilation tooling (#740)
Related to: https://github.com/openhab/openhab-core/pull/723#issuecomment-483595667

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-04-16 22:41:27 +02:00
David Gräff
8819eb6ef9 add default constructor to MetadataKey (Gson deserialization support) (#727)
Signed-off-by: David Gräff <david.graeff@web.de>
2019-04-15 15:42:46 +02:00
Christoph Weitkamp
309a1af45f Deprecated method - could be removed because of superflous code (#720)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-04-15 14:35:48 +02:00
Christoph Weitkamp
0aa7661764 Revert ThingImpl and BridgeImpl changes as the storage uses those implementations (#719)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-04-14 23:09:09 +02:00
Kai Kreuzer
48ce8357f5 remove build path entries for non-existent folders (#716)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-04-14 09:55:32 +02:00
Scott Rushworth
5f880e1062 Added ScriptModuleTypeProvider (#635)
Added ScriptModuleTypeProvider, which dynamically adds available script
languages to the ParameterOptions used in Paper UI when configuring a
ScriptAction or ScriptCondition.

Signed-off-by: Scott Rushworth <openhab@5iver.com>
2019-04-11 06:57:39 +02:00
Christoph Weitkamp
48a97c1ac2 Improved thing / bridge performance (#693)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-04-10 08:50:04 +02:00
Markus Rathgeb
33cfb5dbac mapdb storage: minor cleanups (#707)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-04-09 21:23:25 +02:00
Thomas Weißschuh
82b7ff6db9 Channel groups should not require static channels (#696)
* channel groups should not require static channels
* Added unit tests

Also-by: Christoph Weitkamp <github@christophweitkamp.de>
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
2019-04-08 21:44:52 +02:00
David Gräff
7838a6a46f Update Metadata.java (#704)
Fixes #699 

Signed-off-by: David Gräff <david.graeff@web.de>
2019-04-08 21:07:33 +02:00
Hilbrand Bouwkamp
1d8b7be59b Added units kvarh and kvar. (#695)
Also simplified gravity unit.

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2019-04-07 11:12:06 +02:00
Gaël L'hopital
c6a9085a74 Adding DataAmount (bit and derivatives) and DataTransferRates (bits per second) (#681)
* Adding DataAmount (bit and derivatives) and DataTransferRates (bits per second) to UoM

Signed-off-by: Gaël L'hopital <gael@lhopital.org>
2019-03-30 21:43:15 +01:00
Scott Rushworth
d1a343d8b2 Add DynamicImport-Package for scripted automation (#663)
Fixes #610

Signed-off-by: Scott Rushworth <openhab@5iver.com>
2019-03-30 19:55:01 +01:00
Wouter Born
cbb96945f0 Ignore and remove Eclipse project specific settings (#677)
Signed-off-by: Wouter Born <github@maindrain.net>
2019-03-26 13:04:09 +01:00
Wouter Born
1acb9c8ff2 [core] Increase DateTimeType parsing and formatting precision (#668)
Since Java 9 (JDK-8164428) the maximum resolution from the underlying clock is used.
Instead of just milliseconds the resolution can now even be tenth of microseconds.

According to the Type JavaDocs toFullString() should return the full string representation of the type to be consumed by 'valueOf(String)'.

With the changes in this PR toFullString() may return higher resolution date time strings on newer Java versions and valueOf(value) is able to parse these.

Code depending on a certain resolution returned by toFullString() should use the format(pattern) method instead so the resolution will not change.

Fixes #667

Signed-off-by: Wouter Born <github@maindrain.net>
2019-03-17 13:18:30 +01:00
Wouter Born
7e94df1656 Print message instead of null on console when specified play volume is invalid (#670)
The fix helps users and also ensures the unit test works on both Java 8 and 11.

Signed-off-by: Wouter Born <github@maindrain.net>
2019-03-17 13:00:35 +01:00
Wouter Born
2c7ca348ef Upgrade Xtext to 2.17 for full Java 11 support (#650)
* Upgrade Xtext to 2.17 for full Java 11 support

Signed-off-by: Wouter Born <github@maindrain.net>
2019-03-15 09:13:24 +01:00
Markus Rathgeb
fdb23778dc improve nullness of events (#657)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-03-15 09:10:52 +01:00
Michael Riess
797a78e718 fix synchronisation and equals() in Configuration (#642)
Signed-off-by: Michael Riess <michael.riess@telekom.de>
2019-03-11 21:23:32 +01:00
Markus Rathgeb
2913d75e56 remove PDE left overs from core.karaf project (#639)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-03-08 23:22:00 +01:00
Andre Fuechsel
00edae4539 Do not use Paths to concatenate resource paths as on Windows it will convert "/" to "\\" and this is not a valid resource path for bundle.getResource() (#633)
Signed-off-by: Andre <afuechsel@gmail.com>
2019-03-06 21:32:45 +01:00
Wouter Born
48d873a32b Use openHAB license headers (#632)
Signed-off-by: Wouter Born <github@maindrain.net>
2019-03-06 16:10:00 +01:00
David Gräff
e508e8e4af ConfigDescriptionParameter: javadoc getContext() (#623)
Improve javadoc by explaining the different defined context values. 
I have added "rule", "channel", "channeltype" and "cronexpression" as those are used within the automation module.
The i18n service uses "location" as context value and expects a map to be rendered.

Signed-off-by: davidgraeff <david.graeff@web.de>
2019-03-05 12:59:08 +01:00
Markus Rathgeb
bf4eac7d78 migrate tests for storage.json (#624)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-03-05 11:53:02 +01:00
David Gräff
4c9a5aa291 [Automation] GenericCronTrigger (#622)
A cron trigger module is actually not that "Generic" and a useful trigger type for a lot of rules.

Therefore I suggest to remove the visibility "HIDDEN" with this PR.
I have also added a context "cronexpression" to the TEXT configuration value, so that UI's can offer a cron expression
selection widget.
(we currently have: 'time','item','script','channel','dayOfWeek','rule')

Signed-off-by: davidgraeff <david.graeff@web.de>
2019-03-05 06:46:48 +01:00
David Gräff
eacb019e39 [Automation] DayOfWeekCondition (#621)
Remove inconsistent visibility "PUBLIC". This value is not documented (there is only HIDDEN and VISIBLE) and this is the only module type that uses PUBLIC instead of just not setting this value at all.

Signed-off-by: davidgraeff <david.graeff@web.de>
2019-03-04 11:19:47 +01:00
Kai Kreuzer
2d92336d72 added Guava version constraint
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-03-04 09:08:09 +01:00
Kai Kreuzer
227707c67a made package imports explicit
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-03-04 09:08:09 +01:00
Hilbrand Bouwkamp
caa9b71c21 Added new parent class for units to fix import problems. (#618)
The change with unit classes parent (#617) causes it to report missing imports of tec.uom.se when using static import. Before the change this was not a problem because the parent class was SmartHomeUnits. This change adds a new parent class for all units.

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2019-03-02 14:26:01 +01:00
Hilbrand Bouwkamp
4517f3959b Added standard gravity and dBm units.
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2019-03-01 23:50:13 +00:00
Hilbrand Bouwkamp
21bf4d9ef0 Reordered units alphabetical, changed extends on SmartHomeUnits
The classes ImperialUnits and SIUnits both extended SmartHomeUnits. But the classes are used a singletons.

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2019-03-01 23:50:13 +00:00
Markus Rathgeb
45858f2dd2 model.core: respect OSGi lifecycle (#592)
Fixes: https://github.com/openhab/openhab-core/issues/591

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-21 10:13:54 +01:00
Gaël L'hopital
32bee0e22c Small UoM evolutions (#588)
Signed-off-by: Gaël L'hopital <gael@lhopital.org>
2019-02-20 09:41:29 +00:00
Kai Kreuzer
fb0470c6d1 removed dashboard bundle as it has moved to https://github.com/openhab/openhab-webui (#586)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-02-20 05:37:41 +00:00
Hilbrand Bouwkamp
09e2292a58 Replaces 'Eclipse SmartHome' with 'openHAB' in text (#581)
Adapted CONTRIBUTING.md file.

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2019-02-15 10:46:37 +01:00
Hilbrand Bouwkamp
d342afbc4e Updated NOTICE files to openHAB (#578)
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2019-02-15 10:46:18 +01:00
David Gräff
ee466da9bc [automation] Unify types - itemsActions (#579)
Unify types - Second try
See also types in automation/moduletypes/ItemTriggers.json

Signed-off-by: davidgraeff <david.graeff@web.de>
2019-02-15 09:31:11 +00:00
Markus Rathgeb
e9a3701417 migrate tests for model.thing
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-14 14:22:33 +01:00
Markus Rathgeb
fa8a368873 handle different possible service PID types (#560)
* handle different possible service PID types

The property value "service.pid" can use different types:
* String
* String[]
* Collection of String

Only "String" has been supported.

https://github.com/openhab/openhab-core/pull/557 adds support for
String[]

https://github.com/openhab/openhab-core/pull/559 removes the support for
String[] again and adds support for the Collection type List only.

This commit ensures that String arrays and every collection type is
supported, regardless which (valid) type is used by the OSGi framework
implementation.

Fixes: https://github.com/eclipse/smarthome/issues/6710

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-13 17:09:32 +01:00
Markus Rathgeb
afd1770da2 ensure rules can access joda time packages (#572)
Fixes: https://github.com/openhab/openhab-core/issues/553

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-13 09:29:53 +01:00
Markus Rathgeb
04bbd2e847 remove obsolete plugin configuration (#573)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-13 09:26:27 +01:00
Henning Treu
3c8e3efa93 Extend ChannelType by command options (#540)
This addresses https://github.com/eclipse/smarthome/issues/5099 by adding a command description with command options along with the state description.
Command options will give a hint to UIs about the specific commands a channel provides. Command options could be rendered as a drop down and also represent the current state or rendered as push buttons to simply send a command to the ThingHandler.
The infrstructure basically copies the StateDescription infrastructure with CommandDescriptionProviders and an `DynamicCommandDescriptionProvider` interface for bindings to hook in and provide dynamic command options.

Signed-off-by: Henning Treu <henning.treu@googlemail.com>
2019-02-12 13:41:01 +00:00
Markus Rathgeb
2535d3dd50 make optional import that's optionally used by Class.forName (dbus lib) (#562)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-11 18:19:47 +01:00
Kai Kreuzer
0197896f5f check for lists instead of arrays (#559)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-02-11 05:03:42 +00:00
Kai Kreuzer
e96aa523fc handle arrays for pids (#557)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-02-10 20:57:23 +00:00
Kai Kreuzer
4d9de63ca6 added missing versions for features and fixed assembly of jetty certificate bundle (#547)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-02-08 18:17:16 +00:00
Markus Rathgeb
223a371628 update Maven project settings (Eclipse IDE)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-06 15:56:00 +01:00
Markus Rathgeb
fd95b86b36 centralize the bundle identifier construction
The ready marker logic is created to hide the real usage. The ready
marker uses an "identifier" that is not specific or limited to bundles.

Currently the bundle symbolic name is used as bundle identifier.
That "convention" needs to be known at several different places.

There should be one method that created an identifier for a bundle and
"no one" needs to care about the implementation details.

Another point is that the bundle symbolic name that has been used is
optional. It may be null e.g. for bundles that has been installed by the
synthetic bundle installer mechanism etc.

The runtime assigns a bundle ID to an installed bundle that remains the
same for the bundle (see JavaDoc). The bundle ID is present all the
time.

The implementation of the "get identifier for bundle" has been choosen
to use the BSN -- if available -- (as before) but fallback to a custom
one using also the bundle ID (to be unique).
So we can provide always a non null identifier for a bundle.
It should be easily to change the identifier creation now if there is
every any need for.

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-06 15:56:00 +01:00
Markus Rathgeb
92b71f1712 provide a better uninstall method for synthetic bundles
If a bundle misses a BSN the bundle cannot be installed.
We should provide a method to uninstall the bundle that has been created
by the synthetic installer itself.

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-06 15:56:00 +01:00
Markus Rathgeb
23809b0cbd add provided storage capability to test bundle itself
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-06 15:55:59 +01:00
Markus Rathgeb
034e38d3e1 add test: org.openhab.core.config.core (#516)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-04 17:37:10 +01:00
Scott Rushworth
a65efe062d Add registration (#520)
Signed-off-by: Scott Rushworth <openhab@5iver.com>
2019-02-03 18:50:57 +01:00
Markus Rathgeb
93ef47c4a7 add test: org.openhab.core.id (#514)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-01 19:32:39 +01:00
Markus Rathgeb
7a1982e785 harden against missing bundle symbolic name (#510)
Fixes: https://github.com/openhab/openhab-core/issues/508

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-01 14:53:38 +01:00
Markus Rathgeb
68c8db8227 add missing no-arg constructors (#509)
* FirmwareUpdateProgressInfo
* FirmwareStatusInfo
* FirmwareUpdateResultInfo

Fixes: https://github.com/openhab/openhab-core/issues/507

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-01 14:24:25 +01:00
Markus Rathgeb
9475025cf7 at missing no-arg constructor for Gson deserialization (#505)
Fixes: https://github.com/openhab/openhab-core/issues/504

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-01 11:01:40 +01:00
Markus Rathgeb
6260f8e8ae fix scope (#502)
* fix scope

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-01 10:05:25 +01:00
Markus Rathgeb
4c856476a0 attach source artifact of "bundles" (#500)
Fixes: https://github.com/openhab/openhab-core/issues/496

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-01 09:04:17 +01:00
Kai Kreuzer
9f27727e09 REST API: (Optionally) include hidden widgets in sitemap API response (#499)
Also-by: Danny Baumann <dannybaumann@web.de>
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-01-31 15:46:25 +00:00
Kai Kreuzer
0d1828f819 Extend usb serial discovery service to contain product ID (#497)
For better differentiation between different USB devices `UsbSerialDiscoveryService` is extended to add `usb_vendor_id` and `usb_product_id` properties to every thing which represents USB device.

Also-by: YordanDZhelev <zhelev.yordan@gmail.com>
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-01-31 12:45:10 +00:00
Kai Kreuzer
53096ba08f removed Groovy support from tests (#490)
Also-by: Markus Rathgeb <maggu2810@gmail.com>
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-01-31 05:15:43 +00:00
Markus Rathgeb
014cc6c708 MapDB storage: fix deserialization bug and add test (#486)
Fixes: https://github.com/eclipse/smarthome/issues/6877

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-01-30 17:17:23 +01:00
Kai Kreuzer
3b6dfbeddb Keep persisted disabled status when thing is removed (#493)
Also-By: Florian Stolte <fstolte@itemis.de>
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-01-30 11:37:51 +01:00
Markus Rathgeb
76dd62623f make a first step to split between pure JUnit and integration tests (#488)
* make a first step to split between pure JUnit and integration tests

Related to: https://github.com/openhab/openhab-core/issues/482

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-01-30 08:57:06 +01:00
Markus Rathgeb
f7eec48c76 fix classpath (ESH-INF have been moved already) (#484)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-01-29 11:19:45 +01:00
Markus Rathgeb
fbca7e806f remove project specific JDT settings (#481)
Done per request by @wborn.
Related to: https://github.com/openhab/openhab-core/pull/476#discussion_r251566034

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-01-29 10:24:39 +01:00
Markus Rathgeb
64dccd32dd tests: run pure JUnit tests (bugfix), add MapDB tests (migrated to JUnit) (#476)
* tests: run pure JUnit tests (bugfix), add MapDB tests (migrated to JUnit)
* remove project specific JDT settings

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-01-29 10:05:47 +01:00
Markus Rathgeb
12a5273cc8 mapdb storage: fix nullness handling (#479)
The `MapDbStorageService` calls the constructor with a `null`
classloader if there has been no one supplied.

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-01-28 23:14:39 +01:00
Markus Rathgeb
a37cceab67 mavenize openHAB and integrate mavenized ESH repository (#467)
* mavenize openHAB and integrate mavenized ESH repository

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-01-28 13:07:31 +01:00
Kai Kreuzer
45a7ce27cb Removed addons from core (#469)
* removed addons from core
* removed homebuilder folder
* removed io.sound bundle

Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-01-21 12:50:14 +01:00
Kai Kreuzer
10acf5cf46 Changed license from EPL v1 to EPL v2 (#466)
* updated license headers
* added NOTICE files
* moved about.html to NOTICE files
* changed main project license
* updated build.properties
* added files to check to prevent error about missing about.html
* removed license info on p2 feature

Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-01-16 22:59:49 +01:00
Kai Kreuzer
eb8abdc894 updated to 2019 (#464)
* updated to 2019
* updated checkstyle check to 2019

Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-01-07 22:53:19 +01:00
Wouter Born
b1aeb17ee6 Log failed feature installation on error (#459)
Signed-off-by: Wouter Born <eclipse@maindrain.net>
2018-12-31 11:46:09 +01:00
openhab-bot
61e21d4866 [unleash-maven-plugin] Preparation for next development cycle. 2018-12-16 21:49:16 +00:00
openhab-bot
cf2b23013a New Crowdin translations (#443)
* New translations dashboard.properties
2018-12-12 20:15:18 +01:00
Angelos Fountoulakis
20a460c744 Update dashboard / place 1st the Standard package (#442)
Closes: https://github.com/openhab/openhab-core/issues/441
2018-12-03 12:17:14 +01:00
Kai Kreuzer
b51bf275b9 leave non-numeric qualifiers in place for version (#439)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2018-11-28 10:51:24 +01:00
Martin van Wingerden
d83abb698b Do not install node in target directory to make sure we do not package node in our jar (#434)
Signed-off-by: Martin van Wingerden <martin@martinvw.nl>
2018-11-21 21:54:54 +01:00
Martin van Wingerden
deb2437a6b Some updates to the HomeBuilder (#417)
* Added semantic labels to tags Floors, Rooms and objects
* Added a Cellar as a Floor
* Added support for more languages which where already available as translation
* Integrated the webpack build inside Maven
* Only allow minor updates in the package.json to make sure new version will not easily break the build, if semver fails again
* Remove dist folder because it should be generated through the build
* Switched from 'hidden-xs-up' to 'd-none' as proposed in bootstrap migration guide
* Switched from 'scope' to 'slot-scope' as suggested by vue 2.5 migration
* Added some additional parents in the vue schema because they were needed
* Removed osgi import from manifest
* Switched to a computed setup and the build in fieldMultiselect
* Switched to a 'computed' setup
* Remove the package fieldMultiselect and switch to the build-in
* Applied changes from review.
* Formatted JS files
* Re-introduced (customized) fieldMultiselect and minor fixes
* Re-introduce custom multiselect because this is the one that offers the icons
* Add the floor name to the label of room-based object selector
* Make sure that generating tags can be switched off
* Switched from floor-count to choosing custom floors
* Add no-save and corrected some js warnings

Signed-off-by: Martin van Wingerden <martin@martinvw.nl>
2018-11-13 22:53:18 +01:00
Kai Kreuzer
511a1e4d9f prevent NPEs if persistence service does not play nice (#426)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2018-11-05 16:34:17 +01:00
Kai Kreuzer
24d32f877c temporarily remove ui.start bundle from distro again (#424)
* temporarily remove ui.start bundle from distro again
* correctly unregister services again
* also unset the handlerRef field

Signed-off-by: Kai Kreuzer <kai@openhab.org>
2018-11-03 22:59:25 +01:00
Kai Kreuzer
38a2624df6
register static context handler (#423)
* register static context handler

Signed-off-by: Kai Kreuzer <kai@openhab.org>
2018-11-03 12:57:12 +01:00
Kai Kreuzer
bfd03fd889 added missing dependencies and response code
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2018-11-01 14:40:28 +01:00
Kai Kreuzer
c07a5ddd9c delegate calls to /static/ to the Jetty default servlet
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2018-11-01 14:40:28 +01:00
Kai Kreuzer
39f0e17002
Introduced new ui.start bundle, which brings custom lifecycle status … (#419)
* Introduced new ui.start bundle, which brings custom lifecycle status HTTP pages as well as an 404 error page.

Signed-off-by: Kai Kreuzer <kai@openhab.org>
2018-10-31 09:16:10 +01:00
Kai Kreuzer
d3ffb2db5a prevent System.exit() calls (#409)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2018-10-01 21:18:46 +02:00
Markus Rathgeb
cd920a3c5e satisfy bundle requirements on Maven compilation
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2018-09-21 21:04:23 +02:00
Kai Kreuzer
1a8dc2618e fixes potential NPE in async execution (#398)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2018-09-12 23:42:46 +02:00
Kai Kreuzer
b48e50b7a1 replaced last DS XML by annotations (#397)
Correctly register ItemRegistry service

Signed-off-by: Kai Kreuzer <kai@openhab.org>
2018-09-11 11:43:01 +02:00
Wouter Born
8091914a4b Apply POM Code Convention (#392)
Applies the POM Code Covention as used in OH2/ESH projects.

See also: https://maven.apache.org/developers/conventions/code.html

The executed command is:

mvn \
  com.github.ekryd.sortpom:sortpom-maven-plugin:sort \
  -Dsort.keepBlankLines=true \
  -Dsort.predefinedSortOrder=recommended_2008_06

Signed-off-by: Wouter Born <eclipse@maindrain.net>
2018-09-10 13:45:11 +02:00
Wouter Born
dbed3db57d Remove Eclipse project specific settings and some Groovy leftovers (#391)
Signed-off-by: Wouter Born <eclipse@maindrain.net>
2018-09-08 17:38:56 +02:00
Kai Kreuzer
47c2e33624 adapted AutoUpdateDelegate to the new ESH auto update infrastructure (#390)
* adapted AutoUpdateDelegate to the new ESH auto update infrastructure
Related to https://github.com/eclipse/smarthome/pull/5011

Signed-off-by: Kai Kreuzer <kai@openhab.org>
2018-09-06 09:33:47 +02:00
Kai Kreuzer
11acfbad82 Removed circular dependency in Home Builder and switched tiles to DS annotations (#386)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2018-08-20 21:14:50 +02:00
Wouter Born
fe1a0b9f40 Remove unused bundle properties (#385)
Signed-off-by: Wouter Born <eclipse@maindrain.net>
2018-08-17 21:51:26 +02:00
openhab-bot
deb888476b New Crowdin translations (#349) 2018-07-23 14:10:52 +02:00
Hilbrand Bouwkamp
ad3f6df25a Changed constructors DecimalType to work the same as ESH DecimalType (#372)
The constructors of DecimalType in ESH use BigDecimal.valueOf instead of new BigDecimal. Using valueOf is better because the new constuctors causes undesired rounding. For example the value 0.32 becomes: 0.320000000000000006661338147750939242541790008544921875. With valueOf this doesn't happen.
This change will make it work the same as the ESH DecimalType
Closes #371

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2018-07-23 13:11:05 +02:00
Wouter Born
33c7f838fc Add Automatic-Module-Name entry to manifests (#369)
Signed-off-by: Wouter Born <eclipse@maindrain.net>
2018-07-21 16:07:17 +02:00
Chris Carman
f748afdd19 Don't lose stacktrace when rethrowing (#359)
* Don't lose stacktrace when rethrowing

Don't destroy the stacktrace information of a caught exception that's about to be rethrown.
2018-06-14 17:37:43 +02:00
Kai Kreuzer
0eec30045e removed ignored groovy test (#358)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2018-06-09 20:46:08 +02:00
CloudBees DEV@Cloud
cabe7c4528 [unleash-maven-plugin] Preparation for next development cycle. 2018-05-28 01:54:21 +02:00
Wouter Born
aa6f0e0a1b Update Home Builder documentation links (#350)
Signed-off-by: Wouter Born <eclipse@maindrain.net>
2018-05-26 13:17:02 +02:00
Kai Kreuzer
75c1796d92
adapted links to documentation to new website layout (#347)
* adapted links to documentation to new website layout

Signed-off-by: Kai Kreuzer <kai@openhab.org>
2018-05-24 22:36:07 +02:00
openhab-bot
6a4f410fa1 New translations dashboard.properties (Hebrew) (#348) 2018-05-22 22:06:31 +02:00
openhab-bot
6c5050e8ac New Crowdin translations (#331)
* New translations dashboard.properties (Czech)

* New translations en-UK.json (Czech)

* New translations dashboard.properties (Hungarian)

* New translations en-UK.json (Hungarian)

* New translations dashboard.properties (Hebrew)

* New translations dashboard.properties (Hebrew)

* New translations en-UK.json (Hebrew)

* New translations en-UK.json (Hebrew)

* New translations dashboard.properties (Hebrew)

* New translations en-UK.json (Hebrew)

* New translations dashboard.properties (Hebrew)

* New translations dashboard.properties (Russian)

* New translations dashboard.properties (Polish)

* New translations dashboard.properties (Tagalog)

* New translations dashboard.properties (Turkish)

* New translations dashboard.properties (Czech)

* New translations dashboard.properties (Hungarian)

* New translations dashboard.properties (Hebrew)

* New translations dashboard.properties (Dutch)

* New translations dashboard.properties (French)

* New translations dashboard.properties (German)
2018-05-21 19:44:29 +02:00
Kai Kreuzer
c247f1683d updated links to documentation website (#346)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2018-05-21 14:08:56 +02:00
Kai Kreuzer
9a4c8d74ae replace ESH p2 update site dependency by plain Maven dependencies (#341)
* replace ESH p2 update site dependency by plain Maven dependencies
* added special dependencies for core bundles
* added dependencies to feature projects as well

Signed-off-by: Kai Kreuzer <kai@openhab.org>
2018-05-14 14:33:24 +02:00
Kai Kreuzer
47bfddeecd
added new methods for breaking ESH change (#339)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2018-05-03 19:21:40 +02:00
Kai Kreuzer
c02826f882 added proper logging in error case (#333)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2018-04-13 15:40:31 +02:00
Kai Kreuzer
55afd3e74e only regard ESH main type when mapping to OH types (#326)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2018-04-01 21:50:44 +02:00
Kai Kreuzer
9b0bf26c09
added support for QuantityType in the compatibility layer (#319)
This specifically makes the QuantityType backward compatible and makes it treated as a simple DecimalType in any 1.x add-ons, such as specifically the persistence services.

Signed-off-by: Kai Kreuzer <kai@openhab.org>
2018-03-26 14:29:19 +02:00
openhab-bot
aa899d7f4d New Crowdin translations (#280)
* New translations
2018-03-13 06:59:30 +01:00
Tanya Georgieva
8a3b3d1074 Changed the indentation for some XML files from spaces to tabs (#310)
Signed-off-by: Tanya D. Georgieva <tanya.dancheva.georgieva@gmail.com>
2018-03-12 18:17:58 +01:00
Henning Treu
8988baba82 Add OSM source service (#224)
Also: update logo pointer to new openHAB logo

Signed-off-by: Henning Treu <henning.treu@telekom.de>
2018-02-13 15:25:44 +01:00
pali
c330398320 [Dashboard] Fix illegal tile caused NPE (#282)
* [Dashboard] Fix illegal tile caused NPE
* [Dashboard] Improve error handling in DashboardServlet

Signed-off-by: Pauli Anttila <pauli.anttila@gmail.com>
2018-01-23 14:11:13 +01:00
Martin van Wingerden
c43d970f09 Fixed missing spacing and removed unused duplicate CSS (#279)
Signed-off-by: Martin van Wingerden <martinvw@mtin.nl>
2018-01-16 11:16:35 +01:00
Thomas Dietrich
0d7b270a3f Capitalize Dashboard in log messages (#277)
😶
2018-01-15 08:30:47 +01:00
pali
9e324e1cbf [Dashboard] support special words in dashboard tile URL's. (#274)
HOST, HOSTNAME special words are supported.

Signed-off-by: Pauli Anttila <pauli.anttila@gmail.com>
2018-01-13 12:05:30 +01:00
Svilen
97fbe5e4e8 Update header in HomeBuilder UI (#276)
Signed-off-by: Svilen Valkanov <svilen.valkanov@musala.com>
2018-01-12 13:57:45 +01:00
Martin van Wingerden
5a21ca6b02 Updated copyrights to 2018 (#271)
Signed-off-by: Martin van Wingerden <martinvw@mtin.nl>
2018-01-03 09:26:13 +01:00
CloudBees DEV@Cloud
5c6bfba450 [unleash-maven-plugin] Preparation for next development cycle. 2017-12-17 23:40:22 +01:00
Kuba Wolanin
884b261260 [HomeBuilder] Usage documentation updated (#263)
* [HomeBuilder] Usage documentation updated

Signed-off-by: kubawolanin <hi@kubawolanin.com>
2017-12-15 19:15:27 +01:00
Kai Kreuzer
08fef96ea6
reverted app icon change (#261)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-12-15 15:07:13 +01:00
Kai Kreuzer
1288309779
aligned app icon with Android and iOS app (#260)
fixes #250

Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-12-14 23:49:10 +01:00
Kai Kreuzer
371d743bff
Preparations towards a reproducible release build (#259)
- using an ESH release build (0.10.0.b1)
- added ESH release p2 repos for release builds
- removed targetplatform, which afaics isn't used at all anymore

Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-12-14 23:48:55 +01:00
Kai Kreuzer
50c01f2098 Improved the feature installation logic (#256)
- wait for config update when online status has changed
- removed static methods and logger
- proper handling of "minimal" feature
- introduced a sync job that checks if everything is installed as expected (which serves as a retry mechanism in case of failed downloads)

fixes https://github.com/openhab/openhab-distro/issues/602

Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-12-12 09:04:25 +01:00
Kai Kreuzer
559bc4afea correctly unregister dashboard servlet (#255)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-12-12 05:19:32 +01:00
Thomas Dietrich
d3d56d2072 Improve dashboard README (#254)
Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-12-10 16:39:55 +01:00
VelinYordanov
0cbb237e7b Changed the poms hierarchy (#225)
Signed-off-by: VelinYordanov <velin.iordanov@gmail.com>
2017-12-10 01:04:42 +01:00
Kuba Wolanin
d3293f9524 [HomeBuilder] Making Create Items button more prominent. Also hide the JSON request data. Closes #249 (#251)
Signed-off-by: kubawolanin <hi@kubawolanin.com>
2017-12-08 14:41:35 +01:00
Thomas Dietrich
9250ffe0cc
Fix crowdin incompatibility (#245)
Signed-off-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
2017-12-05 13:57:36 +01:00
Wouter Born
af3466513e Fix logo inconsistencies (#246)
* Updates some overlooked Classic UI icons to the new logo
* Updates the Home Builder favicon to the new logo

Signed-off-by: Wouter Born <eclipse@maindrain.net>
2017-12-05 08:38:33 +01:00
Kuba Wolanin
3d811ecede HomeBuilder - Initial contribution (#172)
openHAB Home Builder - home structure generator

Also-by: Thomas Dietrich <thomas.dietrich@tu-ilmenau.de> (github: ThomDietrich)
Also-by: Demyan Rogozhin <dmitriy.rogozhin@gmail.com> (github: demyanrogozhin)
Signed-off-by: Kuba Wolanin <hi@kubawolanin.com> (github: kubawolanin)
2017-12-03 00:13:10 +01:00
Wouter Born
714bc1d2a8 Fix logo inconsistencies (#240)
* Use new icon in REST docs (Fixes #232)
* Use updated favicon in Paper UI
* Update logo in dashboard tiles

Signed-off-by: Wouter Born <eclipse@maindrain.net>
2017-12-02 18:13:26 +01:00
Kai Kreuzer
73688b7bd2
adapted DataTimeType mapping to new ESH type (#239)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-12-01 18:05:38 +01:00
Kai Kreuzer
3f1af862bc
improved feature installer logic (#238)
- upgraded to Java 8
- reduced calls to listInstalledFeatures, which is very expensive
- properly do the calculation of current/target/diff list of addons, when the config changes
- don't log errors when uninstallation fails as this can happen if it is a dependent feature that must not be uninstalled

Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-11-28 09:30:58 +01:00
Kai Kreuzer
008a67486e
fixed dashboard localization (#233)
- included ESH-INF to binary
- simplified getLocalizedText method as it was now only called with a null locale

Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-11-19 00:25:17 +01:00
lolodomo
3fa30c1fba Dashboard internationalization (#217)
French version included
Fixes #214

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2017-11-18 23:36:41 +01:00
Kai Kreuzer
5be5bc8284
reduced logging level as the util class cannot judge the severity (#227)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-11-05 22:06:47 +01:00
Kai Kreuzer
597b986199
added a round white background to the favicon
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-10-27 18:07:13 +02:00
Vlad Ivanov
bdd56bd628 BasicUI: update icons with new logo (#221)
Signed-off-by: Vlad Ivanov <vlad@ivanov.email>
2017-10-15 14:38:31 +02:00
Kai Kreuzer
52835948c5 logo update (#220)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-10-15 01:21:24 +02:00
Kai Kreuzer
fcfdfbfbe7 adapted to changed ESH API (#218)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-10-10 07:44:12 -07:00
Holger Reichert
d5841d354c [compat1x] Fix ChartProvider API break (#215)
The ESH PR 4291 introduced a change in the ChartProvider API.
This commit changes the compat1x ChartProviderDelegate to work with these changes.

Signed-off-by: Holger Reichert <mail@h0lger.de>
2017-09-26 11:59:13 +02:00
Markus Rathgeb
e57044e13c Rework / formatted manifest (#211)
* reworked and formatted manifest
* added missing jdt.annotation

Related to: https://github.com/eclipse/smarthome/pull/4308

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2017-09-21 08:16:38 +02:00
VelinYordanov
54cc26d4a4 Removed unnecessary inheritDoc. (#210)
See openhab/static-code-analysis#103

Signed-off-by: VelinYordanov <velin.iordanov@gmail.com>
2017-09-19 14:40:43 +02:00
Kai Kreuzer
321d6ca5d8 also consider Group items for binding configuration delegation (#205)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-08-31 18:12:55 +02:00
VelinYordanov
2fa6689b3d Added the lib folder to build.properties. (#199)
Signed-off-by: VelinYordanov <velin.iordanov@gmail.com>
2017-08-31 17:57:50 +02:00
Kai Kreuzer
a2b2e8e997 added jdt annotations to import (#203)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-08-30 10:21:52 +02:00
Kai Kreuzer
cd9d02ab94 removed auto-approve service as this is now contained in ESH (#202)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-08-29 11:13:36 +02:00
Kai Kreuzer
f4d2c1ac6b updated m2e ignore settings to avoid errors in the IDE (#201) 2017-08-29 09:52:15 +02:00
Vlad Ivanov
7afc0e16a1 ClassicUI: add favicon and webapp manifest (#198)
Signed-off-by: Vlad Ivanov <vlad@ivanov.email>
2017-08-28 18:55:17 +02:00
Martin van Wingerden
6bb1ba1057 Updated outdated copyrights (#197)
Signed-off-by: Martin van Wingerden <martinvw@mtin.nl>
2017-08-20 09:56:41 +02:00
pali
ef8d0df10b Added support for dashboard links to external services. (#185)
* Added dashboard support for links to external services.


Signed-off-by: Pauli Anttila <pauli.anttila@gmail.com>
2017-08-18 17:17:24 +02:00
Kai Kreuzer
b8266fac97 changed cardinality for tiles back to 0..n (#195)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-08-15 18:28:53 +02:00
Stefan Triller
f8f8c29f84 Dashboard: Add DS annotations as optional dependency (#192)
Signed-off-by: Stefan Triller <stefan.triller@telekom.de>
2017-08-15 13:51:31 +02:00
Kuba Wolanin
7359c43b2b Dashboard cosmetic fixes: non-relative REST url + css folder created (#186)
Signed-off-by: kubawolanin <hi@kubawolanin.com>
2017-08-15 13:13:24 +02:00
Stefan Triller
b24ff4675d Use new NetworkAddressService for Dashboard (#191)
Signed-off-by: Stefan Triller <stefan.triller@telekom.de>
2017-08-15 12:14:54 +02:00
Svilen
4005121e6c Fix errors found by the static analysis tool (#182)
Signed-off-by: Svilen Valkanov <svilen.valkanov@musala.com>
2017-08-10 12:46:30 +02:00
Kai Kreuzer
16bfd38548 removed httpclient dependency (#168)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-07-19 10:08:41 +07:00
Kai Kreuzer
b5c11780c2 adapt to changed ESH Audio API (#167)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-07-19 09:58:52 +07:00
Henning Treu
ece43ffeae Provide openHAB specific location pin. (#162)
openHAB follow up for https://github.com/eclipse/smarthome/pull/3730.

Signed-off-by: Henning Treu <henning.treu@telekom.de>
2017-07-06 11:24:29 +07:00
Martin van Wingerden
6fcb85b311 Version bump to version 2.2.0-SNAPSHOT (#160)
Signed-off-by: Martin van Wingerden <martinvw@mtin.nl>
2017-06-29 08:45:25 +02:00
Kai Kreuzer
9c2e581d5b moved location retrieval from setup to dashboard (#159)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-06-24 23:24:10 +02:00
Henning Treu
82d7afc397 Retrieve location on first openHAB setup (#158)
Signed-off-by: Henning Treu <henning.treu@telekom.de>
2017-06-24 18:20:35 +02:00
Kai Kreuzer
8797846be3 moved the swagger servlet registration to its own component (#156)
This should avoid potential circular dependencies at startup as the dashboard tile does not depend on HttpService anymore.

Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-06-09 12:38:46 +02:00
Kai Kreuzer
83d1217a69 Made dashboard component to be activated immediately and improved logging (#155)
There is now a line with an absolute Url using the primary IPv4 interface about where openHAB is accessible (both for http & https).

Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-06-09 12:17:05 +02:00
Kai Kreuzer
14e503736c code cleanup to match expectations of static analysis tool (#151)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-06-02 16:40:55 +02:00
Kai Kreuzer
841f238eea add openHAB version and build info to dashboard footer (#149)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-05-16 12:54:20 +02:00
Kai Kreuzer
465b237d0b implemented new method of ExtensionService interface (#145)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-04-29 20:51:46 +02:00
Martin van Wingerden
1ccb558db6 Corrected spelling error occured => occurred (#138)
Signed-off-by: Martin van Wingerden <martinvw@mtin.nl>
2017-04-15 11:53:49 +02:00
Stefan Triller
541b3e3444 Set Groovy compiler level to "i don't care" so eclipse can choose a groovy compiler to build the project without errors (#139)
Signed-off-by: Stefan Triller <stefan.triller@telekom.de>
2017-04-13 21:39:07 +02:00
Chris Jackson
40b553f61d Add openHAB logo icon (#134)
Signed-off-by: Chris Jackson <chris@cd-jackson.com>
2017-04-10 18:38:17 +02:00
Kai Kreuzer
f089cd912f
added about files
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-04-07 16:26:59 +02:00
Kai Kreuzer
485a65e739 applied code formatter (#132)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-04-07 03:42:37 -07:00
Kai Kreuzer
c8486db1a0 restructured poms (#131)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-04-07 03:42:23 -07:00
Kai Kreuzer
3be8099728 switched to Java8 (#130)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-04-05 01:06:43 -07:00
Kai Kreuzer
dcc48f1219 added further links to documentation pages (#116)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-02-17 18:10:49 +01:00
Kai Kreuzer
d1cfcb5918 fixed dangling audio streams if files are played in between (#115)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-01-29 00:26:51 +01:00
Kai Kreuzer
ceef9a9fe0
moved on to 2.1.0-SNAPSHOT
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-01-20 10:48:55 +01:00
Vlad Ivanov
0a70f9e5cb BasicUI: add webapp manifest and icons (#107)
Signed-off-by: Vlad Ivanov <vlad@ivanov.email>
2017-01-09 12:56:56 +01:00
Kai Kreuzer
25375e6dc4 adapted feature installer to new remote repo locations, moved package definitions to distro and improved setup page (#110)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-01-09 11:09:38 +01:00
Vlad Ivanov
b178eca4f4 Dashboard: remove html5 icon, remove z-index for overlay (#109)
Signed-off-by: Vlad Ivanov <vlad@ivanov.email>
2017-01-07 17:50:43 +01:00
Kai Kreuzer
b1e0a71795
added warning message to the dashboard for exposed hosts
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-12-30 22:40:15 +01:00
Kai Kreuzer
99b64815c9 replaced io.transport.serial bundle by nrjavaserial bundle in the target platform (#104)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-12-28 13:10:41 +01:00
Kai Kreuzer
fcc1bcb2ec Revert "Update nrjavaserial, Fixes #101"
This reverts commit ba9ff5389f.
2016-12-27 10:03:52 +01:00
Chris Van Orman
ba9ff5389f Update nrjavaserial, Fixes #101
Signed-off-by: Chris Van Orman <vanorman.chris@gmail.com>
2016-12-24 14:58:48 +01:00
Kai Kreuzer
f3750ec48c only send installed events for new addons (#100)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-12-22 15:41:37 +01:00
Kai Kreuzer
138d73533e Feature installation improvements (#99)
- switched to Karaf 4.0.8
- used bulk feature installation
- synchronised methods to avoid concurrent operations
- fixed issue where dashboard bundle might bind the addons configuration

Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-12-22 00:05:12 +01:00
aounhaider1
20f802a981 Use cutom label from module config (#98)
Signed-off-by: Aoun Bukhari <bukhari@itemis.de>
2016-12-21 14:31:32 +01:00
Kai Kreuzer
4089e5d828 only show spinner if package selection hasn't been skipped and thus UIs are expected to be installed (#97)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-12-20 18:43:45 +01:00
Kai Kreuzer
a72b1c9af2 adapted to changed ESH API and added links to binding documentation (#96)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-12-17 14:04:48 +01:00
aounhaider1
238ba3d695 Custom label for extensions menu entry (#95)
Signed-off-by: Aoun Bukhari <bukhari@itemis.de>
2016-12-16 23:06:24 +01:00
Kai Kreuzer
33dfe7af99 improved wording (#91)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-12-09 15:06:17 +01:00
Kai Kreuzer
b9b4e08694 Several Dashboard enhancements: (#90)
- replaced minimal package by skip button
- added background images for packages
- added spinner in case of empty Dashboard

Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-12-08 18:44:18 +01:00
Kai Kreuzer
d3a81fe8c7 allow spaces in the list of add-ons in addons.cfg (#85)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-11-26 12:17:48 +01:00
Kai Kreuzer
053c073d9e Refactoring of package handling (#81)
* adapted FeatureInstaller to adapt addons info in ConfigAdmin, so that this info is stored in a file
* removed experimental features
* removed package selection from UI as it is meant to be only set once
* introduced new packages: minimal, simple and expert
* introduced a setup page on the dashboard, if no package is set (and thus openHAB is uninitialized)
* added auto-refresh of dashboard to have new entries appear automatically

Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-11-24 20:09:52 +01:00
Kai Kreuzer
c10bc77858 removed outdated component descriptor (#77)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-11-12 19:22:16 +01:00
Kai Kreuzer
ae4cf5a208 changed label to be not identical to the one of the host bundle (#75)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-11-11 18:50:08 +01:00
Kai Kreuzer
fbb210b970 removed ESHCallType and added correct mapping to new CallItem and StringListType in ESH (#73)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-11-10 11:49:27 +01:00
Kai Kreuzer
703b2f043d adapted code to ESH API change (#72)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-11-01 09:09:05 +01:00
Georg Sawtschuk
f16c5836d7 Takeover Dimmer.getStateAs implementation from eclipse's core (#70)
Fix for https://github.com/openhab/openhab/issues/4707. DimmerItem.getStateAs returns 0 if PercentType requested. Tested together with influxdb persistence.
2016-10-18 21:07:59 +02:00
Kai Kreuzer
ac7b3c795e added toFullString() method (#68)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-10-12 09:05:23 +02:00
Kai Kreuzer
8c7bd006dd re-added ConsoleInterpreter for openHAB 1 build (#67)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-10-12 09:03:24 +02:00
Kai Kreuzer
9128539c0a
added io.sound to p2 repo
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-10-10 14:13:04 +02:00
Kai Kreuzer
2a62dea2d5 fixed playback issue due to stream being closed too early (#65)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-10-05 16:06:39 +02:00
Kai Kreuzer
7087ea3582 Added new enhanced sound fragment, which brings mp3 support on top of ESH. (#63)
Remove the old audio action as all features should now be covered through ESH itself.

Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-09-30 23:00:30 +02:00
Kai Kreuzer
8a7f5561b1 readded old TTS interface so that 1.x compiles (#62)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-09-13 18:12:47 +02:00
Kai Kreuzer
74550d6528 removed lazy bundle activation to avoid circular dependencies (#59)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-08-30 15:26:37 +02:00
Kai Kreuzer
a819b25ff5 changed audio action to implement ESH interface (#58)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-08-29 23:45:32 +02:00
Kai Kreuzer
33b6032405 adapted Audio action to new ESH TTS interfaces (#53)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-08-20 20:49:39 +02:00
Chris Jackson
795aab9b19 Add new persistence method (#55)
* Updated to include new persistence method getItems

Signed-off-by: Chris Jackson <chris@cd-jackson.com>
2016-08-02 22:45:23 +02:00
Kai Kreuzer
0d640910de Delete .project
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-07-20 16:20:29 +02:00
Kai Kreuzer
a2ca9c590a removed dependency on ThingSetupManager (#52)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-06-27 18:12:52 +02:00
Kai Kreuzer
ae2d55f9d4 replaced classic icon set by ESH version of it (#50)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-06-20 10:20:08 +02:00
Kai Kreuzer
3e051a4f85 adapt to ESH changes of ItemRegistry (#47)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-06-05 14:24:45 +02:00
Kai Kreuzer
25cd02baf4 Sitemap (#46)
* updated default sitemap provider to new ESH concept

Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-05-21 22:14:21 +02:00
Kai Kreuzer
c55513a8c0 switched to snapshot
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-05-21 14:00:58 +02:00
Kai Kreuzer
8bd77e32c5 Releasing 2.0.0.b3
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-05-21 13:51:10 +02:00
Kai Kreuzer
542d550f63 added link to online documentation to dashboard
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-05-21 12:48:09 +02:00
Kai Kreuzer
c9845400db changed groupId of ui bundles and fragments and updated paper ui fragment (removed md-icons, corrected default path and enabled control ui) (#45)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-05-18 22:00:25 +02:00
Kai Kreuzer
ee40acfa5f activated rule menu entry
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-05-09 18:29:12 +02:00
Kai Kreuzer
f641c2ba8a changed footer on dashboard
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-05-09 18:29:06 +02:00
Kai Kreuzer
01c44a5223 renamed tts addons to voice (#42)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-04-26 21:14:30 +02:00
Kai Kreuzer
235c82b023 added esh repos for online mode (#41)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-04-25 20:57:18 +02:00
Kai Kreuzer
07e75b7e96 enhanced feature installer to also handle remote repos for legacy and experimental features (#39)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-04-25 18:16:14 +02:00
Kai Kreuzer
8209e72ba6 fixes https://github.com/openhab/openhab-distro/issues/176
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-04-16 09:20:38 +02:00
Kai Kreuzer
667df5ceca improved robustness of feature/package installer
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-04-15 21:36:24 +02:00
Kai Kreuzer
c9650f149f Merge pull request #34 from kaikreuzer/packagemgr
registered feature installer as a service so that it appears in the P…
2016-04-15 17:57:49 +02:00
Kai Kreuzer
a1bda50055 registered feature installer as a service so that it appears in the Paper UI
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-04-14 18:03:36 +02:00
Markus Rathgeb
7b0651ccde drop multiple karaf version declarations
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2016-04-13 18:31:57 +02:00
Kai Kreuzer
e6107153e2 Merge pull request #30 from reitermarkus/master
Add signal icon to script to avoid duplicates.
2016-03-27 23:27:28 +02:00
Kai Kreuzer
04cfa9cee3 applied updated and neutral copyright header
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-03-27 22:14:00 +02:00
Markus Reiter
9aae7b3c01 Add signal icon to script to avoid duplicates.
Signed-off-by: Markus Reiter <me@reitermark.us>
2016-03-27 06:43:48 +02:00
Kai Kreuzer
dc79b2a815 Merge pull request #26 from digitaldan/backport_of_1460
Backport of https://github.com/openhab/openhab/pull/1460
2016-03-14 22:36:49 +01:00
Kai Kreuzer
485f7a26df adapted to new tts interface location in ESH
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-03-14 19:05:04 +01:00
Gaël L'hopital
3e51a8071d In order to study and correct Issue #1034, I felt on some missing category icons.
Signed-off-by: Gaël L'hopital <glhopital@gmail.com>
2016-03-01 15:58:35 +01:00
digitaldan
8c15096a10 Backport of https://github.com/openhab/openhab/pull/1460
This allows group items who are not exactly the same base item to be included in logic operations, for example a dimmer can now be included in a group switch item.
2016-02-22 15:13:10 -08:00
Kai Kreuzer
51d1e95150 removed logging of version on bundle start&stop
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-02-22 19:45:36 +01:00
Kai Kreuzer
1b9af5d70e fixes NPE if parameters are null and removed toString calls in logging statements
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-02-22 19:33:09 +01:00
Markus Reiter
87670943a3 Fix office icon.
Signed-off-by: Markus Reiter <me@reitermark.us>
2016-02-19 17:19:21 +01:00
Markus Reiter
b6ed251c88 Add new icons and delete legacy icons.
- Camera
- CO2
- Flow
- Gas
- Line (decline/incline/stagnation)
- Microphone
- Motion
- Move
- Pressure
- Rain
- Signal (0-4)
- Smoke
- Television (on/off)
- Zoom
2016-02-18 19:43:24 +01:00
Kai Kreuzer
49ef22b90c Merge pull request #20 from kaikreuzer/agbp
Introduced concurrency fixes as done in https://github.com/openhab/op
2016-02-17 09:47:21 +01:00
Kai Kreuzer
6f0a7acbf6 Introduced concurrency fixes as done in https://github.com/openhab/openhab/pull/3016
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-02-17 09:46:30 +01:00
Kai Kreuzer
6d04f2d042 added location item support in config reader delegate
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-02-16 18:27:00 +01:00
Kai Kreuzer
0f19cc341f map the types by cloning the internal calendar
fixes #16

Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-02-07 22:25:33 +01:00