Commit Graph

3303 Commits

Author SHA1 Message Date
Cody Cutrer
0de87b15d2
[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>
2023-01-13 20:25:06 +01:00
Holger Friedrich
ee54882841
Fix SAT warnings (#14214)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-01-13 19:10:59 +01:00
maniac103
4dd60bb442
[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>
2023-01-13 16:25:26 +01:00
Holger Friedrich
4e44de3894
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>
2023-01-13 08:11:06 +01:00
J-N-K
6aa0dcbc70
[scripting] Adjust to core changes (#14043)
* [scripting] Adjust to core changes

Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-01-12 22:23:20 +01:00
lsiepel
bbc885725f
[bsblan] Minor SAT fixes (#14138)
* Minor SAT fixes

Signed-off-by: lsiepel <leosiepel@gmail.com>
2023-01-12 21:07:31 +01:00
Cody Cutrer
32909fa237
[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>
2023-01-12 15:29:50 +01:00
Keith T. Garner
03a67d25b1
[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>
2023-01-12 07:42:15 +01:00
maniac103
f16f524877
[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>
2023-01-11 15:05:19 +01:00
Mark Hilbush
858ff4b244
[squeezebox] Add new channels for additional tags (#14201)
* New channels for additional tags

Signed-off-by: Mark Hilbush <mark@hilbush.com>
2023-01-11 13:56:40 +01:00
Holger Friedrich
a1ef87cca9
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>
2023-01-11 08:59:46 +01:00
lsiepel
38cb030cad
Add accuracy moon tests (#14182)
Signed-off-by: lsiepel <leosiepel@gmail.com>
2023-01-11 08:58:13 +01:00
Mark Hilbush
65816aafd7
Fix for NPE when playerState is null (#14191)
Signed-off-by: Mark Hilbush <mark@hilbush.com>
2023-01-10 15:02:40 +01:00
Andrew Fiddian-Green
72786df044
[velux] tweak read me (#14196)
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2023-01-10 08:14:54 +01:00
Holger Friedrich
0304d74f87
Fix Markdown warnings in README.md (#14187)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-01-09 17:51:12 +01:00
Mark Hilbush
3ba37b431a
[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>
2023-01-08 23:35:01 +01:00
Gwendal Roulleau
2c2097d646
[doorbird] Add audiosink (#14122)
* [doorbird] Add audiosink

Add audiosink capability to a doorbird thing

Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
2023-01-08 10:57:04 +01:00
Marcel
c24ec070bc
[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>
2023-01-07 11:19:12 +01:00
lsiepel
de8d78403e
[chromecast] Fix thing go offline after stop command (#14158)
* Restructure commander
* Improve thing status handling on error

Signed-off-by: lsiepel <leosiepel@gmail.com>
2023-01-07 09:51:20 +01:00
Jacob Laursen
576be1455c
Fix incorrectly formatted license headers (#14171)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2023-01-07 00:01:27 +01:00
Jacob Laursen
896ea13c9e
Fix namespaces for tests (#14156)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2023-01-06 18:56:53 +01:00
lolodomo
d5dd3c9ea3
[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>
2023-01-06 16:28:38 +01:00
Cody Cutrer
7608c41484
[homekit] properly expose services from dummy accessories (#14169)
Signed-off-by: Cody Cutrer <cody@cutrer.us>
2023-01-06 16:25:42 +01:00
Mark Hilbush
5655303cf1
Make more channels advanced (#14168)
Signed-off-by: Mark Hilbush <mark@hilbush.com>
2023-01-06 12:49:30 +01:00
Jacob Laursen
4dd6d3a8a2
Update license headers to 2023 (#14154)
* Update copyright year in configuration
* Update license headers

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2023-01-06 09:49:54 +01:00
Jacob Laursen
ff158e2f15
Exclude 3rdparty directories from license header generation (#14165)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2023-01-06 09:44:20 +01:00
Doug Culnane
c7fa49bcda
[renault] Add new channels 'batterystatusupdated' and 'locked' (#14076)
Signed-off-by: Doug Culnane <doug@culnane.net>
2023-01-05 23:55:38 +01:00
lsiepel
cb460657eb
[bigassfan] Null annotations (#13903)
* Null annotations and some refactoring
* Fix synchronized block
* Fix remaining warnings

Signed-off-by: Leo Siepel <leosiepel@gmail.com>
2023-01-05 23:08:07 +01:00
Florian Hotze
b91fc94bdb
[jsscripting] Update docs for code caching (#14166)
... and fix the table of contents.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-01-05 23:04:07 +01:00
Florian Hotze
1548f16f5e
[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>
2023-01-05 13:28:28 +01:00
Tim Harper
9c5ea29ae0
[homekit] Add additional troubleshooting steps for homekit (#14046)
* [homekit] Add additional troubleshooting steps for homekit

Signed-off-by: Tim Harper <timcharper@gmail.com>
2023-01-04 20:32:29 +01:00
Andrew Fiddian-Green
31fd91129e
[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>
2023-01-04 07:26:22 +01:00
mlobstein
de6ef7e8ae
Implement missing 'Light' device type (#14150)
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
2023-01-04 07:25:14 +01:00
Cody Cutrer
47f5489d70
[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>
2023-01-03 23:10:42 +01:00
Florian Hotze
f082df923f
[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>
2023-01-03 20:45:23 +01:00
Johannes Velde
7c3fbfdde3
fix typo (#14146)
Signed-off-by: veldhaenchen <jo.velde@gmx.de>
2023-01-03 18:58:19 +01:00
Holger Friedrich
d1634fbc18
[ism8] Fix SAT warnings (#14141)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-01-03 08:47:51 +01:00
Moritz 'Morty' Strübe
8fcfa0438b
[homematic] Add hints about using docker (#14121)
Signed-off-by: Moritz 'Morty' Strübe <morty@gmx.net>
2023-01-02 20:51:22 +01:00
Florian Hotze
3c669ad77a
[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>
2023-01-02 20:41:35 +01:00
lsiepel
12bd7c99c3
[chromecast] Improve documentation (#14136)
Signed-off-by: lsiepel <leosiepel@gmail.com>
2023-01-02 19:53:42 +01:00
Gaël L'hopital
c7275c8946
Pushing PR #14123 to OH4 (#14140)
Signed-off-by: clinique <gael@lhopital.org>
2023-01-02 19:06:24 +01:00
Norbert Klasen
ce6b331518
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
2023-01-01 21:11:42 +01:00
openhab-bot
ba68881995
New Crowdin updates (#14130)
* New translations deconz.properties (Italian)
* New translations atlona.properties (Italian)
2023-01-01 14:50:12 +01:00
Kai Kreuzer
f588c07f3a
Synchronize access to account to avoid concurrency issues (#14128)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2023-01-01 12:02:15 +01:00
Daniel Rosengarten
377dc86452
[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>
2022-12-31 17:25:03 +01:00
Marcel
d0d3005b34
[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>
2022-12-31 17:15:16 +01:00
Jacob Laursen
a6e4ab130d
Simplify name to deCONZ (#14125)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-12-31 16:42:22 +01:00
lsiepel
71ef3d9f4e
[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>
2022-12-31 15:04:06 +01:00
Jacob Laursen
7de25352ef
[miele] Add categories and semantic tags (#14086)
* Add categories and tags

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-12-31 15:01:58 +01:00
Jacob Laursen
470ada241a
[miele] Add categories and semantic tags (#14086)
* Add categories and tags

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2022-12-31 15:01:11 +01:00