* Support for Denon "Home" speaker as bridge added
* Fixed a runtime issue if no serial number is provided by the player, by using the PID as a fallback if no serial number is available
Signed-off-by: Wire82 <johannes.einig@me.com>
* Added support for color temperature capabilities and set value in Kelvin
* Use system default channel type
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
* Use for each loop in getChildThing()
Signed-off-by: Ethan Dye <mrtops03@gmail.com>
* Further refine getChildThing() using stream map
Signed-off-by: Ethan Dye <mrtops03@gmail.com>
* Fix spotless errors
Signed-off-by: Ethan Dye <mrtops03@gmail.com>
* fix some tivo binding bugs
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
* update search example rule
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
* [sonos] Add bass/treble/loudness controls
Related to #9874
Disable these controls when the output level is fixed
* Review suggestion: use OnOffType.from
* Add bass/treble/loudness channels to Arc and Arc SL models
* Review comment: remove usage of keySet
Factorize code
Define constants
* Use Map.of to simplify the code
* Review comments considered
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
* add ontime
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
* Update bundles/org.openhab.binding.deconz/README.md
Co-authored-by: Fabian Wolter <github@fabian-wolter.de>
Co-authored-by: Fabian Wolter <github@fabian-wolter.de>
* [sonos] Add support for Sonos Arc/Arc SL + new controls for sub/surround speakers
Related to #9874
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
* Use OnOffType.from
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
* Configured XML parsers to resist XXE attacks
Signed-off-by: Kai Kreuzer <kai@openhab.org>
* added fix for avmfritz
Signed-off-by: Kai Kreuzer <kai@openhab.org>
* added fix for sonos
Signed-off-by: Kai Kreuzer <kai@openhab.org>
* added fix for vitotronic and bosesoundtouch
Signed-off-by: Kai Kreuzer <kai@openhab.org>
* changed avmfritz to singleton pattern
Signed-off-by: Kai Kreuzer <kai@openhab.org>
* addressed roku binding
Signed-off-by: Kai Kreuzer <kai@openhab.org>
* address all uses of DocumentBuilderFactory
Signed-off-by: Kai Kreuzer <kai@openhab.org>
* fixed other occurrences in roku binding
Signed-off-by: Kai Kreuzer <kai@openhab.org>
Related to #8607.
In some cases removed information that is actually generic information and should not be in binding readme.
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
Fixes#7024
The problem was caused by the asynchttpclient dependency that seemed to require another version of the Netty dependency than what is added by the openhab.tp-netty feature.
This caused some of the classes in the ssl package to not be found during initialization.
I fixed it by upgrading the asynchttpclient dependency to a version that use the same version of Netty that is bundled(4.1.42.Final).
Signed-off-by: Jörgen Nilsson <mail.jnilsson@gmail.com>
Signed-off-by: Ethan Dye <mrtops03@gmail.com>
Co-authored-by: Dan Cunningham <dan@digitaldan.com>
Co-authored-by: Craig Hamilton <craigh@quailholdings.com>
Co-authored-by: Brian O'Connell <boc@us.ibm.com>
Co-authored-by: Dan Cunningham <dan@digitaldan.com>
Co-authored-by: Craig Hamilton <craigh@quailholdings.com>
Co-authored-by: Brian O'Connell <boc@us.ibm.com>
* [pidcontroller] Catch empty commandTopic
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
* [pidcontroller] Fix handling action
keys in action context from trigger are passed with prefix of trigger name.
This change removes the prefix to get the actual name and checks if it matches an item.
Else it tries the original name.
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
* [pidcontroller] review comment
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
* Add support for ESP32 devices
* Add Unit Tests
Ensure Gson objects are NonNull
Generify Handlers
Generify Utils
Signed-off-by: Christian Schlipp <christian@schlipp.de>
* Updates links to target the openhab-addons 'main' branch instead of the 'master' branch
* Updates some NOTICE files to indicate content is maintained by openHAB instead of Eclipse SmartHome
Signed-off-by: Wouter Born <github@maindrain.net>
The channel is added dynamically with a channel-type `abshumidity`, but the channel-type definition was names `absolutehumidity`
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
* Improve debugging in message classes
Each PowermaxBaseMessage subclass had its own toString() which added
useful debug info but duplicated a lot of the logic in the message
handler. I've moved the debug info inline and removed the duplication,
and also added decoding for more values to the debug output.
* Fix for 0xFF byte values, which convert to int -1
Signed-off-by: Ron Isaacson <isaacson.ron@gmail.com>
* Use set instead list to avoid duplicate listeners
* Remove from listeners when bridge is not ONLINE
* Unsubscribe from bridge handler events when thing handler is disposed
Signed-off-by: Olivier Marceau <hollysaiqs@marceau.ovh>
The KP115 plug is a WiFi smart plug with energy monitoring support.
It uses the same API as existing TP-Link smart home devices. This change adds support in the binding for the KP115.
Signed-off-by: Evan Anderson <evan@eaanderson.com>
1. Fixes#8786 invalid uid on discovered hub
2. Resolve issue on startup in OH3 discovery result without address
Signed-off-by: James Melville <jamesmelville@gmail.com>
The internal package was placed before the binding specific package, and it should be the other way around.
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
* Replace deprecated constructors
* Removed no longer existing settings from the documentation. They were already marked as deprecated since several versions.
* Refactored communication with the HM gateway
- simplified coding for the communication with the gateway
- buffer size for communication is now configurable to avoid problems
with too small buffers
- Previous solution for #6963 was not sufficient. Should be finally done
with these changes
* Retrieving the duty cycle is sufficient to check connection
- ping requests could therefore be safely removed problems with the automatic reconnection were solved.
* Changed to explicit list of Exception
Fixes#8808
Signed-off-by: Martin Herbst <develop@mherbst.de>
* [pidcontroller] Remove limits, make Ki dependent from the loop time
Also fix naming of thread and shutdown executor.
Signed-off-by: Fabian Wolter <github@fabian-wolter.de>
* [dsmr] Fix handling problem reading gasmeter
The gasmeter seem to return an invalid date value in some cases.
Possible problems with the meter. This however caused the whole meter readings to be ignored, while it should only ignore the single problem value.
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
* [dsmr] Make eclipse happy again.
Don't ask...
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
* [dsmr] Removed sat warnings
Removed usage of apache library and added NonNullByDefault to test classes..
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
* [innogysmarthome] Bug-fix - NPE solved which could occur when devices without a corresponding device state were returned by the API. That happened with the virtual device "NotificationSender" which is unimportant for the binding.
Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
* [innogysmarthome] JavaDoc fixed
Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
* [innogysmarthome] Code optimizations (warnings fixed)
Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
* [innogysmarthome] Code refactoring (InnogyClient class split to make it smaller)
Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
* [innogysmarthome] Code optimization
Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
* [innogysmarthome] Code optimization
Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
* [innogysmarthome] Code optimization
Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
* [innogysmarthome] Code optimization
Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
* [innogysmarthome] Code optimization ; Potential bug with the reachable attribute solved (it was set multiple times within a loop)
Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
* [innogysmarthome] Code optimization
Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
* [innogysmarthome] Code optimization
Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
* [innogysmarthome] Code optimization
Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
* [innogysmarthome] Code optimization
Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
* [innogysmarthome] Code optimization
Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
* [innogysmarthome] Code optimization
Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
* [innogysmarthome] Tests added
Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
* [innogysmarthome] Tests added
Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
* [innogysmarthome] Code changed to not overwrite the reachable state provided by the API (when no corresponding message is available)
Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
* [innogysmarthome] Copyright notice updated
Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
* [innogysmarthome] Code and performance optimization
Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
Co-authored-by: Sven Strohschein <sven.strohschein@gmail.com>
* add support qrcode based pairing
Signed-off-by: Eugen Freiter <freiter@gmx.de>
* add screenshots
Signed-off-by: Eugen Freiter <freiter@gmx.de>
* fix typo
Signed-off-by: Eugen Freiter <freiter@gmx.de>
* update config only if differnt to prevent endless update loop
Signed-off-by: Eugen Freiter <freiter@gmx.de>
* clean up
Signed-off-by: Eugen Freiter <freiter@gmx.de>
* add support qrcode based pairing
Signed-off-by: Eugen Freiter <freiter@gmx.de>
* add screenshots
Signed-off-by: Eugen Freiter <freiter@gmx.de>
* fix typo
Signed-off-by: Eugen Freiter <freiter@gmx.de>
* update config only if differnt to prevent endless update loop
Signed-off-by: Eugen Freiter <freiter@gmx.de>
* clean up
Signed-off-by: Eugen Freiter <freiter@gmx.de>
* incorporate review feedback
Signed-off-by: Eugen Freiter <freiter@gmx.de>
* fix Nullable based on feedback
Signed-off-by: Eugen Freiter <freiter@gmx.de>
* correct the java hap version
Signed-off-by: Eugen Freiter <freiter@gmx.de>
* Update bundles/org.openhab.io.homekit/pom.xml
* adapt groupid
Signed-off-by: Eugen Freiter <freiter@gmx.de>
* incorporate review feedback
Signed-off-by: Eugen Freiter <freiter@gmx.de>
Co-authored-by: Eugen Freiter <freiter@gmx.de>
Co-authored-by: J-N-K <J-N-K@users.noreply.github.com>
* [openwebnet] Log messages cleanup
Signed-off-by: Massimo Valla <mvcode00@gmail.com>
* [openwebnet] Fixed normalizeWhere
* added builder for Bus Where addresses
* added messages to OwnIdTest
* depend on own4j 0.3.3-SNAPSHOT
Signed-off-by: Massimo Valla <mvcode00@gmail.com>
* [openwebnet] Discovery & reconnect for ZigBee USB gateways
* added mgmt of disconnect/reconnect of ZigBee USB Gateway from serial (#9170)
* added ZigBee USB Gateway auto discovery (#9171)
Signed-off-by: Massimo Valla <mvcode00@gmail.com>
* [openwebnet] fixed up/down automation for old fw (#9651)
* now using openwebnet4j 0.3.3 (nrjavaserial 5.2.1)
Signed-off-by: Massimo Valla <mvcode00@gmail.com>
* [openwebnet] Fixes lowering dimmers from 20 to 10% does not change device level #9317
- bump openwebnet4j to 0.3.4
Signed-off-by: Massimo Valla <mvcode00@gmail.com>
* [openwebnet] changes after PR review
Signed-off-by: Massimo Valla <mvcode00@gmail.com>
* [tr064] Normalize numbers in phone book entries.
Phone book numbers and numbers to be looked up might be formatted
differently (real world example: '+49 (12345) 67890' vs. '01234567890'
(where the former is phonebook formatting and the latter is the format
transmitted by the avmfritz binding). Make sure such formatting
differences do not cause lookup mismatches.
Signed-off-by: Danny Baumann <dannybaumann@web.de>
* add unit
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
* documentation an XML
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
* address review comments
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
* improvements
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
* improvements
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
* added new channels and extra fixes
Signed-off-by: Benjamin Lafois <benjamin.lafois@gmail.com>
* wip
Signed-off-by: Benjamin Lafois <benjamin.lafois@gmail.com>
* added multiple channels
Signed-off-by: Benjamin Lafois <benjamin.lafois@gmail.com>
* fixes after PR comments
Signed-off-by: Benjamin Lafois <benjamin.lafois@gmail.com>
* added support for AUTO fan mode
Signed-off-by: Benjamin Lafois <benjamin.lafois@gmail.com>
* Fixes units
Signed-off-by: Benjamin Lafois <benjamin.lafois@gmail.com>
* Fix PR
Signed-off-by: Benjamin Lafois <benjamin.lafois@gmail.com>
* PR fixes
Signed-off-by: Benjamin Lafois <benjamin.lafois@gmail.com>
* PR fixes
Signed-off-by: Benjamin Lafois <benjamin.lafois@gmail.com>
* Fixed copyright 2020->2021
Signed-off-by: Benjamin Lafois <benjamin.lafois@gmail.com>
- Rename parameter 1 of "getActions" from "xmpp" to "xmppclient".
- Remove "getEvent()" as "receivedEvent" automatically contains the String since OH3.
In case of simulated Nikobus push button event refresh impacted modules too so binding fetches the updated state from affected modules.
Signed-off-by: Boris Krivonog <boris.krivonog@inova.si>
The original example references to the old telegram action, which is no longer supported. The updated example uses the (new) telegram binding.
Signed-off-by: Sören Berger <soeren.berger@u1337.de>
* [lgwebos] Remove outdated statement from README.md
Signed-off-by: Sebastian Prehn <sebastian.prehn@gmx.de>
* Adding a sentence on why these TV settings are relevant.
Signed-off-by: Sebastian Prehn <sebastian.prehn@gmx.de>
* [remoteopenhab] Catch exception when parsing item state
* Review comment: set channel state to UNDEF in case item state parsing failed
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
* Added ConfigOptionProvider to provide file names ending with '.js' in Profile configuration
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
* open connection on refresh even if no modules exist
Signed-off-by: Wouter Denayer <wouter@denayer.com>
* ran mvn spotless:apply
Signed-off-by: Wouter Denayer <wouter@denayer.com>
* removed unnecessary file
Signed-off-by: Wouter Denayer <wouter@denayer.com>
* returning when the connection is offline since following code won't work
either.
Signed-off-by: Wouter Denayer <wouter@denayer.com>
Co-authored-by: Wouter Denayer <wouter@denayer.com>
* [icalendar] Fixed issues with moved events and wrong displayed events
* [icalendar] Changed test to use local time in test-calendar of #9647Fixes#9647.
Handling for RFC 5545's RECURRENCE-ID field inside of
events and rounded begin (and based on it end) down in subsecond
precision.
The calendar does not define a timezone. On a machine that uses a
different timezone than Europe/Berlin the test failed. As the behavior
itself is specified, the test was changed to use local time for its
dates.
Signed-off-by: Michael Wodniok <michi@noorganization.org>
* [amazonechocontrol] add channel-types to schema
* [amazonechocontrol] use mergedApplianceIds to query state
Signed-off-by: Miguel <miguelwork92@gmail.com>
* Baseline original code from AndyXMB
* Initial updates for OH3
* fix null warnings and add sub-channel handling
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
* Expanded descriptions and note on textual config
Some paragraphs are expanded and some more info on the fritzbox subdevices are given. Channels are grouped by subdevice. Textual description with .items files is briefly described at the end but a clear warning on possible drawbacks is given and it is also clearly stated that it is discouraged.
Signed-of-by: Lionello Marrelli <marrelli_lio@yahoo.it>
* Improve debugging in message classes
Each PowermaxBaseMessage subclass had its own toString() which added
useful debug info but duplicated a lot of the logic in the message
handler. I've moved the debug info inline and removed the duplication,
and also added decoding for more values to the debug output.
* Fix for 0xFF byte values, which convert to int -1
* Change to inline debug messages
Signed-off-by: Ron Isaacson <isaacson.ron@gmail.com>
* Update README.md
examples updated
broken link for CAP DWD Profile fixed
some debugging information added
mapping files renamed to fit naming convention for files containing German language
additional mapping for weather warning added
examples also updated
mapping files extended with mapping for UNDEF state
* fix connection attempts when thing disposed
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
* refactor session handling
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
* rename
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
* refactoring
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
* Corrected some item types in the documentation.
Signed-off-by: Bernhard Bauer <bern77@gmail.com>
* Correction as per @ssalonen's review.
Signed-off-by: Bernhard Bauer <bern77@gmail.com>
* Corrected sendIRCode handler
Signed-off-by: Michael Loercher <MichaelLoercher@web.de>
* Update YIOremoteDockHandler.java
Updating IR receiver switch handler so it's running now
Solved issue during triggering channel while it was disposed
Signed-off-by: Michael Loercher <MichaelLoercher@web.de>
* Update YIOremoteDockHandler.java
Signed-off-by: Michael Loercher <MichaelLoercher@web.de>
No "Other" option in Google-Cloud-TTS OAuth2 Client Type options. Choose "TV and Limited Input" instead. Rest of readme works as expected.
Signed-off-by: Zimmermann Zsolt <cina@cina.hu>
* [linky] Handle case when data from yesterday is still NaN
Fix#9386
* Refresh every 2 hours until data from yesterday are available
* Log yesterday even for month and year requests
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
* [fronius] Add support for Fronius Smart Meter
* [fronius] Use DTO, implement UoM
* [fronius] fix README.md
* [fronius] Add mandatory label for channel-type and fix property update
* [fronius] Store meterRealtimeBodyData instead of meterRealtimeResponse
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
* improve data handling and suspend
* fix command position
* add ACK to subResponse
* fix data position
* fix reactivation, trim too long responses
* ensure correct setting of activation channel
* Remove @SuppressWarnings(null), which is not needed anymore
* Remove updateState on dispose
Signed-off-by: Hans Böhm <h.boehm@gmx.at>
[nikohomecontrol] Small README update.
While searching why I can't get my electricity working, I think I spotted this typo.
Signed-off-by: Dries Vandenneucker <dries.vandenneucker@yahoo.com>
* [modbus] add support for rtu encoded over tcp
* [modbus] move classes to openhab/jamod
* [modbus] spotless
* [modbus] revert EndpointPoolConfiguration
* [modbus] remove virtual serial
* [modbus] resolve dependencies
* [modbus.studer] add support for RTU over TCP bridge
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
* This is the initial contribution of the Generac MobileLink binding. This allows the Generac line of generators using their MobileLink cloud service to be monitored as things in openHAB.
* bump to 3.1
Signed-off-by: Dan Cunningham <dan@digitaldan.com>
In trying the example I got an error from the serial binding. But by adding a `,` the serial binding was able to handle the example.
Signed-off-by: Michael R. Maletich <maleticm@gmail.com>
* [miio] suggest correct devicenames in readmehelper
* add newline at file end to make git happy
* [miio] update logic for mapping in readmeComments
* Allow readme maker to fix mappings based on the current options.
* [miio] make readmeOptionMapping static
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
* Clarify the process of adding/discovering the server
* Update bundles/org.openhab.binding.squeezebox/README.md
Co-authored-by: Connor Petty <mistercpp2000@gmail.com>
Co-authored-by: Connor Petty <mistercpp2000@gmail.com>
Older HM dimmers are using a maximum values of 1.0. But also for these
devices the values must be corrected.
Signed-off-by: Martin Herbst <develop@mherbst.de>
* [icalendar] Optimize searching events and adding a bit debug output
Fixes#9498 by limiting series events when retrieving possible events via
filter.
Adding a bit more debug output to allow debugging the correct scheduling of
events.
Signed-off-by: Michael Wodniok <michi@noorganization.org>
* Fix typos in example code
* One Call API: add channe dew-point for daily forecast
* One Call API: remove channel visibility in daily forecast as not included
in data
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
* [hue] Make sure the serial number will be in lowercase
Necessary for the auto-ignore discovery feature with the representation property.
Fix#9364
* Check that the serial number is not null
* Check that the serial number is not blank
* Build a discovery result even without a serial number
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
* [hueemulation] Correct format of UDN and serialNumber fields
* Avoid changing device ids on upgrade
* Revert light and group ids back to a number rather than hexadeximal
* Fix failing tests
Signed-off-by: Mike Major <mike_j_major@hotmail.com>
* Add aggregated channels for daily forecast.
Also updates to use Optionals instead of @Nullables, and add unit tests
* Revert unsing explicit unit definition
Signed-off-by: Anders Alfredsson <andersb86@gmail.com>
* [icalendar] Provide example for Netcloud usage
Users of the icalender OH 1 binding might wonder how to get the url for the
ical file for their calenders. It took me a couple of hours to find this, so
I think it might be useful to have it as an example in the documentation.
Signed-off-by: Stefan Triller <github@stefantriller.de>
* Added new channel parameter tariff to channels instantpower, totalusage, currentFlow, cumulativeValue, counter and currentNumber
* Parameter is currently just read by EEP A5_12, which is used by AutomatedMeterSensor ThingType
* AutomatedMeterSensor ThingType has extensible channels now
Fixes#9333
Signed-off-by: Daniel Weber <uni@fruggy.de>
The only way to recover from an incompatible OH2 database is to create a new database.
With these changes the add-on will create a new database automatically and archive the incompatible database files in a backup directory.
Fixes#8794
Signed-off-by: Wouter Born <github@maindrain.net>
<category>DimmableLight</category>
The above category does not exist here <https://www.openhab.org/docs/concepts/categories.html> and the new UI does not have this as a valid option to select when creating an item.
Signed-off-by: Matthew Skinner <matt@pcmus.com>
<category>DimmableLight</category>
The above category does not exist here <https://www.openhab.org/docs/concepts/categories.html> and the new UI does not have this as a valid option to select when creating an item.
Signed-off-by: Matthew Skinner <matt@pcmus.com>
* fixed: removed unnecessary refresh on push activity
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
Also-By: Tom Blum <trinitus01@googlemail.com>
Co-authored-by: Tom Blum <trinitus01@googlemail.com>
* [miio] add support for basic huayi lights
also remove some double spaces in json files
* miio update devicenames
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
* Update configfile lines for renamed openhab-addons-external artifactId
* Add missing 2.5.x configfiles files which were never merged into the main branch
* Fix configfile lines not aggregated in feature.xml file
Fixesopenhab/openhab-distro#1205
Signed-off-by: Wouter Born <github@maindrain.net>
* [velux] add data type to config params in readme
* [velux] eliminate mvn warning
* [velux] fix Somfy bugs: uniqueindex = serial number or name
* [velux] fix inconsistent switch state logic
* [velux] cosmetics on BRIDGE_THING_TYPE_UID
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
* Initial attempt to resolve issue with flickering statuses when override
present on OTGW
* Update Units
Signed-off-by: James Melville <jamesmelville@gmail.com>
* Fix Offline detection and Improve discovery.
* Motion options bug fix.
* Message content bug fix.
* Fix all handlers to process all chunks as one.
* Remove password from FFmpeg command log.
Signed-off-by: Matthew Skinner <matt@pcmus.com>
As the ComfoairControl item changed from Number to Switch in the new binding also the sitemap mapping should OFF=CC and ON=APP instead of 0 and 1.
(cherry picked from commit ad2a1e3635)
Add-ons should not depend on tec.uom.se classes but use core unit classes instead so they are less impacted when this library is replaced or upgraded.
Signed-off-by: Wouter Born <github@maindrain.net>
* Update some of the miot files to the new definition
* Apply units,category & tags for some channels
* apply standard sorting
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
* [icalendar] Fix race condition while initialization of EventFilterHandler
Should fix#9029. The channels do not get updated as the known channels by the binding where only updated if Bridge was already online while initializing EventFilterHandler.
Also added a bit more output.
* [icalendar] use implicit conversion to string for logging
Signed-off-by: Michael Wodniok <michi@noorganization.org>
Co-authored-by: Connor Petty <mistercpp2000+gitsignoff@gmail.com>
* [miio] Add discovery from cloud feature.
This allows to discover things that are not directly on the same subnet
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
Co-authored-by: Connor Petty <mistercpp2000+gitsignoff@gmail.com>
Some LCN-GTxD don't display the text if it fits exactly in one chunk (12 bytes). Observed with GT10D 8.0.
Closes#9208
Signed-off-by: Fabian Wolter <github@fabian-wolter.de>
* [miio] dynamically generate channelTypes
Simplify the json database creation for new models and less chance for
errors
Related to #7276
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
Co-authored-by: Connor Petty <mistercpp2000+gitsignoff@gmail.com>
* [miio] Implement alternative MiIoQuantityTypes
* Improved way avoiding multiple entries for Unit
* Test cases for the MiIoQuantityTypes class
* Apply suggestions from code review
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
Co-authored-by: Connor Petty <mistercpp2000+gitsignoff@gmail.com>
* [OpenUV] Correcting incorrect behaviour when UV < 1
and some code enhancements
* Correcting SAT findings
* Initiating bundle localization in French
Signed-off-by: clinique <gael@lhopital.org>
* [irobot] iRobot binding
Supports iRobot Roomba and probably some other iRobots (in parts where they
are compatible)
* [irobot] Drop custom hivemq wrapper
setUnsubscribeOnStop() has been introduced in
org.openhab.core.io.transport.mqtt.MqttBrokerConnection, so it can now handle
iRobot's quirks. The custom wrapper is no more needed, remove it
Signed-off-by: Pavel Fedin <pavel_fedin@mail.ru>
Co-authored-by: Fabian Wolter <github@fabian-wolter.de>
* [velux] set explicit timeouts & keepalives on socket
* [velux] implement mdns service
* [velux] fix representation property names
* [velux] fix representation properties
* [velux] finalize mdns
* [velux] spotless
* [velux] use both mDNS and regular DNS to resolve ip addresses
* [velux] complete class rewrite using asynchronous polling thread
* [velux] refactor bridgeDirectCommunicate to simplify looping
* [velux] asynchronous polling means Thread.sleep no longer needed
* [velux] faster synch of actuator changes
* [velux] use single thread executor instead of thread pool
* [velux] faster synch of actuator changes
* [velux] shut down task executor
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
* Update README.md
* Fix Indentation
* Change comment character from '#' to '//'
* Remove wrong formatting attempts ('rsqb' & 'lsqb')
* Minor changes
* Update README.md
Remove link to the API since website doesn't exist any more.
Signed-off-by: Felix Schneider <fs@felix-schneider.org>
sorry i missed to change the IP of my own config. Thing Configuration was not accepted bei Visual Studio Code, curly brakets were missed and the definition of ThingID<>Thing was not accepted.
* [dynamodb] fix serialization of ZonedDateTime timestamps
Resolves#9156.
AWS SDK does not know how to serialize ZonedDateTime. We resolve this
by providing explicit serializer/deserializer.
In addition, integration tests had issue with timezones. The persistence
converts all timestamps from the DynamoDB to system timezone for display
purposes. This was not taken into account in the tests and failure was
expected with non-UTC system timezone.
Signed-off-by: Sami Salonen <ssalonen@gmail.com>
* [miio] Update channels only if they are linked
With introduction of miot devices with enormous amount of channels
refreshes can become slow. With this change only relevant updates are
done.
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
* [miio] Cloud Communication for devices
Allows to define if communication to devices is direct or send via the
Xiaomi cloud.
Introduce additional channel to execute commands via cloud.
Other small improvements
* Use common method from abstract handler to send commands
* Common way to handle custom commands
* Introduce small delay before refreshing robot properties after sending
commands (similar to the basic handler) so devices have time to update
their properties
* [miio] simplify cloudconnector
* [miio] Cleanup all jobs when unloading
* [miio] update to use dedicated ScheduledExecutorService
Use dedicated ScheduledExecutorService to avoid unloading problems
* Update bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/handler/MiIoAbstractHandler.java
* [miio] fix for removeif
* miio- Improve scheduler
* [miio] fix communication error if device is not on the network
* [miio] update with comments from feedback
* remove scheduler tracking
* improve status setting for cloud communication
* [miio] update with feedback review
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
Co-authored-by: Connor Petty <mistercpp2000@gmail.com>
* improvements
- use insecure client and remove TrustManager
- add call list channel
* address review comments
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
The channels 1-3 of LCN-B3I are mapped to binary channels 6-8. This could be anticipated from the Button Tables (B6-8) that it connects to. However, the added comments should help people to save a few hours and some gray hair ;-)
* removed state update if value didn't change so expiry binding can actually - expire. If expire time was larger than refresh interval of the binding, expiration never happened ...
Signed-off-by: Boris Krivonog <boris.krivonog@inova.si>
* [miio] update for vacuum.e2
small update now critical commands are confirmed working.
* [miio] update readme
as dock command is now also confirmed
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
* * fixed refresh handing due `channelLinked` not called anymore on startup for example (similar to https://github.com/openhab/openhab-core/issues/1707),
* "Impacted Modules" can be empty if button is configured as "standalone" and does not impact modules,
* minor doc fix
* * check if configured impacted module for `impactedModules` is referencing an existing thing,
* fixed warnings
* Fixed review comment.
Signed-off-by: Boris Krivonog <boris.krivonog@inova.si>
* fixed: InterrupedException
* changed: single and group queues to device queue
added: standard volume to speak request
* changed: log from info to debug
* fix compile warnings
* remove dependency on StringUtils
* more improvements
* fix HandlerPowerController
* attempt to solve stopping tts
* logging powercontroller
* fix smarthome devices not updating
* finalize smarthome device update fix
* additional device information logging for discovery
* fix color channel for smarthome devices
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
Co-authored-by: Tom Blum <trinitus01@googlemail.com>
Co-authored-by: Connor Petty <mistercpp2000@gmail.com>
* [openwebnet] Fixed config, handling and discovery of ZigBee devices (fixes#8915 and fixes#8917). Added test for ownID. Now uses openwebnet4j v0.3.2
* [openwebnet] ZigBee: improved handling of wrong 'where' parameter. Updated README. Improved logging.
* [openwebnet] Improved discoveryByActivation to distinguish dimmers from lights. Now using openwebnet4j 0.3.2-1
Signed-off-by: Massimo Valla <mvcode00@gmail.com>
* Add some utility classes that will be used by other bluetooth bindings.
* Add handle field to BluetoothDescriptor
Signed-off-by: Connor Petty <mistercpp2000+gitsignoff@gmail.com>
* Max value and format pattern were not correct for dimmers (Fixes#8799)
* Fixed calls to deprecates methods/constructors
* Make sure channelLinked is executed at restart (see also: https://github.com/openhab/openhab-core/issues/1707)
Signed-off-by: Martin Herbst <develop@mherbst.de>
* Refactor to prevent endless loop.
* Allow `-rtsp_transport tcp` to be over-ridden.
* Display actual preset names
* Allow IP to not match due to Hostname given in setup.
* Fix index off by 1
* Bug fixes for HLS
* Compatibility fix for GotoPreset
* Improve default snapshot quality and allow FFmpeg arguments to be
changed.
Signed-off-by: Matthew Skinner <matt@pcmus.com>
Co-authored-by: Connor Petty <mistercpp2000@gmail.com>
* Corrected caddx discovery bug
* Maintenance
- Changed refresh logic for the things
- Code cleanup
- Corrected off by one errors
- Added initial tests for the message parsing
* Corrected ParameterizedTest
* Changed new Date().getTime to System.currentTimeMillis()
Signed-off-by: Georgios Moutsos <georgios.moutsos@gmail.com>
* [jablotron] fixed bug when bridge stays offline forever in some cases
* [jablotron] fixed the JA100 channel update bug
Signed-off-by: Ondrej Pecta <opecta@gmail.com>
* Avoid a hidden NPE when getIdentifier() of an uninitialized ThingHandler is called
* Fixed Powerline546EHandler
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
This simplifies the PlugwiseHandlerFactory code so it no longer needs to register and keep track of a discovery service for each bridge.
Also contains a few other improvements:
* fix lastRequest timestamp not updated when sending messages to discover node properties
* use java.time Duration and Instant
* use List.of, Set.of
* remove redundant null suppression because of EEAs
Signed-off-by: Wouter Born <github@maindrain.net>
* [miio] Add support for mijia.vacuum.v2
related issue #9005
* [miio] fix channelTypes based on review
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
* Add sendVideo and sendAnimation features.
* Re-order functions to keep inline with other functions.
* Readme change to trigger new build.
* Add ability to use raw file paths to send video and animations.
* Change Paths.get to Path.of as JavaDocs recommend.
* Allow absolute paths in SendPhoto methods and update readme.md
* Support for no caption with photo.
* Add absolute path support for png and webp.
* Add all file types requested.
* Remove multiple OR and only do lowercase once.
Signed-off-by: Matthew Skinner <matt@pcmus.com>
* Some enhancements and corrections on the linky binding
spotless apply
Adressing code review comments
* Adressing potential NPR.
* Code review findings correction
* Pleasing SAT checks
Signed-off-by: clinique <gael@lhopital.org>
* Staging work
Saving my work
Vigicrues extensions for OH3
First code review
* Code review and some corrections
* Code review enhancements
Changed alert to Number
* Code review corrections
* Correcting my error
* Adressing SAT finding
Signed-off-by: clinique <gael@lhopital.org>
* [miio] Allow for quantity Type in the basic handler
This extends the miio:basic handler with the option to define channels
with QuantityType e.g. to use number:temperature
* [miio] add missing breaks
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
These workarounds to prevent false positives can be removed now the EEAs allow for proper null analysis.
Signed-off-by: Wouter Born <github@maindrain.net>
* Add KorbinianP to CODEOWNERS for senechome
* Implement Current, Voltage and Power for all three Phases
* Bugfix last commit, values are inside array
* Implement Grid Frequency
* Fix name of currentGridVoltagePerPhase
* Extend README.md with new parameters
* Implement SenecBatteryStateValue for easier comparison of values in rules
* Implement new statistic data points and battery voltage
batteryVoltage
liveBatCharge
liveBatDischarge
liveGridExport
* Bugfix item types
* Implement Review findings, change channelBatteryStateValue to QuantityType
* Revert change of channelBatteryStateValue from DecimalType to QuantityType
Signed-off-by: Korbinian Probst <kp.droid.dev@gmail.com>
* Properly handle datagrams that are not immediately available so no NPEs are logged on debug
* Properly handle sockets channels that are not connected so no NPEs are logged on debug
* Prevent load/garbage by reusing ByteBuffer and not allocating trace logging strings
Fixes#8932
Signed-off-by: Wouter Born <github@maindrain.net>
* [rrd4j] Improve performance
* Cache item to improve performance
* Also return DecimalType for QuantityType values
Related to #8928
Reintroduces #8809
Signed-off-by: Wouter Born <github@maindrain.net>
Changed some wordings.
-Kept "DataSource" as the term for the way data is stored in a .rrd file. Such is more inline with the used Default Datasources (-numeric, ...).
-Removed the requirement for an everyMinute Strategy, inserted a explanation for relationship between Sample Intervall and Strategy instead.
Signed-off-by: Jürgen Baginski <opus42@gmx.de>
* Added Channel for link to latest feed; update rome deoendency to version 1.15
* Removed unsed interface
* Run spotless
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
* [snmp] Set thing only online on valid response
Otherwise it will toggles between online and offline when the call always times-out, which can happen when the device is unreachable (or a wrong ip address configured).
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
* Fix index out of bounds when persisting empty StringType values
* Fix deserialization when strings contain type separator
* Improve debug logging
* Improve test coverage
Fixes#8790
Signed-off-by: Wouter Born <github@maindrain.net>
* [icalendar] Describe download exceptions a bit more detailed.
Fixes#8846
* [icalendar] Apply suggestions from code review
Signed-off-by: Michael Wodniok <michi@noorganization.org>
Also-by: Connor Petty <mistercpp2000+gitsignoff@gmail.com>
* [miio] delay refresh to avoid devices not ready yet
Delay refresh after command is send as some devices are not ready yet
with the execution and will report wrong status.
This is confusing to the users.
Related forum topic:
https://community.openhab.org/t/xiaomi-mi-air-purifier-xiaomi-mi-io/34840/300
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
* [miio] remove change from PR
* Update documentation with changed Influx2 RC port
* Fix problem with non decimal numeric types
Improve documentation with more explicit information about Influx types used
Implement toString to InfluxPoint to allow some trace info to be useful in case it's needed
Fixes#8697Fixes#8798
Signed-off-by: Joan Pujol <joanpujol@gmail.com>
Additionally:
- documentation has been updated and improved
- logging has been improved for better debugging
Signed-off-by: Kai Kreuzer <kai@openhab.org>
* [MeteoAlerte] Update for OH3
Replaced old gif pictures with svg nicer pictures
Added a missing alert report (vague-submersion)
Added end of validity report timestamp
Some code cleansing.
Signed-off-by: clinique <gael@lhopital.org>
* [lcn] Fix status message of RollerShutter inverting
The status of RollerShutter was not inverted when invertUpDown=true. Fixes#8680
Signed-off-by: Fabian Wolter <github@fabian-wolter.de>
* Add Groovy scripting support
This makes it really easy to start using Groovy 3.x scripts with openHAB!
Signed-off-by: Wouter Born <github@maindrain.net>
Changed the README.md file to include more information as in #8733:
Specified that the chatId in the APIs must be followed by an "L" or it won't work (at least, not for group chats).
Add support for following types
"mrbond.airer.m1s",
"mrbond.airer.m1pro",
"mrbond.airer.m1super"
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
* Refactored discovery service to ThingHandlerService
* Fixed discovery for Geofence Sensor
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
* Remove duplication by making use of default Java generated exceptions
* Make ThingActions labels/descriptions more consistent
Signed-off-by: Wouter Born <github@maindrain.net>
* Remove proxy workarounds
* Move ThingActions and a few other classes into the internal package
* Use more consistent action labels/descriptions
Related to:
* openhab/openhab-core#1714
* openhab/openhab-core#1639
Signed-off-by: Wouter Born <github@maindrain.net>
* [airvisualnode] Support AirVisual Pro version
* [airvisualnode] Autodetect Pro version
* [airvisualnode] Remove unused channels
Signed-off-by: Oleg Davydyuk <ilveann@gmail.com>
* [miio] eliminate warning org.apache.commons.io.FileUtils in readmemaker
Eliminate
[WARNING] org.openhab.binding.miio.internal.ReadmeHelper.java:[25]
The package org.apache.commons.io.FileUtils should not be used.
* [miio] add StandardCharsets.UTF_8 to file readwrite
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
* [miio] Improved unsupported handler that build experimental support
New unsupported handler that tries to find channels for unsupported
devices and creates experimental database file for it.
* [miio] logger fixes
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
* Fix memory leak in SNMP. When receiving an async request it is placed in a pending request queue. Not canceling it leads to infinty life cycle for those requests, filling up memory.
* Test the canceling of the snmp aync request by its handler.
Signed-off-by: Falk Bauer <falk.bauer@k-is.com>
Applied the changes found by spotless.
According the comments DEFAULT_NUMERIC, DEFAULT_QUANTIFIABLE config should have 5 archives, the 4th was missing. Additionally the ConsolFunction changed in the DEFAULT_QUANTIFIABLE.
The DEFAULT_OTHER config had false computed archives.
Signed-off-by: Jürgen Baginski <opus42@gmx.de>
According the comments DEFAULT_NUMERIC, DEFAULT_QUANTIFIABLE config should have 5 archives, the 4th was missing. Additionally the ConsolFunction changed in the DEFAULT_QUANTIFIABLE.
The DEFAULT_OTHER config had false computed archives.
Signed-off-by: Jürgen Baginski <opus42@gmx.de>
* [miio] allow for device remarks in the readme from json db
* Update bundles/org.openhab.binding.miio/src/test/java/org/openhab/binding/miio/internal/ReadmeHelper.java
Signed-off-by: Marcel Verpaalen marcel@verpaalen.com
* Configures XStream security to prevent "Security framework of XStream not initialized, XStream is probably vulnerable" warnings.
* Resolves the itest bundles for the upgrade to XStream 1.4.13
Related to openhab/openhab-core#1688
Signed-off-by: Wouter Born <github@maindrain.net>
* add representationProperty to thing definition to make it OH3 compatible
* adapted to OH3 (representationProperty added to thing definition)
* as always...spotless:apply :-(
Signed-off-by: Markus Michels <markus7017@gmail.com>
* OH3 adaption - fixes small issues when running on OH3
* #8612: Fix total consumption for RGW2+Roller
* #8492: Shelly Plug US
* 2 more immediate = true catched and removed
* spotless applied
Signed-off-by: Markus Michels <markus7017@gmail.com>
* [miio] enable telnet for lumi gateway
* allow enable telnet and some other functions on gateway
* use new fw as default for chugmi plug
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
+ Bug fix: Recording to GIF would only record for 5 seconds.
+ Clean up readme to remove channels and configs that don't exist after
moving to actions.
+ Compatibility fix for http headers.
Signed-off-by: Matthew Skinner <matt@pcmus.com>
Swagger upgrade for the Netatmo binding (required to use the OAS 3 Swagger annotations, the old annotations dependencies were removed with OpenHAB 3)
- Swagger-Codegen updated to the latest version (to generate the OAS 3 Swagger annotations)
- Retrofit replaced by the default code generation (Retrofit 1 code generation is broken with newer swagger-codegen versions and an update to Retrofit 2 is also incompatible and would require more dependencies)
- NULL handling for collections introduced (newer versions of the Swagger codegen return NULL for empty collections instead of an empty collection ...)
- The binding is now working completely again (compiles and starts), but there are still some TODOs
Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
sven.strohschein@gmail.com>
Upgrades the compiler and its dependencies so the compiler results of Maven builds are more similar to those generated in recent Eclipse versions.
To fix compilation issues in Eclipse for add-ons using classes from javax.xml.stream several dependencies were upgraded/excluded.
Signed-off-by: Wouter Born <github@maindrain.net>
* Fix issue with All Mute and extra source options
* Add channel to select preset favorite
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
* Improve exception handling of the embedded MQTT broker so the port can be reconfigured when it is already bound and it properly unlocks files
* Rework MQTT integration tests so they each run the embedded broker on their own reserved port
Signed-off-by: Wouter Born <github@maindrain.net>
Fixed 3 bugs:
- Network bridge not listening on bus
- Reconnection handler keeps reconnecting even after a successful reconnection
- Minor typo in alarm wakeup time channels
Signed-off-by: Cedric Boon <cedric.boon@hotmail.com>
In case of the parameters & response are not equal avoid the
java.lang.IndexOutOfBoundsException: Index: 4, Size: 4
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
The handleUpdate method was deprecated when profiles were introduced (see eclipse-archived/smarthome#4108).
Instead the "follow profile" can be used which forwards item updates as commands to handlers.
This profile works with any binding instead of only those that implement the handleUpdate method.
Related to openhab/openhab-core#1669
Signed-off-by: Wouter Born <github@maindrain.net>
This should make it easier to fix these broken add-ons and the PRs that fix them will then not contain all these changes which make them easier to review.
Signed-off-by: Wouter Born <github@maindrain.net>