Commit Graph

1612 Commits

Author SHA1 Message Date
Martin Herbst
b043d8f4bc
[homematic] Provide additional null pointer checks (#10965)
* Fixed a rare NPE introduced while replacing commons-lang
* Provide additional null pointer checks

It is possible that the meta data returned for some device does not
contain a default or maximum value.

Fixes #10945
Fixes #10961

Signed-off-by: Martin Herbst <develop@mherbst.de>
2021-07-15 19:46:29 +02:00
lolodomo
03d9281c0b
[sonos] Filter Sonos Sub from discovery (#10925)
Fix #10777

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2021-07-13 12:29:54 +02:00
Jerry Gallo
225cb9ed38
[harmonyhub] Updated README to get buttonPress values with the new REST API implementation (#10978)
* fixed typo in example
* Updated the instructions on how to find buttonPress values 

openHAB 3.X put the REST API behind authorization and the old URL no longer works in the browser due to an authentication error. These new instructions allow for a trivial way to find the commands.

Signed-off-by: Jerry Gallo <2wyck3d@gmail.com>
2021-07-13 08:16:33 +02:00
Christoph Weitkamp
478f7d9b55
Readded deleted qbus bundle (#10980)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-07-12 15:11:30 +02:00
lolodomo
af989d4db8
[rotel] Semantics added to channel types (#10969)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2021-07-12 09:56:13 +02:00
Marcel
072a6045c2
[miio] add new custom refresh methods (#10957)
* Improve matching the command responses to the sending channel
* Use newer method to get device list using `device_list_page`
* Adding the ability to send custom requests to cloud
* Adding the ability to send custom commands with additional elements in
the json

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-07-12 09:55:16 +02:00
Marcel
c0ab022e4e
[miio] fix color lights sending numbers as strings (#10960)
* [miio] fix color lights sending numbers as strings

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2021-07-12 09:53:49 +02:00
lolodomo
29acaf6246
[sonyprojector] Switch to the default system channel type for power channel (#10970)
Set semantics to the powerstate channel type

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2021-07-12 09:24:24 +02:00
lolodomo
1f92039145
[lgwebos] Switch to default system channel types (#10971)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2021-07-12 09:23:13 +02:00
James Hewitt
26cf35116e
[volvooncall] Clean up readme. (#10976)
Signed-off-by: James Hewitt <james.hewitt@uk.ibm.com>
2021-07-12 09:22:00 +02:00
lolodomo
64a418829f
[homeconnect] Catch exception when appropriate (#10929)
* [homeconnect] Catch exception when appropriate

Fix #10904

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2021-07-11 22:58:59 +02:00
Christoph Weitkamp
fc9864f434
[pushsafer] Initial Contribution of Pushsafer Binding (#10790)
* Pushsafer binding

Signed-off-by: Pushsafer.com (Kevin Siml) <info@appzer.de>

* Improvements and comments from code review

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>

* Incorporated comments from review

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>

Co-authored-by: Pushsafer.com (Kevin Siml) <info@appzer.de>
2021-07-11 21:45:23 +02:00
Matthew Skinner
6fc24e4aa4
[opensprinkler] Improvements: Remove apache.commons, fix bugs and warnings (#9869)
* Fix: current channel would not get added.

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

* Fix: online and offline now detect correctly.


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

* Improve discovery.

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

* Bug fixes.


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

* Misc Improvements and log cleanup.


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

* Make current sensor channel dynamically get removed if not supported.


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

* fix compiler warning.


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

* readme updates.


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

* Shift refresh()


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

* Add RSSI and water flow meter count channels.


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

* Change to flowSensorCount


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

* Fix bug


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

* Fix NPE on parsing jsReplies.


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

* Add new programs channel.


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

* Fix wrong api use.


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

* Change to using max time if the time is null.


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

* Add device withRepresentationProperty

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

* update readme


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

* Fix rain sensor not working in 219 firmware.


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

* Spotless fixes.


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

* fix gson double up error.


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

* Add more channels


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

* refresh completed before bridge goes online.


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

* Simplify.


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

* Allow non default password to not stop discovery.

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

* Add ignoresRain channel


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

* Simplify commands in station handler.


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

* Add new rainDelay channel.


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

* Make constants consistent.


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

* Add categories.


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

* Changes requested by FlorianSW

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

* Stop catching and throwing new exp.


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

* Create a state class.


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

* Update bundles/org.openhab.binding.opensprinkler/src/main/java/org/openhab/binding/opensprinkler/internal/discovery/OpenSprinklerDiscoveryService.java

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

Co-authored-by: Connor Petty <mistercpp2000@gmail.com>

* Fix for EOF exception that stops polling with bad wifi.

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

* Change signal strength over to 0-4 range


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

* Handle toUnit null returns.


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

* Support discovery on subnets that are not /24


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

* update readme for recent changes to signalStrength channel.


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

* Fix code anal issue and readme.


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

* Remove info logging.


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

* remove traces of old dependancy.


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

* Changes for fwolter


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

* support RSSI and rssi


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

* Update after new command sent.


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

* improve delayedRefresh


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

* Remove supressWarnings


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

Co-authored-by: Connor Petty <mistercpp2000@gmail.com>
2021-07-11 09:40:29 +02:00
ThomasK
1e8be24fce
[fronius] Added inverter power, battery state of charge and PV solar yield (#10757)
* [fronius] add battery state of charge and PV yield.

Signed-off-by: THKDev <THKDev@users.noreply.github.com>

* [fronius] Actually constants should be all upper case. Words in labels should be capitalized (except prepositions and so on). Use %unit% placeholder.

Signed-off-by: THKDev <THKDev@users.noreply.github.com>

* [fronius] fixed checkstyle error; removed some warnings (eg. StringUtils)

Signed-off-by: THKDev <THKDev@users.noreply.github.com>

* Revert "[fronius] fixed checkstyle error; removed some warnings (eg. StringUtils)"

This reverts commit 73065c65

Signed-off-by: THKDev <THKDev@users.noreply.github.com>

* [fronius] fixed checkstyle error

Signed-off-by: THKDev <THKDev@users.noreply.github.com>

* [fronius] removed org.apache.commons.lang3.StringUtils

Signed-off-by: THKDev <THKDev@users.noreply.github.com>
2021-07-11 09:38:45 +02:00
rimago
ab816b08c6
[irobot] fix test (#10958)
Signed-off-by: Florian Binder <fb@java4.info>
2021-07-07 20:16:19 +02:00
Fabian Wolter
a06be4785f
Disable unstable tests (#10956)
* Disable unstable tests

Signed-off-by: Fabian Wolter <github@fabian-wolter.de>
2021-07-07 20:06:06 +02:00
Christoph Weitkamp
28c580bf5c
[deconz] Use ChannelBuilder created by ThingHandlerCallback (#10950)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-07-06 20:04:06 +02:00
Joan Pujol
26258e8ef5
[influxdb] Fix queries with data migrated from InfluxDB1 without item tags (#10937)
Signed-off-by: Joan Pujol <joanpujol@gmail.com>
2021-07-06 20:01:15 +02:00
M Valla
cdb8d46fa8
[openwebnet] Fix messages flooding BUS on reboot (#10934)
* [openwebnet] changed ALL_DEVICES_REFRESH_INTERVAL to 60s
to avoid lights/shutters status updates flooding

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

* [openwebnet] added UPnP discovery for MyHOME_Screen3,5.
Updated catalogue links in README

Signed-off-by: Massimo Valla <mvcode00@gmail.com>
2021-07-06 20:00:01 +02:00
Ryan Johnston
e967dc28bc
[insteon] Update README.md (#10922)
Fix repeated word.
2021-07-06 19:57:18 +02:00
robnielsen
3e94bb1e19
[insteon] added representation property for devices (#10908)
Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com>
2021-07-06 19:51:09 +02:00
bruestel
c0a2a4b104
[homeconnect] Show response code in request detail modal and JS code cleanup (#10695) (#10914)
Signed-off-by: Jonas Brüstel <jonas@bruestel.net>
2021-07-06 19:49:56 +02:00
mlobstein
58f20c5028
[tivo] Fix thing staying offline after connection refresh (#10902)
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
2021-07-06 19:46:25 +02:00
Wikibear
fd577a78b0
[telegram] Update README.md (#10948)
Add design of token for better understanding
2021-07-06 19:45:36 +02:00
davidjabon
a68cb6d6a9
[chromecast] Update README.md (#10930)
'weather' is misspelled. It should be 'whether.'
2021-07-06 19:44:05 +02:00
Marcel
7d2db98662
[miio] change deviceID to Xiaomi used string (#10951)
* [miio] change deviceID to Xiaomi used string

Change the deviceId from the current hexadecimal to the string used by
Xiaomi.
This is needed as we have some devices that have deviceIds that are
non-numeric, hence breaking the current logic.

Note: separately removing the upnp discovery as this has become
irrelevant with cloud discovery and devices supporting the udp regular
discovery.

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

* Update bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/handler/MiIoAbstractHandler.java

Signed-off-by: Fabian Wolter <github@fabian-wolter.de>

Co-authored-by: Fabian Wolter <github@fabian-wolter.de>
2021-07-06 19:42:42 +02:00
maniac103
89f2da140c
[homematic] Update property files (#10942)
* [homematic] Add HM-MOD-EM-8 properties

If a HM-MOD-EM-8 channel is configured to 'sensor' mode, it advertises a
STATE datapoint, which we should both display as non-advanced and give a
description.

Signed-off-by: Danny Baumann <dannybaumann@web.de>
2021-07-05 22:40:44 +02:00
Christoph Weitkamp
2cc08ba8bd
Resolve itest runbundles for snapshot 3.2.0 (#10909)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-06-28 13:44:38 +02:00
Wouter Born
4378e95acc
Update OH version in skeleton scripts (#10910)
Signed-off-by: Wouter Born <github@maindrain.net>
2021-06-28 11:00:31 +02:00
Kai Kreuzer
bebab9ce29 applied spotless
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2021-06-27 23:25:35 +02:00
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