GithubHelp home page GithubHelp logo

ice987987 / iobroker.husqvarna-automower Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 2.0 1.65 MB

Control your Husqvarna-Automower together with the "Connect Modul" and the new "Automower Connect API" via a WebSocket connection.

License: MIT License

JavaScript 100.00%
husqvarna-automower iobroker smarthome

iobroker.husqvarna-automower's Introduction

iobroker.husqvarna-automower's People

Contributors

dependabot[bot] avatar ice987987 avatar mk-2001 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

mdietrich mk-2001

iobroker.husqvarna-automower's Issues

Statistic not up to date

The problem

Hello,
the statistics values ​​are not up-to-date. when will these be updated?

Screenshot_2023-06-01-19-00-05-34_2a36da4949d6b08889ffa17a1b298013
image

Version of "husqvarna-automower"-adapter

0.3.3

Husqvarna Automower Type

435x awd

Version of Node.js

v18.15.0

Version of ioBroker js-controller

4.0.24

Version of "admin"-adapter

6.3.5

Operating system incl. version running ioBroker

Raspberry Pi

Checklist of files to include below

  • iobroker.current.log (Please share the logs in debug mode and check that there are no personal information)
  • Contents of the JavaScript browser console (always include in cases of issues with the user interface)

Additional information & file uploads

No response

Adapter getting Token but then errors

Adapter is starting, is getting Token, but then errors:

`

husqvarna-automower.0 2022-04-18 07:50:59.829 error "Automower Connect API" not reachable. Please check "Username, "Password and/or "API Key". (ERR_#008)
husqvarna-automower.0 2022-04-18 07:50:59.829 error Error: "Automower Connect API" not reachable. Please check "Username, "Password and/or "API Key". (ERR_#008) at /usr/local/iobroker/node_modules/iobroker.husqvarna-automower/main.js:154:11 at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:93:5) at async HusqvarnaAutomower.getRefreshToken (/usr/local/iobroker/node_modules/iobroker.husqvarna-automower/main.js:125:3)
husqvarna-automower.0 2022-04-18 07:50:59.829 error unhandled promise rejection: "Automower Connect API" not reachable. Please check "Username, "Password and/or "API Key". (ERR_#008)
husqvarna-automower.0 2022-04-18 07:50:59.828 error Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
husqvarna-automower.0 2022-04-18 07:50:59.342 info System information saved...
husqvarna-automower.0 2022-04-18 07:50:58.930 info "Husqvarna Authentication API Access token" received.
husqvarna-automower.0 2022-04-18 07:50:58.659 info Trying to connect "Automower Connect API"...
husqvarna-automower.0 2022-04-18 07:50:58.657 info starting adapter "husqvarna-automower"...
husqvarna-automower.0 2022-04-18 07:50:58.653 info starting. Version 0.0.4 (non-npm: ice987987/ioBroker.husqvarna-automower#c824ffaf8c69e785bada1b4dbce1ed34752bdd3c) in /usr/local/iobroker/node_modules/iobroker.husqvarna-automower, node: v14.15.3, js-controller: 4.0.21

`
credentials and API Key are connected to APIs.

Connection Problem

The problem

I still get the error message:

