From e2b9ca1311f648f585ca6c7cf921e7ae5111a0ab Mon Sep 17 00:00:00 2001
From: Starkstrombastler
Date: Mon, 2 Sep 2024 21:15:40 +0000
Subject: [PATCH] 36_Shelly: added use Sub::Util
git-svn-id: https://svn.fhem.de/fhem/trunk@29122 2b470e98-0d58-463d-a4d8-8e2adae1ed80
---
fhem/CHANGED | 1 +
fhem/FHEM/36_Shelly.pm | 7 ++++---
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/fhem/CHANGED b/fhem/CHANGED
index 4bb856607..b8539be3a 100644
--- a/fhem/CHANGED
+++ b/fhem/CHANGED
@@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it
+ - bugfix: 36_Shelly: added package command: use Sub::Util
- bugfix: 38_netatmo: changed token refresh to internal reading
- feature: 70_PylonLowVoltage: new attr waitTimeBetweenRS485Cmd
- feature: 70_PylonLowVoltage: implement pylon groups
diff --git a/fhem/FHEM/36_Shelly.pm b/fhem/FHEM/36_Shelly.pm
index 0f19e0ff4..91e012f83 100644
--- a/fhem/FHEM/36_Shelly.pm
+++ b/fhem/FHEM/36_Shelly.pm
@@ -102,6 +102,7 @@
# 6.00 fix some details in commandref (german only)
# 6.00.1 fix: selection of readings for command 'set clear responsetimes' improved; Debug commands removed
# 6.00.2 fix: reading ble (bluetooth) may be set to disabled
+# 6.00.3 fix: use Sub::Util added
# to do roller: get maxtime open/close from shelly
# get status on stopp even when interval == 0
@@ -124,7 +125,7 @@ sub Log($$);
sub Shelly_Set ($@);
#-- globals on start
-my $version = "6.00.2 24.08.2024";
+my $version = "6.00.3 02.09.2024";
my $defaultINTERVAL = 60;
my $multiplyIntervalOnError = 1.0; # mechanism disabled if value=1
@@ -6489,7 +6490,7 @@ sub Shelly_HttpResponse($){
define <name> Shelly <IP address>[:port] [[user:]password]
Defines the Shelly device.
Notes:
- - This module needs the JSON and the HttpUtils package
+ - This module needs the JSON, the HttpUtils and the Sub::Util package
- In Shelly button, switch, roller or dimmer devices one may set URL values that are "hit" when the input or output status changes.
This is useful to transmit status changes arising from locally pressed buttons directly to FHEM by setting
@@ -7064,7 +7065,7 @@ sub Shelly_HttpResponse($){
Benutzername: nur bei Gen1:
Passwort: -->
Hinweise:
- - Dieses Modul benötigt die Pakete JSON und HttpUtils
+ - Dieses Modul benötigt die Pakete JSON, HttpUtils und Sub::Util
- Das Attribut
model wird automatisch gesetzt.
Für Shelly Geräte, welche nicht von diesem Modul unterstützt werden, wird das Attribut zu generic gesetzt.