2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

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
This commit is contained in:
Ellert 2023-01-30 23:45:22 +00:00
parent dc5f0dcc06
commit ee33a06556
3 changed files with 3 additions and 5 deletions

View File

@ -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

View File

@ -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;

View File

@ -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;