From ee33a065561bccbaea475ffb6b8b64be72cb82a4 Mon Sep 17 00:00:00 2001 From: Ellert <> Date: Mon, 30 Jan 2023 23:45:22 +0000 Subject: [PATCH] AutomowerConnect(Device): add widget selectnumbers to Park and Start setter git-svn-id: https://svn.fhem.de/fhem/trunk@27154 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/74_AutomowerConnect.pm | 5 +---- fhem/FHEM/75_AutomowerConnectDevice.pm | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 6026fccdc..22dfd37c7 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -2,6 +2,7 @@ # Do not insert empty lines here, update check depends on it. - feature: 74_AutomowerConnect: reduce readings, new getter for error codes and internal data, show mower path without registered image + add widget selectnumbers to Park and Start setter - feature: 75_AutomowerConnectDevice: same as AutomowerConnect - feature: 72_FB_CALLMONITOR: tellows.de integriert kleinere Korrekturen diff --git a/fhem/FHEM/74_AutomowerConnect.pm b/fhem/FHEM/74_AutomowerConnect.pm index 19bd89ee3..b51ea0085 100644 --- a/fhem/FHEM/74_AutomowerConnect.pm +++ b/fhem/FHEM/74_AutomowerConnect.pm @@ -339,9 +339,6 @@ sub APIAuthResponse { readingsBulkUpdateIfChanged($hash,'.token_type',$hash->{helper}{auth}{token_type},0 ); readingsBulkUpdateIfChanged($hash,'.provider',$hash->{helper}{auth}{provider} ); - my $tok = substr($hash->{helper}{auth}{access_token},0,15).'...'.substr($hash->{helper}{auth}{access_token},-15); - readingsBulkUpdateIfChanged($hash,'api_token',$tok ); - my $expire_date = FmtDateTime($hash->{helper}{auth}{expires}); readingsBulkUpdateIfChanged($hash,'api_token_expires',$expire_date ); readingsBulkUpdateIfChanged($hash,'state', 'authenticated'); @@ -792,7 +789,7 @@ sub Set { sendCMD($hash,$setName); return undef; } - my $ret = " getNewAccessToken:noArg ParkUntilFurtherNotice:noArg ParkUntilNextSchedule:noArg Pause:noArg Start Park ResumeSchedule:noArg getUpdate:noArg client_secret "; + my $ret = " getNewAccessToken:noArg ParkUntilFurtherNotice:noArg ParkUntilNextSchedule:noArg Pause:noArg Start:selectnumbers,60,60,600,0,lin Park:selectnumbers,60,60,600,0,lin ResumeSchedule:noArg getUpdate:noArg client_secret "; $ret .= "chargingStationPositionToAttribute:noArg headlight:ALWAYS_OFF,ALWAYS_ON,EVENING_ONLY,EVENING_AND_NIGHT cuttingHeight:1,2,3,4,5,6,7,8,9 mowerScheduleToAttribute:noArg "; $ret .= "sendScheduleFromAttributeToMower:noArg "; return "Unknown argument $setName, choose one of".$ret; diff --git a/fhem/FHEM/75_AutomowerConnectDevice.pm b/fhem/FHEM/75_AutomowerConnectDevice.pm index 20f81196a..73990d5ae 100644 --- a/fhem/FHEM/75_AutomowerConnectDevice.pm +++ b/fhem/FHEM/75_AutomowerConnectDevice.pm @@ -583,7 +583,7 @@ sub Set { CMD($hash,$setName); return undef; } - my $ret = " ParkUntilFurtherNotice:noArg ParkUntilNextSchedule:noArg Pause:noArg Start Park ResumeSchedule:noArg "; + my $ret = " ParkUntilFurtherNotice:noArg ParkUntilNextSchedule:noArg Pause:noArg Start:selectnumbers,60,60,600,0,lin Park:selectnumbers,60,60,600,0,lin ResumeSchedule:noArg "; $ret .= "chargingStationPositionToAttribute:noArg headlight:ALWAYS_OFF,ALWAYS_ON,EVENING_ONLY,EVENING_AND_NIGHT cuttingHeight:1,2,3,4,5,6,7,8,9 mowerScheduleToAttribute:noArg "; $ret .= "sendScheduleFromAttributeToMower:noArg "; return "Unknown argument $setName, choose one of".$ret;