jpgorganizer / iobroker.smartgarden Goto Github PK
View Code? Open in Web Editor NEWGARDENA smart system adapter for ioBroker
License: Other
GARDENA smart system adapter for ioBroker
License: Other
Hallo,
super Arbeit, funktioniert einwandfrei. Bei dem alten Adapter, den ich genutz habe, wurde die Anzahl der Kollisionen des Mähers angezeigt ("collisions"). Könnte das von diesem Adapter auch als Datenpunkt geliefert werden?
Auch einige andere Datenpunkte würde ich mir wieder wünschen (weil meine Visualisierung darauf aufbaut):
Viele Grüße und Danke
Stefan
Seit gestern meldet der smartgarden-Adapter den foglenden Fehler:
smartgarden.0 | 2020-10-24 11:37:26.211 | error | at endReadableNT (_stream_readable.js:1145:12) |
---|---|---|---|
smartgarden.0 | 2020-10-24 11:37:26.211 | error | at IncomingMessage.emit (events.js:203:15) |
smartgarden.0 | 2020-10-24 11:37:26.211 | error | at Object.onceWrapper (events.js:286:20) |
smartgarden.0 | 2020-10-24 11:37:26.211 | error | at IncomingMessage. (/opt/iobroker/node_modules/request/request.js:1076:12) |
smartgarden.0 | 2020-10-24 11:37:26.211 | error | at Request.emit (events.js:198:13) |
smartgarden.0 | 2020-10-24 11:37:26.211 | error | at Request. (/opt/iobroker/node_modules/request/request.js:1154:10) |
smartgarden.0 | 2020-10-24 11:37:26.211 | error | at Request.emit (events.js:198:13) |
smartgarden.0 | 2020-10-24 11:37:26.211 | error | at Request.self.callback (/opt/iobroker/node_modules/request/request.js:185:22) |
smartgarden.0 | 2020-10-24 11:37:26.211 | error | at Request._callback (/opt/iobroker/node_modules/iobroker.smartgarden/lib/api.js:2830:29) |
smartgarden.0 | 2020-10-24 11:37:26.211 | error | at JSON.parse () |
smartgarden.0 | 2020-10-24 11:37:26.211 | error | (3901) SyntaxError: Unexpected end of JSON input |
smartgarden.0 | 2020-10-24 11:37:26.209 | error | (3901) uncaught exception: Unexpected end of JSON input |
Den API-Key habe ich heute verifiziert. | |||
DIe Ampel für den Adapter steht auf rot. |
Was ist zu tun?
Aktuell sind alle Objekte vom Typ "State" und haben den Datentyp "String" mit Rolle "Text".
Dies sollte geändert werden, sodass die Objekte dem Datenschema von ioBroker folgen.
Beispiele: rfLinkLevel_value
hätte den Datentyp "number" und die Rolle "value". rfLinkLevel_timestamp
hätte den Datentyp "number" und die Rolle "date" (Unix Timestamp).
Siehe hier: https://github.com/ioBroker/ioBroker.docs/blob/master/docs/en/dev/stateroles.md
und hier: https://github.com/ioBroker/ioBroker.docs/blob/master/docs/en/dev/objectsschema.md
Zudem sollen nur echte "States" den Objekttyp "state" haben. DEVICE sollte den Objekttyp "device" haben, es darf aber kein Stateinhalt gesetzt werden (aktuell "DEVICE").
Die Punkte SERVICE_COMMON / SERVICE_XXXX sollten vom Objekttyp "channel" sein und ebenfalls keine Werte im State haben.
Der Datenpunkt activity_value_i
hat den Wert "MOWING" oder "NOT_MOWING". In meinen Augen wäre hier ein State vom Typ boolean
mit der Rolle indicator
besser. Das könnte man dann auch in der Visualisierung gut verwenden.
403 Forbidden - Adapter funktioniert nicht mehr seit 09.06.2022
Habe mich eben mal eingeloggt auf: https://developer.husqvarnagroup.cloud/ und meine Applications waren einfach nicht mehr vorhanden !!
Habe dann eine neue angelegt und den Token kann ich per Terminal auch holen. Was mir aber aufgefallen ist, dass man sich nicht mehr per Username & Passwort authentifizieren kann sondern nur noch mittels Application UND Secret Key.
Keine Ahnung ob das neu ist und hier etwas geändert wurde. Wenn ja dann muss sicher der Adapter hier entsprechend angepasst werden.
Hi,
I'm wonderung how to stop the schedule.
In documentation I've found:
"
To control the device use data point
duration_value
Change this data point to start the valve.
To start for a defined time set the value to the value in seconds (please use multiples of 60).
Note: There are some limitations for the allowed values. Please report if you see other limitations.
device | limit |
---|---|
GARDENA smart Irrigation Control | 5400 seconds (90 minutes) |
GARDENA smart Pump | 36000 (10 hours) |
GARDENA smart Water Control | 36000 (10 hours) |
To cancel the current watering and continue with the schedule use string
STOP_UNTIL_NEXT_TASK
To skip automatic operation until specified time, the currently active
operation might or might not be cancelled (depends on device model) use string
PAUSE_<number_of_seconds>
, e.g. PAUSE_86400
to pause for 24 hours (please use multiples of 60)
To restore automatic operation if it was paused use string UNPAUSE
So if I'd like to pause the schedule for let's say two days I'm supposed to add "PAUSE_172800" in "duration_value"?
This means this object "duration_value" is a string where I can put seconds & complete commands???
Second question: What to do to pause until further action? If I'm getting the documentation right the "Pause" command always should be used with seconds?
Hallo zusammen, ich muss ca 2 mal im Monat den API Code auf der Gardena Webseite neu erstellen lassen und dann im Adapter eintragen, damit es wieder geht, ansonsten kommt der obige Fehler.
Mit freundlichen Grüßen
Alexander
The adapter basically works as desigend. But after a few hours of being connected it losses the connection to the service/device and traffic light turns yellow. Only a restart of the adapter will fix this issue. The debug log does not show any entries why loosing connection.
My configuration is as follows
Adapter version 1.0.5
JS-Controller: 4.0.23
NPM: 6.14.16
I already tried to set up a new instance with a new API. But the result was the same.
Does anybody has a clue?
After a few weeks I have to generate a new gardena api key, else the old one is wrong
Dear Adapter develop,
Node.js 14 is now available for a year and Node.js 16 was release just some days ago and will become LTS by October 2021. We plan to update the ioBroker Node.js recommendation (currently 12.x) to 14.x later this year.
Please check your adapter with Node.js 14 especially, and ideally also directly with Node.js 16
Please add both versions to the adapter testing which is executed on commits.
If your adapter requires a certain minimum version of Node.js please set the 'engine' setting in package.json accordingly! Please also do this if the adapter is not able to work in certain Node.js versions, so that ioBroker can prevent users from installing te adapter if not compatible!
On questions please talk to us at ioBroker/ioBroker.js-controller#1138
Please close the issue after you checked it.
Thank you very much for your support!
Voraussichtlicher nächster Start des Mähers
Das müsste ja prognostizierbar sein, indem man misst, wie schnell die Batterieladung voranschreitet, solange er auf OK_CHARGING steht. Dann könnte man die Restladedauer bis 100% schätzen. Natürlich funktioniert das nur, solange das Mähen laut Timer gerade aktiv ist und nicht in den Ruhephasen. Da liefert die API leider keinen Wert der Schedules.
Voraussichtliche Rest-Mähdauer
Das müsste auch wieder anhand der Restbatterieladung ermittelbar sein, indem man historisch misst und speichert, bei welcher Restladung der Mäher in die Station fährt und wie lange es bis zu dieser Restladung dauert.
Aus mir unerfindlichen Gründen ist es nicht möglich mit dem SQL-Adapter historische Daten für Ventile zu speichern. Egal welchen Datenpunkt ich unter einem der Ventile auswähle, ich kann dort nicht das Speichern in SQL aktivieren.
Eine Fehlermeldung ist mir nicht aufgefallen.
Hi, after installing the Adapter in version 2.0.0 from Github or Installing the current version from ioBroker i get this error message
smartgarden.0 | 15054 | 2022-06-16 16:05:02.891 | info | 3/ ---> State change by device: state sg.0.info.connection changed: false (ack = true) |
---|---|---|---|---|
smartgarden.0 | 15054 | 2022-06-16 16:05:02.886 | info | 3/ ---> State change by device: state sg.0.info.connection changed: false (ack = true) |
smartgarden.0 | 15054 | 2022-06-16 16:05:02.867 | info | 3/ getConnection: trying to connect again in 300 seconds |
smartgarden.0 | 15054 | 2022-06-16 16:05:02.866 | info | 3/ getConnection: returned connection error: request returned 404 Not Found |
smartgarden.0 | 15054 | 2022-06-16 16:05:02.865 | info | 3/ sgSetState: info.connection value=false ack=true |
smartgarden.0 | 15054 | 2022-06-16 16:05:02.863 | error | Error: request returned 404 Not Found |
smartgarden.0 | 15054 | 2022-06-16 16:05:02.862 | info | 3/ get_locations failure:..return with error |
smartgarden.0 | 15054 | 2022-06-16 16:05:02.860 | info | 3/ get_locations failure: response.statusCode/Message=404/Not Found |
smartgarden.0 | 15054 | 2022-06-16 16:05:02.858 | info | 3/ sgSetState: info.connection value=false ack=true |
smartgarden.0 | 15054 | 2022-06-16 16:04:57.597 | info | 3/ get_locations ... |
smartgarden.0 | 15054 | 2022-06-16 16:04:57.595 | info | 3/ connected ... auth_data=eyJhXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-XXX |
smartgarden.0 | 15054 | 2022-06-16 16:04:57.593 | info | 3/ Connection: expires_in/timeout/factor:86399 / 86313 / 0.999 |
smartgarden.0 | 15054 | 2022-06-16 16:04:57.591 | info | 3/ Connection: successful: response.statusCode / statusMessage=200 / OK |
smartgarden.0 | 15054 | 2022-06-16 16:04:51.376 | info | 3/ ---> State change by device: state sg.0.info.adapterversion changed: 2.0.0 (ack = true) |
smartgarden.0 | 15054 | 2022-06-16 16:04:51.373 | info | 3/ ---> State change by device: state sg.0.info.revision changed: Main: 2831 / API: 2831 (ack = true) |
smartgarden.0 | 15054 | 2022-06-16 16:04:51.368 | info | 3/ ---> State change by device: state sg.0.info.connection changed: false (ack = true) |
smartgarden.0 | 15054 | 2022-06-16 16:04:51.364 | info | 3/ ---> State change by device: state sg.0.info.connection changed: false (ack = true) |
smartgarden.0 | 15054 | 2022-06-16 16:04:51.353 | info | 3/ sgSetState: info.revision value=Main: 2831 / API: 2831 ack=true |
smartgarden.0 | 15054 | 2022-06-16 16:04:51.296 | info | 3/ connect ... using client credentials grant |
smartgarden.0 | 15054 | 2022-06-16 16:04:51.295 | info | 3/ connect ... empty password |
smartgarden.0 | 15054 | 2022-06-16 16:04:51.294 | info | 3/ connect ... empty username |
smartgarden.0 | 15054 | 2022-06-16 16:04:51.294 | info | 3/ Gardena Smart System Service hosts at: smart_host: https://api.smart.gardena.dev authentication_host: https://api.authentication.husqvarnagroup.dev |
smartgarden.0 | 15054 | 2022-06-16 16:04:51.293 | info | 3/ connecting to Gardena Smart System Service ... |
smartgarden.0 | 15054 | 2022-06-16 16:04:51.292 | info | 3/ sgSetState: info.connection value=false ack=true |
smartgarden.0 | 15054 | 2022-06-16 16:04:51.289 | info | 3/ connectToGardena... |
smartgarden.0 | 15054 | 2022-06-16 16:04:51.288 | info | 3/ getConnection... |
smartgarden.0 | 15054 | 2022-06-16 16:04:51.234 | info | starting. Version 2.0.0 in /opt/iobroker/node_modules/iobroker.smartgarden, node: v14.19.3, js-controller: 4.0.23 |
host.raspberrypi | 2022-06-16 16:04:49.683 | info | instance system.adapter.smartgarden.0 started with pid 15054 | |
host.raspberrypi | 2022-06-16 16:04:49.600 | info | "system.adapter.smartgarden.0" enabled |
I reinstalled the Adapter a couple times, and i also created a new Application in the API.
Can someone help me?
Thanks
Torsten
Es sollte verhindert werden, dass die Bewässerung läuft, solange der Mäher mäht.
Sinnvoll weil der Mäher ggfs. gegen Versenkregner fährt und dabei Schäden am Regner wie auch am Mäher entstehen können.
Der Mäher hat Vorrang vor der Bewässerung, da er auch am Mäher selbst gestartet werden kann. Eine evtl. laufende Bewässerung wird dann abgebrochen.
Konfiguration pro Ventil erforderlich, da es Regnerkreise geben kann, die vom Mäher nicht beeinträchtigt sind.
Hallo,
wollte gerade auf die neue Version Updaten, nun bekomme ich diesen Fehler:
$ ./iobroker upgrade smartgarden
Update smartgarden from @1.0.4 to @1.0.5
NPM version: 6.14.12
npm install [email protected] --loglevel error --prefix "/opt/iobroker" (System call)
npm ERR! code ELOOP
npm ERR! syscall accessnpm ERR! path /opt/iobroker/node_modules/canvasnpm ERR! errno -40
npm ERR! ELOOP: too many symbolic links encountered, access '/opt/iobroker/node_modules/canvas'
npm ERR! A complete log of this run can be found in:npm ERR! /home/iobroker/.npm/_logs/2021-05-21T09_44_04_995Z-debug.log
ERROR: host.iobroker-master Cannot install [email protected]: 216
ERROR: process exited with code 25
2021-05-21T09_44_04_995Z-debug.log:
58 silly saveTree ├── [email protected]
58 silly saveTree └── [email protected]
59 warn @date-io/[email protected] requires a peer of date-fns@^2.0.0 but none is installed. You must install peer dependencies yourself.
60 warn @material-ui/[email protected] requires a peer of @material-ui/core@^4.0.0 but none is installed. You must install peer dependencies yourself.
61 warn @material-ui/[email protected] requires a peer of react@^16.8.0 || ^17.0.0 but none is installed. You must install peer dependencies yourself.
62 warn @material-ui/[email protected] requires a peer of react-dom@^16.8.0 || ^17.0.0 but none is installed. You must install peer dependencies yours$
63 warn [email protected] requires a peer of react@>=16.6.0 but none is installed. You must install peer dependencies yourself.
64 warn [email protected] requires a peer of react-dom@>=16.6.0 but none is installed. You must install peer dependencies yourself.
65 warn [email protected] requires a peer of react@>=16.8 but none is installed. You must install peer dependencies yourself.
66 verbose stack Error: ELOOP: too many symbolic links encountered, access '/opt/iobroker/node_modules/canvas'
67 verbose cwd /opt/iobroker
68 verbose Linux 4.19.0-14-amd64
69 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "[email protected]" "--loglevel" "error" "--prefix" "/opt/iobroker"
70 verbose node v12.22.1
71 verbose npm v6.14.12
72 error code ELOOP
73 error syscall access
74 error path /opt/iobroker/node_modules/canvas
75 error errno -40
76 error ELOOP: too many symbolic links encountered, access '/opt/iobroker/node_modules/canvas'
77 verbose exit [ -40, true ]
Kann mir jemand einen Tipp geben was ich machen muss? :-)
Gruß
Tom
I am an automatic service that looks for possible errors in ioBroker and creates an issue for it. The link below leads directly to the test:
Thanks,
your automatic adapter checker.
P.S.: There is a community in Github, which supports the maintenance and further development of adapters. There you will find many experienced developers who are always ready to assist anyone. New developers are always welcome there. For more informations visit: https://github.com/iobroker-community-adapters/info
Since a few days (4 or 5) the adapter is not able to connect to the Garden cloud giving the following error in the log:
(37362) Error: request returned 403 Forbidden
Does anybody has the same behaviour and know how to solve?
Der State lastErrorCode_value
existiert scheinbar nur, wenn er das erste Mal von der API gesendet wurde. Vielleicht kannst du den vorab schon anlegen, damit er von anderen Skripten "subscribed" werden kann, auch wenn noch kein Fehler aufgetreten ist.
Ggf. trifft das auch für andere States zu, das kann ich aber mangels genauer Kenntnis der Api nicht sagen.
Although the documentation states that there are no controlling options for SERVICE_SENSOR, would it be possible to trigger an update for the values?
The values, espescially for soil humidity, are only update every now and then. Under certain circumstances, it would be good to manually initate an update to make sure, that the values aren't out of date.
Since this is possible from within the smartphone app, I guess the Gardena API is supporting it as well.
Dear Adapter developer,
with js-controller 4.0 object definitions are now also checked that min/max in only provided for number/mixed objects and that the type of the default value matches to the object type.
If something is not correct this is logged as 'warning' or 'info' log.
Please also make sure to update to the lastest @iobroker/testing dependency 2.5.4 or to accept the PR from Apollon77 for legacy testing!
Please spent some time to verify your adapter by ideally starting with a fresh instance and do some actions and verify the log. If you see a warn or info log there from these checks please adjust the adapter and fix the relevant cases.
For questions please refer to ioBroker/ioBroker.js-controller#1749
Please close the issue after you checked it.
Thank you very much for your support to get the best experience for the growing numbers of ioBroker users!
Hello,
the batterylevel is allways 99%.
rfLinkState_timestamp has a wrong value type to get timestamp from gardena mover in ioBroker in date format
Bei den timestamp Datenpunkten wird immer „Invalid Date“ angezeigt. Version 0.6
2021-09-17 19:40:04.071 - �[33mwarn�[39m: socketio.0 (15241) Read-only state "smartgarden.0.LOCATION_XXX.DEVICE_XXX.SERVICE_COMMON_XXX.batteryLevel_value" has been written without ack-flag with value "9"
It's a smart water control.
moin moin,
erstmal super arbeit, was den adapter angeht!
gibt es eine möglichkeit, den datenpunkt activity_control_i mit einem befehl zu beschreiben das der Mäher sofort losfährt bzw. zurück fährt ohne das er auf den zeitplan von gardena achtet
wie kann ich einen error wie zb frost warnung zurücksetzen?
Hi, i Updated my JS-Controller to 3.1.4, since then i got the following Error Mesage:
startInstance system.adapter.smartgarden.0: required adapter "@jpgorganizer/utils" not found!
after that i tried to uninstall it, and manually install the jporganizer...
npm install https://github.com/jpgorganizer/ioBroker.utils
but i get Warnings and nothing works...
npm WARN saveError ENOENT: no such file or directory, open '/home/pi/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json'
npm WARN pi No description
npm WARN pi No repository field.
npm WARN pi No README data
npm WARN pi No license field.
then i tried to install the newst smartgarden again... (0.6.0
But i got the same Warn-Messages...
npm WARN saveError ENOENT: no such file or directory, open '/home/pi/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json'
npm WARN pi No description
npm WARN pi No repository field.
npm WARN pi No README data
npm WARN pi No license field.
please help me... before it workd like charm...
Hello,
Since 1 or 2 days the adapter is yellow. If I restart it I get the massage "(32233) Error: request returned 401 Unauthorized "
Regards
Hartmut
2021-08-24 13:29:22.032 - �[32minfo�[39m: smartgarden.0 (17259) State value to set for "smartgarden.0.LOCATION_***.DEVICE_***.SERVICE_MOWER_***.activity_mowingTime_remain_i" has to be type "number" but received type "string"
2021-08-24 13:44:12.737 - �[32minfo�[39m: smartgarden.0 (18772) State value to set for "smartgarden.0.LOCATION_***.DEVICE_***.SERVICE_COMMON_***.batteryState_chargingTime_remain_i" has to be type "number" but received type "string"
Mit Commit 17d8f68 wurden alle States als write: true
angelegt.
write: true
ist nur für States gedacht, die vom Benutzer verändert werden sollen, also Kommandos auslösen. Siehe https://github.com/ioBroker/ioBroker.docs/blob/master/docs/en/dev/stateroles.md (write-only, read-only oder read-write).
Seit ein paar Tagen hat der Adapter Verbindungsprobleme. Ca. einmal am Tag ist bei "Verbunden mit Gerät oder Dienst" ein rotes Kreuz. Nach dem Reboot des Adapter funktioniert er wieder für einen Tag. Kann das mit der Änderung der API zusammenhängen die Husqvarna vor ein paar Tagen vorgenommen hat?
Ich hab den Log Level mal auf 3 gesetzt. Sobald ich da was im LOG hab melde ich mich.
gardena power socket
The data points state_timestamp and activity_timestamp are not getting updated when my power sockets (19095-20) are switched by the time schedule funktion of my gardena app (version 3.4.1)
this leads to wrong activity_value
Only if I turn the device off or on manually without (time schedules) they´re getting updated.
Could you please check?
The adapter is not able to start. i get always an error
"Error: getlocations: no data"
Hallo zusammen,
eine Frage ... gibt es die Möglichkeit das man ein Update der Sensorwerte Triggern kann ?
ich habe bislang einen veralteten Adapter (Gardena Smart System) genutzt und da ging so etwas..
Würde ihn aber gern einstellen und Komplett auf diesen hier umsteigen da er aktueller ist ;)
Vielen Dank schonmal.
Version: stable=1.0.1 (43 days old) => latest=1.0.2 (30 days old)
Installs: stable=234 (54.8%), latest=113 (26.46%), total=427
Click to edit
Nach einem Abbruch der Internetverbindung und Wiederherstellung sollte automatisch die Verbindung zu Gardena wieder hergestellt werden.
Since three days I get the following error in ioBroker.
I didn’t change anything and it was stable for months now.
Hallo jpgorganizer,
toller Adapter. Dankeschön dafür.
Leider habe ich seit Anfang an Probleme mit der Verbindung. Die generierte API funktioniert nur für 2-3 Tage, danach findet keine Kommunikation mehr statt. Der Adapter geht auf gelb. Generiere ich nun eine eine API mit der gleichen Konfiguration, funktioniert es wieder. Das Problem wiederholt sich im beschriebenen.
Freue mich auf Hilfe.
Mein Log im Anhang.
iobroker.2020-08-25.webarchive.zip
Vielen Dank im Voraus.
Grüße,
Stefan
Hi,
thanks for the greate adapter! I just switched from openHAB to ioBroker and I cannot get any reaction if I change the activity_control_i state. (With openHAB this was working so I know API key etc. are correct.)
It does not matter if i put a number or one of the defined commands from the readme into the state - no reaction from the mower. Log shows, that the state change was received successfully.
If I start/stop the mower from the Gardena app, I can see that activity_mowing_i and the other status states are changing within seconds.
So the adapter works in general for me but only for the status states and not for activity_control_i
Adapter version is 1.0.4
An dieser Stelle erstmal vielen Dank für den Adapter
Mir ist ein Problem aufgefallen:
Hat man den Zeitplan deaktiviert und startet den Mäher manuell per setzen von activity_control_i wird der Zeitplan aktiviert. Das passiert allerdings nur, wenn man den manuellen Start in einem Zeitfenster aktiviert, zu dem es einen Zeitplan gibt. Startet man den Mäher manuell außerhalb dieses Zeitfensters, bleibt auch der Zeitplan deaktiviert.
Führt man einen manuellen Start über die App aus, bleibt der Zeitplan immer deaktiviert.
Ist das ein Fehler auf meiner Seite, im Adapter oder in der API?
https://github.com/jpgorganizer/ioBroker.smartgarden/blob/master/io-package.json#L101 makes no sense, please fix it, otherwise js-c 3 won't start your adapter
With the basic setting:
https://api.authentication.husqvarnagroup.dev and https://api.smart.gardena.dev
I get the error message:
smartgarden.0 2022-03-10 20:31:39.815 error Error: request returned 401 Unauthorized
I change the setting as shown in my Gardenaaccount to:
https://api.authentication.husqvarnagroup.dev/v1 and https://api.smart.gardena.dev/v1
I get the error message:
smartgarden.0 2022-03-10 20:37:53.689 error Error: request returned 403 Forbidden
So it no longer works with both variants. Am I doing something wrong? It used to work (last summer) but now I've noticed that it doesn't work anymore.
Neuerdings geht der Adapter leider auf gelb bzw. rot. Ich habe den Adapter mal gelöshct und wieder installiert. Zusätzlich die Optionen auf der 3. Adapter-Seite angehakt... Reboot war auch erfolglos.
Doe Verbindung zu Gardena steht/ ist vorhanden aber folgende Fehler tauchen im Log auf:
`
host.ioBroker | 2020-10-25 18:43:15.700 | info | Restart adapter system.adapter.smartgarden.0 because enabled |
---|---|---|---|
host.ioBroker | 2020-10-25 18:43:15.699 | info | instance system.adapter.smartgarden.0 terminated with code 0 (NO_ERROR) |
smartgarden.0 | 2020-10-25 18:43:15.180 | info | (27806) Terminated (NO_ERROR): Without reason |
smartgarden.0 | 2020-10-25 18:43:15.180 | info | (27806) terminating |
smartgarden.0 | 2020-10-25 18:43:15.133 | info | (27806) 3/ cleaned everything up... |
smartgarden.0 | 2020-10-25 18:43:15.132 | error | (27806) SyntaxError: Unexpected end of JSON input at JSON.parse () at Request._callback (/opt/iobroker/node_modules/iobroker.smartgarden/lib/api.js:2830:29) at Request.self.call |
smartgarden.0 | 2020-10-25 18:43:15.130 | error | (27806) uncaught exception: Unexpected end of JSON input |
smartgarden.0 | 2020-10-25 18:43:14.788 | info | (27806) 3/ ---> State change by device |
smartgarden.0 | 2020-10-25 18:43:14.787 | info | (27806) 3/ state smartgarden.0.info.RateLimitCounter changed: {"2020":{"2020-10":{"count":4,"2020-10-25":{"17":{"count":4},"count":4}}},"last30days":{"count":4},"last31days":{"count":4}} (ack = true) |
smartgarden.0 | 2020-10-25 18:43:14.785 | info | (27806) 3/ ---> State change by device |
smartgarden.0 | 2020-10-25 18:43:14.785 | info | (27806) 3/ state smartgarden.0.info.connection changed: true (ack = true) |
smartgarden.0 | 2020-10-25 18:43:14.784 | info | (27806) 3/ ---> State change by device |
smartgarden.0 | 2020-10-25 18:43:14.784 | info | (27806) 3/ state smartgarden.0.info.connection changed: true (ack = true) |
smartgarden.0 | 2020-10-25 18:43:14.768 | info | (27806) 3/ incrementLimitCounter: new counters : y2020 / m2020-10: 4 / d2020-10-25: 4 / hr17: 4 / last30days: 4 / last31days: 4 |
smartgarden.0 | 2020-10-25 18:43:14.767 | info | (27806) 3/ get_locations ... |
smartgarden.0 | 2020-10-25 18:43:14.766 | info | (27806) 3/ connected ... auth_data=eyJhXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX |
smartgarden.0 | 2020-10-25 18:43:14.765 | info | (27806) 3/ sgSetState: info.connection value=true ack=true |
smartgarden.0 | 2020-10-25 18:43:14.764 | info | (27806) 3/ Connection: successful: response.statusCode / statusMessage=200 / OK |
smartgarden.0 | 2020-10-25 18:43:14.290 | info | (27806) 3/ ---> State change by device |
smartgarden.0 | 2020-10-25 18:43:14.289 | info | (27806) 3/ state smartgarden.0.info.RateLimitCounter changed: {"2020":{"2020-10":{"count":3,"2020-10-25":{"17":{"count":3},"count":3}}},"last30days":{"count":3},"last31days":{"count":3}} (ack = true) |
smartgarden.0 | 2020-10-25 18:43:14.283 | info | (27806) 3/ ---> Command should be sent to device |
smartgarden.0 | 2020-10-25 18:43:14.282 | info | (27806) 3/ state smartgarden.0.testVariable changed: true (ack = false) |
smartgarden.0 | 2020-10-25 18:43:14.282 | info | (27806) 3/ ---> State change by device |
smartgarden.0 | 2020-10-25 18:43:14.281 | info | (27806) 3/ state smartgarden.0.info.revision changed: Main: 2160 / API: 2250 (ack = true) |
smartgarden.0 | 2020-10-25 18:43:14.280 | info | (27806) 3/ ---> State change by device |
smartgarden.0 | 2020-10-25 18:43:14.280 | info | (27806) 3/ state smartgarden.0.info.connection changed: false (ack = true) |
smartgarden.0 | 2020-10-25 18:43:14.270 | info | (27806) 3/ incrementLimitCounter: new counters : y2020 / m2020-10: 3 / d2020-10-25: 3 / hr17: 3 / last30days: 3 / last31days: 3 |
smartgarden.0 | 2020-10-25 18:43:14.218 | info | (27806) 3/ Gardena Smart System Service hosts at: smart_host: https://api.smart.gardena.dev authentication_host: https://api.authentication.husqvarnagroup.dev |
smartgarden.0 | 2020-10-25 18:43:14.215 | info | (27806) 3/ sgSetState: info.revision value=Main: 2160 / API: 2250 ack=true |
smartgarden.0 | 2020-10-25 18:43:14.179 | info | (27806) starting. Version 1.0.2 in /opt/iobroker/node_modules/iobroker.smartgarden, node: v12.19.0, js-controller: 3.1.6 |
host.ioBroker | 2020-10-25 18:43:12.556 | info | instance system.adapter.smartgarden.0 started with pid 27806 |
smartgarden.0 | 2020-10-25 18:32:33.965 | info | (15834) Terminated (NO_ERROR): Without reason |
---|---|---|---|
smartgarden.0 | 2020-10-25 18:32:33.964 | info | (15834) terminating |
smartgarden.0 | 2020-10-25 18:32:33.919 | error | (15834) SyntaxError: Unexpected end of JSON input at JSON.parse () at Request._callback (/opt/iobroker/node_modules/iobroker.smartgarden/lib/api.js:2830:29) at Request.self.call |
smartgarden.0 | 2020-10-25 18:32:33.917 | error | (15834) uncaught exception: Unexpected end of JSON input |
smartgarden.0 | 2020-10-25 18:32:01.331 | info | (15243) Terminated (NO_ERROR): Without reason |
---|---|---|---|
smartgarden.0 | 2020-10-25 18:32:01.329 | info | (15243) terminating |
smartgarden.0 | 2020-10-25 18:32:01.284 | error | at endReadableNT (_stream_readable.js:1223:12) |
smartgarden.0 | 2020-10-25 18:32:01.284 | error | at IncomingMessage.emit (events.js:326:22) |
smartgarden.0 | 2020-10-25 18:32:01.284 | error | at Object.onceWrapper (events.js:420:28) |
smartgarden.0 | 2020-10-25 18:32:01.284 | error | at IncomingMessage. (/opt/iobroker/node_modules/request/request.js:1076:12) |
smartgarden.0 | 2020-10-25 18:32:01.284 | error | at Request.emit (events.js:314:20) |
smartgarden.0 | 2020-10-25 18:32:01.284 | error | at Request. (/opt/iobroker/node_modules/request/request.js:1154:10) |
smartgarden.0 | 2020-10-25 18:32:01.284 | error | at Request.emit (events.js:314:20) |
smartgarden.0 | 2020-10-25 18:32:01.284 | error | at Request.self.callback (/opt/iobroker/node_modules/request/request.js:185:22) |
smartgarden.0 | 2020-10-25 18:32:01.284 | error | at Request._callback (/opt/iobroker/node_modules/iobroker.smartgarden/lib/api.js:2830:29) |
smartgarden.0 | 2020-10-25 18:32:01.284 | error | at JSON.parse () |
smartgarden.0 | 2020-10-25 18:32:01.284 | error | (15243) SyntaxError: Unexpected end of JSON input |
smartgarden.0 | 2020-10-25 18:32:01.280 | error | (15243) uncaught exception: Unexpected end of JSON input |
smartgarden.0 | 2020-10-25 18:32:00.718 | info | (15243) starting. Version 1.0.2 in /opt/iobroker/node_modules/iobroker.smartgarden, node: v12.19.0, js-controller: 3.1.6 |
`
hallo ist es möglich den Zeitplan den man per Gardena Smart App einstellt mit in den Objekten anzeigen zu lassen? dann könnte man per VIS einen eigenen Zeitplan erstellen. habe gesehen das es beim Worx Adapter möglich is.
Hallo,
leider funktioniert seit ungefähr zwei Wochen die Verbindung nicht mehr:
smartgarden.0 | 2022-05-09 15:15:03.531 | info | 1/ getConnection: trying to connect again in 300 seconds |
---|---|---|---|
smartgarden.0 | 2022-05-09 15:15:03.531 | info | 1/ getConnection: returned connection error: request returned 400 Bad Request |
smartgarden.0 | 2022-05-09 15:15:03.530 | error | Error: request returned 400 Bad Request |
smartgarden.0 | 2022-05-09 15:15:03.523 | info | 1/ Connection failure:..return with error |
smartgarden.0 | 2022-05-09 15:15:03.521 | info | 1/ Connection failure.response.statusCode/Message=400/Bad Request |
smartgarden.0 | 2022-05-09 15:15:02.213 | info | 1/ Gardena Smart System Service hosts at: smart_host: https://api.smart.gardena.dev authentication_host: https://api.authentication.husqvarnagroup.dev |
smartgarden.0 | 2022-05-09 15:15:02.213 | info | 1/ connecting to Gardena Smart System Service ... |
smartgarden.0 | 2022-05-09 15:15:02.210 | info | 1/ connectToGardena... |
smartgarden.0 | 2022-05-09 15:15:02.209 | info | 1/ getConnection... |
smartgarden.0 | 2022-05-09 15:15:01.987 | info | starting. Version 1.0.5 in /opt/iobroker/node_modules/iobroker.smartgarden, node: v14.19.1, js-controller: 4.0.23 |
Kann mir jemand einen Tipp geben?
Danke :-)
Hello,
i have checked using the API on API-Website and it works well with my application key.
I installed the adapter and entered my mail-address, ma password and the application key and set log level to highest.
I have an Water Control running.
When i start the instance i unfortunately get no data, see log.
Do you have any idea, why this /LOCATIONS does not work in the adapter?
Thank you in advance,
Peter
Log ioBroker when starting instance:
smartgarden.0 | 2020-07-16 09:32:23.317 | info | (17014) 3/ ---> State change by device |
---|---|---|---|
smartgarden.0 | 2020-07-16 09:32:23.317 | info | (17014) 3/ state smartgarden.0.info.connection changed: false (ack = true) |
smartgarden.0 | 2020-07-16 09:32:23.315 | error | (17014) Error: getlocations: no data |
smartgarden.0 | 2020-07-16 09:32:23.119 | info | (17014) 3/ ---> State change by device |
smartgarden.0 | 2020-07-16 09:32:23.119 | info | (17014) 3/ state smartgarden.0.info.connection changed: true (ack = true) |
smartgarden.0 | 2020-07-16 09:32:23.118 | info | (17014) 3/ ---> State change by device |
smartgarden.0 | 2020-07-16 09:32:23.118 | info | (17014) 3/ state smartgarden.0.info.connection changed: true (ack = true) |
smartgarden.0 | 2020-07-16 09:32:23.113 | info | (17014) 3/ get_locations ... |
smartgarden.0 | 2020-07-16 09:32:23.113 | info | (17014) 3/ connected ... auth_data=eyJhXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX |
smartgarden.0 | 2020-07-16 09:32:23.112 | info | (17014) 3/ sgSetState: info.connection value=true ack=true |
smartgarden.0 | 2020-07-16 09:32:23.112 | info | (17014) 3/ Connection: successful: response.statusCode / statusMessage=200 / OK |
smartgarden.0 | 2020-07-16 09:32:22.817 | info | (17014) 3/ ---> Command should be sent to device |
smartgarden.0 | 2020-07-16 09:32:22.817 | info | (17014) 3/ state smartgarden.0.testVariable changed: true (ack = false) |
smartgarden.0 | 2020-07-16 09:32:22.817 | info | (17014) 3/ ---> State change by device |
smartgarden.0 | 2020-07-16 09:32:22.817 | info | (17014) 3/ state smartgarden.0.info.revision changed: Main: 2160 / API: 2167 (ack = true) |
smartgarden.0 | 2020-07-16 09:32:22.817 | info | (17014) 3/ ---> State change by device |
smartgarden.0 | 2020-07-16 09:32:22.817 | info | (17014) 3/ state smartgarden.0.info.connection changed: false (ack = true) |
smartgarden.0 | 2020-07-16 09:32:22.789 | info | (17014) 3/ Gardena Smart System Service hosts at: smart_host: https://api.smart.gardena.dev authentication_host: https://api.authentication.husqvarnagroup.dev |
smartgarden.0 | 2020-07-16 09:32:22.788 | info | (17014) 3/ sgSetState: info.revision value=Main: 2160 / API: 2167 ack=true |
smartgarden.0 | 2020-07-16 09:32:22.773 | info | (17014) starting. Version 1.0.0 in /opt/iobroker/node_modules/iobroker.smartgarden, node: v10.21.0, js-controller: 3.1.4 |
smartgarden.0 | 2020-07-16 09:32:20.438 | info | (15390) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason |
smartgarden.0 | 2020-07-16 09:32:20.438 | info | (15390) terminating |
smartgarden.0 | 2020-07-16 09:32:20.438 | info | (15390) 3/ cleaned everything up... |
smartgarden.0 | 2020-07-16 09:32:20.437 | info | (15390) Got terminate signal TERMINATE_YOURSELF |
Dear Adapter developer,
with js-controller 3.2 and js-controller 3.3 some additional checks were added to make sure that created objects match to the specifications and also written state values match to the object definition.
If something is not correct this is logged as 'warning' or 'info' log.
Please take the time to verify your adapter by ideally starting with a fresh instance and do some actions and verify the log. If you see a warn log there from these checks please adjust the adapter and fix the relevant cases.
For questions please refer to ioBroker/ioBroker.js-controller#1301
Additionally we are preparing Admin 5 which will have a completely rewritten UI. Please install Admin 5, activate that new UI and verify that the configuration of you adapter works as expected also there.
More informations on Admin 5 can be found in Forum https://forum.iobroker.net/topic/44282/test-adapter-admin-5-0-x-alpha-der-neuen-ui
Please close the issue after you checked it.
Thank you very much for your support!
First of all: Thank you for this adapter. So handy and usefull and even a nice documentation! Well done.
I plan to buy the new SmartSensor to make my sprinkler system even more smart.
I read in #15 the values are pushed in random intervals by the sensor. For my implentation this should be no problem. It depends on the interval range. So the question:
How many value updates the sensor sends to the adapter per day (mean)?
I have requested API key, and entered my username (email adress) and password to adapter, but I have Error: request returned 403 Forbidden in my log and Can't connect to device or service. Can you please explain what is the issue? I changed auth url to https://api.authentication.husqvarnagroup.dev/v1 and base url to https://api.smart.gardena.dev/v1 . Password is correct. i have no Secret key field as in your documentation, just user and password fields. Thank you!
Zum steuern der Ventile wird der Wert in "duration_value" gesetzt. Laut Beschreibung kann mit "PAUSE" der Zeitplan für eine bestimmte Zeit ausgesetzt werden (z.B. Regen etc.)
"to skip automatic operation until specified time, the currently active operation might or might not be cancelled (depends on device model) use string PAUSE"
Der String "PAUSE" alleine reicht hier aber nicht und hat keine Auswirkung. Irgendwo müsste noch die Dauer der Pause spezifiziert werden? Das ist aktuell nicht möglich?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.