Commit Graph

14 Commits

Author SHA1 Message Date
Ron Isaacson
7898f4f911
[powermax] Improved error handling for Powermax binding (#9817)
* Improved error handling for Powermax binding

Catch all exceptions, and take all Powermax things offline in the event
of a communication failure. Also adds a 5-minute watchdog for
connections in Standard (non-Powerlink) mode.

* More Powermax error handling improvements

1. Mark the bridge and all things as offline when communication is lost
2. Bubble all I/O exceptions up to the bridge status
3. Set all channels to UnDefType.NULL when bridge goes offline
4. Ignore CRC errors on messages of type 0xF1
5. Don't try and download partition settings for panels that don't support partitions
6. Fix logging levels to avoid unnecessary non-DEBUG messages

Signed-off-by: Ron Isaacson <isaacson.ron@gmail.com>
2021-02-08 22:48:38 +01:00
Ron Isaacson
0a9c5a0b2c
[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>
2021-01-13 12:29:22 -08:00
Wouter Born
d6364aceb1
Update license headers to 2021 (#9620)
Signed-off-by: Wouter Born <github@maindrain.net>
2021-01-02 22:03:14 +01:00
Ron Isaacson
353f7af076
[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>
2021-01-02 20:59:57 +01:00
Wouter Born
ecac667258
Apply Spotless, update skeleton project version, resolve itest runbundles (#9459)
Signed-off-by: Wouter Born <github@maindrain.net>
2020-12-22 10:37:44 +01:00
jenkins
e4554f4aa6 [unleash-maven-plugin] Preparation for next development cycle. 2020-12-21 10:36:42 +00:00
lolodomo
f5e16ae5f8
[linky/powermax/lgwebos] Adapt README to OH3 (#9332)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2020-12-11 13:33:24 -08:00
JuanFran Adame Lorite
b8dc504f84
[powermax] Update README.md (#9207)
* Update README.md

Added some comments on how to enable bypass switching

Signed-off-by: JuanFran Adame <juanfran.adame@gmail.com>
2020-12-06 22:34:40 +01:00
lolodomo
ef31659452
[powermax] New channel of type Contact to show the zone arm status (#9192)
Allow using lock icon from the classic iconset
Allow displaying the "Locks" badge in MainUI

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2020-12-02 09:21:05 -08:00
Kai Kreuzer
007c3b56e5
removed deprecated author information from binding.xml (#9113)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2020-11-23 19:06:33 -08:00
lolodomo
82af90c5b8
[powermax] Use ThingHandlerService for discovery (#9083)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2020-11-20 19:18:16 -08:00
Wouter Born
b423f93b1f
Remove Map null annotation workarounds (#8916)
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>
2020-11-04 13:57:24 +01:00
Wouter Born
7f39d01a0f
Remove/ignore Eclipse project files (#8529)
Fixes #8451

Signed-off-by: Wouter Born <github@maindrain.net>
2020-09-21 22:50:37 +02:00
Kai Kreuzer
6df6783b60 added migrated 2.x add-ons
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2020-09-21 03:37:19 +02:00