From 918f4dc6a3a85d70c151dc91cf1bb3524ff61fbf Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 21 Feb 2024 21:56:14 +0100 Subject: [PATCH 1/9] test: fix error spam --- FHEM/73_GardenaSmartBridge.pm | 7 +++++++ controls_GardenaSmartDevice.txt | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/FHEM/73_GardenaSmartBridge.pm b/FHEM/73_GardenaSmartBridge.pm index fe21726..dd1d589 100644 --- a/FHEM/73_GardenaSmartBridge.pm +++ b/FHEM/73_GardenaSmartBridge.pm @@ -1059,6 +1059,13 @@ sub WriteReadings { if ( ref($v) eq 'ARRAY' ); #$v = encode_utf8($v); + Log3 $name, 4, "Gardena DEBUG DEBUG DEBUG stage 1 ".$decode_json->{abilities}[0]{properties}[$properties{name} if ( $decode_json->{abilities}[0]{properties}[$properties] + {name} !~ /ethernet_status|wifi_status/ ); + Log3 $name, 4, "Gardena DEBUG DEBUG DEBUG stage 2".$t if ( $decode_json->{abilities}[0]{properties}[$properties] + {name} !~ /ethernet_status|wifi_status/ ); + Log3 $name, 4, "Gardena DEBUG DEBUG DEBUG stage 3".$v if ( $decode_json->{abilities}[0]{properties}[$properties] + {name} !~ /ethernet_status|wifi_status/ ); + readingsBulkUpdateIfChanged( $hash, $decode_json->{abilities}[0]{properties}[$properties] diff --git a/controls_GardenaSmartDevice.txt b/controls_GardenaSmartDevice.txt index a83fba6..03746be 100644 --- a/controls_GardenaSmartDevice.txt +++ b/controls_GardenaSmartDevice.txt @@ -1,2 +1,2 @@ -UPD 2023-11-28_08:37:01 48890 FHEM/73_GardenaSmartBridge.pm -UPD 2023-11-28_08:49:14 126386 FHEM/74_GardenaSmartDevice.pm +UPD 2024-02-21_21:54:03 49548 FHEM/73_GardenaSmartBridge.pm +UPD 2024-01-24_21:11:27 126386 FHEM/74_GardenaSmartDevice.pm From 2c94924e974fd08f872728872954287a3e920248 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 21 Feb 2024 21:58:05 +0100 Subject: [PATCH 2/9] fix: push version --- FHEM/73_GardenaSmartBridge.pm | 2 +- controls_GardenaSmartDevice.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/FHEM/73_GardenaSmartBridge.pm b/FHEM/73_GardenaSmartBridge.pm index dd1d589..cb62b67 100644 --- a/FHEM/73_GardenaSmartBridge.pm +++ b/FHEM/73_GardenaSmartBridge.pm @@ -1568,7 +1568,7 @@ sub DeletePassword { ], "release_status": "stable", "license": "GPL_2", - "version": "v2.6.1", + "version": "v2.6.2", "author": [ "Marko Oldenburg " ], diff --git a/controls_GardenaSmartDevice.txt b/controls_GardenaSmartDevice.txt index 03746be..987c56c 100644 --- a/controls_GardenaSmartDevice.txt +++ b/controls_GardenaSmartDevice.txt @@ -1,2 +1,2 @@ -UPD 2024-02-21_21:54:03 49548 FHEM/73_GardenaSmartBridge.pm +UPD 2024-02-21_21:57:50 49548 FHEM/73_GardenaSmartBridge.pm UPD 2024-01-24_21:11:27 126386 FHEM/74_GardenaSmartDevice.pm From 790d5206b6e3f622440a35109aa866ba1c175e75 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 21 Feb 2024 22:00:02 +0100 Subject: [PATCH 3/9] fix: fix --- FHEM/73_GardenaSmartBridge.pm | 2 +- controls_GardenaSmartDevice.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/FHEM/73_GardenaSmartBridge.pm b/FHEM/73_GardenaSmartBridge.pm index cb62b67..6c00470 100644 --- a/FHEM/73_GardenaSmartBridge.pm +++ b/FHEM/73_GardenaSmartBridge.pm @@ -1059,7 +1059,7 @@ sub WriteReadings { if ( ref($v) eq 'ARRAY' ); #$v = encode_utf8($v); - Log3 $name, 4, "Gardena DEBUG DEBUG DEBUG stage 1 ".$decode_json->{abilities}[0]{properties}[$properties{name} if ( $decode_json->{abilities}[0]{properties}[$properties] + Log3 $name, 4, "Gardena DEBUG DEBUG DEBUG stage 1 ".$decode_json->{abilities}[0]{properties}[$properties]{name} if ( $decode_json->{abilities}[0]{properties}[$properties] {name} !~ /ethernet_status|wifi_status/ ); Log3 $name, 4, "Gardena DEBUG DEBUG DEBUG stage 2".$t if ( $decode_json->{abilities}[0]{properties}[$properties] {name} !~ /ethernet_status|wifi_status/ ); diff --git a/controls_GardenaSmartDevice.txt b/controls_GardenaSmartDevice.txt index 987c56c..439d528 100644 --- a/controls_GardenaSmartDevice.txt +++ b/controls_GardenaSmartDevice.txt @@ -1,2 +1,2 @@ -UPD 2024-02-21_21:57:50 49548 FHEM/73_GardenaSmartBridge.pm +UPD 2024-02-21_21:59:56 49549 FHEM/73_GardenaSmartBridge.pm UPD 2024-01-24_21:11:27 126386 FHEM/74_GardenaSmartDevice.pm From 579f63299058a27c280a20509c3b7ef960c27a30 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 23 Feb 2024 22:52:25 +0100 Subject: [PATCH 4/9] test: catch null value --- FHEM/73_GardenaSmartBridge.pm | 1 + controls_GardenaSmartDevice.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/FHEM/73_GardenaSmartBridge.pm b/FHEM/73_GardenaSmartBridge.pm index 6c00470..cd0d384 100644 --- a/FHEM/73_GardenaSmartBridge.pm +++ b/FHEM/73_GardenaSmartBridge.pm @@ -1059,6 +1059,7 @@ sub WriteReadings { if ( ref($v) eq 'ARRAY' ); #$v = encode_utf8($v); + $v = ' ' if (!defined $v); Log3 $name, 4, "Gardena DEBUG DEBUG DEBUG stage 1 ".$decode_json->{abilities}[0]{properties}[$properties]{name} if ( $decode_json->{abilities}[0]{properties}[$properties] {name} !~ /ethernet_status|wifi_status/ ); Log3 $name, 4, "Gardena DEBUG DEBUG DEBUG stage 2".$t if ( $decode_json->{abilities}[0]{properties}[$properties] diff --git a/controls_GardenaSmartDevice.txt b/controls_GardenaSmartDevice.txt index 439d528..de89374 100644 --- a/controls_GardenaSmartDevice.txt +++ b/controls_GardenaSmartDevice.txt @@ -1,2 +1,2 @@ -UPD 2024-02-21_21:59:56 49549 FHEM/73_GardenaSmartBridge.pm +UPD 2024-02-23_22:52:08 49596 FHEM/73_GardenaSmartBridge.pm UPD 2024-01-24_21:11:27 126386 FHEM/74_GardenaSmartDevice.pm From 68f66c84308d6a999933550c6a661d4b082cf3ab Mon Sep 17 00:00:00 2001 From: Sebastian Date: Sun, 17 Mar 2024 20:58:13 +0100 Subject: [PATCH 5/9] test: new api start cmd --- FHEM/73_GardenaSmartBridge.pm | 6 +++--- FHEM/74_GardenaSmartDevice.pm | 20 ++++++++++---------- controls_GardenaSmartDevice.txt | 4 ++-- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/FHEM/73_GardenaSmartBridge.pm b/FHEM/73_GardenaSmartBridge.pm index fe21726..87964c1 100644 --- a/FHEM/73_GardenaSmartBridge.pm +++ b/FHEM/73_GardenaSmartBridge.pm @@ -1315,7 +1315,7 @@ sub createHttpValueStrings { } # park until next schedules or override elsif (defined($abilities) && defined($payload) - && $abilities eq 'mower_timer' ) + && $abilities eq 'mower' ) { my $valve_id; $method = 'PUT'; @@ -1325,7 +1325,7 @@ sub createHttpValueStrings { . $deviceId . '/abilities/' . $abilities - . '/properties/mower_timer'; + . '/commands/manual_start'; } elsif (defined($abilities) @@ -1561,7 +1561,7 @@ sub DeletePassword { ], "release_status": "stable", "license": "GPL_2", - "version": "v2.6.1", + "version": "v2.6.2", "author": [ "Marko Oldenburg " ], diff --git a/FHEM/74_GardenaSmartDevice.pm b/FHEM/74_GardenaSmartDevice.pm index 7cff625..d80d4f2 100644 --- a/FHEM/74_GardenaSmartDevice.pm +++ b/FHEM/74_GardenaSmartDevice.pm @@ -324,8 +324,8 @@ sub Set { elsif ( lc $cmd eq 'parkuntilnexttimer' ) { $payload = '"name":"park_until_next_timer"'; if ( $mainboard_version > 10.30 ) { - $payload = '"properties":{"name":"mower_timer","value":0}'; - $abilities = 'mower_timer'; + $payload = '"mowerTimer":0,"startingPointDistance":null,"areaId":null'; + $abilities = 'mower'; } } elsif ( lc $cmd eq 'startresumeschedule' ) { @@ -339,13 +339,13 @@ sub Set { } } elsif ( lc $cmd eq 'startoverridetimer' ) { - $payload = '"name":"start_override_timer","parameters":{"duration":' - . $aArg->[0] * 60 . '}'; - if ( $mainboard_version > 10.30 ) { - $payload = '"properties":{"name":"mower_timer","value":' - . $aArg->[0] * 60 . '}'; - $abilities = 'mower_timer'; - } + # $payload = '"name":"start_override_timer","parameters":{"duration":' + # . $aArg->[0] * 60 . '}'; + # if ( $mainboard_version > 10.30 ) { + $payload = '"startingPointDistance":null,"areaId":null, "mowerTimer": ' + . $aArg->[0] * 60; + $abilities = 'mower'; + # } removed code < 10.30 api changes March 2024 } elsif ( lc $cmd eq 'startpoint' ) { @@ -2684,7 +2684,7 @@ sub SetPredefinedStartPoints { ], "release_status": "stable", "license": "GPL_2", - "version": "v2.6.1", + "version": "v2.6.2", "author": [ "Marko Oldenburg " ], diff --git a/controls_GardenaSmartDevice.txt b/controls_GardenaSmartDevice.txt index a83fba6..3c70c3a 100644 --- a/controls_GardenaSmartDevice.txt +++ b/controls_GardenaSmartDevice.txt @@ -1,2 +1,2 @@ -UPD 2023-11-28_08:37:01 48890 FHEM/73_GardenaSmartBridge.pm -UPD 2023-11-28_08:49:14 126386 FHEM/74_GardenaSmartDevice.pm +UPD 2024-03-17_20:57:21 48883 FHEM/73_GardenaSmartBridge.pm +UPD 2024-03-17_20:57:32 126450 FHEM/74_GardenaSmartDevice.pm From 72daa71dafb82aadacd75f29dac5e9b03eda506e Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 18 Mar 2024 10:15:25 +0100 Subject: [PATCH 6/9] fix: put to post --- FHEM/73_GardenaSmartBridge.pm | 3 +-- controls_GardenaSmartDevice.txt | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/FHEM/73_GardenaSmartBridge.pm b/FHEM/73_GardenaSmartBridge.pm index 87964c1..5894a88 100644 --- a/FHEM/73_GardenaSmartBridge.pm +++ b/FHEM/73_GardenaSmartBridge.pm @@ -1318,8 +1318,7 @@ sub createHttpValueStrings { && $abilities eq 'mower' ) { my $valve_id; - $method = 'PUT'; - + $uri .= '/devices/' . $deviceId diff --git a/controls_GardenaSmartDevice.txt b/controls_GardenaSmartDevice.txt index 3c70c3a..f85b761 100644 --- a/controls_GardenaSmartDevice.txt +++ b/controls_GardenaSmartDevice.txt @@ -1,2 +1,2 @@ -UPD 2024-03-17_20:57:21 48883 FHEM/73_GardenaSmartBridge.pm +UPD 2024-03-18_10:15:10 48866 FHEM/73_GardenaSmartBridge.pm UPD 2024-03-17_20:57:32 126450 FHEM/74_GardenaSmartDevice.pm From 443ecd777622369d970c0d17ddc89ac097e06e34 Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Thu, 28 Mar 2024 05:59:55 +0100 Subject: [PATCH 7/9] controls_GardenaSmartDevice.txt aktualisiert --- controls_GardenaSmartDevice.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controls_GardenaSmartDevice.txt b/controls_GardenaSmartDevice.txt index de89374..a453629 100644 --- a/controls_GardenaSmartDevice.txt +++ b/controls_GardenaSmartDevice.txt @@ -1,2 +1,2 @@ -UPD 2024-02-23_22:52:08 49596 FHEM/73_GardenaSmartBridge.pm -UPD 2024-01-24_21:11:27 126386 FHEM/74_GardenaSmartDevice.pm +UPD 2024-03-18_10:15:10 48866 FHEM/73_GardenaSmartBridge.pm +UPD 2024-03-17_20:57:32 126450 FHEM/74_GardenaSmartDevice.pm \ No newline at end of file From 74635dfd0a2d3b74f828620bb74c85392615db5b Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Thu, 28 Mar 2024 06:05:59 +0100 Subject: [PATCH 8/9] controls_GardenaSmartDevice.txt aktualisiert --- controls_GardenaSmartDevice.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controls_GardenaSmartDevice.txt b/controls_GardenaSmartDevice.txt index f85b761..a453629 100644 --- a/controls_GardenaSmartDevice.txt +++ b/controls_GardenaSmartDevice.txt @@ -1,2 +1,2 @@ UPD 2024-03-18_10:15:10 48866 FHEM/73_GardenaSmartBridge.pm -UPD 2024-03-17_20:57:32 126450 FHEM/74_GardenaSmartDevice.pm +UPD 2024-03-17_20:57:32 126450 FHEM/74_GardenaSmartDevice.pm \ No newline at end of file From 5138e6b3b01ea3417f817679467d690f6f30d0d9 Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Thu, 28 Mar 2024 12:41:42 +0100 Subject: [PATCH 9/9] docs: new CHANGELOG --- CHANGELOG.md | 50 +++++++++++++++++++++++---------- controls_GardenaSmartDevice.txt | 4 +-- 2 files changed, 37 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cb5100c..4165aef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,24 @@ -### test: smartdevice variable wintermode initializied Bridge consolidiert wifi/ethernet (HEAD -> patch_mucki) +### fix: closes #90 (HEAD -> patch-fix_div_with_attributes) +>Tue, 28 Nov 2023 08:52:33 +0100 + +>Author: Marko Oldenburg (fhemdevelopment@cooltux.net) + +>Commiter: Marko Oldenburg (fhemdevelopment@cooltux.net) + + + + +### fix: missing tree (origin/patch_mucki) +>Sun, 12 Nov 2023 19:47:49 +0100 + +>Author: Sebastian (em@ail.tld) + +>Commiter: Sebastian (em@ail.tld) + + + + +### test: smartdevice variable wintermode initializied Bridge consolidiert wifi/ethernet >Sun, 5 Nov 2023 21:52:24 +0100 >Author: Sebastian (em@ail.tld) @@ -8,7 +28,7 @@ -### test: fix initial variables (origin/patch_mucki) +### test: fix initial variables >Wed, 1 Nov 2023 21:04:39 +0100 >Author: Sebastian (em@ail.tld) @@ -78,7 +98,7 @@ -### feat: changelog (origin/patch_setExtention, patch_setExtention) +### feat: changelog >Thu, 2 Mar 2023 11:58:58 +0100 >Author: Sebastian (em@ail.tld) @@ -108,7 +128,7 @@ -### docs: add changelog file (tag: v2.6.0, origin/patch-changeVersion) +### docs: add changelog file (tag: v2.6.0, origin/patch-changeVersion, patch-changeVersion) >Tue, 10 Jan 2023 09:51:23 +0100 >Author: Marko Oldenburg (fhemdevelopment@cooltux.net) @@ -140,7 +160,7 @@ hooks for commit test and create changelog -### [translaten] - add commandref translation (origin/patch-fix_commandref_spell, patch-fix_commandref_spell) +### [translaten] - add commandref translation >Sun, 18 Sep 2022 08:52:43 +0200 >Author: Sebastian (em@ail.tld) @@ -160,7 +180,7 @@ hooks for commit test and create changelog -### [enhancement] - commandref (origin/patch-wc_rest_valve_and_additinal_commandref, patch-wc_rest_valve_and_additinal_commandref) +### [enhancement] - commandref >Tue, 6 Sep 2022 12:32:40 +0200 >Author: Sebastian (em@ail.tld) @@ -210,7 +230,7 @@ hooks for commit test and create changelog -### [fix] - upper/lower case (origin/patch-offline_status_startup_undefined, patch-offline_status_startup_undefined) +### [fix] - upper/lower case >Thu, 11 Aug 2022 14:25:19 +0200 >Author: Sebastian (em@ail.tld) @@ -500,7 +520,7 @@ hooks for commit test and create changelog -### readd lost setter webinterface (origin/patch-dev_merge_failed_electronic_pressure_pump, patch-dev_merge_failed_electronic_pressure_pump) +### readd lost setter webinterface >Wed, 13 Jul 2022 20:56:47 +0200 >Author: Sebastian (em@ail.tld) @@ -521,7 +541,7 @@ hooks for commit test and create changelog -### „FHEM/74_GardenaSmartDevice.pm“ ändern (origin/patch_electronic_pressure_pump_water_pump_name_mistake) +### „FHEM/74_GardenaSmartDevice.pm“ ändern >Tue, 12 Jul 2022 20:09:33 +0200 >Author: Sebastian Schwaz (sebastianschwarz@noreply@cooltux.net) @@ -741,7 +761,7 @@ hooks for commit test and create changelog -### [fix] - setter procedure (origin/patch_pressure_pump_setlist, patch_pressure_pump_setlist) +### [fix] - setter procedure >Wed, 29 Jun 2022 20:32:00 +0200 >Author: Sebastian (em@ail.tld) @@ -891,7 +911,7 @@ hooks for commit test and create changelog -### patch lono. eventuell recrusive readings einbauen. waterpump rechtschreibfehler mit fixed (origin/patch_lona, patch_lona) +### patch lono. eventuell recrusive readings einbauen. waterpump rechtschreibfehler mit fixed >Sat, 25 Jun 2022 12:58:59 +0200 >Author: Sebastian (em@ail.tld) @@ -1271,7 +1291,7 @@ hooks for commit test and create changelog -### lona (origin/patch_waterpump, patch_waterpump) +### lona >Tue, 17 May 2022 20:53:37 +0200 >Author: Sebastian (em@ail.tld) @@ -1661,7 +1681,7 @@ hooks for commit test and create changelog -### round minutes in irregation (origin/patch_water_control) +### round minutes in irregation >Tue, 12 Apr 2022 08:40:40 +0200 >Author: Sebastian (em@ail.tld) @@ -1801,7 +1821,7 @@ hooks for commit test and create changelog -### fix state (origin/patch_add_sensor2) +### fix state >Tue, 5 Apr 2022 09:23:34 +0200 >Author: Sebastian (em@ail.tld) @@ -1831,7 +1851,7 @@ hooks for commit test and create changelog -### fix ic24 (origin/patch_ic24_schedule) +### fix ic24 >Tue, 29 Mar 2022 16:35:58 +0200 >Author: Sebastian (em@ail.tld) diff --git a/controls_GardenaSmartDevice.txt b/controls_GardenaSmartDevice.txt index a453629..1f82f40 100644 --- a/controls_GardenaSmartDevice.txt +++ b/controls_GardenaSmartDevice.txt @@ -1,2 +1,2 @@ -UPD 2024-03-18_10:15:10 48866 FHEM/73_GardenaSmartBridge.pm -UPD 2024-03-17_20:57:32 126450 FHEM/74_GardenaSmartDevice.pm \ No newline at end of file +UPD 2024-03-28_12:39:18 49572 FHEM/73_GardenaSmartBridge.pm +UPD 2024-03-28_12:39:18 126450 FHEM/74_GardenaSmartDevice.pm