Migrating from OH 2.5 I tripped over this, as :power no longer exists and instead one has to send ON/OFF commands to the :color channel instead.
Looks like documentation wasn't fully updated with the code changes.
Signed-off-by: uqs <uqs@FreeBSD.org>
* Improve conversion of database value to item state
* Refactor test cases to reduce redundancy
* Refactor for type-safety
* Refactor type cast
Fixes#15433
---------
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Special handling for temperature differences in °F and °F/%,
DPT 9.002 and 9.003, needs to be adapted due to change in core.
Refs openhab/openhab-core#3792.
Implementation is valid for 4.0 and 4.x snapshot.
Fixes#15567.
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
* [miio] maintenance - update device names list
Update the list with latest device names
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
* [miio] Update device names list
Update the list with latest device names used by some of the support
tools
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
---------
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
* [Juicenet] Fix typos in setOverride()
Some obvious typos in setOverride() result in the timestamp being
ignored which causes it to fail
Fixes#15564
* [Juicenet] Allow disabling the override
- The charger has default settings upon plugin, changing the current state
sets the overide to Y, this makes override settable only in the N direction
to remove whatever settings were previously applied
* [Juicenet] Document new writable status of override
---------
Signed-off-by: Ed Martin <edman007@edman007.com>
* simplified determination of start/stop as the opMode now has new values (7+8) to show missing authentication (before this was included in value "2")
* refactored ChargerOpState to enum
---------
Signed-off-by: Alexander Friese <af944580@googlemail.com>
Signed-off-by: Alexander Friese <alexf2015@users.noreply.github.com>
Co-authored-by: lsiepel <leosiepel@gmail.com>
* Provide detailed error information on failed commands
* Log as info when command succeeds
* Revert collect(Collectors.toList()) refactoring
* Provide exception message in status description
Fixes#15511
---------
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
* fixed problems with fingerprint codes which were received in decimal instead of hex
Signed-off-by: Andre Jendrysseck <ajendry@gwdg.de>
* correct format issues
Signed-off-by: Andre Jendrysseck <ajendry@gwdg.de>
* add test file for fingerprint codes
Signed-off-by: Andre Jendrysseck <ajendry@gwdg.de>
* Delete openhab-addons.code-workspace
Signed-off-by: Andre Jendrysseck <ajendry@gwdg.de>
---------
Signed-off-by: Andre Jendrysseck <ajendry@gwdg.de>
Co-authored-by: Andre Jendrysseck <ajendry@gwdg.de>
* [gardena] Improve and fix UoM support
Properly convert incoming UoM values for command durations, and output
measurements as UoM values where possible.
* [gardena] Fix signal strength channel value
Previously the binding sent 0..100, but the system expects 0..4 for the
system.signal-strength channel.
* [gardena] Update README
* [gardena] Use actual units in state description where appropriate
Signed-off-by: Danny Baumann <dannybaumann@web.de>
XMLInputFactory: Disable properties IS_SUPPORTING_EXTERNAL_ENTITIES and
SUPPORT_DTD which allow injecting external entities.
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
* Updated A5-10 EEP family (corrected readings, added new channels)
* Changed fanSpeedStage channel to type Number and added new options to it
* Added dayNightModeState channel
Fixes#15458
Signed-off-by: Daniel Weber <uni@fruggy.de>
* Remove build server specific timing from dynamodb and ruuvigateway
There should be no difference between running tests on your own PC or on a build server.
The ruuvigateway tests always fail for me during parallel builds due to its unrealistic timing.
Signed-off-by: Wouter Born <github@maindrain.net>
* [automation] Code optimization for Java17: instanceof matching and multiline strings
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
* [automation] Make use of Java17 features
Use Map/Set/List.of instead of Collections.
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
* review comment
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
---------
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
* Resolve runbundles for CXF upgrade
Related to openhab/openhab-core#3770
Signed-off-by: Wouter Born <github@maindrain.net>
* Replace Grizzly JAX-RS Client with Jetty HTTP client in hueemulation tests
It seems that the Grizzly JAX-RS Client implementation does not work well with the new CXF dependencies on the classpath.
As we do not use Grizzly anywhere else it is probably best to also stop using the Grizzly HTTP Server in these tests in the future.
Signed-off-by: Wouter Born <github@maindrain.net>
---------
Signed-off-by: Wouter Born <github@maindrain.net>
* Fix Paradox EVOHD zone parsing fail #10572
* Root cause is that EVOHD and EVO192 have much more zones which are
stored in a different memory map model. They should be treated the same
way. Fix is simple and can be downported to 3.x if decided by the
maintainers
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
Make sure that SecureRadom is used whenever the random number
is used for cryptographic operations, e.g. as nonce/salt.
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
* [jrubyscripting] Fix broken image in README.md
* [jrubyscripting] Update the base url in the regenerate instructions
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
* reworked the way to retrieve Charger state as API endpoint is now deprecated.
* fixed result processing: removed default handling by bridge handler which caused everything to go offline if a single charger had faulty config.
* additional channels / removed obsolete firmware channel
Signed-off-by: Alexander Friese <af944580@googlemail.com>
* [tr064] Fix clearing of auth (results)
In case of multiple root things the auth store (results and digests) was cleared for all clients instead of only removing the failed auth result or old authentication.
* fix TAM request
Signed-off-by: Jan N. Klug <github@klug.nrw>
* New translations hue.properties (Italian)
* New translations deconz.properties (Italian)
* New translations anel.properties (Italian)
* New translations atlona.properties (Italian)
* New translations electroluxair.properties (Italian)
* New translations groupepsa.properties (Italian)
* New translations somneo.properties (Italian)
* New translations meater.properties (Italian)
* New translations juicenet.properties (Italian)
* New translations volumio.properties (Italian)
* New translations asuswrt.properties (Italian)
* [pulseaudio] For source, default timeout should be disconnection ASAP
To avoid weird behaviour, such as pulseaudio server storing audio data between inputstream get/read and then sending the backlog all at once when finally reading, we must disconnect immediately thereafter.
---------
Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
Co-authored-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
It was found out that a recent change to the webpack config for the library injection bundle heavily affected performance of the evaluation of the cached injection.
openhab-js 4.5.1 fixes that regression and one minor bug, see https://github.com/openhab/openhab-js/blob/main/CHANGELOG.md#451.
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
* Reimplement Auth Digist to return response as http header field instead
of being part of post data; avoid sending Basic Auth for Gen2 and
/shelly
Signed-off-by: Markus Michels <markus7017@gmail.com>
Fix bundle unusable after #14023 (closes#15181)
Fix a case issue with some directory
Fix trigger channel issue
Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
* Reduce warnings 1
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* 2
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* 3
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Initial files and package refactoring
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Implemented zone commands without checksum calculation
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* More stuff
* Added the checksum functionality
* Added more examples to the test
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Implement ZoneCommand and necessary classes
* Refactor the common logic
* Extract interface Command
* CHange the Response class to use Switch/case
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Fully implement the test for creating zone command payload
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Fix build / add headers and author to the new files
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Add command handling to the zone handler
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Add command channel to the Zone thing
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Research of zone states and some TODO notes
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Retrieval of zone special states from the panel
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Fix build
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Add the new channels to the metadata file
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Add new channels to zone handler
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Fix indexing in memory map and add more logging
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Refactoring and potential NPE access fixes
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Add new property "label" to the discovered zones and partitions
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Fix zone command issues
* Fix checksum creation
* Fix the parse and confirmation of the response
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Add the new channels to the README.md
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Fixed issue with not updating new channels in the zones
* A silly copy/paste mistake
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Change the type of the new channels from contact to switch
As per community discussion this makes more sense and will be more
intuitive - when something is true -> make it ON, when it's false ->
make it OFF. OPEN and CLOSED are not fitting so well here...
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Fix issue that the channel label is always NULL
* For both zone and partitions
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Add new types and channels to the i18n
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
---------
Signed-off-by: Konstantin Polihronov <polychronov@gmail.com>
* Include NuvoNet source favorites in zone `favorite` channel
* Use existing constants
* VALID_SOURCES to enum list
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
* New translations sonos.properties (German)
* New translations comfoair.properties (German)
* New translations publictransportswitzerland.properties (German)
* New translations watsonstt.properties (German)
* New translations sensorcommunity.properties (German)
* [openwebnet] Fixes changing and startup value for Weekly/Scenario modes
Fixes#12599
* [openwebnet] Thermo: Fixed CU setpointTemp not restored
Fixes#14449
* [openwebnet] fix update of atLeastOneProbeX channels for CU Fixes#15103
Bumped lib openwebnet4j to 0.10.1
Signed-off-by: Massimo Valla <mvcode00@gmail.com>
Updated: README, `where` parameter description for Things and channels descriptions.
Added `AUTO` option for mode channel-type.
Added `OFF` option for speedFanCoil channel-type.
Updated default translations.
Signed-off-by: Massimo Valla <mvcode00@gmail.com>
Added sample to play Web Radio URI.
I had to do a lot of searching to find out, that you have to put "x-rincon-mp3radio://" before the Stream-URL url. Hope this helps someone.
Signed-off-by: joke24 <info@jonaskemmer.de>
* New translations mail.properties (French)
* New translations renault.properties (French)
* New translations netatmo.properties (French)
* New translations bluetooth.properties (French)
* New translations anthem.properties (French)
* New translations plex.properties (French)
* New translations openwebnet.properties (Italian)
* New translations energidataservice.properties (Italian)
* New translations androidtv.properties (Italian)
* New translations netatmo.properties (French)
* [openwebnet] Backward support for CU configurations with where="0"
* [openwebnet] fix send in handleSetProgramNumber()
---------
Signed-off-by: Massimo Valla <mvcode00@gmail.com>
* New translations pollytts.properties (French)
* New translations energidataservice.properties (Danish)
* New translations pollytts.properties (German)
initialization if device doesn't support scripts (Pro4); fix resetMeter
for EM50 (has 2 power meters); removed channel sensors#open; removed
device#voltage updates for Plus/Pro, needs to be verified
Signed-off-by: Markus Michels <markus7017@gmail.com>
* FIX TAPO branded cameras require xAddr port to be different from the
main ONVIF PORT
* Fix for old API instar cameras.
---------
Signed-off-by: Matthew Skinner <matt@pcmus.com>
* [openwebnet] support for thermo cu discovery
* [openwebnet] fixed discovery for 4-zones CU and support in ThermoHandler
* [openwebnet] updated openwebnet.properties#cu.where.description
* [openwebnet] updated OwnIdTest with CU-4 test
* [openwebnet] Fix ownId for CU 4-zone case. Update README
---------
Signed-off-by: Massimo Valla <mvcode00@gmail.com>
* Shelly BLU support, various fixes
* Shelly Dimmer US added
* Reference to org.eclipse.jetty.websocket updated to 9.4.50.v20221201
* Support for Shelly Wall Display added
* Fixed#15052: channel totalKWH and totalRetruned: correct value is kw/h
(API value needs to be converted from Watt/Min to kw/h)
* Regular power meter returns Watt/Min, the EM/3EM meter returns W/h; this
needs to be handled differently
* Gen2 power meter returns Watt, which needs to be converted to W/h
(and then gets converted to kw&/h for the channel update)
* bug fixes around channel creation, some xml channel declarations fixed
* Support for 1Mini, 1PM Mini and PM Mini added
* Avoid NPE for devices having relay(s), but no meter (like Pro 2); README
updated
* Shelly Pro 3EM-50 added; fixes#15151, #15152 and more
* fix#15218 (only 1 device#resetTotals channel)
* Fix Pro EM50 (it's not a 3EM-50): thing type name is now shellyproem50,
use EM1DataDeleteAllData method rather then EMDataDeleteAllData
* <connection>local</connection> added to addon.xml
* channel group names for i4 fixed, Plus-Roller now has voltage
Signed-off-by: Markus Michels <markus7017@gmail.com>
* New translations lgwebos.properties (French)
* New translations openuv.properties (French)
* New translations exec.properties (French)
* New translations electroluxair.properties (French)
* New translations rollershutter.properties (French)
* New translations vat.properties (French)
* New translations chatgpt.properties (French)
* [mimictts] Add LRU cache
And simplifies code with new core capabilities (no more need to create temporary files implementing FixedLengthAudioStream)
---------
Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
* [kodi] Support for more audio streams through the HTTP audio servlet
[kodi] Audio sink supporting more audio streams
Related to #15113
---------
Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
* [ihc] fix special character issue on item descriptions
* [ihc] Changed thing status to UNKNOWN when initializing
Signed-off-by: Pauli Anttila <pauli.anttila@gmail.com>
* [chromecast] Support for more audio streams through the HTTP audio servlet
Separates audiosink in its own class.
Improves volume change/restauration and temporary file handling by using the new core capabilities
---------
Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
* [squeezebox] Support for more audio streams through the audio servlet
Audio sink supporting more audio streams
---------
Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
* [doorbird] Support for more audio streams
And proper use of a synchronous base class.
---------
Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
* [pulseaudio] Make the process method asynchronous
And use the new 'complete' system to signal core that the sound is fully played.
---------
Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
* replace call to deprecated HSBType::getRGB() with
ColorUtil::hsbTosRgb()
* make constructors of abstract classes protected
* use instanceof with pattern matching (JEP 305)
* enhance switches with combined cases using comma-separated case
expressions
* remove unnecessary public modifiers in unit tests
Signed-off-by: David Pace <dev@davidpace.de>
* The Hydrawise API can return sometimes return a non JSON response during service outages, like when they are updating thier software. This treats this as a connection error and allows the client to try the poll again.
* Adds additional http status checking
Fixes#15170
Signed-off-by: Dan Cunningham <dan@digitaldan.com>
* Initial contribution
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
* Remove Value-Added Tax
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
* Migrate naming convention
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
* Add channel configuration example
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
* Remove current prefixes for forward compatibility with timestamped items
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
* Add filter for another grid company
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
* Use ISO 3166-1 alpha-2 codes in lowercase for XSD compliance
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
* Fix error handling for deserializers
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
* Fix compliance with RFC 9110 section 10.1.5
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
* Add JavaScript example code
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
* Refactor List to Collection and use iterators
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
* Add filter for another grid company
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
* Extend cached history to 24 hours
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
* Remove filter for expired GLN
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
* Fix typos
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
* Improve descriptions
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
* Improve logging
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
---------
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
* enable UoM for rpm values
* support uom for non-hour time channels
* add state options for frost setting
* add data type for percentage
* support DecimalType for QuantityType channels
* support rfc2217
* improve state description for time channels
* improve code style in DataTypes
* remove unnecessary command type check
* enable UoM for enthalpy timer
Signed-off-by: Hans Böhm <h.boehm@gmx.at>
* Fix discovery crashes if network use is blocked by docker.
* Change log levels to be more useful.
* add better reolink discovery check
Signed-off-by: Matthew Skinner <matt@pcmus.com>
* support for Pro 3EM (WIP)
* Support for Plug-S and Smoke added
* new channel resetTotals for emeters, new channel sensor#mute for Smoke
* Validate Temp reported by CoAP before updating channel, ignore 999
* Add support for Shelly BLU Button and Door/Window
Signed-off-by: Markus Michels <markus7017@gmail.com>
The addon-id was wrong (the same as for `jsscripting`), leading to wrong responses of the add-on service when both are installed.
Signed-off-by: Jan N. Klug <github@klug.nrw>
This is the initial contribution of a new volatile persistence service. It does store values in memory only and can especially be used for forecasts or other data where volatile storage is sufficient.
Signed-off-by: Jan N. Klug <github@klug.nrw>
* [tradfri] Added Support for Air Purifier (#7)
Added Support for Tradfri Air Purifier:
* Added documentation disambiguation Tradfri vs Dirigera
* Added Tradfri Air Purifier - fanMode and fanSpeed
* Workable Tradfri Air Purifier basic implementation
* Tradfri: modified fanMode type and definition
* Tradfri Air Purifier: Added disableLed
* Tradfri Air Purifier: Added lockPhysicalButton
* Tradfri Air Purifier: Added airQuality data
* Tradfri Air Purifier: Added filterCheck data
* Tradfri Air Purifier: Added translations
* Tradfri Air Purifier: Added filter_uptime
* Tradfri Air Purifier: code optimization
* Documentation for supported Air Purifier channels
Fixes#14816
Signed-off-by: Vivien Boistuaud <github@boistuaud.net>
* [influxdb] Handle exceptions gracefully
Signed-off-by: Jan N. Klug <github@klug.nrw>
* also catch InfluxDBIOExceptions
Signed-off-by: Jan N. Klug <github@klug.nrw>
---------
Signed-off-by: Jan N. Klug <github@klug.nrw>
* Enhance webhook handling and dispatching
Signed-off-by: clinique <gael@lhopital.org>
* Corrects flapping channels on Home when using single home for security and energy
Signed-off-by: clinique <gael@lhopital.org>
* Some code enhancement
Signed-off-by: clinique <gael@lhopital.org>
* Adding some missing EventType submitted on the webhook
Signed-off-by: clinique <gael@lhopital.org>
---------
Signed-off-by: clinique <gael@lhopital.org>
* [knx] Implement console commands
Add commands knx:* to openHAB console.
Initial implementation of knx:show_unknown_ga, which shows group
addresses which are seen in the installation but not used by
openHAB.
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
- Fixed support for MB-LAN (=KM200, version 1.0) by avoiding query of an unsupported attribute.
- BEFORE this fix: The MBLAN does not support the /gateway/registrations attribute and returns an invalid answer:
* [b.binding.km200.internal.KM200Device] - /gateway/registrations: trying to query information.
* [b.binding.km200.internal.KM200Device] - /gateway/registrations: trying to decode: [B@4de25f6.
* [binding.km200.internal.KM200Cryption] - Length of message is 11.
* [binding.km200.internal.KM200Cryption] - Did NOT decrypt message
* [binding.km200.internal.KM200Cryption] - Exception on encoding
Logging of detailed error message.
Signed-off-by: guenther.schreiner@smile.de
* New translations boschindego.properties (Danish)
* New translations hdpowerview.properties (Danish)
* New translations airq.properties (German)
* New translations amazondashbutton.properties (German)
* New translations ekey.properties (German)
* New translations evcc.properties (German)
* New translations feed.properties (German)
* New translations gpstracker.properties (German)
* New translations heliosventilation.properties (German)
* New translations mybmw.properties (German)
* New translations qolsysiq.properties (Italian)
* support for Pro 3EM (WIP)
* Support for Plug-S and Smoke added
* new channel resetTotals for emeters, new channel sensor#mute for Smoke
* Validate Temp reported by CoAP before updating channel, ignore 999
* Support device temp for Pro3, fix emeter.current rouding on 1 instead of
3 deciaml digits, check for reinit before executing channel command,
avoid NPE in Shelly Manaher
* Fix NPE in Shelly Manager with Plus/Pro devices (not having all Gen1
settings initialized)
* Avoid NPE if device time is not set; check thing stopping state to
prevent "handler already disposed"
Signed-off-by: Markus Michels <markus7017@gmail.com>
* Declare missing connection attribute
* change mactts, marytts, and picotts to none for consistency
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
The field name for the speed of the serial interface is baudrate and not baud. At least this is what I had to implement in OH3.4.4.
Signed-off-by: David Martin <david@itbeyond.com.au>