Commit Graph

2939 Commits

Author SHA1 Message Date
Sami Salonen
295df504c8
[mqtt.homeassistant] More readable label for discovered things (#13402)
* [mqtt.openassistant] Better labels for discoverd things

This PR introduces more simple label for things, instead of
"My Sensor (Sensor, Sensor, Sensor, Sensor, Sensor, Switch)" we have
simply "Me Sensor (5x Sensor, Switch)".

Signed-off-by: Sami Salonen <ssalonen@gmail.com>
2022-09-18 21:22:06 +02:00
Cody Cutrer
a2b6dd77b7
[mqtt.homeassistant] sensors with a state_class are numeric (#13398)
see reference in code comment, but a measurement sensor is assumed to
be numeric, even if it doesn't have a unit

Signed-off-by: Cody Cutrer <cody@cutrer.us>
2022-09-18 19:46:07 +02:00
Sami Salonen
2fd2e5175f
[mqtt.homeassistant] Stable jsondb discovery result (#13401)
* [mqtt.homeassistant] Stable jsondb serialization for discovery results

Similar to openhab/openhab-core#2436, we want
to have consistent ordering of data in JSONDB. This is fixing the jsondb
order for mqtt.homeassistant discovery results, specifically, the
"topics" property.

* [mqtt.homeassistant] order using full topic string, not by subcomponent

Signed-off-by: Sami Salonen <ssalonen@gmail.com>
2022-09-18 18:20:49 +02:00
lolodomo
6ebf20f183
[ecowatt] Initial contribution (#13404)
* [ecowatt] Initial contribution

This binding uses the Ecowatt API to expose clear signals to adopt the right gestures and to ensure a good supply of electricity for all in France.

Close #13351

Signed-off-by: Laurent Garnier <lg.hc@free.fr>

* Update bundles/org.openhab.binding.ecowatt/src/main/resources/OH-INF/thing/thing-types.xml

Signed-off-by: Fabian Wolter <github@fabian-wolter.de>

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Signed-off-by: Fabian Wolter <github@fabian-wolter.de>
Co-authored-by: Fabian Wolter <github@fabian-wolter.de>
2022-09-18 17:52:18 +02:00
GiviMAD
798b3ede04
[androiddebugbridge] fix get current package and get mac address (#13390)
Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>

Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
2022-09-18 17:44:59 +02:00
M Valla
e8d20f0341
[openwebnet] improved README for AUX and ENERGY (#13408)
Signed-off-by: Massimo Valla <mvcode00@gmail.com>

Signed-off-by: Massimo Valla <mvcode00@gmail.com>
2022-09-18 17:24:39 +02:00
Dmitry
b6a2240270
[miio] Qingping Air Monitor (cgllc.airmonitor.s1) support is broken (#13262)
* [miio] Qingping Air Monitor (cgllc.airmonitor.s1) support is broken #13258
1.  Custom refresh command for "battery" was defined . The device with "4.1.8_9999" firmware version does not allowed to obtain this information by this way which prevents to obtain other values. The solution should work for both old firmware (the battery information would be requested as before) and it does not prevent the device with new firmware from sending other values (I checked it).

Signed-off-by: Dmitry Malenok <_mak_@bk.ru>

* [miio] Qingping Air Monitor (cgllc.airmonitor.s1) support is broken #13258
1.  The comment clarifying the "battery" parameter behavior was added.

Signed-off-by: Dmitry Malenok <_mak_@bk.ru>

Signed-off-by: Dmitry Malenok <_mak_@bk.ru>
2022-09-18 17:23:22 +02:00
GiviMAD
4ebcb70c83
[jellyfin] add play by id channels and update sdk (#13389)
* [jellyfin] add play by id channels and update sdk
* [jellyfin] add missed Playing Item Id channel

Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
2022-09-18 13:01:18 +02:00
J-N-K
b2d9fe5c0a
Adapt to core-changes (added JNA to tp) (#13298)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-09-18 11:30:39 +02:00
mlobstein
8a9c66a567
[radiothermostat] Ignore updates if thermostat data is invalid (#13394)
* Ignore updates if data is invalid

Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
2022-09-17 17:49:59 +02:00
Haavar Valeur
7dfb963f92
Configure zone on panel even if the channel is not yet linked (#13380)
Signed-off-by: Haavar Valeur <haavar@haavar.com>
2022-09-17 17:02:09 +02:00
Matthew Skinner
6805f8461e
[ipcamera] Fix ONVIF fails to reconnect (#13396)
* Fix reconnecting issues
* Cleanup logging.

Signed-off-by: Matthew Skinner <matt@pcmus.com>
2022-09-17 10:51:55 +02:00
GiviMAD
25ffd6127b
[vosk] Upgrade sdk and handle UnsatisfiedLinkError exceptions (#13391)
* [vosk] update sdk
* [vosk] handle unsatisfied link error exceptions

Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
2022-09-17 09:27:09 +02:00
Florian Hotze
39d221d3a8
[jsscripting] Update openhab-js to 2.0.3 (#13385)
* [jsscripting] Update openhab-js to 2.0.3
* [jsscripting] Update README

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2022-09-13 21:57:09 +02:00
Christoph Weitkamp
a963c79e8b
Consider TimeZoneProvider to build states for time-stamp channels (#13386)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2022-09-13 21:53:52 +02:00
alexf2015
b9761d0288
fix README.md (#13387)
Signed-off-by: Alexander Friese <af944580@googlemail.com>
2022-09-13 21:51:58 +02:00
Jacob Laursen
474be93710
Fix date cast exception (#13382)
After upgrading mysql-connector to 8.0.30 this exception was thrown: class java.time.LocalDateTime cannot be cast to class java.sql.Timestamp

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-09-12 18:16:25 +02:00
Andreas Berger
333ffbcba2
[fineoffsetweatherstation] Fix measurands (#13381)
* fix the PIEZO_GAIN10 measurand
* skip RAIN_PRIO measurand
* skip RCSATION measurand

Signed-off-by: Andreas Berger <andreas@berger-freelancer.com>
2022-09-12 17:16:10 +02:00
Andrew Fiddian-Green
ddd25316d9
[velux] Correction to channel label (#13379)
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2022-09-11 16:16:44 +02:00
Andrew Fiddian-Green
9123e1349e
[velux] Vane position channel is visible when required (#13271)
* [velux] make vanePosition channel dynamic
* [velux] change category of window position from 'blinds' to 'window'

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2022-09-11 12:44:16 +02:00
Mark Herwege
909d390581
[systeminfo] Add CPU load channel, update dependencies (#13292)
* Add CPU load channel, update dependencies
* use PercentType, correct process CPU load
* Add and fix test

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2022-09-11 11:06:52 +02:00
lolodomo
55e27c8c12
[rotel] New channel to select FM/DAB/iRadio preset (#13285)
* [rotel] New channel to select FM/DAB/iRadio preset

For models RCX-1500, RDG-1520, RT-11, RT-1570, T11 and T14

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-09-11 10:08:50 +02:00
openhab-bot
f74a017bad
New translations unifi.properties (Dutch) (#13372) 2022-09-11 02:22:35 +02:00
lolodomo
e84608e410
[linky] Docker specificities (#13348)
Related to #13336

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-09-10 17:00:28 +02:00
Hilbrand Bouwkamp
698703b0c6
[unifi] Fix portoverride to not remove any other data (#13362)
When a user has configured additional settings on a PoE port, like name.
These settings where lost when changing the PoEPort status in openHAB.
This was because in the binding only some information of the override was stored and when writing the new state this information would have been sent too.
In this change the object to store the override has been replaced by a plain json object. Therefore we don't have to know what is in it and all information is kept.

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2022-09-10 16:59:42 +02:00
alexf2015
1f1de41bd3
[Easee] Initial contribution (#12954)
* initial binding version

Signed-off-by: Alexander Friese <af944580@gmail.com>
2022-09-10 16:57:21 +02:00
Andrew Fiddian-Green
dce6dc9f79
[hdpowerview] Correct shade capabilities information (#13330)
* [hdpowerview] corrections to capabilities database

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2022-09-10 10:01:54 +02:00
Haavar Valeur
9c534e37a8
[Konnected] Taking configured onValue into account when sending status to actuator (#13360)
* Taking configured onvalue into account when sending status to actuator
* Added documentation for onValue configuration

Signed-off-by: Haavar Valeur <haavar@haavar.com>
2022-09-10 08:48:03 +02:00
openhab-bot
ce6b0a876d
New translations shelly.properties (German) (#13366) 2022-09-09 22:13:10 +02:00
Mark Herwege
54dc5c1fec
[upnpcontrol] Prepare dynamic channels and status messages for translation (#13364)
* prepare dynamic channels and status messages for translation

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2022-09-08 22:25:18 +02:00
Ondrej Pecta
7d9e277a15
[jablotron] Added thermometers support for JA100F alarms (#13361)
Signed-off-by: Ondrej Pecta <opecta@gmail.com>
2022-09-08 21:18:42 +02:00
Haavar Valeur
8ee4ac86db
Fixed example thing. Made names less ambiguous (#13363)
Signed-off-by: Haavar Valeur <haavar@haavar.com>
2022-09-08 13:29:31 +02:00
Hilbrand Bouwkamp
18a41dbe84
[dsmr] Made additional key for smarty meter an option (#13359)
* [dsmr] Made additional key for smarty meter optional

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2022-09-07 11:08:04 +02:00
lolodomo
c4625992af
[remoteopenhab] Fix the pattern to parse DateTime (#13349)
Re-use the same pattern as defined in class DateTimeTyoe.

Allows the support of 0 to 9 digits after the seconds.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-09-06 20:27:31 +02:00
Haavar Valeur
fe25216ea6
[Konnected] Using default onvalue if configured is null (#13354)
* Using default onvalue if configured is null
* Using DTO for channel configuration. Changing channel config parameter names to camel case

Signed-off-by: Haavar Valeur <haavar@haavar.com>
2022-09-06 20:24:33 +02:00
lolodomo
bbaf1e782a
[remoteopenhab] Handle REFRESH command as any command (#13350)
The received command (REFRESH) is transmitted as a REFRESH command to
the remote item.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-09-05 17:54:27 +02:00
mlobstein
5a11f1420e
[nuvo] Fix MPS4 flag and online status reporting (#13345)
* Fix mps4 flag and online status reporting
* Update missing statuses

Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
2022-09-03 17:44:39 +02:00
Christoph Weitkamp
32c76898c1
[avmfritz] Allow to set every userdefined color (#13317)
* Added INCREASE/DECREASE commands for brightness/color Channels
* Fixed NPE in HeatingModel
* Use set unmapped color command for color control of bulbs

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2022-09-03 14:42:31 +02:00
Stewart Cossey
df432a7fbc
Update API URL. (#13306)
Signed-off-by: Stewart Cossey <stewart.cossey@gmail.com>
2022-09-03 14:32:43 +02:00
Gwendal Roulleau
2b62f74e5f
[mimictts] Use http method POST instead of GET (#13239)
* [mimictts] Use http method POST instead of GET

Using POST method allows longer request size.
Also, using InputStreamResponseListener avoid keeping the response in-memory

* [mimictts] quick fix for regression : providing length

Some audiosink needs it

Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
2022-09-03 12:00:32 +02:00
openhab-bot
b27364679e
New translations fineoffsetweatherstation.properties (Italian) (#13341) 2022-09-01 09:36:05 +02:00
Jacob Laursen
dddf463e09
Upgrade MySQL connector to 8.0.30 (#13242)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-08-31 21:56:39 +02:00
Andreas Berger
4331c5f3ed
[fineoffsetweatherstation] Add support for the new GW2001 weather station (#13283)
* [fineoffsetweatherstation] add support for the new GW2001 weather station with its WH90 sensor
* [fineoffsetweatherstation] add missing channel labels
* [fineoffsetweatherstation] remove redundant translations
* [fineoffsetweatherstation] add test data + fix for WH90
* [fineoffsetweatherstation] fix wrong size for `CMD_READ_RAIN`

Signed-off-by: Andreas Berger <andreas@berger-freelancer.com>
2022-08-31 15:27:18 +02:00
Jacob Laursen
a2e0d23297
[boschindego] Add another status code for returning to dock (#13335)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-08-30 16:45:30 +02:00
Haavar Valeur
195a37e36e
[Konnected] Removed defaults for zone configuration parameter from the channels (#13333)
* Removed defaults from zone parameter
* Corrected the name of the zone property in example

Signed-off-by: Haavar Valeur <haavar@haavar.com>
2022-08-29 22:57:12 +02:00
Wouter Born
8eb0d2c16e
[rrd4j] Use RrdDbPool to prevent ClosedByInterruptException (#13332)
Using the pool prevents exceptions like:

```
java.nio.channels.ClosedByInterruptException: null
	at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:199) ~[?:?]
	at sun.nio.ch.FileChannelImpl.endBlocking(FileChannelImpl.java:162) ~[?:?]
	at sun.nio.ch.FileChannelImpl.size(FileChannelImpl.java:388) ~[?:?]
	at org.rrd4j.core.RrdNioBackend.<init>(RrdNioBackend.java:94) ~[?:?]
	at org.rrd4j.core.RrdNioBackendFactory.open(RrdNioBackendFactory.java:163) ~[?:?]
	at org.rrd4j.core.RrdBackendFactory.getBackend(RrdBackendFactory.java:521) ~[?:?]
	at org.rrd4j.core.RrdDb.<init>(RrdDb.java:627) ~[?:?]
	at org.rrd4j.core.RrdDb.of(RrdDb.java:500) ~[?:?]
	at org.openhab.persistence.rrd4j.internal.RRD4jPersistenceService.getDB(RRD4jPersistenceService.java:323) ~[?:?]
	at org.openhab.persistence.rrd4j.internal.RRD4jPersistenceService.store(RRD4jPersistenceService.java:141) ~[?:?]
	at org.openhab.persistence.rrd4j.internal.RRD4jPersistenceService.lambda$0(RRD4jPersistenceService.java:211) ~[?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
	at java.lang.Thread.run(Thread.java:829) [?:?]
```

Fixes #13297

Also includes a few code improvements.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-08-29 17:15:17 +02:00
Haavar Valeur
07e2b69e79
[Konnected] Fixed null pointer exception on state update with missing state (#13329)
* Fixed null pointer exception on state update with missing state
* Added variable for state. Changed onvalue configuration type to integer.

Signed-off-by: Haavar Valeur <haavar@haavar.com>
2022-08-29 12:45:25 +02:00
Cody Cutrer
449d3518f6
[jrubyscripting] avoid polluting environment when auto-installing gems (#13328)
fixes https://github.com/boc-tothefuture/openhab-jruby/issues/634;
regression from https://github.com/openhab/openhab-addons/pull/13151

Signed-Off-By: Cody Cutrer <cody@cutrer.us>
2022-08-28 21:45:35 +02:00
Andreas Berger
a327167a58
[fineoffsetweatherstation] Add information about unsupported devices (#13307)
* [fineoffsetweatherstation] add information about unsupported devices

Signed-off-by: Andreas Berger <andreas@berger-freelancer.com>
2022-08-28 14:05:51 +02:00
Andrew Fiddian-Green
f7295bd00f
[hdpowerview] Battery channels visible only when required (#13324)
* [hdpowerview] add batteryKind field
* [hdpowerview] battery channels visible depending on batteryKind

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2022-08-28 13:55:18 +02:00