]> git.basschouten.com Git - openhab-addons.git/log
openhab-addons.git
3 years ago[openhabcloud] Reconnection Fixes (#14251)
Dan Cunningham [Sun, 29 Jan 2023 09:21:54 +0000 (01:21 -0800)]
[openhabcloud] Reconnection Fixes (#14251)

* [openhabcloud] Possible connection leak
* Creates thread safe reconnection, reduces unnecessary polling on setup, removes unused variables.
* adds the reconnect settings to the internal socket.io options.
* Up the min reconnect time
* Use @ssalonen sugestion for backoff mins and randomness
* Reconnect after server initiated disconnect
* Remove unhelpful comments

Signed-off-by: Dan Cunningham <dan@digitaldan.com>
3 years ago[unifi] Guest wifi vouchers (#14284)
Mark Herwege [Sat, 28 Jan 2023 20:30:12 +0000 (21:30 +0100)]
[unifi] Guest wifi vouchers (#14284)

* guest voucher support

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
3 years ago(MyBMW] command "horn-blow" not "horn-low" (#14270)
igitti [Sat, 28 Jan 2023 17:56:02 +0000 (18:56 +0100)]
(MyBMW] command "horn-blow" not "horn-low" (#14270)

* MyBMW command "horn-blow" not "horn-low"

The command is "horn-blow" not "horn-low".
Tested with my car: "horn-blow" works, "horn-low" does not.

* (MyBMW] command "light-flash" not "flash-lights"

The command is "light-flash" not "flash-lights".
Tested with my car: "light-flash" works, "flash-lights" does not.

3 years ago[wemo] Fix stability issues (#14163)
Jacob Laursen [Sat, 28 Jan 2023 08:35:30 +0000 (09:35 +0100)]
[wemo] Fix stability issues (#14163)

* Stabilize UPnP subscription handling
* Remove unused UpnpService
* Fix integration test

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years ago[homekit] fix restarted on network interface change (#14226)
Cody Cutrer [Fri, 27 Jan 2023 23:39:19 +0000 (16:39 -0700)]
[homekit] fix restarted on network interface change (#14226)

a regression caused during the final changes of #13877

Signed-off-by: Cody Cutrer <cody@cutrer.us>
3 years ago[mqtt.homeassistant] support command_template for fan components (#14233)
Cody Cutrer [Fri, 27 Jan 2023 23:38:38 +0000 (16:38 -0700)]
[mqtt.homeassistant] support command_template for fan components (#14233)

* [mqtt.homeassistant] support command_template for fan components
* [mqtt.homeassistant] fix field declaration for consistency

Signed-off-by: Cody Cutrer <cody@cutrer.us>
3 years ago[mqtt.homeassistant] add support for DeviceTrigger component (#14234)
Cody Cutrer [Fri, 27 Jan 2023 23:37:45 +0000 (16:37 -0700)]
[mqtt.homeassistant] add support for DeviceTrigger component (#14234)

Signed-off-by: Cody Cutrer <cody@cutrer.us>
3 years ago[mqtt.homeassistant] Mark disabled by default components as advanced channels (#14240)
Cody Cutrer [Fri, 27 Jan 2023 23:37:15 +0000 (16:37 -0700)]
[mqtt.homeassistant] Mark disabled by default components as advanced channels (#14240)

openHAB doesn't have the concept of "enabled by default", since _everything_
is technically "disabled" until you link it to an item. It seems devices
use disabled by default on less common entities, such as zigbee2mqtt
marking a binary_sensor as a "backup" method to an update entity for
when an update is available, or a sensor as a "backup" method to a
select entity. So in that case, just hiding these channels unless the user
clicks "Show Advanced" seems to map best.

Signed-off-by: Cody Cutrer <cody@cutrer.us>
3 years ago[rotel] Fix reader thread handling (#14272)
lolodomo [Fri, 27 Jan 2023 12:23:04 +0000 (13:23 +0100)]
[rotel] Fix reader thread handling (#14272)

Previous code was not working in Java 17.
A thread should not be started after being interrupted.

Fix #14264

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
3 years ago[tibber] Add accumulatedReward channel (#14277)
lsiepel [Fri, 27 Jan 2023 09:36:40 +0000 (10:36 +0100)]
[tibber] Add accumulatedReward channel (#14277)

* Add channel, fix warning

Signed-off-by: lsiepel <leosiepel@gmail.com>
3 years agoPerform upsert on key conflict like the default for MySQL (PostgreSQL >= 9.5) (#14281)
Ilias Ktn [Fri, 27 Jan 2023 09:33:11 +0000 (11:33 +0200)]
Perform upsert on key conflict like the default for MySQL (PostgreSQL >= 9.5) (#14281)

Signed-off-by: Ilias Kotinas <henfiber@gmail.com>
3 years agoBringing a solution to issue #14256. (#14265)
Gaël L'hopital [Fri, 27 Jan 2023 07:49:47 +0000 (08:49 +0100)]
Bringing a solution to issue #14256. (#14265)

This solution is not the best but takes in account observations made in issue #13015.

Signed-off-by: clinique <gael@lhopital.org>
3 years agoUpdate README.md (#14266)
TheNinth7 [Fri, 27 Jan 2023 07:34:36 +0000 (08:34 +0100)]
Update README.md (#14266)

Updated section on shutter position with info on the automatic calibration's reliance on the actuator's automatic stop message, and that for older actuator's manual setting of shutterRun is required.

3 years ago[evcc] Adjust to breaking API change & Add new channel (#14245)
Florian Hotze [Mon, 23 Jan 2023 20:17:39 +0000 (21:17 +0100)]
[evcc] Adjust to breaking API change & Add new channel (#14245)

* [evcc] Adjust to breaking API changes

Fixes #14231.

See https://github.com/evcc-io/evcc/discussions/5522.

* [evcc] Add battery capacity channel
* [evcc] Version & openHABian note
* [evcc] Use already defined constants in ChannelTypeUIDs
* [evcc] Correct header in evcc.properties

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
3 years agoFix some addon.xml issues (#14261)
Jacob Laursen [Sun, 22 Jan 2023 18:22:13 +0000 (19:22 +0100)]
Fix some addon.xml issues (#14261)

* Fix some addon.xml issues
* Re-add thing-type binding for Velux
* Prefix thing-type filenames

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years ago[Tibber] Added "today" API channel (#14236)
Markus Eckhardt [Sun, 22 Jan 2023 11:25:37 +0000 (12:25 +0100)]
[Tibber] Added "today" API channel (#14236)

* Added "today" API channel

Signed-off-by: Markus Eckhardt <github@familie-eckhardt.eu>
3 years ago[dominoswiss] Fix Bridge-Loading with OH3_3 and OH3_4 (#14172)
Frieso Aeschbacher [Sun, 22 Jan 2023 09:49:52 +0000 (10:49 +0100)]
[dominoswiss] Fix Bridge-Loading with OH3_3 and OH3_4 (#14172)

* Fix Loading of Bridge with OH3.3

Signed-off-by: Frieso Aeschbacher <frieso.aeschbacher@gmail.com>
3 years agoUpdate README.md (#14254)
schmidmuc [Sat, 21 Jan 2023 23:19:08 +0000 (00:19 +0100)]
Update README.md (#14254)

URL for HomeConnect consol was wrong

3 years ago[gree] Remove unneeded i18n entry addon.gree.label (#14253)
lolodomo [Sat, 21 Jan 2023 23:17:21 +0000 (00:17 +0100)]
[gree] Remove unneeded i18n entry addon.gree.label (#14253)

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
3 years agoNew Crowdin updates (#14258)
openhab-bot [Sat, 21 Jan 2023 23:03:52 +0000 (00:03 +0100)]
New Crowdin updates (#14258)

* New translations amazondashbutton.properties (French)
* New translations hdpowerview.properties (Danish)
* New translations boschindego.properties (Danish)
* New translations amazondashbutton.properties (Italian)

3 years ago[mqtt.homeassistant] add support for Number and Select components (#14230)
Cody Cutrer [Sat, 21 Jan 2023 14:02:49 +0000 (07:02 -0700)]
[mqtt.homeassistant] add support for Number and Select components (#14230)

* [mqtt.homeassistant] add support for Select component

closes #13603

Signed-off-by: Cody Cutrer <cody@cutrer.us>
3 years agofix i18n for bindings (#14235)
J-N-K [Sat, 21 Jan 2023 11:14:51 +0000 (12:14 +0100)]
fix i18n for bindings (#14235)

Also-By: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Jan N. Klug <github@klug.nrw>
3 years agoPublish ALLOFF event for use in source rules (#14248)
mlobstein [Sat, 21 Jan 2023 10:16:36 +0000 (04:16 -0600)]
Publish ALLOFF event for use in source rules (#14248)

Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
3 years ago[mqtt] fix thread concurrency issue with type provider (#14229)
Cody Cutrer [Sat, 21 Jan 2023 08:59:37 +0000 (01:59 -0700)]
[mqtt] fix thread concurrency issue with type provider (#14229)

Signed-off-by: Cody Cutrer <cody@cutrer.us>
3 years ago[jeelink] Fixed wrong TX22 rain value (#14224)
lsiepel [Sat, 21 Jan 2023 08:50:09 +0000 (09:50 +0100)]
[jeelink] Fixed wrong TX22 rain value (#14224)

* Divide instead of multiply
* Remove apache.commons

Signed-off-by: lsiepel <leosiepel@gmail.com>
3 years agoFix build after core changes (#14027)
J-N-K [Fri, 20 Jan 2023 13:57:42 +0000 (14:57 +0100)]
Fix build after core changes (#14027)

Signed-off-by: Jan N. Klug <github@klug.nrw>
3 years ago[unifi] Various stability improvements (#14249)
Hilbrand Bouwkamp [Fri, 20 Jan 2023 12:12:57 +0000 (13:12 +0100)]
[unifi] Various stability improvements (#14249)

* [unifi] Various stability improvements

- Fixed bug, causing nullpointer, in devices not reporting voltage/ampere values on PoE ports.
- Added some null checks to avoid having null pointer exceptions.
- Handled timeout exception that is in ExecutionException.
- Improved handling case where server returns data, but it's not from the api, and therefor can't be parsed.
- Improved adding additional text to the error messages by adding the reported exception message too.

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
3 years ago[rrd4j] Avoid IAE thrown if e.g. invalid start/end time given (#14238)
Christoph Weitkamp [Fri, 20 Jan 2023 10:58:47 +0000 (11:58 +0100)]
[rrd4j] Avoid IAE thrown if e.g. invalid start/end time given (#14238)

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
3 years ago[influxdb] Add docs for usage of self-signed certs (#14228)
Florian Hotze [Sun, 15 Jan 2023 22:55:42 +0000 (23:55 +0100)]
[influxdb] Add docs for usage of self-signed certs (#14228)

* [influxdb] Add docs for usage of self-signed certs

See
https://community.openhab.org/t/influxdb-persistence-doesnt-work-with-s
sl/35409/10?u=florian-h05.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
3 years agoAdapt to core changes (addon.xml) (#13289)
J-N-K [Sun, 15 Jan 2023 19:31:42 +0000 (20:31 +0100)]
Adapt to core changes (addon.xml) (#13289)

Signed-off-by: Jan N. Klug <github@klug.nrw>
3 years ago[knx] Fix javadoc errors (#14174)
Holger Friedrich [Sat, 14 Jan 2023 12:02:31 +0000 (13:02 +0100)]
[knx] Fix javadoc errors (#14174)

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
3 years agoAdjust channel min state (#14219)
lsiepel [Sat, 14 Jan 2023 11:43:34 +0000 (12:43 +0100)]
Adjust channel min state (#14219)

Signed-off-by: lsiepel <leosiepel@gmail.com>
3 years agoImprove multicast implementation (#14199)
Jacob Laursen [Sat, 14 Jan 2023 11:26:38 +0000 (12:26 +0100)]
Improve multicast implementation (#14199)

Fixes #14198

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years ago[gree] Allow wider temperature range (#14217)
lsiepel [Sat, 14 Jan 2023 11:14:09 +0000 (12:14 +0100)]
[gree] Allow wider temperature range (#14217)

* Fix checkstyle
* Allow wider temp range
* Remaining checkstyle

Signed-off-by: lsiepel <leosiepel@gmail.com>
3 years ago[mimictts] Fix ssml and playing from audiosinks using the audio servlet (#14120)
Gwendal Roulleau [Sat, 14 Jan 2023 08:39:59 +0000 (09:39 +0100)]
[mimictts] Fix ssml and playing from audiosinks using the audio servlet (#14120)

* [mimictts] Fix ssml and playing from an audiosink using the audio servlet

Fix :
- ssml not working
- add an option to store the audio on a file before sending it to openhab. It enables audiosink based on the audio servlet to play the sound (the servlet requires the getClonedStream method, unavailable with a pure streaming approach). The files are stored in the user data directory and deleted as soon as possible (stream close detection).
- fix error with voice name not encoded

Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
3 years ago[homekit] Implement IrrigationSystem Accessory (#14209)
Cody Cutrer [Fri, 13 Jan 2023 19:25:06 +0000 (12:25 -0700)]
[homekit] Implement IrrigationSystem Accessory (#14209)

* [homekit] Implement IrrigationSystem

Fairly trivial now, except that a ServiceLabelService has to be added
to the accessory.

Signed-off-by: Cody Cutrer <cody@cutrer.us>
3 years agoFix SAT warnings (#14214)
Holger Friedrich [Fri, 13 Jan 2023 18:10:59 +0000 (19:10 +0100)]
Fix SAT warnings (#14214)

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
3 years ago[homematic] Fix updating enum config values (#14213)
maniac103 [Fri, 13 Jan 2023 15:25:26 +0000 (16:25 +0100)]
[homematic] Fix updating enum config values (#14213)

When changing an enum value in the configuration, we used the wrong data
type: while the value in the OH config is a string (the 'option value' -
see HomematicThingHandler::getValueForConfiguration), internally we use
an integer (the 'option index'), so we have to do the option value ->
option index conversion when applying the new value.
This especially was a problem for HM-MOD-EM-8 devices, which check the
CHANNEL_FUNCTION enum value as part of their initialization routine.
When disabling/enabling them after changing the CHANNEL_FUNCTION enum
value, they went offline, because their initialization failed due to a
NumberFormatException (via
HomematicThingHandler::doInitializeInBackground ->
HmChannel::checkForChannelFunctionChange ->
HmChannel::getCurrentFunction)

Signed-off-by: Danny Baumann <dannybaumann@web.de>
3 years agoFix SAT warnings (#14202)
Holger Friedrich [Fri, 13 Jan 2023 07:11:06 +0000 (08:11 +0100)]
Fix SAT warnings (#14202)

* Fix SAT warnings

- checkstyle.ModifierOrderCheck
- checkstyle.OneStatementPerLineCheck
- checkstyle.NeedBracesCheck
- PMD.UseStandardCharsets
- PMD.UseCollectionIsEmpty
- PMD.UnusedLocalVariable
- PMD.SimplifyBooleanReturns where reasonable, suppress where
readability is better without change
- PMD.SimplifyBooleanExpressions

* Include StandardCharsets

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
3 years ago[scripting] Adjust to core changes (#14043)
J-N-K [Thu, 12 Jan 2023 21:23:20 +0000 (22:23 +0100)]
[scripting] Adjust to core changes (#14043)

* [scripting] Adjust to core changes

Signed-off-by: Jan N. Klug <github@klug.nrw>
3 years ago[bsblan] Minor SAT fixes (#14138)
lsiepel [Thu, 12 Jan 2023 20:07:31 +0000 (21:07 +0100)]
[bsblan] Minor SAT fixes (#14138)

* Minor SAT fixes

Signed-off-by: lsiepel <leosiepel@gmail.com>
3 years ago[homekit] Add support for TV accessory (#14055)
Cody Cutrer [Thu, 12 Jan 2023 14:29:50 +0000 (07:29 -0700)]
[homekit] Add support for TV accessory (#14055)

* [homekit] TV accessory

Now possible since we support multiple secondary services. Just need to explicitly
declare that InputSource is a linked service to a Television, not just a secondary
service.

Note also that since TV and related services have so many mandatary characteristics
that are often static, I introduced a new way to declare characteristics -
via metadata on the service's item. Honestly, I feel like it's a lot cleaner to
have a factory create the mandatory characteristics the same way as the optional
characteristics, and then construct the service ourselves instead of basing the
service on the specific accessory interface. But this commit is already big enough,
I didn't want to go refactoring _all_ of the accessories to do it that way just
yet. This is why I have "unused" metadata characteristic factory methods for
AirQuality, HeaterCooler, and Thermostat - I started to make those configurable
via metadata, then realized they were mandatory characteristics that couldn't
be found from metadata via the current infrastructure.

Signed-off-by: Cody Cutrer <cody@cutrer.us>
3 years ago[bondhome] Add raw speed channel (#14155)
Keith T. Garner [Thu, 12 Jan 2023 06:42:15 +0000 (00:42 -0600)]
[bondhome] Add raw speed channel (#14155)

* [bondhome] add raw speed channel

* Add a channel for the raw speed value from the bond api

Signed-off-by: Keith T. Garner <kgarner@kgarner.com>
3 years ago[gardena] Fix server ping timeout logic (#14203)
maniac103 [Wed, 11 Jan 2023 14:05:19 +0000 (15:05 +0100)]
[gardena] Fix server ping timeout logic (#14203)

On server timeouts, it's possible for multiple minutes to elapse
between receiving the last pong on the old connection and attempting to
send the next ping on the new connection. If that time span exceeded 5
minutes, the binding went into a minutely reconnection loop, because it
never attempted to send a ping anymore, which led to lastPong not being
updated anymore.
To fix this, replace the timing dependent timestamp handling by a simple
counter which counts how many consecutive ping attempts didn't receive
an answer, and closing the connection after 5 unsuccessful ping
attempts. That new counter is now also reset whenever the connection is
restarted.

Fixes #14188

Signed-off-by: Danny Baumann <dannybaumann@web.de>
3 years ago[squeezebox] Add new channels for additional tags (#14201)
Mark Hilbush [Wed, 11 Jan 2023 12:56:40 +0000 (07:56 -0500)]
[squeezebox] Add new channels for additional tags (#14201)

* New channels for additional tags

Signed-off-by: Mark Hilbush <mark@hilbush.com>
3 years agoUpgrade maven-javadoc-plugin to release 3.2.0 (#14173)
Holger Friedrich [Wed, 11 Jan 2023 07:59:46 +0000 (08:59 +0100)]
Upgrade maven-javadoc-plugin to release 3.2.0 (#14173)

* Switch to version used by openhab-core
* Apply patch from #2359 for upgrading dependency on plexus

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
3 years agoAdd accuracy moon tests (#14182)
lsiepel [Wed, 11 Jan 2023 07:58:13 +0000 (08:58 +0100)]
Add accuracy moon tests (#14182)

Signed-off-by: lsiepel <leosiepel@gmail.com>
3 years agoFix for NPE when playerState is null (#14191)
Mark Hilbush [Tue, 10 Jan 2023 14:02:40 +0000 (09:02 -0500)]
Fix for NPE when playerState is null (#14191)

Signed-off-by: Mark Hilbush <mark@hilbush.com>
3 years ago[velux] tweak read me (#14196)
Andrew Fiddian-Green [Tue, 10 Jan 2023 07:14:54 +0000 (07:14 +0000)]
[velux] tweak read me (#14196)

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
3 years agoFix Markdown warnings in README.md (#14187)
Holger Friedrich [Mon, 9 Jan 2023 16:51:12 +0000 (17:51 +0100)]
Fix Markdown warnings in README.md (#14187)

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
3 years ago[ecobee] Fix issue with UTC and local dates (#14170)
Mark Hilbush [Sun, 8 Jan 2023 22:35:01 +0000 (17:35 -0500)]
[ecobee] Fix issue with UTC and local dates (#14170)

* Correctly handle UTC and local date/times
* Eliminate use of Date class

Signed-off-by: Mark Hilbush <mark@hilbush.com>
3 years ago[doorbird] Add audiosink (#14122)
Gwendal Roulleau [Sun, 8 Jan 2023 09:57:04 +0000 (10:57 +0100)]
[doorbird] Add audiosink (#14122)

* [doorbird] Add audiosink

Add audiosink capability to a doorbird thing

Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
3 years ago[miio] add support Xiaomi Smart Air Purifier 4 Pro zhimi.airp.vb4 (#13941)
Marcel [Sat, 7 Jan 2023 10:19:12 +0000 (11:19 +0100)]
[miio] add support Xiaomi Smart Air Purifier 4 Pro zhimi.airp.vb4 (#13941)

* [miio] add support Xiaomi Smart Air Purifier 4 Pro zhimi.airp.vb4

Adding support for the following models:
* Xiaomi Smart Air Purifier 4 Pro (modelId: zhimi.airp.vb4)
close

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
3 years ago[chromecast] Fix thing go offline after stop command (#14158)
lsiepel [Sat, 7 Jan 2023 08:51:20 +0000 (09:51 +0100)]
[chromecast] Fix thing go offline after stop command (#14158)

* Restructure commander
* Improve thing status handling on error

Signed-off-by: lsiepel <leosiepel@gmail.com>
3 years agoFix incorrectly formatted license headers (#14171)
Jacob Laursen [Fri, 6 Jan 2023 23:01:27 +0000 (00:01 +0100)]
Fix incorrectly formatted license headers (#14171)

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years agoFix namespaces for tests (#14156)
Jacob Laursen [Fri, 6 Jan 2023 17:56:53 +0000 (18:56 +0100)]
Fix namespaces for tests (#14156)

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years ago[sonos] Correct identification of tuneIn started from Alexa (#14164)
lolodomo [Fri, 6 Jan 2023 15:28:38 +0000 (16:28 +0100)]
[sonos] Correct identification of tuneIn started from Alexa (#14164)

Contained URL is now HTTPS instead of HTTP before.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
3 years ago[homekit] properly expose services from dummy accessories (#14169)
Cody Cutrer [Fri, 6 Jan 2023 15:25:42 +0000 (08:25 -0700)]
[homekit] properly expose services from dummy accessories (#14169)

Signed-off-by: Cody Cutrer <cody@cutrer.us>
3 years agoMake more channels advanced (#14168)
Mark Hilbush [Fri, 6 Jan 2023 11:49:30 +0000 (06:49 -0500)]
Make more channels advanced (#14168)

Signed-off-by: Mark Hilbush <mark@hilbush.com>
3 years agoUpdate license headers to 2023 (#14154)
Jacob Laursen [Fri, 6 Jan 2023 08:49:54 +0000 (09:49 +0100)]
Update license headers to 2023 (#14154)

* Update copyright year in configuration
* Update license headers

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years agoExclude 3rdparty directories from license header generation (#14165)
Jacob Laursen [Fri, 6 Jan 2023 08:44:20 +0000 (09:44 +0100)]
Exclude 3rdparty directories from license header generation (#14165)

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years ago[renault] Add new channels 'batterystatusupdated' and 'locked' (#14076)
Doug Culnane [Thu, 5 Jan 2023 22:55:38 +0000 (23:55 +0100)]
[renault] Add new channels 'batterystatusupdated' and 'locked' (#14076)

Signed-off-by: Doug Culnane <doug@culnane.net>
3 years ago[bigassfan] Null annotations (#13903)
lsiepel [Thu, 5 Jan 2023 22:08:07 +0000 (23:08 +0100)]
[bigassfan] Null annotations (#13903)

* Null annotations and some refactoring
* Fix synchronized block
* Fix remaining warnings

Signed-off-by: Leo Siepel <leosiepel@gmail.com>
3 years ago[jsscripting] Update docs for code caching (#14166)
Florian Hotze [Thu, 5 Jan 2023 22:04:07 +0000 (23:04 +0100)]
[jsscripting] Update docs for code caching (#14166)

... and fix the table of contents.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
3 years ago[hueemulation] Fix tests after core change (#14161)
Florian Hotze [Thu, 5 Jan 2023 12:28:28 +0000 (13:28 +0100)]
[hueemulation] Fix tests after core change (#14161)

Fixes #14153.
This fixes the Hue Emulation tests (and in consequence the full addons build) after core change https://github.com/openhab/openhab-core/pull/3298.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
3 years ago[homekit] Add additional troubleshooting steps for homekit (#14046)
Tim Harper [Wed, 4 Jan 2023 19:32:29 +0000 (12:32 -0700)]
[homekit] Add additional troubleshooting steps for homekit (#14046)

* [homekit] Add additional troubleshooting steps for homekit

Signed-off-by: Tim Harper <timcharper@gmail.com>
3 years ago[neohub] Recover faster if NeoHub produces empty responses (#13889)
Andrew Fiddian-Green [Wed, 4 Jan 2023 06:26:22 +0000 (06:26 +0000)]
[neohub] Recover faster if NeoHub produces empty responses (#13889)

* [neohub] resolve issue #13829
* [neohub] harmonise exceptions and logging
* [neohub] improve field name, and log messages

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
3 years agoImplement missing 'Light' device type (#14150)
mlobstein [Wed, 4 Jan 2023 06:25:14 +0000 (00:25 -0600)]
Implement missing 'Light' device type (#14150)

Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
3 years ago[homekit] Improve multiple instance management (#14016)
Cody Cutrer [Tue, 3 Jan 2023 22:10:42 +0000 (15:10 -0700)]
[homekit] Improve multiple instance management (#14016)

* [homekit] improve instance management

 * allow addressing individual instances for most console commands
 * don't restart all instances if simply adding/removing instances on
   config change
 * clear stored info when removing instances

* [homekit] reset instance identity when clearing pairings
* [homekit] log the actual interface we looked up

Signed-off-by: Cody Cutrer <cody@cutrer.us>
3 years ago[jsscripting] Fix regressions from #14135 & Log stack on `IllegalArgumentException...
Florian Hotze [Tue, 3 Jan 2023 19:45:23 +0000 (20:45 +0100)]
[jsscripting] Fix regressions from #14135 & Log stack on `IllegalArgumentException` (#14142)

* [jsscripting] Fix bundling of global script & regression from #14135

Fixes the regression from https://github.com/openhab/openhab-addons/pull/14135#issuecomment-1369231126.

While working on this, I also noticed that the cache openhab-js does not work because of wrong webpack commandline args in the pom (wrong entrypoint).

* [jsscripting] Enable stack logging for IllegalArgumentExceptions
* [jsscripting] Upgrade openhab-js to 3.2.4
* [jsscripting] Update README for recent PR

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
3 years agofix typo (#14146)
Johannes Velde [Tue, 3 Jan 2023 17:58:19 +0000 (18:58 +0100)]
fix typo (#14146)

Signed-off-by: veldhaenchen <jo.velde@gmx.de>
3 years ago[ism8] Fix SAT warnings (#14141)
Holger Friedrich [Tue, 3 Jan 2023 07:47:51 +0000 (08:47 +0100)]
[ism8] Fix SAT warnings (#14141)

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
3 years ago[homematic] Add hints about using docker (#14121)
Moritz 'Morty' Strübe [Mon, 2 Jan 2023 19:51:22 +0000 (20:51 +0100)]
[homematic] Add hints about using docker (#14121)

Signed-off-by: Moritz 'Morty' Strübe <morty@gmx.net>
3 years ago[jsscripting] Cache openhab-js injection to improve performance (#14135)
Florian Hotze [Mon, 2 Jan 2023 19:41:35 +0000 (20:41 +0100)]
[jsscripting] Cache openhab-js injection to improve performance (#14135)

* [jsscripting] Extend comments for wraprequire
* [jsscripting] Enable openhab-js caching to improve performance

On my dev system (which I guess is much more powerful than most openHAB servers), cached openhab-js injection takes 100-200 ms.
openhab-js injection from file system takes about 1000 ms.

* [jsscripting] Update configuration language
* [jsscripting] Upgrade openhab-js version to 3.2.1 for required webpack changes

Documentation updates will follow in another PR to keep this one clean.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
3 years ago[chromecast] Improve documentation (#14136)
lsiepel [Mon, 2 Jan 2023 18:53:42 +0000 (19:53 +0100)]
[chromecast] Improve documentation (#14136)

Signed-off-by: lsiepel <leosiepel@gmail.com>
3 years agoPushing PR #14123 to OH4 (#14140)
Gaël L'hopital [Mon, 2 Jan 2023 18:06:24 +0000 (19:06 +0100)]
Pushing PR #14123 to OH4 (#14140)

Signed-off-by: clinique <gael@lhopital.org>
3 years agoUpdate URL to Loxwiki (#14131)
Norbert Klasen [Sun, 1 Jan 2023 20:11:42 +0000 (21:11 +0100)]
Update URL to Loxwiki (#14131)

Loxwiki has moved into the Atlassian cloud: https://loxwiki.atlassian.net/wiki/spaces/LOX/pages/1622769957/Planung+bersiedelung+zu+loxwiki.atlassian.net

3 years agoNew Crowdin updates (#14130)
openhab-bot [Sun, 1 Jan 2023 13:50:12 +0000 (14:50 +0100)]
New Crowdin updates (#14130)

* New translations deconz.properties (Italian)
* New translations atlona.properties (Italian)

3 years agoSynchronize access to account to avoid concurrency issues (#14128)
Kai Kreuzer [Sun, 1 Jan 2023 11:02:15 +0000 (12:02 +0100)]
Synchronize access to account to avoid concurrency issues (#14128)

Signed-off-by: Kai Kreuzer <kai@openhab.org>
3 years ago[velbus] Add modules VMBKP, VMBIN, VMB4PB (#13939)
Daniel Rosengarten [Sat, 31 Dec 2022 16:25:03 +0000 (17:25 +0100)]
[velbus] Add modules VMBKP, VMBIN, VMB4PB (#13939)

* [velbus] Add new functionality PRESSED and LONG PRESSED and fix bug

New functionnality :
Add the the possibility to simulate the PRESSED and LONG PRESSED message of an input.

Module supported with button simulation :
VMB1RYS (button : CH6)
VMB6IN (buttons : CH1 ... CH6)
VMB2PBN, VMB6PBN, VMB7IN, VMB8IR, VMB8PB, VMB8PBU, VMBEL1, VMBEL2, VMBEL4, VMBGP1, VMBGP1-2, VMBGP2, VMBGP2-2, VMBGP4, VMBGP4-2, VMBGP4PIR, VMBGP4PIR-2 (buttons : CH1 ... CH8)
VMBELO, VMBGPOD, VMBGPOD-2 (buttons : CH1 ... CH32)

Fix bug :

The channels names were not correctly assigned to the thing properties. The last channel had the default name, not the one retrieved from the module.

Signed-off-by: Daniel Rosengarten <github@praetorians.be>
* Update bundles/org.openhab.binding.velbus/README.md

Co-authored-by: cedricboon <cedric.boon@hotmail.com>
Signed-off-by: Daniel Rosengarten <github@praetorians.be>
* Update bundles/org.openhab.binding.velbus/README.md

Co-authored-by: cedricboon <cedric.boon@hotmail.com>
Signed-off-by: Daniel Rosengarten <github@praetorians.be>
* Update bundles/org.openhab.binding.velbus/README.md

Co-authored-by: cedricboon <cedric.boon@hotmail.com>
Signed-off-by: Daniel Rosengarten <github@praetorians.be>
* Add trigger on channel when using button simulation

Remove uneeded  Thread.sleep in code.
Trigger the events PRESSED, LONG_PRESSED, RELEASED on the linked trigger channel when using the button simulation.

Signed-off-by: Daniel Rosengarten <github@praetorians.be>
* Fix redundant superinterface DiscoveryService

Redundant superinterface DiscoveryService for the type VelbusThingDiscoveryService, already defined by AbstractDiscoveryService.

Signed-off-by: Daniel Rosengarten <github@praetorians.be>
* Fix bug #11521

Typo in the Counter Channel name for VMB7IN.

Signed-off-by: Daniel Rosengarten <github@praetorians.be>
* [velbus] Add VMBELPIR module

Add the module VMBELPIR

Signed-off-by: Daniel Rosengarten <github@praetorians.be>
* [velbus] VMBELPIR added to discovery service

Forgot to add the module VMBELPIR in the discovery service.

Signed-off-by: Daniel Rosengarten <github@praetorians.be>
* [velbus] Updates clock alarms management

Changes the clocks alarm management :
- Global alarms are now set from the bridge thing.
- Local alarms are still set from the module thing, but the alarm type channels on modules are now readonly.

Reduces the flooding of the bus by adding a delay of 10 seconds before sending the update on the bus :
- Removes the send on the bus after each update of a clock alarm value.
- Sends only the values of the last update after 10 seconds.

Signed-off-by: Daniel Rosengarten <github@praetorians.be>
* [velbus] PR modifications

Modifications asked in PR review.

Signed-off-by: Daniel Rosengarten <github@praetorians.be>
* [velbus] PR modifications 2

Modifications asked in PR review 2.

Signed-off-by: Daniel Rosengarten <github@praetorians.be>
* [velbus] Add modules VMBKP, VMBIN, VMB4PB

New functionnality : Add the support of the modules VMBKP, VMBIN, VMB4PB

Signed-off-by: Daniel Rosengarten <github@praetorians.be>
* [velbus] Fix code style error

Fix code style error in VelbusSensorWithAlarmClockHandler.java

Signed-off-by: Daniel Rosengarten <github@praetorians.be>
Signed-off-by: Daniel Rosengarten <github@praetorians.be>
Co-authored-by: cedricboon <cedric.boon@hotmail.com>
3 years ago[miio] add support ROIDMI EVA - roidmi.vacuum.v66 (#13940)
Marcel [Sat, 31 Dec 2022 16:15:16 +0000 (17:15 +0100)]
[miio] add support ROIDMI EVA - roidmi.vacuum.v66 (#13940)

Adding support for the following models:
* ROIDMI EVA (modelId: roidmi.vacuum.v66)

close #13813

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
3 years agoSimplify name to deCONZ (#14125)
Jacob Laursen [Sat, 31 Dec 2022 15:42:22 +0000 (16:42 +0100)]
Simplify name to deCONZ (#14125)

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years ago[astro] Fix returning wrong sun phase name (#14078)
lsiepel [Sat, 31 Dec 2022 14:04:06 +0000 (15:04 +0100)]
[astro] Fix returning wrong sun phase name (#14078)

* Add tests and fix very minor bug
* Correct wrong test
* Update tests and fix sorting
* Some checkstyle improvements

Signed-off-by: lsiepel <leosiepel@gmail.com>
3 years ago[miele] Add categories and semantic tags (#14086)
Jacob Laursen [Sat, 31 Dec 2022 14:01:58 +0000 (15:01 +0100)]
[miele] Add categories and semantic tags (#14086)

* Add categories and tags

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years ago[miele] Add categories and semantic tags (#14086)
Jacob Laursen [Sat, 31 Dec 2022 14:01:11 +0000 (15:01 +0100)]
[miele] Add categories and semantic tags (#14086)

* Add categories and tags

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years ago[unifi] Fix bug with combination of other data/ports (#14060)
Hilbrand Bouwkamp [Sat, 31 Dec 2022 10:03:56 +0000 (11:03 +0100)]
[unifi] Fix bug with combination of other data/ports (#14060)

- It seems to throw an exception when updating internal cache. It can happen if you have a switch that has both PoE ports and other PoE ports or data in the port override.
- Fixed logout, should be POST instead of GET.
- Fixed typo in channel-type.config.unifi.poeEnable.mode.option.pasv24 should be without appending v.
- Removed compiler warnings.

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
3 years ago[tesla] Fix discovery of Tesla vehicles from account (#14070)
Kai Kreuzer [Sat, 31 Dec 2022 09:22:39 +0000 (10:22 +0100)]
[tesla] Fix discovery of Tesla vehicles from account (#14070)

* Fix discovery of Tesla vehicles from account

Signed-off-by: Kai Kreuzer <kai@openhab.org>
3 years ago[atlona] Add support for AT-PRO3HD44M (#14080)
mlobstein [Sat, 31 Dec 2022 09:18:03 +0000 (03:18 -0600)]
[atlona] Add support for AT-PRO3HD44M (#14080)

* Add support for AT-PRO3HD44M

Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
3 years ago[jsscripting] Improve performance & reduce memory usage (#14113)
Florian Hotze [Fri, 30 Dec 2022 22:34:35 +0000 (23:34 +0100)]
[jsscripting] Improve performance & reduce memory usage (#14113)

* [jsscripting] Share org.graalvm.polyglot.Engine across all OpenhabGraalJSScriptEngine instances

See https://github.com/oracle/graaljs/issues/121#issuecomment-880056648, it is not required to have one engine per GraalJSScriptEngine.

This might improve performance a bit on less powerful systems (Raspberry Pi) and decreases heap usage:
With 5 GraalJS UI scripts, heap usage is now below 100 MB. Before this change, it was over 100 MB.

* [jsscripting] Extend debug logging
* [jsscripting] Cache `@jsscripting-globals.js` across all engines

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
3 years ago[jsscripting] Upgrade to ECMAScript 2022 & Dependency improvements (#14093)
Florian Hotze [Fri, 30 Dec 2022 22:04:43 +0000 (23:04 +0100)]
[jsscripting] Upgrade to ECMAScript 2022 & Dependency improvements (#14093)

* [jsscripting] Remove asm from dependencies in pom

GraalJS >= 20.3.0 doesn't require org.ow2.asm as compile dependency anymore, see https://mvnrepository.com/artifact/org.graalvm.js/js/20.3.0.

* [jsscripting] Remove dependency org.graalvm.js/js-launcher as it is not required

js-launcher is GraalVM's JavaScript command line interpreter and not required in the addon.
See https://www.graalvm.org/22.1/reference-manual/js/RunOnJDK/.

* [jsscripting] Add missing com.ibm.icu dependency

GraalJS changelog says that it is not required for GraalJS >= 22.0.0 (see https://github.com/oracle/graaljs/blob/685e5873af80a59636b697c949a172d8a7d694c3/CHANGELOG.md#version-2200).
But GraalJS 22.3.0 attempts to load classes from it during runtime.

* [jsscripting] Update GraalJS engine options

Compat, as its additional functionality is not used by openhab-js and user code is not expected to use it.

* [jsscripting] Remove com.ibm.icu/icu4j dependency
* [jsscripting] Don't disable Nashorn compat mode as openhab-js requires it for accessors

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
3 years agoUpdate Jackson version to 2.14.1 (#14116)
Wouter Born [Fri, 30 Dec 2022 21:48:12 +0000 (22:48 +0100)]
Update Jackson version to 2.14.1 (#14116)

This is the version used in the feature provided by openhab-core.

Signed-off-by: Wouter Born <github@maindrain.net>
3 years ago[knx] add color channel to knx binding docu (#14114)
Michael Geramb [Fri, 30 Dec 2022 18:46:58 +0000 (19:46 +0100)]
[knx] add color channel to knx binding docu (#14114)

add color channel to knx binding docu

3 years ago[bosesoundtouch] Fix regression and add tests (#14097)
lsiepel [Fri, 30 Dec 2022 12:58:27 +0000 (13:58 +0100)]
[bosesoundtouch] Fix regression and add tests (#14097)

* Fix regression and add tests

Signed-off-by: lsiepel <leosiepel@gmail.com>
3 years agoFix MQTT shutdownRetain default value (#14099)
jimtng [Fri, 30 Dec 2022 08:34:13 +0000 (18:34 +1000)]
Fix MQTT shutdownRetain default value (#14099)

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
3 years ago[bondhome] Fix fatal Null Pointer errors (#14103)
mlobstein [Fri, 30 Dec 2022 08:23:45 +0000 (02:23 -0600)]
[bondhome] Fix fatal Null Pointer errors (#14103)

* Fix fatal Null Pointer errors

Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
3 years ago[groovyscripting] Update Groovy to 4.0.7 (#14115)
Wouter Born [Thu, 29 Dec 2022 20:59:12 +0000 (21:59 +0100)]
[groovyscripting] Update Groovy to 4.0.7 (#14115)

Updates Groovy from 3.0.13 to 4.0.7.

For Groovy 4.0 release notes, see:

https://groovy-lang.org/releasenotes/groovy-4.0.html#releasenotes

Signed-off-by: Wouter Born <github@maindrain.net>
3 years ago[jsscripting] Use `application/javascript` as MIME type (#14096)
Florian Hotze [Thu, 29 Dec 2022 20:01:22 +0000 (21:01 +0100)]
[jsscripting] Use `application/javascript` as MIME type (#14096)

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
3 years ago[influxdb] Upgrade Gson to 2.9.1 (#14090)
Jacob Laursen [Thu, 29 Dec 2022 19:59:10 +0000 (20:59 +0100)]
[influxdb] Upgrade Gson to 2.9.1 (#14090)

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years ago[dbquery] Upgrade Gson to 2.9.1 (#14089)
Jacob Laursen [Thu, 29 Dec 2022 19:58:24 +0000 (20:58 +0100)]
[dbquery] Upgrade Gson to 2.9.1 (#14089)

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
3 years ago[bluetooth.generic] Upgrade Gson to 2.9.1 (#14092)
Jacob Laursen [Thu, 29 Dec 2022 19:57:41 +0000 (20:57 +0100)]
[bluetooth.generic] Upgrade Gson to 2.9.1 (#14092)

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>