Commit Graph

1453 Commits

Author SHA1 Message Date
Maarten Blokker
ebd268a42e
[surepetcare] Check for null before updating pet location channels (#11235)
fixes #11234

Signed-off-by: Maarten Blokker <maarten.blokker@outlook.com>
2021-09-19 11:40:16 +02:00
jlaur
0c021ec795
[miele] Fix multicast and multi-protocol support (ZigBee/Wi-Fi) (#11244)
* Fix multicast and multi-protocol support (ZigBee/Wi-Fi)
* Fix channel description referring to hood but also used for oven and other appliances.
* Fix auto-discovery finding already configured things through files.

Fixes #11242

Fixes #11243

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2021-09-18 22:59:18 +02:00
Wouter Born
4aa1f14600
Upgrade to Karaf 4.3.3 (#11261)
* Syncs the karaf.version so the new Maven plugin is used
* Resolves itest runbundles for the new runtime dependencies

Signed-off-by: Wouter Born <github@maindrain.net>
2021-09-18 19:33:18 +02:00
Michael Murton
51cb1aabd5
[telegram] Add event channels and Answer overload (#9251)
* Add event channels and Answer overload

Signed-off-by: Michael Murton <6764025+CrazyIvan359@users.noreply.github.com>
2021-09-18 15:08:00 +02:00
maniac103
88975dcd13
[homematic] Remove double press events and improve long press events for button trigger (#11186)
HM devices provide not only 'long press' events, but also 'long
press continued' (sent in configured long press interval) and 'long
press released' events. So far, those events were swallowed in the
button datapoint handler.
Improve the situation by forwarding those events to the button trigger
channel, making them usable in e.g. rules that react on button long
presses.

A double press timeout of 2 seconds is too long and disturbs single
press processing. Additionally, for double press processing to be
useful, the first press would need to be swallowed until double press
timeout elapses, which is not what happened here: the first PRESS was
sent out as SINGLE_PRESS event, making it impossible to meaningfully
distinguish the 'single press' and 'double press' events within rules.

If needed, double press handling can be implemented equally well within
a rule.

Signed-off-by: Danny Baumann <dannybaumann@web.de>
2021-09-18 14:32:40 +02:00
Ondrej Pecta
cbe537a43b
[somfytahoma] Fixed rssi channels creation & properties updating (#11254)
Signed-off-by: Ondrej Pecta <opecta@gmail.com>
2021-09-18 13:56:36 +02:00
jlaur
805d56dc08
[hdpowerview] Add Hub configuration option hardRefreshBatteryLevel (#11260)
* Add Hub configuration option hardRefreshBatteryLevel for refreshing battery status more frequently.
* Explicitly update battery channels to Undefined when data is missing or invalid.

Fixes #11259

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2021-09-18 13:55:04 +02:00
mlobstein
84ba4fc333
Improve discovery service (#11258)
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
2021-09-18 13:51:30 +02:00
Pawel Pieczul
3fc7c6559c
Support for SHA-256 (#11240)
Signed-off-by: Pawel Pieczul <pieczul@gmail.com>
2021-09-17 08:40:11 +02:00
Wouter Born
30198e273a
[metrics] Add Java Management Extensions (JMX) metrics exporter (#11249)
* Add Java Management Extensions (JMX) metrics exporter
* Use groups in metrics add-on configuration
* Improve null annotations
* Update documentation

Signed-off-by: Wouter Born <github@maindrain.net>
2021-09-16 09:11:12 +02:00
Wouter Born
ba3a9bb01a
[groovyscripting] Update Groovy to 3.0.9 (#11251)
For all bugfixes and improvements, see:

http://groovy-lang.org/changelogs/changelog-3.0.9.html

Signed-off-by: Wouter Born <github@maindrain.net>
2021-09-15 19:02:17 +02:00
Marcel
357d699cdd
[miio] add support for Smartmi Fresh Air System (zhimi.airfresh.va4&va2) (#11164)
* [miio] add support for Smartmi Fresh Air System (zhimi.airfresh.va4&va2)

Add support for
* Smartmi Fresh Air System (zhimi.airfresh.va4)
* Smartmi Fresh Air System (zhimi.airfresh.va2)

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>

* [miio] fix 2 commands and add some formatting

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>

* [miio] fix copy paste error

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>

* [miio] airfresh channelnames

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>

* [miio] merge & count devices

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-09-14 16:57:57 +02:00
mlobstein
db935d3a3b
[kaleidescape] Add configuration option to auto load metadata channels without rules (#11231)
* Add configuration option to auto load metadata channels

Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>

* Debug message

Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
2021-09-14 16:55:48 +02:00
Marcel
f0df1a45cc
[miio] Add support for Yeelight Jade Smart LED Ceiling Light (#11241)
Add support for  yeelink.light.ceil26 - Yeelight Jade Smart LED Ceiling
Light C2001

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-09-13 19:54:35 +02:00
Wouter Born
088e2f08ab
Resolve runbundles for XStream upgrade (#11236)
Related to openhab/openhab-core#2482

Signed-off-by: Wouter Born <github@maindrain.net>
2021-09-12 11:44:58 +02:00
Michael Wodniok
962853811a
[icalendar] Fix internal calculation for retrieving events for command tags (#11178)
* [icalendar] Fixes #11084: Different method for retrieving events

Replaced retrieval of events for CommandTags by another, already implemented method, fixing wrong behaviour in case of moved or removed events. Also updated dependencies to get this binding resolvable again.

Signed-Off-By: Michael Wodniok <michi@noorganization.org>
2021-09-11 16:18:08 +02:00
Dan Cunningham
7efc3e9e81
[myq] Switch to using oAuth for logins (#11183)
* change MyQ binding to use now required oAuth for authentication

Signed-off-by: Dan Cunningham <dan@digitaldan.com>

* Clean up error handling

Signed-off-by: Dan Cunningham <dan@digitaldan.com>

* Cleanup checkstyle errors

Signed-off-by: Dan Cunningham <dan@digitaldan.com>

* missing newline

Signed-off-by: Dan Cunningham <dan@digitaldan.com>

* Remove unused classes

Signed-off-by: Dan Cunningham <dan@digitaldan.com>

* Add token listener

Signed-off-by: Dan Cunningham <dan@digitaldan.com>

* add a redirect limit...just in case

Signed-off-by: Dan Cunningham <dan@digitaldan.com>

* Don't resue the oAuth service if we have been disosed or its closed.  Reduce logging verbosity.

Signed-off-by: Dan Cunningham <dan@digitaldan.com>

* Force login if we get a 401 response

Signed-off-by: Dan Cunningham <dan@digitaldan.com>
2021-09-11 13:41:28 +02:00
lolodomo
f055795c28
[remoteopenhab] Example with a connection to myopenhab.org (#11237)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2021-09-11 13:35:27 +02:00
Matthew Skinner
d0c435b9bd
[telegram] Fixes exceptions that stop rules/actions from finishing (#11215)
* reorder channel updates.


Signed-off-by: Matthew Skinner <matt@pcmus.com>

* catch exceptions.


Signed-off-by: Matthew Skinner <matt@pcmus.com>

* Spotless fixed


Signed-off-by: Matthew Skinner <matt@pcmus.com>

* increase timeout.


Signed-off-by: Matthew Skinner <matt@pcmus.com>

* Fix NPE in action from causing issues.


Signed-off-by: Matthew Skinner <matt@pcmus.com>

* fix logger.

Signed-off-by: Matthew Skinner <matt@pcmus.com>
2021-09-11 13:34:23 +02:00
lolodomo
ce8fac8df2
[linky] Removed from the distribution until it is fixed (#11233)
* [linky] Removed from the distribution until it is fixed

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

* Apply spotless

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2021-09-10 15:07:25 +02:00
Kai Kreuzer
195d532aa7
Correctly disable unstable test (#11232)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2021-09-09 09:35:14 +02:00
Marcel
31cde42da5
[miio] Avoid shutting down shared executor service (#11166)
* [miio] Avoid shutting down shared executor service

* Closing #11152
* Better identify communication threads

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-09-08 22:13:32 +02:00
dalgwen
0a96792a93
[pulseaudio] Fix playing time with pulseaudio sink (#11170) (#11171)
Fixes #11170 by introducing an intelligent thread.sleep (getting the duration of the sound, if possible, then wait the appropriate time for letting the sound play). By the way, the method to get the sound duration is not as easy as I thought.

Also fix a minor issue with the last volume not propertly saved.

And fix some minor warnings by using final local variable.

Signed-off-by: Gwendal ROULLEAU <gwendal.roulleau@gmail.com>
2021-09-08 21:08:05 +02:00
jlaur
56a0449ce1
[hdpowerview] Add new battery level channel (#11206)
* Introduce new batteryLevel channel.

Fixes #11205

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2021-09-08 20:36:59 +02:00
jlaur
8f836a08ea
[wemo] Add dimensions for power/energy channel types for Insight Switch. (#11208)
* Add dimensions for power/energy channel types for Insight Switch.

Fixes #11207

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2021-09-08 20:36:03 +02:00
jlaur
5ae581f4e1
Fix broken things file support. (#11218)
Fixes #8877

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2021-09-08 20:34:08 +02:00
Peter Schraffl
bb1ad2a453
fix: Add Group Definition (#11226)
Signed-off-by: Schraffl Peter <p.schraffl@gmx.at>
2021-09-08 20:16:23 +02:00
Ron Isaacson
d4983c4991
[powermax] Introduce some new channels for better status reporting (#10624)
* [powermax] Introduce some new channels for better status reporting

* New panel channels:
    - Ringing indicator (the siren is currently sounding)
    - Date/time the last message was received from the panel
    - List of all active alarms and alerts (similar to panel's
      Memory list, but items get removed from the list as conditions
      resolve)
* New zone channels:
    - Alarmed indicator (zone is in alarm, or has an alarm in memory)
    - Tamper alarm indicator (same but for a tamper condition)
    - Inactive indicator
    - Tamper indicator (zone is actively tampered right now)
    - Last status message received for this zone, and when
* Use descriptive names for zones in log messages. If you create a
  Thing for a zone, it will use that Thing's label in all reporting
  for that zone. If there's no Thing then it will attempt to use the
  zone label from the panel (e.g. "Basement").
* Clear all channels during startup to keep from displaying stale
  values loaded from persistence
* Also includes some minor SAT fixes (checkstyle, spotbugs)

Signed-off-by: Ron Isaacson <isaacson.ron@gmail.com>

* Incorporate review feedback from lolodomo

Signed-off-by: Ron Isaacson <isaacson.ron@gmail.com>
2021-09-08 18:58:35 +02:00
TheTrueRandom
0a1f23f98d
[doorbird] fix controller id (#11190)
Signed-off-by: True Random <rantruedom@gmail.com>
2021-09-07 22:48:33 +02:00
Scott H
12fba3a5ee
Added Twitter binding (#11212)
Signed-off-by: Scott Hanson <scooter_seh@yahoo.com>
2021-09-05 18:11:40 +02:00
Jan Vybíral
d1171ca809
[nuki] Opener support and discovery (#10672)
* [nuki] Opener support and discovery (#10671)

* Added Opener support
* New Smartlock channels
* Discovery support
* Secured communication using hashed token
* Improved callback handling

Signed-off-by: Jan Vybíral <jan.vybiral1@gmail.com>

* Fixed code style problems

Signed-off-by: Jan Vybíral <jan.vybiral1@gmail.com>

* Id of bridge is unique for openhab instance

Signed-off-by: Jan Vybíral <jan.vybiral1@gmail.com>

* Added compatibility with smart lock created by previous binding version

Signed-off-by: Jan Vybíral <jan.vybiral1@gmail.com>

* Secure token configuration + threading improvements

Added configuration option to enable or disable using hashed token
for bridge API authentication.
Turning bridge offline when device request fails.
All HTTP calls made async so that openhab thread is not blocked.

Signed-off-by: Jan Vybíral <jan.vybiral1@gmail.com>

* Only discover bridges which return some response

Only bridges which return 200 or 403 response are discovered.
Nuki API might return bridges which no longer exists or are on different
network and are not reachable. We do not want to put these in inbox, only those
who respond do HTTP calls.

Signed-off-by: Jan Vybíral <jan.vybiral1@gmail.com>

* Changed ownership of nuki binding

Signed-off-by: Jan Vybíral <jan.vybiral1@gmail.com>

* Code review changes

* Fixed @Nullable annotations
* Fixed too many logger messages
* Rewritten configuration to use configuration class

Signed-off-by: Jan Vybíral <jan.vybiral1@gmail.com>

* Code review changes

* NukiId moved back to configuration and switched to configuration classes in all devices
* Doorbell ringing channel switched to trigger channel

Signed-off-by: Jan Vybíral <jan.vybiral1@gmail.com>

* Code review changes

* Channel description reformatted into table
* Fixed bug where repeated bridge discovery was overwriting existing bridge properties

Signed-off-by: Jan Vybíral <jan.vybiral1@gmail.com>

* Fixed ringactionTimestamp property name

Signed-off-by: Jan Vybíral <jan.vybiral1@gmail.com>

* Fixed search of changed thing in HTTP callback

Signed-off-by: Jan Vybíral <jan.vybiral1@gmail.com>

* Improvements to uuid generation

* Bridge id is generated only from bridgeId property, making it stable across openhab installations
* Using InstanceUUID as unique callback identifier instead of bridge id

Signed-off-by: Jan Vybíral <jan.vybiral1@gmail.com>

* Improved duplicate thing discovery

* Implemented duplicate thing detection using openHAB ThingRegistry

Signed-off-by: Jan Vybíral <jan.vybiral1@gmail.com>

* Code review changes

* Fixed all nullable warnings
* Fixed README formatting

Signed-off-by: Jan Vybíral <jan.vybiral1@gmail.com>
2021-09-05 11:50:23 +02:00
Scott H
b37022c5d7
[Twitter] 3.0 Twitter Binding (#10241)
* [twitter][WIP] Initial contribution

using the 1.x binding as a template, I created a new Twitter Binding.

Signed-off-by: Scott Hanson <scooter_seh@yahoo.com> (github: computergeek1507)
Signed-off-by: Scott Hanson <scooter_seh@yahoo.com>

* trying to fix twitter4j dependency stuff

Signed-off-by: Scott Hanson <scooter_seh@yahoo.com>

* add to bundle POM

Signed-off-by: Scott Hanson <scooter_seh@yahoo.com>

* trying to fix build

Signed-off-by: Scott Hanson <scooter_seh@yahoo.com>

* Fixed dependency issues, Got Actions working

Signed-off-by: Scott Hanson <scooter_seh@yahoo.com>

* updating readme

Signed-off-by: Scott Hanson <scooter_seh@yahoo.com>

* fix class name

Signed-off-by: Scott Hanson <scooter_seh@yahoo.com>

* Fixes based on review

Signed-off-by: Scott Hanson <scooter_seh@yahoo.com>

* Cleanup based on review and mvn checks

Signed-off-by: Scott Hanson <scooter_seh@yahoo.com>

* grammar fix

Signed-off-by: Scott Hanson <scooter_seh@yahoo.com>

* remove Apache dependencies

Signed-off-by: Scott Hanson <scooter_seh@yahoo.com>

* added Null Checks based on review

Signed-off-by: Scott Hanson <scooter_seh@yahoo.com>

* change null check around

Signed-off-by: Scott Hanson <scooter_seh@yahoo.com>
2021-09-05 09:33:00 +02:00
jlaur
0087c8c828
[hdpowerview] Add new signal strength channel (#11198)
* Add new signal strength channel.

Fixes #11197

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2021-09-04 15:49:33 +02:00
jlaur
3a36b1e70d
Fix channel lowBattery being updated to ON when no battery status available. (#11201)
Fixes #11200

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2021-09-04 15:48:19 +02:00
Wouter Born
6c3e937f02
[lifx] Add missing color feature to a few products (#11180)
Updates the LIFX Candle (PID 68) and LIFX Clean (PID 90, 99) products to support color features.

Signed-off-by: Wouter Born <github@maindrain.net>
2021-08-31 19:43:38 +02:00
mlobstein
cd69c77cd5
[oppo] Remove logo from README (#11176)
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
2021-08-31 14:41:11 +02:00
Jørgen Melhus
2e8fb907ca
[bluetooth.bluegiga] Fix CompareObjectsWithEquals findings regression causing all devices to be beacons
Signed-off-by: Jørgen Melhus <5099412+jmelhus@users.noreply.github.com>
2021-08-31 13:05:09 +02:00
Marcel
fac7edc270
[miio] add support for mi airfryers (careli.fryer.maf01,2&3) (#11142)
Also includes update of models names db

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-08-29 22:17:43 +02:00
Marcel
492682c5cf
[miio] improve readme: restructure & map customizing feature (#11143)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-08-29 20:18:31 +02:00
Mark Hilbush
b2b3ad274b
API changed location of event counts (#11159)
Signed-off-by: Mark Hilbush <mark@hilbush.com>
2021-08-26 19:09:26 +02:00
jlaur
4e50a985e6
[hdpowerview] Add new batteryVoltage channel (#11155)
* Add new batteryVoltage channel.

Fixes #11154

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

* Fix documentation for lowBattery.

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

* Organized channels into two groups: Shade and Battery.

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

* Revert breaking change.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2021-08-26 18:57:27 +02:00
antroids
36377a790e
[mqtt-homeassistant] MQTT Homeassistant test concurrency bug fixed (#11161)
Signed-off-by: Anton Kharuzhy <antroids@gmail.com>

Co-authored-by: Anton Kharuzhy <antroids@gmail.com>
2021-08-26 14:46:53 +02:00
mlobstein
81989112d1
Fix equalsIgnoreCase issue (#11140)
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
2021-08-24 19:05:32 +02:00
mlobstein
5ce27e3407
Fix equalsIgnoreCase issue (#11141)
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
2021-08-24 19:04:17 +02:00
jlaur
be17654767
Renamed channel manual_fan_speed to manual_fan_step for consistency. (#11147)
Fixes #10621

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2021-08-24 18:59:35 +02:00
Mark Hilbush
5cb228570d
Fix parsing to handle when volume is a float (#11151)
Signed-off-by: Mark Hilbush <mark@hilbush.com>
2021-08-24 14:44:02 +02:00
OneYellowLemon
4988522173
Make spacing consistent (#11145)
Signed-off-by: OneYellowLemon <66096725+OneYellowLemon@users.noreply.github.com>
2021-08-23 21:51:40 +02:00
kennetn
73f7a86dd8
[irobot] Minor readme corrections (#11124)
* Minor readme corrections

Minor clarification originally described here https://community.openhab.org/t/irobot-9xx-on-openhab/17774/196

Signed-off-by: kennetn <kennetn@gmail.com>
2021-08-22 12:04:33 +02:00
Julio Vilmar Gesser
aee601cc3d
[semsportal] Fix lastUpdate parse format to accept the format provided by the inverter (#11127)
* Fixed lastUpdate date formating

Signed-off-by: Julio Gesser <jgesser@gmail.com>
2021-08-22 12:02:10 +02:00
Allan Seidel
14cd779530
Update README.md (#11131)
Corrected the humidifier mode label.
2021-08-22 11:58:38 +02:00