Ron Isaacson [Wed, 13 Jan 2021 20:29:22 +0000 (15:29 -0500)]
[powermax] Refactor state objects (#9684)
* 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>
olivierkeke [Wed, 13 Jan 2021 19:40:25 +0000 (20:40 +0100)]
[teleinfo] Fix memory leak (#9724)
* 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
Evan Anderson [Wed, 13 Jan 2021 10:56:09 +0000 (04:56 -0600)]
[tplinksmarthome] Add support for KP115 plug (#9800)
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>
Martin Herbst [Tue, 12 Jan 2021 21:11:52 +0000 (22:11 +0100)]
[homematic] Fix for two (re)connection problems (#9692)
* 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
[dsmr] Fix handling problem reading gasmeter (#9736)
* [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..
[innogysmarthome] NullPointerException fixed which could occur when no device state is available (#9660) (#9677)
* [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>
M Valla [Fri, 8 Jan 2021 22:00:55 +0000 (23:00 +0100)]
[openwebnet] Improvements for ZigBee USB and Dimmers (#9662)
* [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
maniac103 [Thu, 7 Jan 2021 16:38:47 +0000 (17:38 +0100)]
[tr064] Normalize numbers in phonebook entries (#9733)
* [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>
s0-er-eN [Wed, 6 Jan 2021 20:46:25 +0000 (21:46 +0100)]
[xmppclient] Update examples rules for OH3 usage (#9643)
- Rename parameter 1 of "getActions" from "xmpp" to "xmppclient".
- Remove "getEvent()" as "receivedEvent" automatically contains the String since OH3.
Sebastian Prehn [Tue, 5 Jan 2021 16:38:37 +0000 (17:38 +0100)]
[lgwebos] Remove outdated statement from README.md (#9697)
* [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>
Michael Wodniok [Mon, 4 Jan 2021 09:53:25 +0000 (10:53 +0100)]
[icalendar] Fixed issues with moved events and wrong displayed events (#9678)
* [icalendar] Fixed issues with moved events and wrong displayed events
* [icalendar] Changed test to use local time in test-calendar of #9647
Fixes #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>
[tr064] improve documentation and add textual config example (#9648)
* 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.
Ron Isaacson [Sat, 2 Jan 2021 19:59:57 +0000 (14:59 -0500)]
[powermax] Improve debugging in message classes (#9314)
* 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>