mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-25 09:55:38 +00:00
AutomowerConnect: New setter 'confirmError' for Testing
git-svn-id: https://svn.fhem.de/fhem/trunk@28406 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
c0ca0650bf
commit
c342be2bbf
@ -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.
|
||||
- feature: 74_AutomowerConnect: New setter confirmError for Testing
|
||||
- bugfix: 72_FRITZBOX: fehlen von Data::Dumper in einer debuf sub
|
||||
behoben.
|
||||
FehlerLog bei Erstanmeldung an Fritz!... behoben.
|
||||
|
@ -167,10 +167,14 @@ __END__
|
||||
<code>set <name> Start <number of minutes></code><br>
|
||||
Starts immediately for <number of minutes></li>
|
||||
|
||||
<li><a id='AutomowerConnect-set-confirmError'>confirmError</a><br>
|
||||
<code>set <name> confirmError</code><br>
|
||||
Testing: Confirm current error on the mower. Will only work if current error is considered confirmable by the mower. Available for models 405X, 415X, 435X AWD and 535 AWD. Also available on all Ceora, EPOS and NERA models.</li>
|
||||
|
||||
<li><a id='AutomowerConnect-set-StartInWorkArea'>StartInWorkArea</a><br>
|
||||
<code>set <name> StartInWorkArea <workAreaId|name> [<number of minutes>]</code><br>
|
||||
Testing: Starts immediately in <workAreaId|name> for <number of minutes><br>
|
||||
Zone name must not include space.</li>
|
||||
Work area name must not include space.</li>
|
||||
|
||||
<li><a id='AutomowerConnect-set-chargingStationPositionToAttribute'>chargingStationPositionToAttribute</a><br>
|
||||
<code>set <name> chargingStationPositionToAttribute</code><br>
|
||||
@ -345,6 +349,7 @@ __END__
|
||||
|
||||
<li><a id='AutomowerConnect-attr-mapZones'>mapZones</a><br>
|
||||
<code>attr <name> mapZones <valid perl condition to separate Zones></code><br>
|
||||
These Zones are provided by the Modul and are not related to Husqvarnas work areas.<br>
|
||||
Provide the zones with conditions as JSON-String:<br>
|
||||
The waypoints are accessable by the variables $longitude und $latitude.<br>
|
||||
Zones have have to be separated by conditions in alphabetical order of their names.<br>
|
||||
@ -546,7 +551,7 @@ __END__
|
||||
<li><a id='AutomowerConnect-set-StartInWorkArea'>StartInWorkArea</a><br>
|
||||
<code>set <name> StartInWorkArea <workAreaId|zone name> [<number of minutes>]</code><br>
|
||||
Testing: Startet sofort in <workAreaId|name> für <number of minutes><br>
|
||||
Der Name der Zone darf keine Leerzeichen beinhalten und muss mindestens einen Buchstaben enthalten.</li>
|
||||
Der Name der WorkArea darf keine Leerzeichen beinhalten und muss mindestens einen Buchstaben enthalten.</li>
|
||||
|
||||
<li><a id='AutomowerConnect-set-chargingStationPositionToAttribute'>chargingStationPositionToAttribute</a><br>
|
||||
<code>set <name> chargingStationPositionToAttribute</code><br>
|
||||
@ -568,6 +573,10 @@ __END__
|
||||
<code>set <name> stayOutZone_disable <Id|zone name></code><br>
|
||||
Testing: Disabled stayOutZone für die Id oder den Namen der Zone, er darf keine Leerzeichen beinhalten und muss mindestens einen Buchstaben enthalten.</li>
|
||||
|
||||
<li><a id='AutomowerConnect-set-confirmError'>confirmError</a><br>
|
||||
<code>set <name> confirmError</code><br>
|
||||
Testing: Bestätigt den letzten Fehler im Mäher, wenn der Mäher es zulässt. Verfügbar für 405X, 415X, 435X AWD and 535 AWD und alle Ceora, EPOS and NERA.</li>
|
||||
|
||||
<li><a id='AutomowerConnect-set-getNewAccessToken'>getNewAccessToken</a><br>
|
||||
<code>set <name> getNewAccessToken</code><br>
|
||||
Nur zur Fehlerbehebung.</li>
|
||||
@ -724,6 +733,7 @@ __END__
|
||||
|
||||
<li><a id='AutomowerConnect-attr-mapZones'>mapZones</a><br>
|
||||
<code>attr <name> mapZones <JSON string with zone names in alpabetical order and valid perl condition to seperate the zones></code><br>
|
||||
Die Zonen werden vom Modul bereit gestellt, sie stehen in keinem Zusammenhang mit Husquvarnas Work Areas<br>
|
||||
Die Wegpunkte stehen über die Perlvariablen $longitude und $latitude zur Verfügung.<br>
|
||||
Die Zonennamen und Bedingungen müssen als JSON-String angegeben werden.<br>
|
||||
Die Zonennamen müssen in alphabetischer Reihenfolge durch Bedingungen abgegrenzt werden.<br>
|
||||
|
@ -1097,6 +1097,7 @@ my $header = "Accept: application/vnd.api+json\r\nX-Api-Key: ".$client_id."\r\nA
|
||||
elsif ($cmd[0] eq "cuttingHeight") { $json = '{"data": {"type":"settings","attributes":{"'.$cmd[0].'": '.$cmd[1].'}}}'; $post = 'settings' }
|
||||
elsif ($cmd[0] eq "stayOutZone_enable") { $json = '{"data": {"type":"stayOutZone","id":"'.$cmd[1].'","attributes":{"enable": true}}}'; $post = 'stayOutZones/' . $cmd[1]; $method = 'PATCH' }
|
||||
elsif ($cmd[0] eq "stayOutZone_disable") { $json = '{"data": {"type":"stayOutZone","id":"'.$cmd[1].'","attributes":{"enable": false}}}'; $post = 'stayOutZones/' . $cmd[1]; $method = 'PATCH' }
|
||||
elsif ($cmd[0] eq "confirmError") { $json = '{}'; $post = 'errors/confirm' }
|
||||
elsif ($cmd[0] eq "sendScheduleFromAttributeToMower" && AttrVal( $name, 'mowerSchedule', '')) {
|
||||
|
||||
my $perl = eval { decode_json (AttrVal( $name, 'mowerSchedule', '')) };
|
||||
@ -1282,7 +1283,12 @@ sub Set {
|
||||
APIAuth($hash);
|
||||
return undef;
|
||||
|
||||
} elsif (ReadingsVal( $name, 'device_state', 'defined' ) !~ /defined|initialized|authentification|authenticated|update/ && $setName =~ /ParkUntilFurtherNotice|ParkUntilNextSchedule|Pause|ResumeSchedule|sendScheduleFromAttributeToMower/) {
|
||||
} elsif ( ReadingsVal( $name, 'device_state', 'defined' ) !~ /defined|initialized|authentification|authenticated|update/ && $setName =~ /ParkUntilFurtherNotice|ParkUntilNextSchedule|Pause|ResumeSchedule|sendScheduleFromAttributeToMower/ ) {
|
||||
|
||||
CMD($hash,$setName);
|
||||
return undef;
|
||||
|
||||
} elsif ( ReadingsVal( $name, 'device_state', 'defined' ) !~ /defined|initialized|authentification|authenticated|update/ && $setName =~ /confirmError/ && AttrVal( $name, 'testing', '' ) ) {
|
||||
|
||||
CMD($hash,$setName);
|
||||
return undef;
|
||||
@ -1320,6 +1326,7 @@ sub Set {
|
||||
$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 defaultDesignAttributesToAttribute:noArg mapZonesTemplateToAttribute:noArg ";
|
||||
$ret .= "StartInWorkArea " if ( $hash->{helper}{mower}{attributes}{capabilities}{workAreas} && AttrVal( $name, 'testing', '' ) );
|
||||
$ret .= "confirmError:noArg " if ( AttrVal( $name, 'testing', '' ) );
|
||||
$ret .= "stayOutZone_enable stayOutZone_disable " if ( $hash->{helper}{mower}{attributes}{capabilities}{stayOutZones} && AttrVal( $name, 'testing', '' ) );
|
||||
return "Unknown argument $setName, choose one of".$ret;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user