Commit Graph

158 Commits

Author SHA1 Message Date
J-N-K
268eabdcec [shelly] Add support for Shelly Plus RGBW PM (#17692)
* [shelly] Add support for Shelly Plus RGBW PM

Signed-off-by: Jan N. Klug <github@klug.nrw>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:28 +02:00
Jacob Laursen
7fe334c5c6 Fix suggestion finder (#17696)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:26 +02:00
J-N-K
9c5bd0e057 [shelly] Fix timeDuration handling in DTOs (#17689)
Signed-off-by: Jan N. Klug <github@klug.nrw>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:26 +02:00
Stefan Pledl
d6f6a66a44 [shelly] fix NumberFormatException on Shelly2RelayStatus.timerDuration (#17269)
- If 'Auto OFF' mode is enabled on a Shelly Plus 1 device and set to a
  value with decimal places a status update throws an NumberFormatException.

  Changed timerDuration/timer_duration from Integer to Double
  fixes the problem.

Signed-off-by: Stefan Pledl <stefan@pledl.de>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:26 +02:00
JonathanvdGHU
9ad7aab7d1 [shelly] Add totalKWH channels for Shelly Pro 3EM (#17602)
* added totalkwh channel

Signed-off-by: Jonathan van de Giessen <jonathan.vandegiessen@student.hu.nl>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:24 +02:00
lsiepel
b64a37ea06 [multiple] Reduce SAT warnings (#17564)
* NoEmptyLineSeparatorCheck
* ModifierOrderCheck
* TypeNameCheck
* ConstantNameCheck loggers
* UnusedPrivateField
* Fix imports
* New line
* dynamodb static logger

Signed-off-by: Leo Siepel <leosiepel@gmail.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:22 +02:00
Wouter Born
1cd2e310ca Remove unnecessary executable permissions (#17569)
These files are marked as executable for no good reason at all.

Signed-off-by: Wouter Born <github@maindrain.net>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:21 +02:00
lsiepel
cb1bd8c21f Markdown Documentation fixes (#17526)
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:20 +02:00
lsiepel
3b474220fb Multiple binding markdown fixes (#17422)
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:17 +02:00
Jacob Laursen
4609d7156e [shelly] Fix compiler warnings (#17179)
* Fix warnings
* Use List interface where possible

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:07 +02:00
Markus Michels
3eff0108df [shelly] Add support for various Gen3 devices (Plus 1/1PM, Mini 1/PM/1PM, Dimmer 0110, i4) (#17166)
Signed-off-by: Markus Michels <markus7017@gmail.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:06 +02:00
Markus Michels
6925912f04 [shelly] Fix thing re-init after power cycle for firmware update (#17163)
* Fixes thing re-init during/after firmware update. API will not be closed
on ota_success message.
* Don't disconnect from device during firmware update, this ensures to get
further events throughout the upgrade process
* suspress COMMUNICATION_ERROR on expected restart after fw upgrade

Signed-off-by: Markus Michels <markus7017@gmail.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:06 +02:00
Markus Michels
94c16475de Fixes BLU Discovery when Shelly Cloud Bluetooth Gateway is enabled (in (#17167)
this case the binding's gateway script could not get access to the BLE
observer).

Signed-off-by: Markus Michels <markus7017@gmail.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:06 +02:00
Jacob Laursen
c370ba2ba3 Fix NullPointerExceptions (#17180)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:06 +02:00
Markus Michels
16c2b2ef74 fixes #17121 (BLU Gateway), #17120 (NPE in cover mode) (#17122)
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:05 +02:00
Markus Michels
60178b2329 [shelly] Fix initialization of BLU Motion device (#17053)
* Fixes #17052 (caused by inproper initialization of the profile flags for
BLU devices in general and for BLU Motion another one)

Signed-off-by: Markus Michels <markus7017@gmail.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:03 +02:00
Jacob Laursen
26f315326d Add test coverage for thing type mapping (#17040)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:01 +02:00
Jacob Laursen
46406d7627 Fix thing type descriptions for Plus Mini series (#17015)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:01 +02:00
Markus Michels
aabd126d41 [shelly] Revise fix for Gen1 initialization problem for manually created Things (#17011)
* Fixes #16990 - Gen1 nbo longer initializes when defined in .things

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

Co-authored-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:00 +02:00
lsiepel
90da4e40cc Apply Spotless after release (#17016)
* Spotless

Signed-off-by: Leo Siepel <leosiepel@gmail.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:00 +02:00
openhab-bot
5fa59d316f [unleash-maven-plugin] Preparation for next development cycle.
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:00 +02:00
Markus Michels
3014873bd1 Fixes #16990 - Gen1 nbo longer initializes when defined in .things (#17009)
Signed-off-by: Markus Michels <markus7017@gmail.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:00 +02:00
ErikDB87
95311290f2 Update Shelly binding README regarding discovery of BLU devices (#16884)
See https://community.openhab.org/t/shelly-binding/56862/3864 (and thus https://community.openhab.org/t/shelly-binding/56862/3771).

Signed-off-by: ErikDB87 <148375835+ErikDB87@users.noreply.github.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:55 +02:00
Markus Michels
2f5f69ed7d [shelly] Various small fixes for BLU HT, Range Extender, Plus 10V, TRV set temp (#16746)
* fixes ##16736, #16734, #16542, #16709, #16735

Signed-off-by: Markus Michels <markus7017@gmail.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:52 +02:00
Fabian Fagerholm
b041511f4c Enable use of analogue input with Shelly Plus Add-on (#16744)
Signed-off-by: Fabian Fagerholm <fabbe@paniq.net>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:50 +02:00
Markus Michels
47aeaf60ae [shelly] Support for Shelly Plus HT Gen3 (#16625)
Signed-off-by: Markus Michels <markus7017@gmail.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:49 +02:00
Jacob Laursen
686eeeeb6c Provide unit hints for humidity/noise/volume channels (#16614)
* Provide unit hints for humidity channel types

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Provide unit hints for noise/volume channel types

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

---------

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:44 +02:00
Markus Michels
bd2f2d4cdb [shelly] Add support for Range Extender feature (#16419)
* Add support for Shelly Range Extender mode (Plus/Pro series only)
* Check for secondary devices also when manual scan is triggered

Signed-off-by: Markus Michels <markus7017@gmail.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:43 +02:00
Leif Bladt
f99ff75b9d Enable accumulated channels for Shelly Pro 3EM (#16566)
Signed-off-by: Leif Bladt <leif.bladt@gmx.de>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:42 +02:00
Holger Hees
fa5669cfca Use mac address as a fallback name (#16547)
Signed-off-by: Holger Hees <holger.hees@gmail.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:41 +02:00
Holger Hees
b5da12e1ea Fix missing starting head tag (#16426)
Signed-off-by: Holger Hees <holger.hees@gmail.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:35 +02:00
Markus Michels
84882f795b [shelly] Support for Shelly BLU H&T (#16413)
* Support for Shelly BLU H&T added

Signed-off-by: Markus Michels <markus7017@gmail.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:35 +02:00
Markus Michels
a7eb60c15d [shelly] New channel group ncurrent for 3EM (#16336)
* Add channels for emeter_n (neutral current-based measurements) - polled
status and CoAP update (ncurrent only, no other values)

Signed-off-by: Markus Michels <markus7017@gmail.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:34 +02:00
Alexander Falkenstern
7af2f56734 Remove duplicated code. (#16393)
Signed-off-by: Alexander Falkenstern <alexander.falkenstern@gmail.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:33 +02:00
Markus Michels
a47f5fd0fc Re-adding missing Plus10V to list of supported things (#16391)
Signed-off-by: Markus Michels <markus7017@gmail.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:33 +02:00
Markus Michels
b729f443ff Fix check to avoid crash (#16371)
Signed-off-by: Markus Michels <markus7017@gmail.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:32 +02:00
Markus Michels
4a5df24381 Support for Shelly Plus Mini Gen 3 series of devices, Shelly Plus UNI (#16335)
and Shelly BLU Gateway.

Signed-off-by: Markus Michels <markus7017@gmail.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:31 +02:00
Markus Michels
23ac34fd80 [shelly] Add check and ThingStatus for local IP issue (APIPA) (#16306)
* Check for local_ip == 169.254.x.xm, which is the result when DHCP IP
assignment failed. Avoid that the binding passes this address to the
device as part of the callback url.

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

Co-authored-by: markus7017 <markus7017@gmail..com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:30 +02:00
Markus Michels
168d1fec39 [shelly] improved logging on WebSocket connection problems (#16303)
* Improve logging on WebSocket connection problems

Signed-off-by: Markus Michels <markus7017@gmail.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:29 +02:00
Markus Michels
966281d33c make blu gw script more rebust on startup (#16304)
Signed-off-by: Markus Michels <markus7017@gmail.com>
Co-authored-by: markus7017 <markus7017@gmail..com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:28 +02:00
Markus Michels
6aa86953df Fix stack overflow when an unknown CoAP Id is detected; Fix innerTemp (#16240)
channel creation for Gen2 devices not having this; Fix sensor
initialization on wakeup; Fix missingf temperature5 description; add
missing relay definition for shellywalldisplay; Some README fixes

Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:28 +02:00
Wouter Born
ef59934e9c Use diamond operator and remove redundant type arguments (#16249)
Signed-off-by: Wouter Born <github@maindrain.net>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:25 +02:00
Wouter Born
9c6c475a1c Remove unnecessary semicolons (#16214)
This helps with stopping the proliferation of unnecessary semicolons.

Signed-off-by: Wouter Born <github@maindrain.net>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:25 +02:00
Wouter Born
d1d6e817af Remove redundant feature dependencies (#16204)
* Remove redundant feature dependencies

The following features are already dependencies of openhab-runtime-base:

* openhab-core-base
* openhab-core-model-item
* openhab-core-model-script
* openhab-transport-mdns

See also: https://github.com/openhab/openhab-addons/pull/16202#issuecomment-1876875456

* Remove redundant openhab.tp-jackson and openhab.tp-jaxb feature dependencies

Signed-off-by: Wouter Born <github@maindrain.net>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:25 +02:00
openhab-bot
bfe1f9d4be New translations shelly.properties (German) (#16182)
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:24 +02:00
Jacob Laursen
92145428df Update license headers to 2024 (#16168)
* Update copyright year in configuration
* Update license headers
* Manually update nibeheatpump headers (.cpp/.h/.ino)
* Manually update smsmodem header
* Manually update hueemulation header
* Manually update addon-header.xml header

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:23 +02:00
Wouter Born
607c647734
[shelly] Fix WebSocketServerFactory ClassNotFoundException (#16150)
Adds a package import so the class can be found by the class loader.

Fixes #16118

Signed-off-by: Wouter Born <github@maindrain.net>
2023-12-31 11:48:04 +01:00
Wouter Born
c58d894bf0
Use OnOffType.from to reduce code (#16101)
You can create an `OnOffType` using a boolean nowadays which reduces the amount of code.

Signed-off-by: Wouter Born <github@maindrain.net>
2023-12-23 19:06:21 +01:00
Holger Friedrich
533cc666ab
Apply spotless after release (#16097)
* Apply spotless after release
* itests: resolve bundles

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-12-22 23:30:38 +01:00
openhab-bot
83e0485219 [unleash-maven-plugin] Preparation for next development cycle. 2023-12-22 14:37:48 +00:00