Commit Graph

1223 Commits

Author SHA1 Message Date
jenkins
8c5c81e256 [unleash-maven-plugin] Preparation for next development cycle. 2021-06-27 17:35:01 +00:00
Christoph Weitkamp
b03e730699
[tr064] Added representation property for Things (#10905)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-06-27 10:47:48 +02:00
maniac103
ba2a33947d
[squeezebox] Map server connection state to thing status. (#10778)
If a player goes offline (it e.g. lost power or network connection),
mark it as such in the thing status.

Signed-off-by: Danny Baumann <dannybaumann@web.de>
2021-06-25 13:06:16 +02:00
James Hewitt
6403e03cea
[rfxcom] Enable Raw message transmission (#10866)
This enables raw message transmission by configuring a raw thing with pulses to
send for either ON, OFF, OPEN or CLOSED commands.

To enable extended config, this includes a refactor for the RFXComHandler to
support different Configuration objects depending on the thing type, and moves
the parsing, validation, and message matching logic to the Configuration objects
where the logic is more appropriate.

To enable testing of the RFXComHandler, the RFXComMessageFactory was abstracted
out and injected as a dependency.

Signed-off-by: James Hewitt <james.hewitt@uk.ibm.com>
2021-06-24 19:37:37 +02:00
Christoph Weitkamp
c5c2cab0a7
[hue] Added support for publishing ChannelDescriptionChangedEvents (#10718)
* Added service references to DynamicStateDescriptionProvider to support publishing ChannelDescriptionChangedEvent

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-06-24 12:15:49 +02:00
Christoph Weitkamp
225e2ae15a
Added support for publishing ChannelDescriptionChangedEvents (#10900)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-06-23 22:14:49 +02:00
Conte Andrea
089a78ff6f
[openwebnet] rename thermoregulation's (WHO=4) things (#10865)
* - bus_thermostat renamed to bus_thermo_zone
- bus_temp_sensor renamed to bus_themo_sensor
- linked OWN4j 0.5.3-SNAPSHOT (camelCase for enums)

Signed-off-by: Conte Andrea <andrea@conte.com>

* updated ReadMe according to things renaming

Signed-off-by: Conte Andrea <andrea@conte.com>

* Updated readme and thermo thing labels. Renamed thing descriptors to BusThermoZone and BusThermoSensor

Signed-off-by: Massimo Valla <mvcode00@gmail.com>

* using own4j release 0.5.3

Signed-off-by: Conte Andrea <andrea@conte.com>

* removed json tags in README. Added KG4691 to tested thermostats

Signed-off-by: Massimo Valla <mvcode00@gmail.com>

Co-authored-by: Massimo Valla <mvcode00@gmail.com>
2021-06-23 20:08:51 +02:00
James Hewitt
08706f1314
[rfxcom] Add Novy extractor fans (#10891) 2021-06-23 18:10:29 +02:00
lolodomo
0728e16335
Added support for publishing ChannelDescriptionChangedEvents (#10898)
Pack 3

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2021-06-22 21:21:40 +02:00
lolodomo
34e26f806d
[remoteopenhab] Listen to the new ChannelDescriptionChangedEvent events to update dynamic state/command options (#10885)
Also handle dynamic command options

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2021-06-22 21:19:45 +02:00
Ryz
58c7928b23
[http] Fix parsing of Color RGB values (#10897)
* Fixed parsing of Color RGB values

Signed-off-by: Ryz <mirco.heitmann@gmail.com>
2021-06-22 12:51:16 +02:00
lolodomo
cba49df16a
Added support for publishing ChannelDescriptionChangedEvents (#10896)
Pack 2

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2021-06-22 10:38:15 +02:00
hofingerandi
48e13858a9
[enocean] Add support for eltako rollershutter frm60 (#10852)
* added eltako frm60, based on eltako fsb

Signed-off-by: Andreas Hofinger  <andreas.hofinger@gmx.net>
2021-06-21 22:31:42 +02:00
lolodomo
ac52f9bbe4
Added support for publishing ChannelDescriptionChangedEvents (#10884)
For the bindings homeconnect, lgwebos, netatmo, remoteopenhab, rotel,
somfytahoma, sonos and sonyprojector

Depends on openhab/openhab-core#1505

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2021-06-21 22:28:38 +02:00
Christoph Weitkamp
48f4fd7e6e
Added service references to DynamicCommandDescriptionProvider and DynamicStateDescriptionProvider to support publishing ChannelDescriptionChangedEvent (#10717)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-06-21 22:08:35 +02:00
Marcel
809e53d3af
[miio] Add support gateway lumi.gateway.mieu01 (#10893)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-06-21 22:07:17 +02:00
Rogier Hofboer
ea2cb217e0
[mqtt.generic] Percentage range fix #10586 (#10587)
Signed-off-by: Rogier Hofboer <rogier@hofboer.nl>
2021-06-21 21:24:54 +02:00
Marcel
ef1deff4e9
[miio] fix typo (#10894)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-06-21 21:16:34 +02:00
Christoph Weitkamp
a04f331011
Added service references to DynamicCommandDescriptionProvider to support publishing ChannelDescriptionChangedEvent (#10716)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-06-21 21:14:37 +02:00
Sven Carstens
806e0a0287
[solarwatt] Initial contribution for solarwatt energy manager (#10091)
* [ADD] First version which was tested with my local setup.

Signed-off-by: Sven Carstens <s.carstens@gmx.de>
Signed-off-by: Sven Carstens <sven.carstens@aoe.com>

* [ADD] Refactoring, add calculated value for direct self consumption and prepare for more.

Signed-off-by: Sven Carstens <s.carstens@gmx.de>

* [ADD] Add chanel description to README and make some channels advanced.

Signed-off-by: Sven Carstens <s.carstens@gmx.de>

* [MOD] Remove wrong colon in channel types.

Signed-off-by: Sven Carstens <s.carstens@gmx.de>

* [MOD] Put colon at the right place in channel types.

Signed-off-by: Sven Carstens <s.carstens@gmx.de>

* [MOD] Fix spelling of PVPlant in constants and things.

Signed-off-by: Sven Carstens <s.carstens@gmx.de>

* [MOD] Separate channelName from energy manager tagName.

Signed-off-by: Sven Carstens <s.carstens@gmx.de>

* [MOD] Reduce loglevels and fix findings from code-analysis.

Signed-off-by: Sven Carstens <s.carstens@gmx.de>

* [MOD] Move all custom calculations to the handler instances, remove custom tracking of child handlers, fix wrong calculation of the "direct consumed" values.

Signed-off-by: Sven Carstens <s.carstens@gmx.de>

* [MOD] Improve README and remove unnecessary Nullable and NotNull annotations.

Signed-off-by: Sven Carstens <s.carstens@gmx.de>

* [MOD] Change wrong ItemType for power items in README

Signed-off-by: Sven Carstens <s.carstens@gmx.de>

* [MOD] Change modeConverter to Switch

Signed-off-by: Sven Carstens <s.carstens@gmx.de>

* [MOD] Relay stateDevice to Thing status, anything but "OK" means ThingStatus.OFFLINE

Signed-off-by: Sven Carstens <s.carstens@gmx.de>

* [MOD] Remove stateDevice from items as it is represented by the device status.

Signed-off-by: Sven Carstens <s.carstens@gmx.de>

* [MOD] Improve README and remove unnecessary logging.

Signed-off-by: Sven Carstens <s.carstens@gmx.de>

* [MOD] Improve README.

Signed-off-by: Sven Carstens <s.carstens@gmx.de>

* [MOD] Improve README.

Signed-off-by: Sven Carstens <s.carstens@gmx.de>

* [MOD] Allow child things to be configured by hand with a guid.

Signed-off-by: Sven Carstens <s.carstens@gmx.de>

* [MOD] Allow child things to be configured by hand with a guid.

Signed-off-by: Sven Carstens <s.carstens@gmx.de>

* [MOD] Improve README and move things config to separate config.xml

Signed-off-by: Sven Carstens <s.carstens@gmx.de>

* [MOD] Improve README and remove all trace/debug logging.

Signed-off-by: Sven Carstens <s.carstens@gmx.de>

* [MOD] Use real channel timestamp as the refresh trigger.

Signed-off-by: Sven Carstens <s.carstens@gmx.de>

Co-authored-by: Sven Carstens <sven.carstens@aoe.com>
2021-06-21 18:21:50 +02:00
Wouter Born
39c4cd0a4d
Fix build (#10892)
Caused by https://github.com/openhab/openhab-addons/pull/10890

Signed-off-by: Wouter Born <github@maindrain.net>
2021-06-21 11:50:14 +02:00
Stefan Triller
7c221d0fb7
[influxdb] v2: Fix history queries if items are not tagged (#10888)
Was missing in https://github.com/openhab/openhab-addons/pull/10680

Fixes #10887

Signed-off-by: Stefan Triller <github@stefantriller.de>
2021-06-21 08:50:13 +02:00
Puzzlr
cd8aa5d604
Added missing </li> attributes in last comment section (#10890) 2021-06-21 08:48:48 +02:00
Marcel
6a7e240060
[miio] improve zhimi fan channels (#10882)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-06-20 20:58:05 +02:00
James Melville
f73553347e
[snmp] Apply UoM to number channels from an SNMP target (#10681)
* Add Unit handling functionality to SNMP Reads

Signed-off-by: James Melville <jamesmelville@gmail.com>

* Use core library for Unit parsing

Signed-off-by: James Melville <jamesmelville@gmail.com>
2021-06-20 20:30:37 +02:00
Ethan Dye
22dd4aecd8
[OmniLink] Simplify updating properties (#10889)
Signed-off-by: Ethan Dye <mrtops03@gmail.com>
2021-06-20 20:26:55 +02:00
BigGeorgeTx
080d43edd4
[icloud] Update README.md (#10886) 2021-06-20 20:24:10 +02:00
Marcel
8be582e52a
[miio] improve dreame mc1808 channels (#10873)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-06-20 20:19:51 +02:00
pali
61280ea4a2
[ihc] Support for TLSv1.2 (#10856)
* [ihc] Support for TLSv1.2

So far IHC controller have supported only TLSv1. As TLSv1 is already
deprecated and upcoming IHC controller FW version will introduce support
for TLSv1.2.

This change introduce TLSv1.2 support for the binding. TLS version is
selectable to be backward compatible for older controller versions.

Communication error handling is also improved e.g. because of wrong
password or if Java environment doesn't support required TLS version.
When fatal communication error occurs, binding will not hammer
controller with retries as it need user actions.

Signed-off-by: Pauli Anttila <pauli.anttila@gmail.com>

* [ihc] Introduced auto mode and other improvements

Signed-off-by: Pauli Anttila <pauli.anttila@gmail.com>

* [ihc] introduced default constant

Signed-off-by: Pauli Anttila <pauli.anttila@gmail.com>
2021-06-20 20:07:12 +02:00
lolodomo
3d33ee0ab8
[homeconnect] 9 channels added for washer appliance (#10809)
* [homeconnect] 9 channels added for washer appliance

Corresponding to 9 program options not fully supported by the API.

Fix #10704

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

* Review comment: formatting in XML thing file

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

* Review comment: add these new channels (except i-DOS) to washerdryer appliance

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

* Review comment: method isLinkedChannelsForUnsupportedFeatures renamed

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

* Change state options for rinse plus channel

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

* Update the new channels when the active program is updated

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

* Review comment: update documentation

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

* Review comment: typo in channel description

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2021-06-20 20:03:05 +02:00
Wouter Born
6296eba14c
[nest] Add support for Smart Device Management (SDM) API (#8947)
* [nest] Add support for Smart Device Management (SDM) API

* Reworks WWN implementation so that the thing types have a wwn_ prefix and the classes have a WWN prefix and reside in a 'wwn' package
* Adds an SDM implementation which is also based on: https://github.com/bhigg-code/openhab-addons/tree/2.5.x/bundles/org.openhab.binding.nestdeviceaccess
* Adds unit tests for (de)serialization of the SDM and Pub/Sub API requests and responses
* Updates the binding documentation for the changes and additions

Fixes #8664

Also-by: Brian Higginbotham <brianhigginbothamtx@gmail.com>
Signed-off-by: Wouter Born <github@maindrain.net>

* Fix and improve documentation

Signed-off-by: Wouter Born <github@maindrain.net>

* Always use UTF8 when decoding SDM events

Signed-off-by: Wouter Born <github@maindrain.net>
2021-06-20 19:59:46 +02:00
lolodomo
ec7c3a528f
[remoteopenhab] Avoid registering conflicting filters for SSE connection (#10870)
* [remoteopenhab] Avoid registering conflicting filters for SSE connection

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

* Remove default constructor

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

* Review comment: declare the hostname verifier in a variable

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2021-06-20 19:36:34 +02:00
Marcel
8d39e5b2ee
[miio] fix discovery issue when for devices with dot (#10880)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-06-20 14:10:48 +02:00
James Hewitt
ae4ac7d36c
[rfxcom] Add firmware type, avoid crashing on unknown. (#10879)
New firmware type reported from the community that's not in the SDK. Also,
we don't actually _use_ the firmware type or device type for anything, so
lets not crash if we don't match the bytes - lets just flag it unknown.

https://community.openhab.org/t/rfxcom-binding-unsupported-value/123615/12

Signed-off-by: James Hewitt <james.hewitt@uk.ibm.com>
2021-06-19 11:29:58 +02:00
James Hewitt
60c199c9c9
[rfxcom] Add support for additional blinds (#10877)
Based on the RFXtrx SDK, new blind types. They mostly seem to match existing logic,
so this shouldn't break existing things.

Signed-off-by: James Hewitt <james.hewitt@uk.ibm.com>
2021-06-19 08:51:22 +02:00
bruestel
ca1de9dc4d
[homeconnect] Fix invalid authorization header during Server-Sent Events (SSE) client creation (#10848)
* [homeconnect] Improve logging of SSE connection and add backoff interval in case of connection error

Signed-off-by: Jonas Brüstel <jonas@bruestel.net>

* [homeconnect] Fix SSE authorization header problem

Signed-off-by: Jonas Brüstel <jonas@bruestel.net>

* [homeconnect] Fix synchronized monitor

Signed-off-by: Jonas Brüstel <jonas@bruestel.net>
2021-06-18 11:25:13 +02:00
rimago
1630430705
[irobot] Fix password discovery and command sending for Roomba I-Models. (using gson) (#10860)
* Fix password discovery for Roomba I-Models.

Signed-off-by: Alexander Falkenstern <alexander.falkenstern@gmail.com>

* [irobot] remove json-path dependency (use gson instead)

Signed-off-by: Florian Binder <fb@java4.info>

* [irobot] fix checkstyle warnings, preserve backward compatibility, and
remove unused parameters

Signed-off-by: Florian Binder <fb@java4.info>

Co-authored-by: Alexander Falkenstern <alexander.falkenstern@gmail.com>
2021-06-18 10:38:51 +02:00
Marcel
36d7dc26b8
[miio] cleanup several SAT warnings (#10871)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-06-16 10:28:44 +02:00
Marcel
28c513ac3a
[miio] fix typo in temperatue unit (#10869)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-06-16 10:27:04 +02:00
Marcel
8bd05c0f9f
[miio] add support for Mi Smart Standing Fan Pro Global (dmaker.fan.p15) (#10855)
* [miio] add support for Mi Smart Standing Fan Pro Global (dmaker.fan.p15)

add support Mi Smart Standing Fan Pro EU/Global (dmaker.fan.p15)
Improve p8 & p9 fans
close #10843

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

* [miio] improve timeunit

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-06-16 00:03:46 +02:00
Markus Michels
d0f4b84841
[shelly] 1PM/1L/2.5: New device#supplyVoltage; Motion: Missing channel for vibration; UNI: Unit for ADC voltage; PF for EM; Bulb: fix range for color temp (#10815)
* fixes #10738, #10799

Signed-off-by: Markus Michels <markus7017@gmail.com>

* - Feature #10090 New device#supplyVoltage channel for Shelly 2.5, 1PM
and 1L
- Change  #10039 Info on "not reachable / timeout" should be warning,
not info
- Fix     #10799 Missing Channel Definition for Vibration Events
- Fix     #10738 Shelly UNI - ADC Voltage units of measure missing
- Fix     #10111 Creating Equipment from Shelly Bulb Duo causes wrong
min/max
- README updated

Signed-off-by: Markus Michels <markus7017@gmail.com>

* #10737 Shelly EM - add powerFactor channel support

Signed-off-by: Markus Michels <markus7017@gmail.com>

* README updated

Signed-off-by: Markus Michels <markus7017@gmail.com>

* channel powerFactor (EM+EM3) is now of type Number:Dimensionless

Signed-off-by: Markus Michels <markus7017@gmail.com>

* Fix for #10864: Do not trigger same alarm within 5 minutes

Signed-off-by: Markus Michels <markus7017@gmail.com>

* better logic for alarm filter

Signed-off-by: Markus Michels <markus7017@gmail.com>
2021-06-16 00:00:56 +02:00
Anders Alfredsson
c9933454db
[smhi] Fix exception in aggregation function when daily forecast is empty (#10851)
* Fix exception in aggregation function when daily forecast is empty

Also catch any Exception to prevent thread from crashing

Signed-off-by: Anders Alfredsson <andersb86@gmail.com>

* Refactor to improve robustness of calculations

Improve tests to cover different forecast scenarios

Signed-off-by: Anders Alfredsson <andersb86@gmail.com>
2021-06-15 23:56:50 +02:00
Martin Dagarin
c21c468cac
[gpio] Improved usability of pullupdown parameter on GPIO pin (#10863)
Signed-off-by: Martin <martin.dagarin@gmail.com>
2021-06-15 23:53:27 +02:00
Matthew Skinner
f263c13c6b
[ipcamera] Fix null URL channels and fix multiple cameras use the same ffmpeg output folder. (#10846)
* Fix urls are null until binding restarts.


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

* Change to using port config.


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

* automate the ffmpeg output folder to follow the UID.


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

* spotless fixes.


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

* Update readme.


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

* change to using the userdata folder.


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

* change to better field description.


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

* Add advanced.


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

* Add link to docs.


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

* improve readme.

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

* improve example path in readme.


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

* Update bundles/org.openhab.binding.ipcamera/README.md

Cut and paste bandit strikes again. thanks.

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

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

* Change to using ipcamera as folder loc.

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

Co-authored-by: Fabian Wolter <github@fabian-wolter.de>
2021-06-15 23:50:00 +02:00
Kai Kreuzer
f506ec299b
[tesla] Prevent NPE (#10872)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2021-06-15 23:47:47 +02:00
Jan Wolf
54d88a84ce
[neato] Fix slow cleaning of robot (#10724)
Signed-off-by: Jan Wolf <git@jan-wolf.de>
2021-06-15 22:07:03 +02:00
James Hewitt
8c7c37a7f5
[rfxcom] Update interface message support (#10844)
Based on both the SDK and experimentation, this commit correctly identifies the
firmware and hardware version. A warning has been added for people with really
old firmware that may be different, but we didn't handle those different cases
well anyway.

Also includes updated firmware types and device types and support for pretty-
printing of the device and firmware type.

Signed-off-by: James Hewitt <james.hewitt@uk.ibm.com>
2021-06-15 19:37:07 +02:00
Martin Herbst
82dba8d400
[deconz] Set "ontime" option only if thing has got an ONTIME channel (#10829)
* Set "ontime" option only if thing has got an ONTIME channel

Fixes #10774

Signed-off-by: Martin Herbst <develop@mherbst.de>
2021-06-14 16:01:30 +02:00
James Hewitt
793dbf3df5
[rfxcom] Add support for receiving RAW messages (#10833)
This is a new feature in the Pro firmwares that provides the real raw RF
pulse lengths as shorts. Good for being able to parrot switches that aren't
otherwise supported, once we add the tx support as well.

Signed-off-by: James Hewitt <james.hewitt@uk.ibm.com>
2021-06-14 09:05:03 +02:00
muhl
056690a794
[rfxcom] Add support for TFA 30.3233.1 rainmeter (#10825)
Signed-off-by: Matthias Uhl <matthias_uhl@gmx.de>
2021-06-13 12:02:45 +02:00