husqvarna-automower.0 | 2022-06-12 10:02:40.101 | error | Error: "Automower Connect API" not reachable. (ERR_#004)
husqvarna-automower.0 | 2022-06-12 10:02:39.847 | info | starting adapter "husqvarna-automower"...
husqvarna-automower.0 | 2022-06-12 10:02:39.809 | info | starting. Version 0.1.0 (non-npm: ice987987/ioBroker.husqvarna-automower#69f868487c91c4757aadb309e50ec28c5f7b0e98) in /opt/iobroker/node_modules/iobroker.husqvarna-automower, node: v14.19.3, js-controller: 4.0.23

I have set up the husqvarna account several times. I doesn't help.
Besides, the link in the README "Please make sure that you have created an account, password and API-Key according to these instructions. "Old" logins will not work."
is not working.

Version of nodejs

14.19.3

Version of ioBroker js-controller

4.0.23

Version of Adapter

0.1.0

Operating system incl. version running ioBroker

Linux

Checklist of files to include below

  • iobroker.current.log (Please share the logs in debug mode and check that there are no personal information)
  • Contents of the JavaScript browser console (always include in cases of issues with the user interface)

Additional information & file uploads

husqvarna-automower.0 2022-06-12 10:02:40.101 error Error: "Automower Connect API" not reachable. (ERR_#004)
husqvarna-automower.0 2022-06-12 10:02:39.847 info starting adapter "husqvarna-automower"...
husqvarna-automower.0 2022-06-12 10:02:39.809 info starting. Version 0.1.0 (non-npm: ice987987/ioBroker.husqvarna-automower#69f868487c91c4757aadb309e50ec28c5f7b0e98) in /opt/iobroker/node_modules/iobroker.husqvarna-automower, node: v14.19.3, js-controller: 4.0.23

Error on reading API for latitude

The problem

When I start the instance and it is trying to connect to husqvarna, the adapter return an error:
image

Version of "husqvarna-automower"-adapter

installed from git

Husqvarna Automower Type

405x

Version of Node.js

14.20

Version of ioBroker js-controller

4.0.24

Version of "admin"-adapter

6.4.2

Operating system incl. version running ioBroker

Linux Docker

Checklist of files to include below

  • iobroker.current.log (Please share the logs in debug mode and check that there are no personal information)
  • Contents of the JavaScript browser console (always include in cases of issues with the user interface)

Additional information & file uploads

Attached Screenshot above.

Automower Connect API not reachable

Die Verbindung ist auf grün, jedoch werden keine Objekte angelegt.

Im Log steht

  Error: "Automower Connect API" not reachable. (ERR_#003)

Datenpunkt husqvarna-automower.0.XXXXXXX.planner.nextStartTimestamp

@ice987987 erst einmal vielen Dank und großes Lob für deine arbeit an diesem Adapter.

Ich hab ein Problem mit dem Datenpunk "husqvarna-automower.0.XXXXXXX.planner.nextStartTimestamp"
Die Startzeit stimmt nicht mit der tatsächlichen Startzeit überein. Im Datenpunkt wird die Zeit 2h zu spät angezeigt. Im Mower und in der App stimmt sowohl die Startzeit als auch die Uhrzeit.
Hab den Adapter auf 2 unabhängigen IOBrokern. Auf beiden ist dieses Problemchen.

Statistics im Adapter integrieren

The problem

Kann man die Statistics Werte von der Husqvarna API in diesem Adapter integrieren?

Habe es bei mir getestet und es werden alle Werte bis auf cuttingBladeUsageTime übertragen.
Habe dazu die main.js folgendermaßen ergänzt:
createObjects(mowerData):

// create channel "statistics"
await this.setObjectNotExistsAsync(mowerData[i].id + '.statistics', {
        type: 'channel',
	common: {
		name: 'statistics',
		desc: 'statistics',
	},
	native: {}
});
					await this.setObjectNotExistsAsync(mowerData[i].id + '.statistics.cuttingBladeUsageTime', {
						type: 'value',
						common: {
							name: 'Nutzungsdauer der Schneidklinge',
							desc: 'Nutzungsdauer der Schneidklinge',
							type: 'number',
							role: 'value',
							min: 0,
							unit: 'ms',
							read: true,
							write: false
						},
						native: {}
					});
					await this.setObjectNotExistsAsync(mowerData[i].id + '.statistics.numberOfChargingCycles', {
						type: 'value',
						common: {
							name: 'Anzahl der Ladezyklen',
							desc: 'Anzahl der Ladezyklen',
							type: 'number',
							role: 'value',
							min: 0,
							read: true,
							write: false
						},
						native: {}
					});
					await this.setObjectNotExistsAsync(mowerData[i].id + '.statistics.numberOfCollisions', {
						type: 'value',
						common: {
							name: 'Anzahl der Kollisionen',
							desc: 'Anzahl der Kollisionen',
							type: 'number',
							role: 'value',
							min: 0,
							read: true,
							write: false
						},
						native: {}
					});
					await this.setObjectNotExistsAsync(mowerData[i].id + '.statistics.totalChargingTime', {
						type: 'value',
						common: {
							name: 'Gesamtladezeit',
							desc: 'Gesamtladezeit',
							type: 'number',
							role: 'value',
							min: 0,
							unit: 'ms',
							read: true,
							write: false
						},
						native: {}
					});
					await this.setObjectNotExistsAsync(mowerData[i].id + '.statistics.totalCuttingTime', {
						type: 'value',
						common: {
							name: 'Gesamt Maehzeit',
							desc: 'Gesamt Maehzeit',
							type: 'number',
							role: 'value',
							min: 0,
							unit: 'ms',
							read: true,
							write: false
						},
						native: {}
					});
					await this.setObjectNotExistsAsync(mowerData[i].id + '.statistics.totalRunningTime', {
						type: 'value',
						common: {
							name: 'Gesamtlaufzeit',
							desc: 'Gesamtlaufzeit',
							type: 'number',
							role: 'value',
							min: 0,
							unit: 'ms',
							read: true,
							write: false
						},
						native: {}
					});
					await this.setObjectNotExistsAsync(mowerData[i].id + '.statistics.totalSearchingTime', {
						type: 'value',
						common: {
							name: 'Gesamtsuchzeit',
							desc: 'Gesamtsuchzeit',
							type: 'number',
							role: 'value',
							min: 0,
							unit: 'ms',
							read: true,
							write: false
						},
						native: {}
					});

und in async fillObjects(mowerData) {

			this.setStateAsync(mowerData[i].id + '.statistics.cuttingBladeUsageTime', {val: mowerData[i].attributes.statistics.cuttingBladeUsageTime, ack: true});
			this.setStateAsync(mowerData[i].id + '.statistics.numberOfChargingCycles', {val: mowerData[i].attributes.statistics.numberOfChargingCycles, ack: true});
			this.setStateAsync(mowerData[i].id + '.statistics.numberOfCollisions', {val: mowerData[i].attributes.statistics.numberOfCollisions, ack: true});
			this.setStateAsync(mowerData[i].id + '.statistics.totalChargingTime', {val: mowerData[i].attributes.statistics.totalChargingTime, ack: true});
			this.setStateAsync(mowerData[i].id + '.statistics.totalCuttingTime', {val: mowerData[i].attributes.statistics.totalCuttingTime, ack: true});
			this.setStateAsync(mowerData[i].id + '.statistics.totalRunningTime', {val: mowerData[i].attributes.statistics.totalRunningTime, ack: true});
			this.setStateAsync(mowerData[i].id + '.statistics.totalSearchingTime', {val: mowerData[i].attributes.statistics.totalSearchingTime, ack: true});

und in async connectToWS() {

					if ('statistics' in jsonMessage.attributes) {
						this.setStateAsync(jsonMessage.id + '.statistics.cuttingBladeUsageTime', {val: jsonMessage.attributes.statistics.cuttingBladeUsageTime, ack: true});
						this.setStateAsync(jsonMessage.id + '.statistics.numberOfChargingCycles', {val: jsonMessage.attributes.statistics.numberOfChargingCycles, ack: true});
						this.setStateAsync(jsonMessage.id + '.statistics.numberOfCollisions', {val: jsonMessage.attributes.statistics.numberOfCollisions, ack: true});
						this.setStateAsync(jsonMessage.id + '.statistics.totalChargingTime', {val: jsonMessage.attributes.statistics.totalChargingTime, ack: true});
						this.setStateAsync(jsonMessage.id + '.statistics.totalCuttingTime', {val: jsonMessage.attributes.statistics.totalCuttingTime, ack: true});
						this.setStateAsync(jsonMessage.id + '.statistics.totalRunningTime', {val: jsonMessage.attributes.statistics.totalRunningTime, ack: true});
						this.setStateAsync(jsonMessage.id + '.statistics.totalSearchingTime', {val: jsonMessage.attributes.statistics.totalSearchingTime, ack: true});
						// this.log.debug(`[wss.on - message]: jsonMessage.attributes.statistics: ${JSON.stringify(jsonMessage.attributes.statistics)}`);
					}

Version of Node.js

16.16.0

Version of ioBroker js-controller

4.0.23

Version of "husqvarna-automower"-adapter

0.2.0

Version of "admin"-adapter

6.2.13

Operating system incl. version running ioBroker

Linux (Docker)

Checklist of files to include below

  • iobroker.current.log (Please share the logs in debug mode and check that there are no personal information)
  • Contents of the JavaScript browser console (always include in cases of issues with the user interface)

Additional information & file uploads

main.txt

Using your code in node without ioBroker

Mathias,
Some years ago I started to use Node with the code from https://github.com/rannmann/node-husqvarna-automower but now that Husqvarna have published an official API I would like to set up something similar but using WebSocket to gather changes instead of reading the mower status every 3 minutes. You have produced almost what I want but I don't want to install ioBroker. I just want to run a job on my Mac to gather the data and save it so it can be interpreted by a web page an example of which I attach. Do you have the code without reference to ioBroker which I may use please?
Kind regards,
Graham Lawrence
[email protected]

image

Bug report - Park mower until next scheduled run

The problem

When pushing (or set via script) "Park mower until next scheduled run" {"husqvarna-automower.0.6dcad25a-39f7-4baf-9f44-877302c35c1f.ACTIONS.PARKUNTILFURTHERNOTICE"} mower get's not the ACTION to Park until next schedule, but forever.

See picture from app attached.

I would expect that with the action, the mower would park and restart with the next schedule. When the function is called in the app, it works.
Is it a bug in the API that the command is not interpreted correctly or the adapter?
Debug log attached.

IMG_59820D00C4EF-1

It would be great to here about this issue, as this is kind of weird and also happens when mower is sent to garage due to rain (also with your script)

Version of "husqvarna-automower"-adapter

0.4.0

Husqvarna Automower Type

430X

Version of Node.js

18.18.2

Version of ioBroker js-controller

5.0.12

Version of "admin"-adapter

6.10.1

Operating system incl. version running ioBroker

Debian bookworm

Checklist of files to include below

  • iobroker.current.log (Please share the logs in debug mode and check that there are no personal information)
  • Contents of the JavaScript browser console (always include in cases of issues with the user interface)

Additional information & file uploads

iob_debug_log.txt

CuttingHeight

Can't set cutterheight.
msg: This mower use missions and can not be updated by this endpoint Nothing set.

Adapter startet nicht mehr

The problem

der Adapter startet nicht mehr. Hier das Log

starting. Version 0.4.0-beta.3 (non-npm: ice987987/ioBroker.husqvarna-automower#6339d7b584f59c1874ad3c647536996077de3a0e) in /opt/iobroker/node_modules/iobroker.husqvarna-automower, node: v18.16.0, js-controller: 4.0.24

Version of "husqvarna-automower"-adapter

v0.4.0-beta.3

Husqvarna Automower Type

405x

Version of Node.js

v18.16.0

Version of ioBroker js-controller

9.5.1

Version of "admin"-adapter

6.3.5

Operating system incl. version running ioBroker

Linux Debian

Checklist of files to include below

  • iobroker.current.log (Please share the logs in debug mode and check that there are no personal information)
  • Contents of the JavaScript browser console (always include in cases of issues with the user interface)

Additional information & file uploads

No response

ioBroker Integration

The problem

Hi, many thanks for writing this adapter. I wonder why I can't install it via the ioBroker adapter page (does not show up there although BETA is enabled). Is it only possible to install it via GIT?

Version of Node.js

12.22.12

Version of ioBroker js-controller

3.1.5

Version of "husqvarna-automower"-adapter

0

Version of "admin"-adapter

6.1.6

Operating system incl. version running ioBroker

linux

Checklist of files to include below

  • iobroker.current.log (Please share the logs in debug mode and check that there are no personal information)
  • Contents of the JavaScript browser console (always include in cases of issues with the user interface)

Additional information & file uploads

No response

Datenpunkt husqvarna-automower.0.XXXXXXX.planner.nextStartTimestamp

Auch von mir nochmal Danke für den Adapter...

Aktuell gibt es bei mir noch ein Problem mit dem oben genannten Datenpunkt.
Starte ich den Mäher mit einem Schedule ( setze den Datenpunkt husqvarna-automower.0.XXXXXX.ACTIONS.RESUMESCHEDULE auf true), schreibt er den korrekten Wert in den Datenpunkt.
Breche ich aber alles ab in dem ich ihn wieder auf parken schicke (husqvarna-automower.0.XXXXXXX.ACTIONS.PARKUNTILFURTHERNOTICE auf true), führt er dieses zwar korrekt aus aber er setzt den "nextStartTimestamp" nicht wieder auf 0. es bleibt der letzte timestamp drinn stehen obwohl der Mäher nicht mehr mähen geht.

Objects are not updated, just at start of adapter

The problem

Hello,

The Objects of IOBroker are not updated, just at the start of the adapter.
-> Can be seen on the "statusTimestamp" and the battery level.
I have set the Time interval for the update of statistic values to 5 minutes.
Every 5 minutes the update takes place:

Hallo,

die Objekte des Adapters werden in IOBroker nur nach dem Start/Neustart des Adapters aktualisert.
-> Zu erkennen an dem "statusTimestamp" und z.B. dem Batteriestand.
Ich habe das Intervall für den Statistic-Update auf 5 Minuten gesetzt.
Alle 5 Minuten fordert der Adapter vom Server ein Update an:

`

husqvarna-automower.0 2022-10-03 09:59:11.015 debug Mowerstatistics updated.
husqvarna-automower.0 2022-10-03 09:59:11.014 debug [getMowerData]: response.data: {"data":[{"type":"mower","id":"!!!removed!!!","attributes":{"system":{"name":"430X","model":"HUSQVARNA AUTOMOWER® 430X","serialNumber":!!!removed!!!},"battery":{"batteryPercent":88},"mower":{"mode":"MAIN_AREA","activity":"MOWING","state":"IN_OPERATION","errorCode":0,"errorCodeTimestamp":0},"calendar":{"tasks":[{"start":1080,"duration":360,"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":true,"sunday":true},{"start":360,"duration":480,"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false}]},"planner":{"nextStartTimestamp":0,"override":{"action":"NOT_ACTIVE"},"restrictedReason":"NOT_APPLICABLE"},"metadata":{"connected":true,"statusTimestamp":1664783758328},"positions":[!!!removed!!!],"settings":{"cuttingHeight":6,"headlight":{"mode":"EVENING_AND_NIGHT"}},"statistics":{"numberOfChargingCycles":11,"numberOfCollisions":535,"totalChargingTime":32400,"totalCuttingTime":64800,"totalRunningTime":64800,"totalSearchingTime":0}}}]}
husqvarna-automower.0 2022-10-03 09:59:11.013 debug [getMowerData]: HTTP status response: 200 OK; config: {"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false},"transformRequest":[null],"transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"env":{},"headers":{"Accept":"application/json, text/plain, /","Authorization":"!!!removed!!!","Authorization-Provider":"husqvarna","User-Agent":"axios/0.27.2"},"method":"get","url":"https://api.amc.husqvarna.dev/v1/mowers"}; headers: {"content-type":"application/vnd.api+json","content-length":"3356","connection":"close","date":"Mon, 03 Oct 2022 07:59:11 GMT","x-amzn-requestid":"a790e49b-a4de-40d3-a441-07d1a12158e3","x-amzn-remapped-content-length":"3356","x-amzn-remapped-connection":"keep-alive","x-amz-apigw-id":"ZaxsXHjgjoEFsgg=","x-amzn-remapped-date":"Mon, 03 Oct 2022 07:59:10 GMT","x-cache":"Miss from cloudfront","via":"1.1 a4a80ac7ffee78c042728f52e3f729e0.cloudfront.net (CloudFront)","x-amz-cf-pop":"MUC50-P1","x-amz-cf-id":"KqXBlSsoxE_9t3axh-eL3PC1g5G2AY30SIgqZsW5lZKDHzRrnk7X2Q=="}; data: {"data":[{"type":"mower","id":"!!!removed!!!","attributes":{"system":{"name":"430X","model":"HUSQVARNA AUTOMOWER® 430X","serialNumber":!!!removed!!!},"battery":{"batteryPercent":88},"mower":{"mode":"MAIN_AREA","activity":"MOWING","state":"IN_OPERATION","errorCode":0,"errorCodeTimestamp":0},"calendar":{"tasks":[{"start":1080,"duration":360,"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":true,"sunday":true},{"start":360,"duration":480,"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":false,"sunday":false}]},"planner":{"nextStartTimestamp":0,"override":{"action":"NOT_ACTIVE"},"restrictedReason":"NOT_APPLICABLE"},"metadata":{"connected":true,"statusTimestamp":1664783758328},"positions":[!!!removed!!!],"settings":{"cuttingHeight":6,"headlight":{"mode":"EVENING_AND_NIGHT"}},"statistics":{"numberOfChargingCycles":11,"numberOfCollisions":535,"totalChargingTime":32400,"totalCuttingTime":64800,"totalRunningTime":64800,"totalSearchingTime":0}}}]}
husqvarna-automower.0 2022-10-03 09:58:41.110 debug [wss.on - pong]: WebSocket receives pong from server.
husqvarna-automower.0 2022-10-03 09:58:41.066 debug [sendPingToServer]: WebSocket sends ping to server...
`

But the objects are not updated by the adapter, they remain on the Timestamp of the adapter start / restart.

Can you please advise me, what I can do / check?

Aber die Objekte in IOBroker werden nicht aktualisert, sie bleiben auf dem Stand des Starts/Neustarts des Adapters.
Bitte um Hilfe, was ich prüfen/tun kann.

Thanks
Daniel

Danke Daniel

Version of Node.js

v16.16.0

Version of ioBroker js-controller

4.0.23

Version of "husqvarna-automower"-adapter

v0.3.0

Version of "admin"-adapter

v6.2.22

Operating system incl. version running ioBroker

TrueNAS-JAIL / Freebsd 12.2-RELEASE-p15

Checklist of files to include below

  • iobroker.current.log (Please share the logs in debug mode and check that there are no personal information)
  • Contents of the JavaScript browser console (always include in cases of issues with the user interface)

Additional information & file uploads

current.log

"Automower Connect API" not reachable. (ERR_#003)

The problem

Hello
I found this adapter yesterday and it instantly worked after setup - great stuff.
Today, I only get the following error:
"Automower Connect API" not reachable. (ERR_#003)

Tried to manually test the api using Postman which returns "Invalid client: cannot retrieve client credentials"

Am I doing something wrong or is there a general problem with the connect api?

Thanks

Dominik

Version of Node.js

v16.14.0

Version of ioBroker js-controller

4.0.23

Version of "husqvarna-automower"-adapter

0.2.0

Version of "admin"-adapter

6.1.9

Operating system incl. version running ioBroker

Linux (Docker) on Synology

Checklist of files to include below

  • iobroker.current.log (Please share the logs in debug mode and check that there are no personal information)
  • Contents of the JavaScript browser console (always include in cases of issues with the user interface)

Additional information & file uploads

husqvarna-automower.0 2022-07-04 08:47:29.699 error Error: "Automower Connect API" not reachable. (ERR_#003)
husqvarna-automower.0 2022-07-04 08:47:29.423 info Mowerdata initially saved...
husqvarna-automower.0 2022-07-04 08:47:29.064 info "Husqvarna Authentication API Access token" received.
husqvarna-automower.0 2022-07-04 08:47:28.844 info starting adapter "husqvarna-automower"...
husqvarna-automower.0 2022-07-04 08:47:28.813 info starting. Version 0.2.0 (non-npm: ice987987/ioBroker.husqvarna-automower#7adf27a0eff3eb8fd12783a03774f4540f9bdaeb) in /opt/iobroker/node_modules/iobroker.husqvarna-automower, node: v16.14.0, js-controller: 4.0.23

scheduler-Einträge in Automower 415X funktionieren nicht.

Feature or idea description

Hallo, und vielen Dank für die Entwicklung des Adapters.
Ich habe einen Automower 415X im Einsatz. Der Adapter funtioniert auch bis auf die Übertragung der Einträge in den Zeitplan des Mähers. Da bleiben immer die über die App eingetragenen Zeiten bestehen. Ich habe im Anhang mal die Aktionen des Adapters nach dem Anstoßen der Übertragung der scheduler-daten angehangen. Vieleich kann man was daraus entnehmen. Oder geht die Übertragung an diese Serie (415X) garnicht?
Es wäre schön, wenn diese Funktion gehen würde.

Version of "husqvarna-automower"-adapter

Husqvarna Automower v0.3.x

Additional information & file uploads

husqvarna-automower.0
2022-09-07 14:17:51.305 debug [wss.on - message]: {"id":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","type":"status-event","attributes":{"battery":{"batteryPercent":64},"mower":{"mode":"MAIN_AREA","activity":"PARKED_IN_CS","state":"RESTRICTED","errorCode":0,"errorCodeTimestamp":0},"planner":{"nextStartTimestamp":1662735600000,"override":{"action":"IPLANNER_OVERRIDE_ACTION_FORCE_PARK"},"restrictedReason":"PARK_OVERRIDE"},"metadata":{"connected":true,"statusTimestamp":1662553071420}}}
husqvarna-automower.0
2022-09-07 14:17:51.289 debug [wss.on - message]: {"id":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","type":"positions-event","attributes":{"positions":[{"latitude":50.1234567,"longitude":10.2800272}]}}
husqvarna-automower.0
2022-09-07 14:17:50.991 info Accepted. Command PARKUNTILNEXTSCHEDULE Set.
husqvarna-automower.0
2022-09-07 14:17:50.991 debug [onStateChange]: HTTP status response: 202 Accepted; config: {"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false},"transformRequest":[null],"transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"env":{},"headers":{"Accept":"application/json, text/plain, /","Content-Type":"application/vnd.api+json","Authorization":"Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Imh1c3F2YXJuYSJ9.eyJqdGkiOiJjZDIzM2UyYy02YWJkLTRlM2YtODRkNy1jZWNjNGQxOTcxZDYiLCJpc3MiOiJodXNxdmFybmEiLCJyb2xlcyI6W10sImdyb3VwcyI6WyJhbWMiLCJkZXZlbG9wZXItcG9ydGFsIl0sInNjb3BlcyI6WyJpYW06cmVhZCIsImFtYzphcGkiXSwiY2xpZW50X2lkIjoiNzRhMDNkODEtMThiYi00YzJhLTkyZjMtYzZhMTM4NTU5NDhhIiwidXNlciI6eyJmaXJzdF9uYW1lIjoiR2VyaGFyZCIsImxhc3RfbmFtZSI6IkhpbW1lbCIsImN1c3RvbV9hdHRyaWJ1dGVzIjp7fSwiY3VzdG9tZXJfaWQiOiIifSwiaWF0IjoxNjYyNTUxOTg0LCJleHAiOjE2NjI2MzgzODQsInN1YiI6ImYxMGE4Yjc0LTg5MTctNDYwOC04ZWQ4LWU5ZjNjMjc1ODBjNiJ9.bUPZV0yWjNqareU4uwitixUCxMjhdbus5ZCSUrbeYMYbWXm3HMQvYZYgT-meGL1fijeje9SplzlC8fyIY1NJtbthoAUpbdt3ojwr00nmzd-17HJJSqsMugk0r2lQ09Rufv0F2Joqin8xZN4AZ8Uv3Cs7AHcp6kBpjLrxTHiqc7rwoLyL1UKfhJr54kNpXZTOqaIs0WOpdL8EE_9G-6IePuSfcgGnxPQiELtTZwNhHI1gQMT9vxeeWVkazWRvRj-CiWCyt6rrX4GmKzLKjg2A-Z_1XCzTYf6EMNbX8BVDPq-p14xAsegshUt5VgVnm9kT75X3oPGi0tOLOknVU-UsFw","X-Api-Key":"74a03d81-18bb-4c2a-92f3-c6a13855948a","Authorization-Provider":"husqvarna","User-Agent":"axios/0.27.2","Content-Length":41},"method":"post","url":"https://api.amc.husqvarna.dev/v1/mowers/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/actions","data":"{\"data\":{\"type\":\"ParkUntilNextSchedule\"}}"}; headers: {"content-type":"application/vnd.api+json","content-length":"89","connection":"close","date":"Wed, 07 Sep 2022 12:17:51 GMT","x-amzn-requestid":"9a063c6b-82cb-464f-b093-6f7c22f4116c","x-amzn-remapped-content-length":"89","x-amzn-remapped-connection":"keep-alive","x-amz-apigw-id":"YFrNQFcEDoEFx4A=","x-amzn-remapped-date":"Wed, 07 Sep 2022 12:17:51 GMT","x-cache":"Miss from cloudfront","via":"1.1 d91c21a06968968452d701ff77f35a70.cloudfront.net (CloudFront)","x-amz-cf-pop":"TXL52-C1","x-amz-cf-id":"9TJaOg9ZRuu4w8lJ_raouClkmYvHd9b2RTgmOl3XxcZ7DaVG7G73gw=="}; data: {"data":{"type":"control","id":"3e072180-78d8-4c25-a9ce-18c13cd262c2","attributes":null}}
husqvarna-automower.0
2022-09-07 14:17:50.508 debug [wss.on - message]: {"id":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","type":"status-event","attributes":{"battery":{"batteryPercent":64},"mower":{"mode":"MAIN_AREA","activity":"PARKED_IN_CS","state":"RESTRICTED","errorCode":0,"errorCodeTimestamp":0},"planner":{"nextStartTimestamp":1662735600000,"override":{"action":"IPLANNER_OVERRIDE_ACTION_FORCE_PARK"},"restrictedReason":"PARK_OVERRIDE"},"metadata":{"connected":true,"statusTimestamp":1662553070676}}}
husqvarna-automower.0
2022-09-07 14:17:50.496 debug [wss.on - message]: {"id":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","type":"positions-event","attributes":{"positions":[{"latitude":50.1234567,"longitude":10.2800272}]}}
husqvarna-automower.0
2022-09-07 14:17:50.355 info Accepted. Command PARKUNTILNEXTSCHEDULE Set.
husqvarna-automower.0
2022-09-07 14:17:50.354 debug [onStateChange]: HTTP status response: 202 Accepted; config: {"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false},"transformRequest":[null],"transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"env":{},"headers":{"Accept":"application/json, text/plain, /","Content-Type":"application/vnd.api+json","Authorization":"Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Imh1c3F2YXJuYSJ9.eyJqdGkiOiJjZDIzM2UyYy02YWJkLTRlM2YtODRkNy1jZWNjNGQxOTcxZDYiLCJpc3MiOiJodXNxdmFybmEiLCJyb2xlcyI6W10sImdyb3VwcyI6WyJhbWMiLCJkZXZlbG9wZXItcG9ydGFsIl0sInNjb3BlcyI6WyJpYW06cmVhZCIsImFtYzphcGkiXSwiY2xpZW50X2lkIjoiNzRhMDNkODEtMThiYi00YzJhLTkyZjMtYzZhMTM4NTU5NDhhIiwidXNlciI6eyJmaXJzdF9uYW1lIjoiR2VyaGFyZCIsImxhc3RfbmFtZSI6IkhpbW1lbCIsImN1c3RvbV9hdHRyaWJ1dGVzIjp7fSwiY3VzdG9tZXJfaWQiOiIifSwiaWF0IjoxNjYyNTUxOTg0LCJleHAiOjE2NjI2MzgzODQsInN1YiI6ImYxMGE4Yjc0LTg5MTctNDYwOC04ZWQ4LWU5ZjNjMjc1ODBjNiJ9.bUPZV0yWjNqareU4uwitixUCxMjhdbus5ZCSUrbeYMYbWXm3HMQvYZYgT-meGL1fijeje9SplzlC8fyIY1NJtbthoAUpbdt3ojwr00nmzd-17HJJSqsMugk0r2lQ09Rufv0F2Joqin8xZN4AZ8Uv3Cs7AHcp6kBpjLrxTHiqc7rwoLyL1UKfhJr54kNpXZTOqaIs0WOpdL8EE_9G-6IePuSfcgGnxPQiELtTZwNhHI1gQMT9vxeeWVkazWRvRj-CiWCyt6rrX4GmKzLKjg2A-Z_1XCzTYf6EMNbX8BVDPq-p14xAsegshUt5VgVnm9kT75X3oPGi0tOLOknVU-UsFw","X-Api-Key":"74a03d81-18bb-4c2a-92f3-c6a13855948a","Authorization-Provider":"husqvarna","User-Agent":"axios/0.27.2","Content-Length":41},"method":"post","url":"https://api.amc.husqvarna.dev/v1/mowers/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/actions","data":"{\"data\":{\"type\":\"ParkUntilNextSchedule\"}}"}; headers: {"content-type":"application/vnd.api+json","content-length":"89","connection":"close","date":"Wed, 07 Sep 2022 12:17:50 GMT","x-amzn-requestid":"c54de30b-61fa-44bd-9c74-f18488334ad8","x-amzn-remapped-content-length":"89","x-amzn-remapped-connection":"keep-alive","x-amz-apigw-id":"YFrNGE0-DoEFZ9g=","x-amzn-remapped-date":"Wed, 07 Sep 2022 12:17:50 GMT","x-cache":"Miss from cloudfront","via":"1.1 b88825ad151091557d336c3519215162.cloudfront.net (CloudFront)","x-amz-cf-pop":"TXL52-C1","x-amz-cf-id":"vaZ5Pd8e8GIjRM3OQE7fIGoixapQMFjvW0d4-hzUvXfA2KmLq4VUFQ=="}; data: {"data":{"type":"control","id":"fb27b68d-04cd-4264-ab4a-ae4dd0155084","attributes":null}}
husqvarna-automower.0
2022-09-07 14:17:49.922 debug [onStateChange]: parentPath : husqvarna-automower.0.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.ACTIONS
husqvarna-automower.0
2022-09-07 14:17:49.922 debug [onStateChange]: command: PARKUNTILNEXTSCHEDULE
husqvarna-automower.0
2022-09-07 14:17:49.922 debug [onStateChange]: mowerId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
husqvarna-automower.0
2022-09-07 14:17:49.921 debug [onStateChange]: idSplit.length: 5
husqvarna-automower.0
2022-09-07 14:17:49.921 debug [onStateChange]: id: husqvarna-automower.0.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.ACTIONS.PARKUNTILNEXTSCHEDULE; state: {"val":false,"ack":false,"ts":1662553069918,"q":0,"from":"system.adapter.web.0","user":"system.user.admin","lc":1662553069918}
husqvarna-automower.0
2022-09-07 14:17:48.894 debug [onStateChange]: parentPath : husqvarna-automower.0.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.ACTIONS
husqvarna-automower.0
2022-09-07 14:17:48.894 debug [onStateChange]: command: PARKUNTILNEXTSCHEDULE
husqvarna-automower.0
2022-09-07 14:17:48.894 debug [onStateChange]: mowerId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
husqvarna-automower.0
2022-09-07 14:17:48.894 debug [onStateChange]: idSplit.length: 5
husqvarna-automower.0
2022-09-07 14:17:48.894 debug [onStateChange]: id: husqvarna-automower.0.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.ACTIONS.PARKUNTILNEXTSCHEDULE; state: {"val":true,"ack":false,"ts":1662553068891,"q":0,"from":"system.adapter.web.0","user":"system.user.admin","lc":1662553068891}
husqvarna-automower.0
2022-09-07 14:17:45.544 debug [wss.on - message]: {"id":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","type":"positions-event","attributes":{"positions":[{"latitude":50.1234567,"longitude":10.2800272}]}}
husqvarna-automower.0
2022-09-07 14:17:45.516 debug [wss.on - message]: {"id":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","type":"status-event","attributes":{"battery":{"batteryPercent":63},"mower":{"mode":"MAIN_AREA","activity":"PARKED_IN_CS","state":"RESTRICTED","errorCode":0,"errorCodeTimestamp":0},"planner":{"nextStartTimestamp":1662735600000,"override":{"action":"IPLANNER_OVERRIDE_ACTION_FORCE_PARK"},"restrictedReason":"PARK_OVERRIDE"},"metadata":{"connected":true,"statusTimestamp":1662553065676}}}
husqvarna-automower.0
2022-09-07 14:17:44.957 debug [onStateChange]: error.config: {"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false},"transformRequest":[null],"transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"env":{},"headers":{"Accept":"application/json, text/plain, /","Content-Type":"application/vnd.api+json","Authorization":"Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Imh1c3F2YXJuYSJ9.eyJqdGkiOiJjZDIzM2UyYy02YWJkLTRlM2YtODRkNy1jZWNjNGQxOTcxZDYiLCJpc3MiOiJodXNxdmFybmEiLCJyb2xlcyI6W10sImdyb3VwcyI6WyJhbWMiLCJkZXZlbG9wZXItcG9ydGFsIl0sInNjb3BlcyI6WyJpYW06cmVhZCIsImFtYzphcGkiXSwiY2xpZW50X2lkIjoiNzRhMDNkODEtMThiYi00YzJhLTkyZjMtYzZhMTM4NTU5NDhhIiwidXNlciI6eyJmaXJzdF9uYW1lIjoiR2VyaGFyZCIsImxhc3RfbmFtZSI6IkhpbW1lbCIsImN1c3RvbV9hdHRyaWJ1dGVzIjp7fSwiY3VzdG9tZXJfaWQiOiIifSwiaWF0IjoxNjYyNTUxOTg0LCJleHAiOjE2NjI2MzgzODQsInN1YiI6ImYxMGE4Yjc0LTg5MTctNDYwOC04ZWQ4LWU5ZjNjMjc1ODBjNiJ9.bUPZV0yWjNqareU4uwitixUCxMjhdbus5ZCSUrbeYMYbWXm3HMQvYZYgT-meGL1fijeje9SplzlC8fyIY1NJtbthoAUpbdt3ojwr00nmzd-17HJJSqsMugk0r2lQ09Rufv0F2Joqin8xZN4AZ8Uv3Cs7AHcp6kBpjLrxTHiqc7rwoLyL1UKfhJr54kNpXZTOqaIs0WOpdL8EE_9G-6IePuSfcgGnxPQiELtTZwNhHI1gQMT9vxeeWVkazWRvRj-CiWCyt6rrX4GmKzLKjg2A-Z_1XCzTYf6EMNbX8BVDPq-p14xAsegshUt5VgVnm9kT75X3oPGi0tOLOknVU-UsFw","X-Api-Key":"74a03d81-18bb-4c2a-92f3-c6a13855948a","Authorization-Provider":"husqvarna","User-Agent":"axios/0.27.2","Content-Length":606},"method":"post","url":"https://api.amc.husqvarna.dev/v1/mowers/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/calendar","data":"{\"data\":{\"type\":\"calendar\",\"attributes\":{\"tasks\":[{\"start\":540,\"duration\":360,\"monday\":true,\"tuesday\":true,\"wednesday\":false,\"thursday\":true,\"friday\":false,\"saturday\":true,\"sunday\":false},{\"start\":600,\"duration\":120,\"monday\":false,\"tuesday\":true,\"wednesday\":false,\"thursday\":true,\"friday\":false,\"saturday\":true,\"sunday\":false},{\"start\":840,\"duration\":180,\"monday\":true,\"tuesday\":false,\"wednesday\":true,\"thursday\":false,\"friday\":true,\"saturday\":false,\"sunday\":true},{\"start\":360,\"duration\":120,\"monday\":false,\"tuesday\":true,\"wednesday\":true,\"thursday\":false,\"friday\":true,\"saturday\":true,\"sunday\":false}]}}}"}
husqvarna-automower.0
2022-09-07 14:17:44.957 info Invalid schedule format in request body. Parsing message: More than two tasks affecting Tuesday. Arose when adding: MowerSchedule.Task[start=360,duration=120,monday=false,tuesday=true,wednesday=true,thursday=false,friday=true,saturday=true,sunday=false,missionId=] Nothing set
husqvarna-automower.0
2022-09-07 14:17:44.957 debug [onStateChange]: HTTP status response: 400; headers: {"content-type":"application/vnd.api+json","content-length":"434","connection":"close","date":"Wed, 07 Sep 2022 12:17:45 GMT","x-amzn-requestid":"49a206a3-3f96-428f-b85d-0e57f7fa6a8a","x-amzn-remapped-content-length":"434","x-amzn-remapped-connection":"keep-alive","x-amz-apigw-id":"YFrMdF3pjoEFf2g=","x-amzn-remapped-date":"Wed, 07 Sep 2022 12:17:45 GMT","x-cache":"Error from cloudfront","via":"1.1 df792ea3bbbe656e2f5c7b61aa85cc46.cloudfront.net (CloudFront)","x-amz-cf-pop":"TXL52-C1","x-amz-cf-id":"wtuZA_fR6laAvow513ykBMx1AmBg_AEXmInwUIpjNZ0HnXh2koIMFA=="}; data: {"errors":[{"id":"1d97022d-b200-43ab-b031-e73679549fbe","status":"400","code":"invalid.mower.schedule.format","title":"Invalid mower schedule format","detail":"Invalid schedule format in request body. Parsing message: More than two tasks affecting Tuesday. Arose when adding: MowerSchedule.Task[start=360,duration=120,monday=false,tuesday=true,wednesday=true,thursday=false,friday=true,saturday=true,sunday=false,missionId=]"}]}
husqvarna-automower.0
2022-09-07 14:17:44.794 debug [onStateChange]: parentPath : husqvarna-automower.0.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.ACTIONS
husqvarna-automower.0
2022-09-07 14:17:44.794 debug [onStateChange]: command: SET
husqvarna-automower.0
2022-09-07 14:17:44.794 debug [onStateChange]: mowerId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
husqvarna-automower.0
2022-09-07 14:17:44.794 debug [onStateChange]: idSplit.length: 6
husqvarna-automower.0
2022-09-07 14:17:44.794 debug [onStateChange]: id: husqvarna-automower.0.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.ACTIONS.schedule.SET; state: {"val":false,"ack":false,"ts":1662553064791,"q":0,"from":"system.adapter.web.0","user":"system.user.admin","lc":1662553064791}
husqvarna-automower.0
2022-09-07 14:17:43.957 debug [onStateChange]: error.config: {"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false},"transformRequest":[null],"transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"env":{},"headers":{"Accept":"application/json, text/plain, /","Content-Type":"application/vnd.api+json","Authorization":"Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Imh1c3F2YXJuYSJ9.eyJqdGkiOiJjZDIzM2UyYy02YWJkLTRlM2YtODRkNy1jZWNjNGQxOTcxZDYiLCJpc3MiOiJodXNxdmFybmEiLCJyb2xlcyI6W10sImdyb3VwcyI6WyJhbWMiLCJkZXZlbG9wZXItcG9ydGFsIl0sInNjb3BlcyI6WyJpYW06cmVhZCIsImFtYzphcGkiXSwiY2xpZW50X2lkIjoiNzRhMDNkODEtMThiYi00YzJhLTkyZjMtYzZhMTM4NTU5NDhhIiwidXNlciI6eyJmaXJzdF9uYW1lIjoiR2VyaGFyZCIsImxhc3RfbmFtZSI6IkhpbW1lbCIsImN1c3RvbV9hdHRyaWJ1dGVzIjp7fSwiY3VzdG9tZXJfaWQiOiIifSwiaWF0IjoxNjYyNTUxOTg0LCJleHAiOjE2NjI2MzgzODQsInN1YiI6ImYxMGE4Yjc0LTg5MTctNDYwOC04ZWQ4LWU5ZjNjMjc1ODBjNiJ9.bUPZV0yWjNqareU4uwitixUCxMjhdbus5ZCSUrbeYMYbWXm3HMQvYZYgT-meGL1fijeje9SplzlC8fyIY1NJtbthoAUpbdt3ojwr00nmzd-17HJJSqsMugk0r2lQ09Rufv0F2Joqin8xZN4AZ8Uv3Cs7AHcp6kBpjLrxTHiqc7rwoLyL1UKfhJr54kNpXZTOqaIs0WOpdL8EE_9G-6IePuSfcgGnxPQiELtTZwNhHI1gQMT9vxeeWVkazWRvRj-CiWCyt6rrX4GmKzLKjg2A-Z_1XCzTYf6EMNbX8BVDPq-p14xAsegshUt5VgVnm9kT75X3oPGi0tOLOknVU-UsFw","X-Api-Key":"74a03d81-18bb-4c2a-92f3-c6a13855948a","Authorization-Provider":"husqvarna","User-Agent":"axios/0.27.2","Content-Length":606},"method":"post","url":"https://api.amc.husqvarna.dev/v1/mowers/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/calendar","data":"{\"data\":{\"type\":\"calendar\",\"attributes\":{\"tasks\":[{\"start\":540,\"duration\":360,\"monday\":true,\"tuesday\":true,\"wednesday\":false,\"thursday\":true,\"friday\":false,\"saturday\":true,\"sunday\":false},{\"start\":600,\"duration\":120,\"monday\":false,\"tuesday\":true,\"wednesday\":false,\"thursday\":true,\"friday\":false,\"saturday\":true,\"sunday\":false},{\"start\":840,\"duration\":180,\"monday\":true,\"tuesday\":false,\"wednesday\":true,\"thursday\":false,\"friday\":true,\"saturday\":false,\"sunday\":true},{\"start\":360,\"duration\":120,\"monday\":false,\"tuesday\":true,\"wednesday\":true,\"thursday\":false,\"friday\":true,\"saturday\":true,\"sunday\":false}]}}}"}
husqvarna-automower.0
2022-09-07 14:17:43.957 info Invalid schedule format in request body. Parsing message: More than two tasks affecting Tuesday. Arose when adding: MowerSchedule.Task[start=360,duration=120,monday=false,tuesday=true,wednesday=true,thursday=false,friday=true,saturday=true,sunday=false,missionId=] Nothing set
husqvarna-automower.0
2022-09-07 14:17:43.957 debug [onStateChange]: HTTP status response: 400; headers: {"content-type":"application/vnd.api+json","content-length":"434","connection":"close","date":"Wed, 07 Sep 2022 12:17:44 GMT","x-amzn-requestid":"d8dcf6af-c61a-428f-a5d7-4ff1dd1562f3","x-amzn-remapped-content-length":"434","x-amzn-remapped-connection":"keep-alive","x-amz-apigw-id":"YFrMTHQ9DoEF-tw=","x-amzn-remapped-date":"Wed, 07 Sep 2022 12:17:44 GMT","x-cache":"Error from cloudfront","via":"1.1 a57d5819527c444e16b1875e3bd28970.cloudfront.net (CloudFront)","x-amz-cf-pop":"TXL52-C1","x-amz-cf-id":"dGDU1JpLM4ZuV-9iJhdGJuBDcuaB8nB7s8AFMlpn0kW6Htk-Kys4AA=="}; data: {"errors":[{"id":"de5fd699-a813-4606-bbf1-97fc54c6d05f","status":"400","code":"invalid.mower.schedule.format","title":"Invalid mower schedule format","detail":"Invalid schedule format in request body. Parsing message: More than two tasks affecting Tuesday. Arose when adding: MowerSchedule.Task[start=360,duration=120,monday=false,tuesday=true,wednesday=true,thursday=false,friday=true,saturday=true,sunday=false,missionId=]"}]}
husqvarna-automower.0
2022-09-07 14:17:43.764 debug [onStateChange]: parentPath : husqvarna-automower.0.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.ACTIONS
husqvarna-automower.0
2022-09-07 14:17:43.764 debug [onStateChange]: parentPath : husqvarna-automower.0.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.ACTIONS
husqvarna-automower.0
2022-09-07 14:17:43.764 debug [onStateChange]: parentPath : husqvarna-automower.0.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.ACTIONS
husqvarna-automower.0
2022-09-07 14:17:43.764 debug [onStateChange]: parentPath : husqvarna-automower.0.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.ACTIONS
husqvarna-automower.0
2022-09-07 14:17:43.764 debug [onStateChange]: parentPath : husqvarna-automower.0.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.ACTIONS
husqvarna-automower.0
2022-09-07 14:17:43.764 debug [onStateChange]: parentPath : husqvarna-automower.0.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.ACTIONS
husqvarna-automower.0
2022-09-07 14:17:43.764 debug [onStateChange]: parentPath : husqvarna-automower.0.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.ACTIONS
husqvarna-automower.0
2022-09-07 14:17:43.764 debug [onStateChange]: parentPath : husqvarna-automower.0.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.ACTIONS
husqvarna-automower.0
2022-09-07 14:17:43.764 debug [onStateChange]: parentPath : husqvarna-automower.0.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.ACTIONS
husqvarna-automower.0
2022-09-07 14:17:43.764 debug [onStateChange]: command: SET
husqvarna-automower.0
2022-09-07 14:17:43.764 debug [onStateChange]: mowerId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
husqvarna-automower.0
2022-09-07 14:17:43.764 debug [onStateChange]: idSplit.length: 6
husqvarna-automower.0
2022-09-07 14:17:43.763 debug [onStateChange]: id: husqvarna-automower.0.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.ACTIONS.schedule.SET; state: {"val":true,"ack":false,"ts":1662553063761,"q":0,"from":"system.adapter.web.0","user":"system.user.admin","lc":1662553063761}

Feature request

Feature or idea description

Es wäre praktisch, wenn Meldungen, die unter den Log Daten unter "info", wie zB "No connection between the cloud service and the mower product. Nothing set." oder "Accepted. Command PARKUNTILFURTHERNOTICE Set.", als Datenpunkt im Adapter aufscheinen würden. Dann könnte man diese Meldungen darstellen bzw auswerten ohne die Log Daten extra auswerten zu müssen.

Version of "husqvarna-automower"-adapter

0.3

Additional information & file uploads

No response

Adapter aktualisiert die Werte nicht

*nach einem Adapterstart springt dieser gleich wieder auf rot. er liesst einmal alles aus und hat dann folgende Fehlermeldung

error data: {"error":"invalid_request","error_description":"Simultaneous logins detected for client[id=cb526++++++++++54d], user[id=fdb494***36, email=}]","error_code":"simultaneous.logins"}

Errors & restart while adapter is active - automatic restart works

This morning the adapter stucks. After the automatic restart everything's fine again. Maybe the Token got invalid? I've not found on a quick view a renewal process in your code.
Or is it because the admin-adapter restarts sometimes itself?

`

husqvarna-automower.0 2022-04-20 06:30:32.429 info Connection to "Husqvarna WebSocket" established. Ready to get status events...
husqvarna-automower.0 2022-04-20 06:30:32.117 info System information saved...
husqvarna-automower.0 2022-04-20 06:30:31.782 info "Husqvarna Authentication API Access token" received.
husqvarna-automower.0 2022-04-20 06:30:31.317 info Trying to connect "Automower Connect API"...
husqvarna-automower.0 2022-04-20 06:30:31.316 info starting adapter "husqvarna-automower"...
husqvarna-automower.0 2022-04-20 06:30:31.311 info starting. Version 0.0.4 (non-npm: ice987987/ioBroker.husqvarna-automower#c824ffaf8c69e785bada1b4dbce1ed34752bdd3c) in /usr/local/iobroker/node_modules/iobroker.husqvarna-automower, node: v14.15.3, js-controller: 4.0.21
host.iMac-Micha.local 2022-04-20 06:30:30.936 info instance system.adapter.husqvarna-automower.0 started with pid 58097
host.iMac-Micha.local 2022-04-20 06:30:01.484 info Restart adapter system.adapter.husqvarna-automower.0 because enabled
host.iMac-Micha.local 2022-04-20 06:30:01.484 error instance system.adapter.husqvarna-automower.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
husqvarna-automower.0 2022-04-20 06:29:58.580 warn Terminated (UNCAUGHT_EXCEPTION): Without reason
husqvarna-automower.0 2022-04-20 06:29:58.579 info terminating
husqvarna-automower.0 2022-04-20 06:29:58.052 error "Automower Connect API" not reachable. Please check "Username, "Password and/or "API Key". (ERR_#008)
husqvarna-automower.0 2022-04-20 06:29:58.052 error Error: "Automower Connect API" not reachable. Please check "Username, "Password and/or "API Key". (ERR_#008) at /usr/local/iobroker/node_modules/iobroker.husqvarna-automower/main.js:154:11 at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:93:5) at async HusqvarnaAutomower.getRefreshToken (/usr/local/iobroker/node_modules/iobroker.husqvarna-automower/main.js:125:3)
husqvarna-automower.0 2022-04-20 06:29:58.051 error unhandled promise rejection: "Automower Connect API" not reachable. Please check "Username, "Password and/or "API Key". (ERR_#008)
husqvarna-automower.0 2022-04-20 06:29:58.050 error Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
host.iMac-Micha.local 2022-04-20 06:29:58.027 info No IPv4 address found after 5 minutes.
host.iMac-Micha.local 2022-04-20 04:28:58.032 info No IPv4 address found after 5 minutes.
host.iMac-Micha.local 2022-04-20 02:27:59.011 info No IPv4 address found after 5 minutes.
host.iMac-Micha.local 2022-04-20 11:36:08.333 info stopInstance system.adapter.admin.0 (force=false, process=true)
husqvarna-automower.0 2022-04-20 06:30:32.429 info Connection to "Husqvarna WebSocket" established. Ready to get status events...
husqvarna-automower.0 2022-04-20 06:30:32.117 info System information saved...
husqvarna-automower.0 2022-04-20 06:30:31.782 info "Husqvarna Authentication API Access token" received.
husqvarna-automower.0 2022-04-20 06:30:31.317 info Trying to connect "Automower Connect API"...
husqvarna-automower.0 2022-04-20 06:30:31.316 info starting adapter "husqvarna-automower"...
husqvarna-automower.0 2022-04-20 06:30:31.311 info starting. Version 0.0.4 (non-npm: ice987987/ioBroker.husqvarna-automower#c824ffaf8c69e785bada1b4dbce1ed34752bdd3c) in /usr/local/iobroker/node_modules/iobroker.husqvarna-automower, node: v14.15.3, js-controller: 4.0.21
host.iMac-Micha.local 2022-04-20 06:30:30.936 info instance system.adapter.husqvarna-automower.0 started with pid 58097
host.iMac-Micha.local 2022-04-20 06:30:01.484 info Restart adapter system.adapter.husqvarna-automower.0 because enabled
host.iMac-Micha.local 2022-04-20 06:30:01.484 error instance system.adapter.husqvarna-automower.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
husqvarna-automower.0 2022-04-20 06:29:58.580 warn Terminated (UNCAUGHT_EXCEPTION): Without reason
husqvarna-automower.0 2022-04-20 06:29:58.579 info terminating
husqvarna-automower.0 2022-04-20 06:29:58.052 error "Automower Connect API" not reachable. Please check "Username, "Password and/or "API Key". (ERR_#008)
husqvarna-automower.0 2022-04-20 06:29:58.052 error Error: "Automower Connect API" not reachable. Please check "Username, "Password and/or "API Key". (ERR_#008) at /usr/local/iobroker/node_modules/iobroker.husqvarna-automower/main.js:154:11 at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:93:5) at async HusqvarnaAutomower.getRefreshToken (/usr/local/iobroker/node_modules/iobroker.husqvarna-automower/main.js:125:3)
husqvarna-automower.0 2022-04-20 06:29:58.051 error unhandled promise rejection: "Automower Connect API" not reachable. Please check "Username, "Password and/or "API Key". (ERR_#008)
husqvarna-automower.0 2022-04-20 06:29:58.050 error Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
host.iMac-Micha.local 2022-04-20 06:29:58.027 info No IPv4 address found after 5 minutes.
host.iMac-Micha.local 2022-04-20 04:28:58.032 info No IPv4 address found after 5 minutes.
host.iMac-Micha.local 2022-04-20 02:27:59.011 info No IPv4 address found after 5 minutes.
host.iMac-Micha.local 2022-04-20 11:36:08.333 info stopInstance system.adapter.admin.0 (force=false, process=true)
husqvarna-automower.0 2022-04-20 06:30:32.429 info Connection to "Husqvarna WebSocket" established. Ready to get status events...
husqvarna-automower.0 2022-04-20 06:30:32.117 info System information saved...
husqvarna-automower.0 2022-04-20 06:30:31.782 info "Husqvarna Authentication API Access token" received.
husqvarna-automower.0 2022-04-20 06:30:31.317 info Trying to connect "Automower Connect API"...
husqvarna-automower.0 2022-04-20 06:30:31.316 info starting adapter "husqvarna-automower"...
husqvarna-automower.0 2022-04-20 06:30:31.311 info starting. Version 0.0.4 (non-npm: ice987987/ioBroker.husqvarna-automower#c824ffaf8c69e785bada1b4dbce1ed34752bdd3c) in /usr/local/iobroker/node_modules/iobroker.husqvarna-automower, node: v14.15.3, js-controller: 4.0.21
host.iMac-Micha.local 2022-04-20 06:30:30.936 info instance system.adapter.husqvarna-automower.0 started with pid 58097
host.iMac-Micha.local 2022-04-20 06:30:01.484 info Restart adapter system.adapter.husqvarna-automower.0 because enabled
host.iMac-Micha.local 2022-04-20 06:30:01.484 error instance system.adapter.husqvarna-automower.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
husqvarna-automower.0 2022-04-20 06:29:58.580 warn Terminated (UNCAUGHT_EXCEPTION): Without reason
husqvarna-automower.0 2022-04-20 06:29:58.579 info terminating
husqvarna-automower.0 2022-04-20 06:29:58.052 error "Automower Connect API" not reachable. Please check "Username, "Password and/or "API Key". (ERR_#008)
husqvarna-automower.0 2022-04-20 06:29:58.052 error Error: "Automower Connect API" not reachable. Please check "Username, "Password and/or "API Key". (ERR_#008) at /usr/local/iobroker/node_modules/iobroker.husqvarna-automower/main.js:154:11 at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:93:5) at async HusqvarnaAutomower.getRefreshToken (/usr/local/iobroker/node_modules/iobroker.husqvarna-automower/main.js:125:3)
husqvarna-automower.0 2022-04-20 06:29:58.051 error unhandled promise rejection: "Automower Connect API" not reachable. Please check "Username, "Password and/or "API Key". (ERR_#008)
husqvarna-automower.0 2022-04-20 06:29:58.050 error Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().

`

Script für Husqvarna-automower Adapter

Feature or idea description

Hallo Ice987986, wenn du willst, kannst du gerne mein Script für deine Adapter verwenden.
Habe das Script von dir auch integriert.
Das Script bietet folgende Funktionen:

  • Erstellung eines Google Maps Link anhand der Koordinaten, um diesen über VIS aufzurufen.
  • Erstellung eigener Objekt ID's für Start Zeit und ende Zeit um eine Uhrzeit in Vis einzustellen und das Script rechnet die Werte um für husqvarna-automower.0.xxxxxxxxxxxxxxxxxx.calendar.0.start und husqvarna-automower.0.xxxxxxxxxxxxxxxx.calendar.0.duration und trägt diese richtigen werde ein.
  • Einbindung eines Regensensors, um den Mäher bei Regen zu stoppen
    Und dann noch die Funktionen von dir.

Version of "husqvarna-automower"-adapter

0.2.0

Additional information & file uploads

Husqvarna_Script.txt

Adapter verliert WS-Verbindung

The problem

Hallo,
die Verbindung mit dem Mäher reist nach ungefähr 3 Tagen immer ab.
Screenshot 2023-07-03 171322
Nach einem Neustart ist die Verbindung sofort wieder da und hält dann wieder für 3 Tage.
Kannst du den Adapter nicht so einstellen, das er jede Nacht neu startet?
MfG Dirk Peter

Version of "husqvarna-automower"-adapter

v0.4.0-beta.3

Husqvarna Automower Type

405X

Version of Node.js

v18.12.1

Version of ioBroker js-controller

4.0.24

Version of "admin"-adapter

6.3.5

Operating system incl. version running ioBroker

Linux

Checklist of files to include below

  • iobroker.current.log (Please share the logs in debug mode and check that there are no personal information)
  • Contents of the JavaScript browser console (always include in cases of issues with the user interface)

Additional information & file uploads

No response

Add last state to the status within actions

Feature or idea description

My expectation of ioBroker Adapters is, that if a state is acknowledged, then the state is the state which have been accepted by the adapter. When someone changes a "ACTION", then the state will be un-acknowledged. Within ioBroker it is possible to get the last acknowledged state as well.

This adapter works different.

Detailed example:
ACTIONS.HEADLIGHT is per default "null".

The state will be loaded into
settings.headlight

May be I need some more explanation about the idea behind the separation of ACTIONS and the current status.

possible Solution:
The state could be copied with ack:ture to the ACTIONS for these statues.

Version of "husqvarna-automower"-adapter

v0.3.2-beta.1

Additional information & file uploads

If you agree I will create a PR.

unhandled promise rejection "Automower Connect API" not reachable. (ERR_#005)

The problem

Hello,

this evening the husqvarna-automower Adapter threw an error:

`

husqvarna-automower.0 2022-10-19 19:41:31.421 info Connection to "Husqvarna WebSocket" established. Ready to get data...
javascript.0 2022-10-19 19:41:31.160 info script.js.Skript_1: u0zuc3e35595
husqvarna-automower.0 2022-10-19 19:41:31.108 info Mowerdata initially saved.
husqvarna-automower.0 2022-10-19 19:41:30.746 info "Husqvarna Authentication API Access token" received.
husqvarna-automower.0 2022-10-19 19:41:30.452 info starting adapter "husqvarna-automower"...
husqvarna-automower.0 2022-10-19 19:41:30.410 info starting. Version 0.3.1-beta.1 (non-npm: ice987987/ioBroker.husqvarna-automower#development) in /opt/iobroker/node_modules/iobroker.husqvarna-automower, node: v16.16.0, js-controller: 4.0.23
host.ioBroker 2022-10-19 19:41:29.295 info instance system.adapter.husqvarna-automower.0 started with pid 54658
host.ioBroker 2022-10-19 19:40:59.219 info Restart adapter system.adapter.husqvarna-automower.0 because enabled
host.ioBroker 2022-10-19 19:40:59.217 error instance system.adapter.husqvarna-automower.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
husqvarna-automower.0 2022-10-19 19:40:58.653 info cleaned everything up... (#1)
husqvarna-automower.0 2022-10-19 19:40:58.653 warn Terminated (UNCAUGHT_EXCEPTION): Without reason
husqvarna-automower.0 2022-10-19 19:40:58.652 info terminating
husqvarna-automower.0 2022-10-19 19:40:58.471 error "Automower Connect API" not reachable. (ERR_#005)
husqvarna-automower.0 2022-10-19 19:40:58.471 error Error: "Automower Connect API" not reachable. (ERR_#005) at /opt/iobroker/node_modules/iobroker.husqvarna-automower/main.js:170:11 at runMicrotasks () at processTicksAndRejections (node:internal/process/task_queues:96:5) at async HusqvarnaAutomower.getMowerData (/opt/iobroker/node_modules/iobroker.husqvarna-automower/main.js:142:3) at async Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.husqvarna-automower/main.js:97:5)
husqvarna-automower.0 2022-10-19 19:40:58.470 error unhandled promise rejection: "Automower Connect API" not reachable. (ERR_#005)
husqvarna-automower.0 2022-10-19 19:40:58.464 error Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
`

Seems like there is an unhandeled exception.

Please let me know, if you need more information.

BR
Daniel

Version of Node.js

v16.16.0

Version of ioBroker js-controller

4.0.23

Version of "husqvarna-automower"-adapter

v0.3.1-beta.1

Version of "admin"-adapter

v6.2.22

Operating system incl. version running ioBroker

TrueNAS (FreeBSD-Jail) 12.2-RELEASE-p15

Checklist of files to include below

  • iobroker.current.log (Please share the logs in debug mode and check that there are no personal information)
  • Contents of the JavaScript browser console (always include in cases of issues with the user interface)

Additional information & file uploads

No response

Schedules werden nicht angezeigt

Der Adapter zeigt in keinem der drei Kalender die 'schedules' an, die eingerichtet sind.
Nach meinem Verständnis müsste er doch bereits im Mower angelegte schedules auslesen und anzeigen?

Bildschirmfoto 2022-04-18 um 09 11 51

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.