Commit Graph

1439 Commits

Author SHA1 Message Date
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
Ryz
bf94b06d0b
Changed minimum Z-Way polling interval to 1 second. (#11122)
Signed-off-by: Ryz <mirco.heitmann@gmail.com>
2021-08-22 11:57:25 +02:00
Matthew Skinner
300ed046a8
[telegram] Send message if a file download fails and bug fixes. (#11125)
* Send message when pic/vid/ani fails to DL
* Upgrade lib to 5.2.0 and fix error.

Signed-off-by: Matthew Skinner <matt@pcmus.com>
2021-08-22 11:54:34 +02:00
Anders Alfredsson
c084ec3a5b
Fix IndexOutOfBoundsException in aggregator function (#11113)
Signed-off-by: Anders Alfredsson <andersb86@gmail.com>
2021-08-22 11:53:11 +02:00
jlaur
9fed16d8bb
[danfossairunit] Change Humidity channel type from Number to Number:Dimensionless (#11121)
* Change Humidity channel from Number to Number:Dimensionless
* Fix documentation for temperature channels.

Fixes #9755

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2021-08-22 11:52:05 +02:00
jlaur
44538c5409
[danfossairunit] Add channel descriptions and categories (#11129)
* Use system default channel type for battery level.
* Add channel categories where applicable
* Add missing channel descriptions (and fix two existing)

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2021-08-22 11:50:33 +02:00
Stefan Giehl
5f6d9b91ef
Fix/update channels for setting hot water target temperature (#11135)
Signed-off-by: Stefan Giehl <stefangiehl@gmail.com>
2021-08-22 11:49:33 +02:00
Stefan Triller
b6aa401cf9
[robonect] Channel for distance from charging station on remote start (#11137)
New channel "status-distance" that shows the distance of the robot from
its charging station while it is searching for the remote starting point.

Signed-off-by: Stefan Triller <github@stefantriller.de>
2021-08-22 11:45:55 +02:00
Jan Gustafsson
02d8e43d37
Fix for #10982 - Binding not working properly HANDLER_REGISTERING_ERROR (#11108)
Signed-off-by: Jan Gustafsson <jannegpriv@gmail.com>
2021-08-16 14:06:16 +02:00
Marcel
62f169d649
[miio] map improvement cropping and customizable colors/parameters (#11110)
* [miio] make robo map drawing customizable

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

* [miio] Add cropping possibility for vacuum map

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

* miio minor edit

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-08-16 14:03:33 +02:00
Marcel
0d286e7a89
[miio] improve/add properties for qmi powerstrip (#11118)
improve mija vacuum channels

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-08-16 14:02:09 +02:00
antroids
3a7835e122
[mqtt-homeassistant] climate.mqtt support (#10690)
* MQTT.Homeassistant Climate support

Signed-off-by: Anton Kharuzhy <antroids@gmail.com>

* MQTT.Homeassistant synthetic config test added

Signed-off-by: Anton Kharuzhy <antroids@gmail.com>

* MQTT.Homeassistant refactoring

Signed-off-by: Anton Kharuzhy <antroids@gmail.com>

* MQTT.Homeassistant discovery test added

Signed-off-by: Anton Kharuzhy <antroids@gmail.com>

* MQTT.Homeassistant thing handler test added

Signed-off-by: Anton Kharuzhy <antroids@gmail.com>

* MQTT.Homeassistant switch test added

Signed-off-by: Anton Kharuzhy <antroids@gmail.com>

* MQTT.Homeassistant Climate test added

Signed-off-by: Anton Kharuzhy <antroids@gmail.com>

* MQTT.Homeassistant author header added

Signed-off-by: Anton Kharuzhy <antroids@gmail.com>

* MQTT.Homeassistant copyright header added

Signed-off-by: Anton Kharuzhy <antroids@gmail.com>

* MQTT.Homeassistant test fixed

Signed-off-by: Anton Kharuzhy <antroids@gmail.com>

* MQTT.Homeassistant test fixed

Signed-off-by: Anton Kharuzhy <antroids@gmail.com>

* MQTT.Homeassistant test infrastructure updated. Added tests with mqtt publishing and commands posting.

Signed-off-by: Anton Kharuzhy <antroids@gmail.com>

* MQTT.Homeassistant fixed Climate#send_if_off handling

Signed-off-by: Anton Kharuzhy <antroids@gmail.com>

* MQTT.Homeassistant do not filter the power command

Signed-off-by: Anton Kharuzhy <antroids@gmail.com>

* MQTT.Homeassistant climate unit test added

Signed-off-by: Anton Kharuzhy <antroids@gmail.com>

* Update bundles/org.openhab.binding.mqtt.homeassistant/src/main/java/org/openhab/binding/mqtt/homeassistant/internal/DiscoverComponents.java

Redundant annotation removed

Co-authored-by: Fabian Wolter <github@fabian-wolter.de>

* MQTT.Homeassistant Redundant @Nullable annotations removed

Signed-off-by: Anton Kharuzhy <antroids@gmail.com>

* MQTT.Homeassistant Unit tests added for all components

Signed-off-by: Anton Kharuzhy <antroids@gmail.com>

* MQTT.Homeassistant Unit tests stability fix

Signed-off-by: Anton Kharuzhy <antroids@gmail.com>

* MQTT.Homeassistant @NonNullByDefault removed from Device, config.dto package created

Signed-off-by: Anton Kharuzhy <antroids@gmail.com>

* MQTT.Homeassistant Climate author added

Signed-off-by: Anton Kharuzhy <antroids@gmail.com>

* MQTT.Homeassistant Device.sw_version renamed

Signed-off-by: Anton Kharuzhy <antroids@gmail.com>

* MQTT.Homeassistant tests wait timeout increased to 10s

Signed-off-by: Anton Kharuzhy <antroids@gmail.com>

Co-authored-by: antroids <antroids@gmail.com>
Co-authored-by: Fabian Wolter <github@fabian-wolter.de>
2021-08-15 11:48:26 +02:00
Marcel
9f09db1f18
[miio] add support for Mi Smart Standing Fan 2 (dmaker.fan.p18) (#11106)
closing #11053

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-08-14 13:40:36 +02:00
mlobstein
5d6fa4a460
Update Nuvo README (#11107)
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
2021-08-14 13:39:11 +02:00
mlobstein
1321049973
Add Roku TV channels (#11087)
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
2021-08-11 12:06:40 +02:00