Commit Graph
95 Commits
Author SHA1 Message Date
Markus MichelsandGitHub 43873cf0f3 [shelly] Fix addon sensor read errors causing spurious 0 °C spike (#20995)
* [shelly] Fix addon sensor read errors causing spurious 0 °C spike

Signed-off-by: Markus Michels <markus7017@gmail.com>
2026-06-21 15:04:47 +02:00
Markus MichelsandGitHub 2da6b67f2c [shelly] Add support for Shelly BLU Motion ZB, BLU H&T Display ZB, BLU For/Window ZB, BLU Remote ZB (#20967)
* [shelly] BLU ZB step 0: move scalar/array handling from JS to Java

Signed-off-by: Markus Michels <markus7017@gmail.com>
2026-06-19 10:29:31 +02:00
Markus MichelsandGitHub 9c0c1295b8 [shelly] Fix stopping sensor updates when using combo sensor connected to Shelly Addon (#20932)
* Fix externalTemp channel updates, improve test coverage

Signed-off-by: Markus Michels <markus7017@gmail.com>
2026-06-14 20:23:57 +02:00
Markus MichelsandGitHub fc68fffa12 Make sure thing type mapping for Shelly Plug S Gen 2 is correct (#20965)
Signed-off-by: Markus Michels <markus7017@gmail.com>
2026-06-14 20:11:01 +02:00
Markus MichelsandGitHub 921a136511 [shelly] Developer documentation (#20766)
* A comprehensive documentation for developers who want to learn more
about architecture of the binding and technical details. It also
describes how to add new devices.

Signed-off-by: Markus Michels <markus7017@gmail.com>
2026-06-08 22:59:23 +02:00
Markus MichelsandGitHub 96613bc338 [shelly] Test coverage for Consolidated Gen2 API Device Profile initialisation code (#20887)
* DeviceProfile test coverage

Signed-off-by: Markus Michels <markus7017@gmail.com>
2026-06-05 15:51:43 +02:00
Markus MichelsandGitHub d0bbd134ec [shelly] Refactor initialization of boolean variables (#20888)
* Removed boolean x = false;

Signed-off-by: Markus Michels <markus7017@gmail.com>
2026-06-05 15:51:05 +02:00
Markus MichelsandGitHub 6243babac3 [shelly] Fix BLU event reception after WiFi disconnect of gateway device (#20886)
* Fix reinitialize problem after Wifi disconnect of the hub device and
binding stopping updates from BLU events.

Signed-off-by: Markus Michels <markus7017@gmail.com>
2026-06-05 15:46:48 +02:00
b272ac26f6 [shelly] Power Meter related descriptions and units fixed (#20811)
* Meter related descriptions and units fixed

Signed-off-by: Markus Michels <markus7017@gmail.com>
Co-authored-by: lsiepel <leosiepel@gmail.com>
2026-06-03 22:22:55 +02:00
Markus MichelsandGitHub 0a5c933e4f Integrape new Gen4 Plug CPM and Plug US (#20813)
Signed-off-by: Markus Michels <markus7017@gmail.com>
2026-05-31 11:01:47 +02:00
Markus MichelsandGitHub a4edd1053f [shelly] Improve thread safety for ShellyHttpClient and binding/thing/api configuration management (#20396)
* Improve thread safety for class ShellyHttpClient

Signed-off-by: Markus Michels <markus7017@gmail.com>
Signed-off-by: Ravi Nadahar <nadahar@rediffmail.com>
2026-05-19 22:35:09 +02:00
Markus MichelsandGitHub 6ddbebf9e7 [shelly] Fix state check when Gen2 battery device is online on API request (#20562)
* Do not check RPC connection status for battery devices

Signed-off-by: Markus Michels <markus7017@gmail.com>
2026-04-13 18:17:21 +02:00
9a71261cab [shelly] Do not create WebSocket for Gen2 battery devices (#20463)
* Do not create WS connection for Gen2 battery devices

Signed-off-by: Markus Michels <markus7017@gmail.com>
Co-authored-by: Ravi Nadahar <nadahar@rediffmail.com>
2026-04-06 22:43:05 +02:00
93fdd43add [shelly] Sync access to ShellyDeviceStats (thread safety) (#20445)
* * Sync access to ShellyDeviceStats (use AtomicInteger/Long for stats
values)

Signed-off-by: Markus Michels <markus7017@gmail.com>
Co-authored-by: Ravi Nadahar <nadahar@rediffmail.com>
2026-03-26 23:15:40 +01:00
Markus MichelsandGitHub 33e81028d3 Hotfix for handler factory (broke main branch) (#20395)
Signed-off-by: Markus Michels <markus7017@gmail.com>
2026-03-17 20:51:19 +01:00
05e5c563b6 [shelly] WebSocket keep alive for Gen2+ devices staying always connected (#20268)
* Rudimentary refactoring to let WebSocketClient share lifecycle with the ThingHandler

Signed-off-by: Markus Michels <markus7017@gmail.com>
Co-authored-by: Ravi Nadahar <nadahar@rediffmail.com>
2026-03-15 22:13:55 +01:00
Markus MichelsandGitHub 2eac006e70 [shelly] Fix "duplicate id" in device log (#20248)
Signed-off-by: Markus Michels <markus7017@gmail.com>
2026-03-05 21:47:50 +01:00
Markus MichelsandGitHub a84428f159 [shelly] Fix NullPointerException for PM Mini updates (#19894)
Signed-off-by: Markus Michels <markus7017@gmail.com>
2026-01-22 23:37:40 +01:00
22d66387ad [shelly] Refactor ShellyManagerCache cleanup (#19969)
* Do not create a thread to cleanup the ShellyManagerCache

Signed-off-by: Markus Michels <markus7017@gmail.com>
Co-authored-by: Ravi Nadahar <nadahar@rediffmail.com>
2026-01-06 21:52:43 +01:00
Markus MichelsandGitHub dc114bf853 Fix Shelly Manager on non-relay Gen1 OTA upload (#19643)
Signed-off-by: Markus Michels <markus7017@gmail.com>
2025-11-15 12:34:33 +01:00
Markus MichelsandGitHub 3034465f6c [shelly] Add support for BLU Wallswitch 4, RC Button 4, Remote, Tough ZB, H&T ZB, BLU Distance (#19097)
Signed-off-by: Markus Michels <markus7017@gmail.com>
2025-09-09 22:22:48 +02:00
Markus MichelsandGitHub 0e37ae1ed2 [shelly] Fix script upload - don't delete Non-OH scripts (#19231)
Signed-off-by: Markus Michels <markus7017@gmail.com>
2025-08-26 21:18:40 +02:00
Markus MichelsandGitHub 761836dca3 [shelly] Refactor BLU support (#19170)
* Refactoring BLU support as basis for adding new BLU device types

* Completely refactored, supports decoding of all BTHome sensor id and is
the basis to add more BLU devices by an upcoming PR.

Signed-off-by: Markus Michels <markus7017@gmail.com>
2025-08-22 19:51:41 +02:00
Markus MichelsandGitHub 2a1ee509e9 [shelly] Add support for Shelly Pro 3EM-3CT63 and Pro 3EM-400 (#18952)
Signed-off-by: Markus Michels <markus7017@gmail.com>
2025-08-14 21:34:32 +02:00
Markus MichelsandGitHub 0d28575470 Add support for Shelly Pro 1UL and Pro 1PMUL (#19137)
Signed-off-by: Markus Michels <markus7017@gmail.com>
2025-08-13 08:14:51 +02:00
Markus MichelsandGitHub 294cfc4963 [shelly] Refactor device definitions (#19093)
* Move all device / thing related definitoons to class ShellyDevices.
Device Profile initialization is now based THING_TYPE_CLASSES, some unit
tests fixed.

* The BLU Gateway is a regular W-LAN device, has the Gen 2 API and acts as
a gateway for the BLU devices. BLUGWxx was renamed to PLUSBLUGWxx to
make it clear and moved the declarations under the the Shelly Plus
series, removed it from the BLU_SENSOR group

* group GROUP_MINI_THING_TYPES added, group GROUP_LIGHT_THING_TYPES is
build from sub-groups, SUPPORTED_THING_TYPES uses GROUP_xxx and adds
only remaining thing types to improve maintainability

Signed-off-by: Markus Michels <markus7017@gmail.com>
2025-08-06 11:12:51 +02:00
Markus MichelsandGitHub bdcde5a1ef [shelly] Use thing type shellyplusht for Shelly Plus HT Gen3 (#18943)
* Thing type shellyplushtg3 removed, instead it will be mapped to
shellyplusht

Signed-off-by: Markus Michels <markus7017@gmail.com>
2025-07-26 09:06:41 +02:00
Markus MichelsandGitHub 088f525fc4 Fix profile.isUNI initialization for Plus UNI (#18941)
Signed-off-by: Markus Michels <markus7017@gmail.com>
2025-07-13 21:36:02 +02:00
Markus MichelsandGitHub 491ef7f09e [shelly] Add support for Gen4 devices (#18782)
Signed-off-by: Markus Michels <markus7017@gmail.com>
2025-07-13 00:56:54 +02:00
Markus MichelsandGitHub 7e547593bb Rename thing type shellypro2-relay< to shellypro to match the refactores (#18931)
thing discovery.

Signed-off-by: Markus Michels <markus7017@gmail.com>
2025-07-12 12:28:52 +02:00
Markus MichelsandGitHub 3af9356916 [shelly] Fix Shelly Pro 4PM discovery, Pro 2 initialization, thing init for unknown thing (#18902)
Signed-off-by: Markus Michels <markus7017@gmail.com>
2025-07-12 02:35:37 +02:00
Markus MichelsandGitHub fbda625914 [shelly] Work around firmware 1.6.1/1.6.2/1.7beta bugs (#18797)
* Firmware 1.6.1 does not provide the component id on NotifyStatus updates
(id value = null). The change provides a fallback if id==null as well as
additional safety checks.

Signed-off-by: Markus Michels <markus7017@gmail.com>
2025-07-05 00:27:40 +02:00
Markus MichelsandGitHub b3893bf8f8 [shelly] Fix support for Shelly Plug US (#18775)
* Fix Shelly Plug US: This is a Gen2 device, but the service name is
missing the "plus" - shellyplugus instead of shellyplusplugus. As a
result the thing uses the Gen1 API, which does not work.

Signed-off-by: Markus Michels <markus7017@gmail.com>
2025-06-12 21:02:55 +02:00
Markus MichelsandGitHub fd1236081d [shelly] Fix Shelly Plus 2PM discovery in Roller/Cover mode (#18790)
Signed-off-by: Markus Michels <markus7017@gmail.com>
2025-06-11 08:17:46 +02:00
Markus MichelsandGitHub 77e4d7fad5 [shelly] Fix for Shelly Pro 1CB (#18724)
* Add support for Shelly Pro 1CB (should also work for 2CB and 4CB)

Signed-off-by: Markus Michels <markus7017@gmail.com>
2025-05-30 09:22:16 +02:00
Markus MichelsandGitHub 4e2278d3e0 [shelly] Add support for Pro 1CB (#18611)
* Add support for Shelly Pro 1CB (should also work for 2CB and 4CB)

Signed-off-by: Markus Michels <markus7017@gmail.com>
2025-04-29 22:21:08 +02:00
Markus MichelsandGitHub 04c4085c1b [shelly] Add support for Shelly BLU Gateway Gen3 (#18174)
* Support for Shelly BLU Gateway Gen3

Signed-off-by: Markus Michels <markus7017@gmail.com>
2025-04-25 22:40:23 +02:00
Markus MichelsandGitHub 28b250911c Signed-off-by: Markus Michels <markus7017@gmail.com> (#18167) 2025-01-23 19:53:18 +01:00
Markus MichelsandGitHub e36dd482f7 Signed-off-by: Markus Michels <markus7017@gmail.com> (#18165) 2025-01-23 18:40:09 +01:00
Markus MichelsandGitHub f486b87f57 [shelly] Re-Add/Fix Shelly Plus UNI support (#17816)
* Re-Add/Fix Shelly Plus UNI support

Signed-off-by: Markus Michels <markus7017@gmail.com>
2025-01-20 21:00:29 +01:00
Markus MichelsandGitHub fe0b1f8a20 [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>
2024-08-04 21:18:18 +02:00
Markus MichelsandGitHub 8c29b5973e [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>
2024-08-02 23:14:38 +02:00
Markus MichelsandGitHub 077cea0e74 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>
2024-07-30 14:04:37 +02:00
Markus MichelsandGitHub d5586c6091 fixes #17121 (BLU Gateway), #17120 (NPE in cover mode) (#17122) 2024-07-25 09:20:08 +02:00
Markus MichelsandGitHub b123863d59 [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>
2024-07-17 00:47:05 +02:00
7755681749 [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>
2024-07-09 07:36:21 +02:00
Markus MichelsandGitHub ab385ed2f3 Fixes #16990 - Gen1 nbo longer initializes when defined in .things (#17009)
Signed-off-by: Markus Michels <markus7017@gmail.com>
2024-07-07 09:48:51 +02:00
Markus MichelsandGitHub f79a2dd7f0 [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>
2024-05-28 21:48:56 +02:00
Markus MichelsandGitHub 7a32f4e97d [shelly] Support for Shelly Plus HT Gen3 (#16625)
Signed-off-by: Markus Michels <markus7017@gmail.com>
2024-05-11 23:30:06 +02:00
Markus MichelsandGitHub afc6d949e8 [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>
2024-03-31 10:27:47 +02:00
Markus MichelsandGitHub 51109f4d95 [shelly] Support for Shelly BLU H&T (#16413)
* Support for Shelly BLU H&T added

Signed-off-by: Markus Michels <markus7017@gmail.com>
2024-02-18 08:59:19 +01:00
Markus MichelsandGitHub 4ca013d99b [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>
2024-02-17 15:36:20 +01:00
Markus MichelsandGitHub a2899177b2 Re-adding missing Plus10V to list of supported things (#16391)
Signed-off-by: Markus Michels <markus7017@gmail.com>
2024-02-09 22:52:43 +01:00
Markus MichelsandGitHub 970b4d3a8f Fix check to avoid crash (#16371)
Signed-off-by: Markus Michels <markus7017@gmail.com>
2024-02-05 19:35:30 +01:00
Markus MichelsandGitHub 3fb5e66eb1 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>
2024-02-04 17:17:59 +01:00
Markus MichelsGitHubmarkus7017 <markus7017@gmail..com>
bed592c3a4 [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>
2024-01-27 21:58:44 +01:00
Markus MichelsandGitHub 9e1f87db86 [shelly] improved logging on WebSocket connection problems (#16303)
* Improve logging on WebSocket connection problems

Signed-off-by: Markus Michels <markus7017@gmail.com>
2024-01-19 21:58:18 +01:00
Markus MichelsGitHubmarkus7017 <markus7017@gmail..com>
511244ea2b make blu gw script more rebust on startup (#16304)
Signed-off-by: Markus Michels <markus7017@gmail.com>
Co-authored-by: markus7017 <markus7017@gmail..com>
2024-01-19 10:53:46 +01:00
Markus MichelsandGitHub a6f9adf6ec 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
2024-01-18 22:05:22 +01:00
Markus MichelsandGitHub a4da986330 [shelly] Support for Plus Dimmer 10v (#15950)
* Implements #15949: Plus Dimmer 10v added
* category DimmableLight does not exist; README updated

---------

Signed-off-by: Markus Michels <markus7017@gmail.com>
2023-11-26 00:27:03 +01:00
Markus MichelsandGitHub a13fd80bfe [shelly] Misc changes (small fixes, log improvements, hardened leak prevention on (#15922)
* Misc changes (same fixes, log improvements, hardened leak prevention on
exceptions)

---------

Signed-off-by: Markus Michels <markus7017@gmail.com>
2023-11-25 09:46:22 +01:00
Markus MichelsandGitHub a535caa13c [shelly] BLU Motion, optimize ShellyManager for BLU devices (#15401)
Signed-off-by: Markus Michels <markus7017@gmail.com>
2023-11-18 21:50:10 +01:00
Markus MichelsandGitHub 45786fa12c [shelly] Fix Gen2 auth, improved security for Gen1 auth, improved discovery (#15898)
Signed-off-by: Markus Michels <markus7017@gmail.com>
2023-11-18 16:28:44 +01:00
Markus MichelsandGitHub beade55ca6 [shelly] Fix resource leak, BLU script installation, TRV init, NPE on IPv6 mDNS discovery (#15798)
* Fix resource leak when discovery handling failed and NPE when a IPv6
address is reported.
* remove callApi(request/innerRequest from Shelly1HttpApi, which changes
to callApi/httpRequest in ShellyHttpCLient.

Signed-off-by: Markus Michels <markus7017@gmail.com>
2023-11-13 19:37:04 +01:00
Markus MichelsandGitHub f6e750a5ff [shelly] Fix Plus/Pro Auth support (#15284)
* Reimplement Auth Digist to return response as http header field instead
of being part of post data; avoid sending Basic Auth for Gen2 and
/shelly

Signed-off-by: Markus Michels <markus7017@gmail.com>
2023-07-27 15:41:32 +02:00
Markus MichelsandGitHub 00da6457f0 fix relay id for devices with more than 1 power meter, fix (#15247)
initialization if device doesn't support scripts (Pro4); fix resetMeter
for EM50 (has 2 power meters); removed channel sensors#open; removed
device#voltage updates for Plus/Pro, needs to be verified

Signed-off-by: Markus Michels <markus7017@gmail.com>
2023-07-16 14:38:40 +02:00
Markus MichelsandGitHub bfbbf3504f [shelly] Add support for Shelly Plus Mini series, Pro EM-50 and various bug fixes (#15205)
* Shelly BLU support, various fixes
* Shelly Dimmer US added
* Reference to org.eclipse.jetty.websocket updated to 9.4.50.v20221201
* Support for Shelly Wall Display added
* Fixed #15052: channel totalKWH and totalRetruned: correct value is kw/h
(API value needs to be converted from Watt/Min to kw/h)
* Regular power meter returns Watt/Min, the EM/3EM meter returns W/h; this
needs to be handled differently
* Gen2 power meter returns Watt, which needs to be converted to W/h
(and then gets converted to kw&/h for the channel update)
* bug fixes around channel creation, some xml channel declarations fixed
* Support for 1Mini, 1PM Mini and PM Mini added
* Avoid NPE for devices having relay(s), but no meter (like Pro 2); README
updated
* Shelly Pro 3EM-50 added; fixes #15151, #15152 and more
* fix #15218 (only 1 device#resetTotals channel)
* Fix Pro EM50 (it's not a 3EM-50): thing type name is now shellyproem50,
use EM1DataDeleteAllData method rather then EMDataDeleteAllData
* <connection>local</connection> added to addon.xml
* channel group names for i4 fixed, Plus-Roller now has voltage

Signed-off-by: Markus Michels <markus7017@gmail.com>
2023-07-14 21:59:45 +02:00
Markus MichelsandGitHub 5bea9bcfdf [shelly] Add support for Shelly Wall Dimmer US and Wall Display (#15051)
Signed-off-by: Markus Michels <markus7017@gmail.com>
2023-07-08 17:05:49 +02:00
Markus MichelsandGitHub 631148320f [shelly] Add support for Shelly BLU series of devices (#15031)
* support for Pro 3EM (WIP)
* Support for Plug-S and Smoke added
* new channel resetTotals for emeters, new channel sensor#mute for Smoke
* Validate Temp reported by CoAP before updating channel, ignore 999
* Add support for Shelly BLU Button and Door/Window

Signed-off-by: Markus Michels <markus7017@gmail.com>
2023-06-26 16:37:50 +02:00
Markus MichelsandGitHub 1f774db959 [shelly] Support for Plus Smoke, Plus Plug-S/IT/UK/US, Plus Dimmer US, Pro 3EM; fix Gen1 sensor initialization (#14532)
* support for Pro 3EM (WIP)
* Support for Plug-S and Smoke added
* new channel resetTotals for emeters, new channel sensor#mute for Smoke
* Validate Temp reported by CoAP before updating channel, ignore 999
* Support device temp for Pro3, fix emeter.current rouding on 1 instead of
3 deciaml digits, check for reinit before executing channel command,
avoid NPE in Shelly Manaher
* Fix NPE in Shelly Manager with Plus/Pro devices (not having all Gen1
settings initialized)
* Avoid NPE if device time is not set; check thing stopping state to
prevent "handler already disposed"

Signed-off-by: Markus Michels <markus7017@gmail.com>
2023-05-24 14:20:11 +02:00
8f972362c3 [shelly] Plus 1/1PM Add-On support; fix roller pos on open/close state (#13520)
* Added #13493 Plus 1/1PM addon support; Fixed #13515 pos for roller in
open/close state; various null warnings removed; README updated

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

* digitalInput, analogInput and voltage added for Add-On; README updated

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

* shelly2-roller re-added (wrong assumption that Shelly 2 doesn't support
roller mode, because it has no power meter)

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

* Initialization for Californium 2.7.3 fixed (no multicast packets where
received)

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

* Analogous input support for Plus Addon changed; Allterco made a format
change in the beta firmware

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

* changes applied

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

* README updated; Shelly Plus addon handling adjusted to latest firmware
(before was beta)

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

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

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

* fix JSON for Shelly1 - ext_switch_enable is a boolean, not an int

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

Signed-off-by: Markus Michels <markus7017@gmail.com>
Signed-off-by: markus7017 <markus7017@gmail.com>
Signed-off-by: Fabian Wolter <github@fabian-wolter.de>
Co-authored-by: Fabian Wolter <github@fabian-wolter.de>
2022-12-05 08:51:31 +01:00
Markus MichelsandGitHub 6835c278e1 [shelly] Add Plus/Pro support, some bugfixes (#13439)
* Plus/Pro support and some refactoring, bugfixes

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

* Review changes applied

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

* review changes

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

Signed-off-by: Markus Michels <markus7017@gmail.com>
2022-10-04 08:00:50 +02:00
Markus MichelsandGitHub 5b038786d5 [shelly] Improved TRV profile handling (selectable list via dynamic state options (#13227)
provider); some improvements & fixes

Signed-off-by: Markus Michels <markus7017@gmail.com>
2022-08-09 10:04:07 +02:00
Markus MichelsandGitHub 0d73ed8150 [shelly] Minor bugfixes from hardening (#13200)
* Minor bugfixes from hardening

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

* review changes applied

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

* controlProfile is type String

Signed-off-by: Markus Michels <markus7017@gmail.com>
2022-08-04 08:42:29 +02:00
Markus MichelsandGitHub 8aa88bc3d9 This PR is just to reduce the delta before I create the PR for Plus/Pro (#13176)
support. In general Gen1 and Gen2 devices have a total different API so
I spliced the API code in version/gen 1 and 2. This means restructuring
the classes (e.h. api+coap became api+api1+api2) and therefor dummy
changes in the code, e.g. import statements. This creates a lot of
overhead and separating those "dummy changes" simplifies merging the
actual PR.

Signed-off-by: Markus Michels <markus7017@gmail.com>
2022-07-29 19:48:10 +02:00
Markus MichelsandGitHub 4f8c1722a2 [shelly] Auto-numbering for channel labels & bugfixes (#13066)
* - new device types added
- min firmware set to 1.8.2
- unit for gas concentration fixed (ppm)
- Auto numbering on channel labels for groups with multiple instances
(add sequence suffix)
- API and Thing interfaces defined to restrict access to those classes
- fix on TRV boost update via CoAP
- fix for status.temperature and status.uptime, internalTemp channels
- don’t use meter timestamp if not present (RGBW2)
- low battery indicator for sensor devices fixed
- device detection based on model/type improved
- various messages/translations fixed/improved
- README updated (missing thing types added)

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

* missing properties added

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

* minor changes

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

* markdown fixed

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

* review changes applied

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

* shelly_de.properties restored from main branch

Signed-off-by: Markus Michels <markus7017@gmail.com>
2022-07-19 19:37:06 +02:00
Markus MichelsandGitHub 49a82c284e [onkyo] HT-RC440 added (#13082)
* HT-RC440 added

Signed-off-by: Markus Michels <markus7017@gmail.com>
2022-07-17 16:48:00 +02:00
Markus MichelsandGitHub 29a45ef1ab Fix #12381 (#12843)
Signed-off-by: markus7017 <markus7017@gmail.com>
Signed-off-by: Markus Michels <markus7017@gmail.com>
2022-06-05 12:03:14 +02:00
Markus MichelsandGitHub 6c78b4a63d Fixes CoAP parsing problem (#12831) (#12834)
Signed-off-by: markus7017 <markus7017@gmail.com>
Signed-off-by: Markus Michels <markus7017@gmail.com>
2022-05-28 11:55:58 +02:00
Markus MichelsandGitHub 5291d7ddc9 [shelly] Prepare for CrowdIn translations, bug fixes (#12822)
* Prepare for CrowdIn translations, includes translation of binding
settings; fix #12815 endless initialization; fix #12535 invalid log
messages

Signed-off-by: markus7017 <markus7017@gmail.com>
Signed-off-by: Markus Michels <markus7017@gmail.com>
2022-05-28 10:33:40 +02:00
Markus MichelsandGitHub 532a03375a [shelly] TRV+Motion2 support, various fixes & enhancements (#12325)
* TRV support, various fixes & enhancements

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

* #12236 fixed

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

* TRV support competed

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

* Complete TRV support

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

* - TRV polling optimized

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

* # WARNING: head commit changed in the meantime

- Shelly Motion 2 support
- TRV polling optimized
- channel creatiom of ledStatusLed fixed if no ledPowerLed was created
- Handling of sensor.status_error fixed when = no error (0/"0")
- channel timerActive was missing for Dimmer 1/2
- Motion timestamp channels were 1h off
- exception with data format while initializing a bulb fixed
- README updated

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

* - added new TRV value boost minute, polling remnoved on valve position
changes (req. latest firmware)
- fix: don't create accu channels for roller
- fix: fix Id for some status messages

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

* log types revised

Signed-off-by: Markus Michels <markus7017@gmail.com> (github: markus7017)
Signed-off-by: Markus Michels <markus7017@gmail.com>
2022-04-18 19:32:16 +02:00
Markus MichelsandGitHub 937a331f67 [magentatv] Fix: Start UPNP listener to catch power off button, thing id in log (#11238)
* Fix: Start UPNP listener to catch power off button, thing id in log
messages

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

* comment removed

Signed-off-by: Markus Michels <markus7017@gmail.com>
2021-10-02 23:02:28 +02:00
Markus MichelsandGitHub 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
Markus MichelsandGitHub a2084e746a [shelly] Vibration event for DW2 (#10618)
* Adapted to new checkstyle

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

* stylecheck cnages; fix CoIoT update for vibration, url encode user+pw on
"set login credentials"

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

* #10617 Vibration event added for DW2

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

* brackets

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

* some unused stuff/code removed

Signed-off-by: Markus Michels <markus7017@gmail.com>
2021-05-09 20:21:35 +02:00
Markus MichelsandGitHub 1783017be4 [shelly] New Shelly Manager (more detailed information, status, integrated firmware upgrade) (#10276)
* This PR brings in the Shelly Manager, check doc/ShellyManager.md for
additional information.
* Restart Device in Manager when CoIoT Mode has changed
* Updated pattern to extract version info (thanks @fwolter), CoIoT warning
for non-Motion devices fixed; AdvancedUsers.md now refers to Shelly
Manager
* Modified message when beta is detected (reference to 1.5.7 release build
confuses users running 1.10 beta)
* Fix for Enable/Disable AP roaming
* Handle button events also in detached mode, README updated
* Ignore inconsistent version string for initial 1.10 releases
* removed display of firmware id (there are various formats and it has
no value)

Signed-off-by: Markus Michels <markus7017@gmail.com>
2021-03-31 22:42:33 +02:00
Markus MichelsandGitHub c582dda1d5 [magentatv] Adapt to new Telekom OAuth flow (required to retrieve the userId) (#10267)
Signed-off-by: Markus Michels <markus7017@gmail.com>
2021-03-16 21:54:55 +01:00
Markus MichelsandGitHub 3af0392724 [shelly] Improved Motion Support, Support CoIoT Unicast, fixes (#10220)
* New feature: Shelly Manager

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

* Removed Shelly Manager to reduce PR size (will be another PR)

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

* CoIoT initialization handles new COIOT options for the device,
sensorSleepTime is now adadvanced; Roller set position 0/100 is mapped
to UP/DOWN; Reference to Shelly Manager removed from README

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

* Nullpointer check added on settings.coiot (4Pro has this null)

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

* README updated

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

* Use regex to extract fw version from string, check fw version to detect
restarted, README updated, moved channel sensorSleepTime from group
device to sensors

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

* Review changes

Signed-off-by: Markus Michels <markus7017@gmail.com>
2021-03-03 17:43:02 +01:00
Markus MichelsandGitHub fd1f7ebe75 [shelly] Add Shelly Motion, minor improvements (#10054)
* Support for Shelly Motion, some minotr improvements, README updated

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

* minor changes

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

* Bug fixes from hardening

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

* review changes applied

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

* review change

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

* review changes, fix creations of sensors#motion and device#externalPower
for H%T; moved images/uiroller*.png to doc/images

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

* missing in last fix

Signed-off-by: Markus Michels <markus7017@gmail.com>
2021-02-23 09:48:13 +01:00
Markus MichelsandGitHub c4a3b1e6ba [shelly] Improved documentation, support for UNI, 1L, Color Bulb (#9508)
* This PR merges the 2.5 code base with new features, a bunch of bug fixes
and improved documentation. Parts of the code has been re-factored and
vaious issues are fixed/optimized along the way.

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

* Minor fixed, support for Shelly Color Bulb, Shelly Motion

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

* Review changes applied

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

* review change applied

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

* review changes

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

* Review changes

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

* review changes

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

* README updated

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

* review change

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

* review change

Signed-off-by: Markus Michels <markus7017@gmail.com>
2021-02-03 22:25:19 +01:00
Markus MichelsandGitHub 6b888b3492 [gree] Remove reference to PaperUI (#9411)
Signed-off-by: Markus Michels <markus7017@gmail.com>
2020-12-19 17:59:47 +01:00
Markus MichelsandGitHub 712f1163de [shelly] Improved documentation and first use case description (#9390)
Signed-off-by: Markus Michels <markus7017@gmail.com>
2020-12-19 15:43:34 +01:00
Markus MichelsandGitHub d24decb487 [magentatv] Fix port on MR400 discovery (reports 49153, has to be 49152) (#9421)
Signed-off-by: Markus Michels <markus7017@gmail.com>
2020-12-18 12:32:09 -08:00
Markus MichelsandGitHub 3ea3570306 [gree] Adaption to OH3 (representationProperty added to thing definition) (#8658)
Signed-off-by: Markus Michels <markus7017@gmail.com>
2020-10-04 11:37:48 -07:00
Markus MichelsandGitHub 6921f8119c [magentatv] Adapted to OH 3.0 (#8657)
* add representationProperty to thing definition to make it OH3 compatible
* adapted to OH3 (representationProperty added to thing definition)
* as always...spotless:apply :-(

Signed-off-by: Markus Michels <markus7017@gmail.com>
2020-10-04 11:36:44 -07:00
Markus MichelsandGitHub ff4d97eb2a [shelly] Adaption to OH3, Shelly Plug US, minor fixes (#8642)
* OH3 adaption - fixes small issues when running on OH3
* #8612: Fix total consumption for RGW2+Roller
* #8492: Shelly Plug US
* 2 more immediate = true catched and removed
* spotless applied

Signed-off-by: Markus Michels <markus7017@gmail.com>
2020-10-04 09:39:59 -07:00