Code Monkey home page Code Monkey logo

iobroker.worx's Introduction

Logo

ioBroker.worx

NPM version Downloads Number of Installations Current version in stable repository

NPM

Tests: Test and Release

Sentry

This adapter uses Sentry libraries to automatically report exceptions and code errors to the developers. For more details and for information how to disable the error reporting see Sentry-Plugin Documentation! Sentry reporting is used starting with js-controller 3.0.

Required

  • Node 18 or 20
  • JS-Controller >= 5.0.19
  • Admin >= 6.13.16

Worx (Kress, Landxcape and Ferrex) adapter for ioBroker

Control via cloud and mqtt

This adapter connects IoBroker with your Landroid Kress Landxcape or Ferrex mower via Cloud. Temperatures, mowing times, battery level and various other data are read out from the mower. The adapter can control the mower and you can change config params like mowtimes.

Description

🇬🇧 Description
🇩🇪 Beschreibung

Disscussion und Questions

🇩🇪 Fragen

Changelog

WORK IN PROGRESS

  • (Lucky-ESA) Preperation mission Kress new API
  • (Lucky-ESA) Fixed TypeError
  • (Lucky-ESA) Fixed missing activity states
  • (Lucky-ESA) Added update interval in instance setting
  • (Lucky-ESA) Added last update

3.0.0 (2024-04-25)

  • (Lucky-ESA) Fixed Sentry messages
  • (Lucky-ESA) Catch publish crash
  • (Lucky-ESA) Added Vision completely
  • (Lucky-ESA) Node 18 required
  • (Lucky-ESA) JS-Controller >= 5.0.19 required
  • (Lucky-ESA) Admin >=6.13.16 required
  • (Lucky-ESA) Catch aws_cer error and use old mqtt connection
  • (Lucky-ESA) Delete ping

2.3.4 (2023-10-19)

  • (Lucky-ESA) Fixed folder without raw
  • (Lucky-ESA) Changed Loglevel at refresh token
  • (Lucky-ESA) Fixed restriction vision bordercut
  • (Lucky-ESA) Fixed check json vision startsequence

2.3.3 (2023-09-25)

  • (Lucky-ESA) Added cmd wifi lock for Vision
  • (Lucky-ESA) Fixed #761
  • (Lucky-ESA) Added sequence for Vision
  • (Lucky-ESA) Checking working hours and locktime
  • (Lucky-ESA) Fixed incorrect log message for firmware update

2.3.2 (2023-07-21)

  • (Lucky-ESA) Wrong folder for areas
  • (Lucky-ESA) New data points can only be read

2.3.1 (2023-07-20)

  • (Lucky-ESA) Added Firmware Update
  • (Lucky-ESA) Deleted board info request - Worx disabled endpoint
  • (Lucky-ESA) Added reset blade time and battery time
  • (Lucky-ESA) Added ping after refresh token
  • (Lucky-ESA) Added german description
  • (TA2k) Changed firmware request
  • (Lucky-ESA) Changed auth-endpoint
  • (Lucky-ESA) Some bug fixes
  • (Lucky-ESA) Fix unique mqtt clientid
  • (Lucky-ESA) Fix #704
  • (Lucky-ESA) readme.md translated #703
  • (Lucky-ESA) New Mqtt connection Fix #590

2.2.0 (2023-06-27)

  • (Lucky-ESA) Removed mowerActive for Vision
  • (Lucky-ESA) Add Vision paused schedule
  • (Lucky-ESA) Add Vision partyModus
  • (Lucky-ESA) Fix ping request Vision
  • (Lucky-ESA) Fix send message inheritance
  • (Lucky-ESA) Fix #684
  • (Lucky-ESA) Fix deviceArray inheritance
  • (Lucky-ESA) Add Vision mowers w/o Status & Error message
  • (Lucky-ESA) Add ZoneKeeper for previous mowers

2.1.3

  • (TA2k) Add ping option in the instance settings

2.1.2

  • (TA2k) Improve reconnection for multiple mower

2.1.1

  • (TA2k) Change reconnection times

2.1.0

  • (TA2k) Move Calendar setState to one Json and other fixes to prevent blocking because of too many sending requests

2.0.3

  • (TA2k) Add manual refresh. Fix empty status and firmware format. Reduce info logs.

2.0.1

  • (TA2k) Adapter rewritten. Added product info and activity log. rawMqtt values improved and compatible with Node v18.

1.7.0 (2022-09-28)

  • (TA2k) fix login

1.6.6 (2022-06-25)

  • (MeisterTR) fix edgecut

1.6.5 (2022-06-19)

  • (Apollon77) Remove logic to set a 0/0/0 nutrition level when deactivated again as it was in pre 1.6 versions also on second place

1.6.4 (2022-06-18)

  • (Apollon77) Remove logic to set a 0/0/0 nutrition level when deactivated again as it was in pre 1.6 versions
  • (Apollon77) fix error cases reported by Sentry

1.6.3 (2022-06-17)

  • (Apollon77) fix some error cases reported by Sentry

1.6.2 (2022-06-17)

  • (TA2k) fix issues introduced in 1.6.0

1.6.1 (2022-06-17)

  • (Apollon77) fix some error cases reported by Sentry

1.6.0 (2022-06-16)

  • (Apollon77) fix some error cases reported by Sentry

1.5.5 (2021-09-29)

  • (MeisterTR) fix error

1.5.0 (2021-09-26)

  • (MeisterTR) many fixes
  • (MeisterTR) add torque control
  • (MeisterTR) fixed States

1.4.3 (2021-07-25)

  • (MeisterTR) fix Partymode detection

1.4.2 (2021-07-24)

  • (MeisterTR) fix bug with OLMSwitch_Cutting
  • (MeisterTR) fix bug with PartyMode
  • (TA2k) fix error with wrong serialnumber (please delete all objects manually)
  • (MeisterTR) fix bug in autolock function

1.4.1 (2021-07-06)

  • (MeisterTR) fix bug in sendCommand (please remove state manually)

1.4.0 (2021-07-05)

  • (TA2k) update testing
  • (TA2k) add gps coordinates
  • (TA2k) add new status states
  • (TA2k) add new Autolock states
  • (TA2k) add new OffLinits states

1.3.7 (03.06.2021)

  • (TA2k) type fixes

1.3.6 (27.05.2021)

  • (MeisterTR) bugfixes
  • (MeisterTR) better errorhandling

1.2.9 (02.12.2020)

  • (MeisterTR) add sentry
  • (MeisterTR) Bugfix (error type of sc... again) (IOBROKER-WORX-3)

1.2.4 (15.11.2020)

  • (MeisterTR) Bugfix (error type of sc...)
  • (MeisterTR) change Testing to git

1.2.3 (29.08.2020)

  • (MeisterTR) add option to crate a Json Obj to set mowtime with scripts
  • (MeisterTR) add option to disable weather
  • (MeisterTR) add double Shedule, oneTimeShedule, PartyMode
  • (MeisterTR) fix setIntervall => setTimeout
  • (MeisterTR) fix error with Meter and Min. in Config
  • (MeisterTR) add Kress and Landxcape

1.0.0 (03.12.2019)

  • (MeisterTR) bump Version
  • (MeisterTR) transfer to community

0.4.0 (03.08.2019)

  • (MeisterTR) fix multimower
  • (MeisterTR) change loglevel
  • (MeisterTR) fix online Status

0.3.1 (12.06.2019)

  • (MeisterTR) add delay for edgecut in config
  • (MeisterTR) fix mowtime error

0.2.0 (01.06.2019)

  • (MeisterTR) add border
  • (MeisterTR) fix small errors
  • (MeisterTR) code cleanup

0.0.1

  • (MeisterTR) initial release

License

MIT License

Copyright (c) 2023-2024 TA2k [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

iobroker.worx's People

Contributors

agentp2 avatar apollon77 avatar arteck avatar dependabot-preview[bot] avatar dependabot[bot] avatar dutchmannl avatar germanbluefox avatar greenkeeper[bot] avatar lucky-esa avatar mcm1957 avatar meistertr avatar mifricke avatar nefiertsreblis avatar snyk-bot avatar ta2k avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

iobroker.worx's Issues

Fehlermeldung im Log

Ich habe seit ein paar Wochen regelmäßig Fehler im Log. Meistens um 9 Uhr und um 11 Uhr:

worx.0 2020-04-15 11:00:42.090 error (913) Onlinecheck: couldnt get data StatusCodeError: 502 - "\r\n<title>502 Bad Gateway</title>\r\n\r\n

502 Bad Gateway

\r\n
nginx\

Nach Lust und Laune kommen die Fehler dann auch noch Nachmittags.

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on Greenkeeper branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet.
We recommend using:

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please click the 'fix repo' button on account.greenkeeper.io.

Zusammenfassung aller Datenpunkte unterhalb worx.9.999999.calendar.xxxx zu einem gemeinsamen Datenpunkt

Updates der Datenpunkte unterhalb worx.9.999999.calendar.xxxx verlangen heute einen zeitlichen Abstand von mindestns 5 Sekunden, da ansonsten diese Updates verloren gehen. Siehe hierzu https://forum.iobroker.net/topic/31506/worx-adapter-kalender-%C3%A4nderungen-per-javascript-unwirksam/ - 26. März 2020. Zur Umgehung dieser wahrlich unhandlichen Programmiertechnik bitte je Wochentag neben den (aus Gründen der Aufwärtskompatibilität weiterhin vorhandenen) Datenpunkten startTime, workTime und borderCut einen zusätzlichen Datenpunkt schedule einführen, der als Liste oder als Array die Werte für startTime, workTime und borderCut enthält.

Siehe auch https://forum.iobroker.net/topic/31506/worx-adapter-kalender-%C3%A4nderungen-per-javascript-unwirksam/ - 19. April 2020.

"borderCut" Datenpunkt wird auch bei deaktiviertem Schedule von false auf true gesetzt

Der Datenpunkt "borderCut" wird bei deaktiviertem Zeitplan für den jeweiligen Tag immer von false auf true gesetzt.

Setze ich den Datenpunkt per Skript auf false, so wird dieser nach wenigen Sekunden wieder auf true gesetzt.

Sinnvoller wäre meiner Meinung nach den Datenpunkt bei deaktiviertem Schedule auf false zu setzen.

Probleme hat mir dieser Umstand bei der Visualisierung bereitet. Hier wurde mir angezeigt, dass für bspw. Montag der Kantenschnitt aktiviert ist, obwohl für diesen Tag überhaupt keine Mähzeiten gepflegt sind.

Support für den One Time Scheduler in FW >= 3.11

Ab FW Version 3.11 wurde die MQTT Schnittstelle um Elemente für den One Time Scheduler erweitert. Diese Elemente können eine nützliche Erweiterung der Adapter Funktionalität bereitstellen. Mal eben einen Mähvorgang adhoc für eine vordefinierte Dauer ohne temporäre Änderung des Zeitplans bzw. ohne direktes Mäherhandling vornehmen zu können, ist schon eine feine Sache.

Support for edge cutting

Der Landroid unterstützt das direkte Starten des Kantenschnitts ja eigentlich nur per per lokaler Bedienung am Mäher (Home + OK).

In der DeskApp lässt sich das aber doch starten, indem intern ein Workaround verwendet wird. Folgende Befehle werden in der angegebenen Reihenfolge dafür verwendet:

Start Zonen Training
warte bis Folge Draht
Stopp (Pause)
Starte Heimfahrt
Im ioBroker könnte man diese Befehlsfolge ja per Script realisieren, wenn die nötigen Befehle im Adapter verfügbar wären.

Der Befehl Stopp (Pause) ist der einzige, der davon im Adapter implementiert ist. Start Zonen Training und Home sind nicht vorhanden, obwohl sie offensichtlich über die Schnittstelle verfügbar sind.

Es wäre super, wenn das im Adapter eingebaut werden könnte.

iobroker.worx - mqtt goto home

Hi! I got the iobroker.worx adapter working now with my S300 mower and Mqtt adapter.
I figured out how to send start(iobroker/worx/0/2019xxxxxxxxxxxxxxxCD/mower/state=true)
and pause(iobroker/worx/0/2019xxxxxxxxxxxxCD/mower/pause=1) commands but what is the goto home command? iobroker/worx/0/2019xxxxxxxxxxxxxxxxxxxxxCD/mower/????


Found it ! :-) It simply state=false

old version landroid-s works, new one not

hi, in deutsch, die alte 2.xx version konnte ich verbinden, bei der neuen hapert es, da keine verbindung zum worx zustande kommt.
alles neu installiert, node ab version 10.

debug log zeigt nichts an:

2019-07-26 21:29:47.722 - �[32minfo�[39m: host.All-In-One_RasPi object change system.adapter.worx.0
2019-07-26 21:29:47.725 - �[32minfo�[39m: worx.0 cleaned everything up...
2019-07-26 21:29:47.723 - �[32minfo�[39m: host.All-In-One_RasPi stopInstance system.adapter.worx.0
2019-07-26 21:29:47.723 - �[32minfo�[39m: host.All-In-One_RasPi stopInstance system.adapter.worx.0 killing pid 13471
2019-07-26 21:29:47.730 - �[32minfo�[39m: worx.0 cleaned everything up...
2019-07-26 21:29:47.778 - �[32minfo�[39m: host.All-In-One_RasPi instance system.adapter.worx.0 terminated with code 156 ()
2019-07-26 21:29:50.942 - �[32minfo�[39m: host.All-In-One_RasPi object change system.adapter.worx.0
2019-07-26 21:29:50.958 - �[32minfo�[39m: host.All-In-One_RasPi instance system.adapter.worx.0 started with pid 17632
2019-07-26 21:29:53.375 - �[32minfo�[39m: worx.0 States connected to redis: 127.0.0.1:6379
2019-07-26 21:29:53.447 - �[32minfo�[39m: worx.0 starting. Version 0.3.1 in /opt/iobroker/node_modules/iobroker.worx, node: v10.16.0
2019-07-26 21:29:53.455 - �[32minfo�[39m: worx.0 config e-mail: [email protected]
2019-07-26 21:29:53.456 - �[32minfo�[39m: worx.0 config password: XXXXXXXXX

was kann ich ändern?

Beta FW 3.11b9 - worx.0.XXX.mower.mowTimeExtend startet Roboter aus der Ladestation

FW 3.11b9 bringt einen DoubleScheduler für die 2019er Modelle.
Damit sind zwei eingeplante Mähzeiten pro Tag möglich.

Bei Verwendung dieser Version zeigt ein Setzen der worx.0.XXX.mower.mowTimeExtend auf -100 oder 0 ein problematisches Verhalten, wenn der Mäher in der Ladestation steht: Der Mäher fährt los und beginnt zu Mähen. Ein Heimschicken führt zum Andocken und sofortigem erneuten Start.
3.11b9-LOG_WR142E_20200522_#21.html.zip

Mit der Bitte um Feedback, wie ich unterstützen kann, das Problem zu lösen.

Gruß,
Oli

Invalid Obejct type weather.lastUpdate (24740)

(24740) This object will not be created in future versions. Please report this to the developer.
(24740) Object worx.0.20203019930100184901.weather.lastUpdate is invalid: obj.common.type has an invalid value (date) but has to be one of number, string, boolean, array, object, mixed, file, json

Decreace log level

Would it be possible to decrease the log level fpr the requests from INFO to DEBUG?
Also for some other log messages (i.e. calculated time value in minute and second).

Mähzeiten ändern

Hi!
Bin jetzt von der 0.2.0 auf die 0.3.0 umgestiegen.
Ich kann keine Mähzeiten ändern? Sobald ich etawas eintrage, stoppt der Adapter und wird wieder mit den Daten aus der Cloud (App) überschrieben und neu gestartet.

Hier der Log:


host.iobroker-master-tb | 2019-06-12 15:11:42.047 | info | Restart adapter system.adapter.worx.0 because enabled
-- | -- | -- | --
host.iobroker-master-tb | 2019-06-12 15:11:42.047 | error | instance system.adapter.worx.0 terminated with code 0 (OK)
Caught | 2019-06-12 15:11:42.047 | error | by controller[0]:     at processImmediate [as _immediateCallback] (timers.js:745:5)
Caught | 2019-06-12 15:11:42.047 | error | by controller[0]:     at tryOnImmediate (timers.js:768:5)
Caught | 2019-06-12 15:11:42.047 | error | by controller[0]:     at runCallback (timers.js:810:20)
Caught | 2019-06-12 15:11:42.047 | error | by controller[0]:     at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:3709:38)
Caught | 2019-06-12 15:11:42.047 | error | by controller[0]:     at Worx.emit (events.js:214:7)
Caught | 2019-06-12 15:11:42.047 | error | by controller[0]:     at emitTwo (events.js:126:13)
Caught | 2019-06-12 15:11:42.047 | error | by controller[0]:     at Worx.onStateChange (/opt/iobroker/node_modules/iobroker.worx/main.js:986:26)
Caught | 2019-06-12 15:11:42.046 | error | by controller[0]:     at Worx.changeMowerCfg (/opt/iobroker/node_modules/iobroker.worx/main.js:1078:35)
Caught | 2019-06-12 15:11:42.046 | error | by controller[0]: TypeError: Cannot set property '0' of undefined
worx.0 | 2019-06-12 15:11:41.964 | info | terminating
worx.0 | 2019-06-12 15:11:41.950 | info | cleaned everything up...
worx.0 | 2019-06-12 15:11:41.948 | error | at processImmediate [as _immediateCallback] (timers.js:745:5)
worx.0 | 2019-06-12 15:11:41.948 | error | at tryOnImmediate (timers.js:768:5)
worx.0 | 2019-06-12 15:11:41.948 | error | at runCallback (timers.js:810:20)
worx.0 | 2019-06-12 15:11:41.948 | error | at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:3709:38)
worx.0 | 2019-06-12 15:11:41.948 | error | at Worx.emit (events.js:214:7)
worx.0 | 2019-06-12 15:11:41.948 | error | at emitTwo (events.js:126:13)
worx.0 | 2019-06-12 15:11:41.948 | error | at Worx.onStateChange (/opt/iobroker/node_modules/iobroker.worx/main.js:986:26)
worx.0 | 2019-06-12 15:11:41.948 | error | at Worx.changeMowerCfg (/opt/iobroker/node_modules/iobroker.worx/main.js:1078:35)
worx.0 | 2019-06-12 15:11:41.948 | error | TypeError: Cannot set property '0' of undefined
worx.0 | 2019-06-12 15:11:41.947 | error | uncaught exception: Cannot set property '0' of undefined

How to install it

Hi, thanks for your development.

I'm really noob at this.

How can I install it on Hass runnning on docker?

Thanks

Vorschlag: edgecut-Aufruf über eine One Time Scheduler Variante realisieren

Der Button mower.edgecut ist nicht über ein direktes Kommando des Worx APIs realisiert. Vielmehr wird als eine Art "Indianertrick" eine geeignete Folge verschiedener API-Kommandos verwendet. Unter den FW-Versionen 2.xx lief dies bestens. Mit den ersten 3.xx FW-Versionen wurde über den edgecut-Button jedoch nur eine Art "Ehrenrunde über den Draht" ausgeführt, da die Firmware bei den vom Adapter gewählten Kommandosequenzen die Messer ausschaltete.

Mittlerweile (ich hab's mit Version 3.15b16 erfolgreich getestet) wird wieder ein "wirklicher" Kantenschnitt über den edgecut-Button gestartet. Dennoch kann es uns immer wieder passieren, dass bei der weiteren Verwendung des inoffiziellen "Indianertricks" die Firmware uns irgendwann mal wieder Sand ins Getriebe streut.

In den neueren FW-Versionen enthält das MQTT-JSON ein Element ots (One Time Scheduler) mit den Parametern bc (Border Cut on/off) und wtm (Working Time in Minutes). Wird ots.bc = 1 und ots.wtm = 0 gesetzt, so führt der Mäher einen Kantenschnitt ohne ein nachfolgendes Mähen des Raseninneren durch. Genau diese Methode wird auch von der Worx App Version 2.0 unter Android verwendet, um die dort neu eingeführte Kantenschnitt-Funktion zu realisieren.

Vorschlag für den Adapter:

  • Prüfung, ob die vom MQTT Server erhaltene Struktur das Element ots enthält:
  • Falls ja: ots.bc = 1 und ots.wtm = 0 setzen
  • Falls nein: bisherigen "Indianertrick" verwenden

Manuellen Bordercut (Randschnitt) einbinden

Mit der der Landroid App 2.0.1 und der FW 3.16 ist jetzt auch ein manueller Randschnitt möglich.
Könnte man den auch in den Adapter einbauen und wenn ja wie und ab wann?

Sporadischer Fehler

Hi mir ist aufgefallen das ich immer mal diesen Fehler im Log angezeigt bekomme.

worx.0 2020-05-24 10:03:15.478 error (6239) Onlinecheck: couldnt get data StatusCodeError: 502 - "\r\n<title>502 Bad Gateway</title>\r\n\r\n

502 Bad Gateway

\r\n
nginx

Was hat dies zubeudeuten?

Anmeldung wird blockiert

Hallo!
Der Adapter funktioniert leider nicht mehr.
Fehler im Log:
(20491) Connection blocked from Worx, please try again in 24h

Ich hatte vorab den Worx Support kontaktiert.
Antwort:
Verwenden Sie zufaellig iwelche andere Software, um den Roboter zu steuern (und nicht nur unsere offizielle App)? Wenn Sie eine inoffizielle App, Software oder Suite nutzen, sollten Sie diese deinstallieren und vom Roboter trennen. Wir unterstützen nur die offizielle Worx-Landroid-App, die Sie im App Store/Play Store herunterladen können. Die meisten Apps von Drittanbietern können sich negativ auf die Servereinstellungen auswirken, sodass wir sie vorerst nicht unterstützen. Wir weisen darauf hin, dass einige dieser Apps von unseren Sicherheitssystemen als bösartig eingestuft werden könnten, was eine vorübergehende Sperrung des Kontos zur Folge hat._

Kann das behoben werden?

Danke vorab.

2. Zeitplan der 2019 Modelle mit FW 3.16+ werden gelöscht.

Ich verwende folgendes JS um den Landroid heimzuschicken, bevor meine Bewässerung startet.

Das Script verwendet eine Systemvariable der Homematic, um zu triggern.

var MowingProzent;


on({id: "hm-rega.0.64310"/*TRIGGER_Sperre_Landroid*/, change: "ne"}, function (obj) {
  if ((obj.state ? obj.state.val : "") === true) {

 if ((getState("hm-rega.0.64310").val == true) && (getState("worx.0.20193019930200004504.mower.status").val != 0) && (getState("worx.0.20193019930200004504.mower.status").val != 1)) {
      setState("worx.0.20193019930200004504.mower.state"/*Start/Stop*/, false);
      console.log('Landroid sent home');
    }
      
    MowingProzent = -100;
    console.log('Mowing Extension -100%');
  } else {
    MowingProzent = 0;
    console.log('Mowing Extension 0%');
  }
  setState("worx.0.20193019930200004504.mower.mowTimeExtend", MowingProzent);
    
});

Laut Positec führt folgendes JSON zur Löschung des 2. Zeitplans:

{
  "sc": {
    "p": -100,
    "dd": [
      [
        "00:00",
        0,
        0
      ],
      [
        "00:00",
        0,
        0
      ],
      [
        "00:00",
        0,
        0
      ],
      [
        "00:00",
        0,
        0
      ],
      [
        "00:00",
        0,
        0
      ],
      [
        "00:00",
        0,
        0
      ],
      [
        "00:00",
        0,
        0
      ]
    ],
    "d": [
      [
        "00:00",
        0,
        0
      ],
      [
        "09:30",
        45,
        1
      ],
      [
        "09:30",
        45,
        0
      ],
      [
        "08:30",
        30,
        0
      ],
      [
        "09:30",
        45,
        0
      ],
      [
        "09:30",
        45,
        1
      ],
      [
        "10:30",
        60,
        0
      ]
    ],
    "m": 1,
    "distm": 0
  }
}

wrong types

dem error code wird beim Anlegen des Datenpunktes die Rolle "value.voltage" zugewiesen

bei mowerActive steht hinter dem boolschen Wert ein Prozentzeichen %.

Adapter lässt sicht nicht starten

Ich habe ein Backup eingespielt - seitdem lässt sich der Adapter (0.4.0) nicht mehr starten. Ich bekomme folgende Meldung:

host.tinkerboardmaster 2019-10-14 12:12:01.726 error instance system.adapter.worx.0 terminated with code 0 (OK)
Caught 2019-10-14 12:12:01.726 error by controller[0]: at Timer.processTimers (timers.js:223:10)
Caught 2019-10-14 12:12:01.726 error by controller[0]: at listOnTimeout (timers.js:263:5)
Caught 2019-10-14 12:12:01.726 error by controller[0]: at tryOnTimeout (timers.js:300:5)
Caught 2019-10-14 12:12:01.726 error by controller[0]: at ontimeout (timers.js:436:11)
Caught 2019-10-14 12:12:01.726 error by controller[0]: at Timeout._onTimeout (/opt/iobroker/node_modules/iobroker.worx/main.js:107:30)
Caught 2019-10-14 12:12:01.725 error by controller[0]: at Worx.setStates (/opt/iobroker/node_modules/iobroker.worx/main.js:174:32)
Caught 2019-10-14 12:12:01.725 error by controller[0]: TypeError: Cannot read property 'st' of undefined
worx.0

Please check ioBroker.worx with js-controller 2.0

Hi,

the new js-controller 2.0 will come into latest repository in the next days and we want to make sure that all adapters are working well. We already did a 2 weeks Beta test and so some adapter were aleady checked and some needed slight adjustments.

You can find more information in ioBroker/ioBroker.js-controller#482 and in the ioBroker Forum. If you have more technical questions please write in the referenced issue or in the Developer thread please. General questions are best in the genral thread.

Please update your systems to js-controller 2.0 and check your adapter.

Please close this issue once you have checked your adapter or received successfull reports from users.

Thank you very much for your support. Please contact us in the other Threads or Forum on any question.

Think about to fix the issues found by adapter checker

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:

https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/iobroker-community-adapters/ioBroker.worx

  • [E605] No actual year found in copyright. Please add "Copyright (c) 2022 MeisterTR [email protected]" at the end of README.md
  • [E701] No actual year found in LICENSE. Please add "Copyright (c) 2022 MeisterTR [email protected]" at the start of LICENSE

Thanks,
your automatic adapter checker.

mehrere Mäher verursachen ausfall

Ich habe den Adapter installiert und er funktionierte ugf. 2 Stunden lang. Jetzt kommt im Log nur noch:

2019-07-15 15:17:43.345 - �[31merror�[39m: worx.0 ERROR: StatusCodeError: 403 - "<html>\r\n<head><title>403 Forbidden</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>403 Forbidden</h1></center>\r\n</body>\r\n</html>\r\n"

Ich finde leider kein Setting, was den Adapter mehr "chatty" bezüglich debugmeldungen macht.
Mein Account ist nicht gesperrt, die Handy App funktioniert einwandfrei. Falls ich irgendwelche Infos liefern soll, einfach sagen. IO Broker ist ziemlich aktuell und Node ist in Version 10

goto home command

I finally figured out that I must use a a/b/g wifi to control the mower, and also the mqtt commands for start and pause. But what is the goto home command?

Namensgebung

Wäre es möglich im Adapter einen Namen für den Mäher zu vergeben und diesen anstelle der SerienNr. in den Objektbaum (oberordner) zu schreiben?

Speziell für Skripte welche man weitergeben möchte wäre das sicher interessant.

I get blocked from Worx

Hello!
I wonder if there is a way to slow down the worx adapter? Currently it is updating every 3 second and Worx has blocked me several times due to this. They say I spam them with requests.

Here is part of my log:
worx.0 2019-08-23 22:28:44.099 warn Connection blocked from Worx, please try again in 24h
worx.0 2019-08-23 22:28:41.861 info starting. Version 0.4.0 in C:/WINDOWS/system32/node_modules/iobroker.worx, node: v10.16.0
host.DESKTOP-BF47MV5 2019-08-23 22:28:40.184 info instance system.adapter.worx.0 started with pid 49688
host.DESKTOP-BF47MV5 2019-08-23 22:28:10.177 info Restart adapter system.adapter.worx.0 because enabled
host.DESKTOP-BF47MV5 2019-08-23 22:28:10.177 error instance system.adapter.worx.0 terminated with code 0 (OK)
Caught 2019-08-23 22:28:10.177 error by controller[0]: at process._tickCallback (internal/process/next_tick.js:63:19)
Caught 2019-08-23 22:28:10.177 error by controller[0]: at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
Caught 2019-08-23 22:28:10.177 error by controller[0]: at emitErrorNT (internal/streams/destroy.js:91:8)
Caught 2019-08-23 22:28:10.177 error by controller[0]: at TLSSocket.emit (events.js:203:15)
Caught 2019-08-23 22:28:10.177 error by controller[0]: at TLSSocket.handleTLSerrors (C:\WINDOWS\system32\node_modules\iobroker.worx\node_modules\mqtt\lib\connect\tls.js:26:18)
Caught 2019-08-23 22:28:10.177 error by controller[0]: at MqttClient.emit (events.js:198:13)
Caught 2019-08-23 22:28:10.177 error by controller[0]: at MqttClient. (C:\WINDOWS\system32\node_modules\iobroker.worx\lib\api.js:259:13)
Caught 2019-08-23 22:28:10.176 error by controller[0]: ReferenceError: reject is not defined
worx.0 2019-08-23 22:28:10.153 info cleaned everything up...
worx.0 2019-08-23 22:28:10.153 error at process._tickCallback (internal/process/next_tick.js:63:19)
worx.0 2019-08-23 22:28:10.153 error at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
worx.0 2019-08-23 22:28:10.153 error at emitErrorNT (internal/streams/destroy.js:91:8)
worx.0 2019-08-23 22:28:10.153 error at TLSSocket.emit (events.js:203:15)
worx.0 2019-08-23 22:28:10.153 error at TLSSocket.handleTLSerrors (C:\WINDOWS\system32\node_modules\iobroker.worx\node_modules\mqtt\lib\connect\tls.js:26:18)
worx.0 2019-08-23 22:28:10.153 error at MqttClient.emit (events.js:198:13)
worx.0 2019-08-23 22:28:10.153 error at MqttClient. (C:\WINDOWS\system32\node_modules\iobroker.worx\lib\api.js:259:13)
worx.0 2019-08-23 22:28:10.153 error ReferenceError: reject is not defined
worx.0 2019-08-23 22:28:10.152 error uncaught exception: reject is not defined

Verify Compact mode for your adapter

We have detected that your adapter supports the compact mode. Please use the latest js-controller 2.0 and verify that everything works.

Some more information what is important to check can be found at ioBroker/ioBroker.js-controller#512

On questions please answer to the linked issue. Please close this issue after your test and add the version number that you have tested please as a comment.

Thank you for your support.

Logging shows password

Hi,
the logging of the adapter shows the password in readable form. Maybe this can be changed to increase security.

difference btw actualAreaIndicator and actualArea

I've got worx adapter working on iobroker.
This is a question more than a issue:
What is the difference between actualAreaIndicator and actualArea?
According what I'm seeing:

actual area = the number of the defined area where the landroid is working

but, what about actualAreaIndicator? Now it gives to me a value of 5 that I don't uderstand.

Can you give some tips?
Thanlk a lot

Partymodus in den Status aufnehmen

Ist es möglich den Partymodus in den Status mitaufzunehmen. Aktuell wird der ja noch nicht synchronisiert.
Ich würde gerne den Partymodus in die Vis in Form einer Switch einbauen.
So muss ich nicht immer in die App.

Support für FW 3.14+ mit DoubleScheduler

Die Firmware 3.14+ beinhaltet nun den bereits mit 3.09b vorbereiteten DoubleScheduler (zwei Mähzeiten pro Tag) und weitere Feautures (Party Mode - deaktiviert Mäher, hatten wir schon ein paar Issues weiter unten ;-) )

Wäre schön, wenn der Adapter die Features der neuen FW untersützen würde.

Wie kann ich unterstützen?

Verbindungs Problem

Hallo,

erstmal Klasse das du einen neuen Adapter erstellt hast.

ich habe aber leider ein Verbindungsproblem.
Im Log steht folgendes:

host.raspberrypi 2019-06-29 12:29:49.844 error instance system.adapter.worx.0 terminated with code 1 ()
host.raspberrypi 2019-06-29 12:29:49.844 error Caught by controller[0]: at startup (bootstrap_node.js:160:9)
host.raspberrypi 2019-06-29 12:29:49.844 error Caught by controller[0]: at run (bootstrap_node.js:394:7)
host.raspberrypi 2019-06-29 12:29:49.844 error Caught by controller[0]: at Module.runMain (module.js:611:10)
host.raspberrypi 2019-06-29 12:29:49.844 error Caught by controller[0]: at Function.Module._load (module.js:445:3)
host.raspberrypi 2019-06-29 12:29:49.844 error Caught by controller[0]: at tryModuleLoad (module.js:453:12)
host.raspberrypi 2019-06-29 12:29:49.843 error Caught by controller[0]: at Module.load (module.js:494:32)
host.raspberrypi 2019-06-29 12:29:49.843 error Caught by controller[0]: at Object.Module._extensions..js (module.js:586:10)
host.raspberrypi 2019-06-29 12:29:49.843 error Caught by controller[0]: at Module._compile (module.js:549:28)
host.raspberrypi 2019-06-29 12:29:49.843 error Caught by controller[0]: at Object.runInThisContext (vm.js:97:10)
host.raspberrypi 2019-06-29 12:29:49.843 error Caught by controller[0]: at createScript (vm.js:56:10)
host.raspberrypi 2019-06-29 12:29:49.843 error Caught by controller[0]: SyntaxError: Unexpected token ...
host.raspberrypi 2019-06-29 12:29:49.842 error Caught by controller[0]: ^^^
host.raspberrypi 2019-06-29 12:29:49.842 error Caught by controller[0]: ...options,
host.raspberrypi 2019-06-29 12:29:49.838 error Caught by controller[0]: /opt/iobroker/node_modules/iobroker.worx/main.js:65

gibts hierfür eine Lösung ?

Grüße Armin

Break out Worx API

Hello again. As posted in the old repository I would like to know if it is possible to create an NPM package of the Worx API. As I understood from playing around with the code in this repository it has a rather tight coupling with ioBroker.

If there was a standalone NPM package of the Worx API I could imagine a whole lot more community input for that package in the future. I have some experience with NPM packages, NodeJS & TypeScript myself and would like to help. But I wanted to check with you beforehand and make sure that this is actually something you want and agree with.

[EDIT]
This is pretty much a duplicate of issue #34 in MeisterTR/ioBroker.landroid-s and the other issue can be closed since that repo is marked as deprecated as far as I understood. However, since information about the Worx API and howto integrate it with any Home Automation system is in my experience rather scattered at the moment I'm cross-referencing issues so that other people can follow up more easily.

Think about to fix the issues found by adapter checker

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:

https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/MeisterTR/ioBroker.worx

Thanks,
your automatic adapter checker.

Missing Installation Guide

Hi all,
I like to install this but wasn't ablt to find any installation guide for this. Anyone working on this, or can you please direct me to that one?

Regards
Joerg

Stop and Home Button

Hello, there is the possibility to install the stop and home button so that it can be activated via IObroker objects. Thanks Tobias

Please add your adapter to ioBroker.discovery

I am an automatic service from ioBroker that searches adapters and makes suggestions.

I noticed that your adapter is not integrated in the ioBroker.discovery. Using the Discovery adapter, ioBroker can automatically find devices or suggest services to the user for installation. If possible I would live to see your adapter added there.

Some adapters have already been added and you can use them as blueprints. See: https://github.com/ioBroker/ioBroker.discovery You need to fork this project and then create a PR for your adapter to be added.

Basically the plugins can do HTTP calls, UDP discovery, MDNS, UPNP and will iterate over all devices found by IP scan and check local serial ports. If you want you can also add new discovery methods but please try to do that with at least dependencies as possible.

Then create one file under lib/adapters for your adapter to implement the detection and proposal of an instance to the user.

On questions, the other developers will support in the forum or via GitHub issues too.

If no detection is possible, simply close this issue and I won't bother you again. ;-)

Thanks,
your automatic adapter checker.

Landroid M500 (WR141E)

I tried to start your adapter and get the follow error:

host.rock64 | 2019-08-25 08:05:01.510 | info | Restart adapter system.adapter.worx.0 because enabled
-- | -- | -- | --
host.rock64 | 2019-08-25 08:05:01.509 | error | instance system.adapter.worx.0 terminated with code 1 ()
Caught | 2019-08-25 08:05:01.508 | error | by controller[0]: at startup (bootstrap_node.js:160:9)
Caught | 2019-08-25 08:05:01.508 | error | by controller[0]: at run (bootstrap_node.js:394:7)
Caught | 2019-08-25 08:05:01.507 | error | by controller[0]: at Module.runMain (module.js:611:10)
Caught | 2019-08-25 08:05:01.507 | error | by controller[0]: at Function.Module._load (module.js:445:3)
Caught | 2019-08-25 08:05:01.506 | error | by controller[0]: at tryModuleLoad (module.js:453:12)
Caught | 2019-08-25 08:05:01.506 | error | by controller[0]: at Module.load (module.js:494:32)
Caught | 2019-08-25 08:05:01.505 | error | by controller[0]: at Object.Module._extensions..js (module.js:586:10)
Caught | 2019-08-25 08:05:01.505 | error | by controller[0]: at Module._compile (module.js:549:28)
Caught | 2019-08-25 08:05:01.504 | error | by controller[0]: at Object.runInThisContext (vm.js:97:10)
Caught | 2019-08-25 08:05:01.504 | error | by controller[0]: at createScript (vm.js:56:10)
Caught | 2019-08-25 08:05:01.504 | error | by controller[0]: SyntaxError: Unexpected token ...
Caught | 2019-08-25 08:05:01.503 | error | by controller[0]: ^^^
Caught | 2019-08-25 08:05:01.503 | error | by controller[0]: ...options,
Caught | 2019-08-25 08:05:01.501 | error | by controller[0]: /opt/iobroker/node_modules/iobroker.worx/main.js:65

Do you have any ideas what it could be?

Node.js: v6.17.1
NPM: 3.10.10

mqtt write back

Hello,
i have successfully connected my mower.
i have also installed the mqtt-client adapter.
There i have configured in the objects, for example the state (boolean variable to start/stop the mower) of the mower as publish/subcribe.
Bildschirmfoto 2020-02-20 um 09 37 16
So now i have Home Assistant also connected to the broker.
Here i publish a state of 0/1 to let the mower start/stop.
--> it works, the variable come back to iobroker and is set in the objects-gui.
But the Mower doesn't stop then.

The state stays at the value, but the mower doesn't stop.
Bildschirmfoto 2020-02-20 um 09 38 35

Here you can see that the mqtt client writes back the value for that, but the worx-instance doesn't recognize this...
Bildschirmfoto 2020-02-20 um 09 46 53

so maybe someone can help here?

Conecting to worx did not work

Hi,
I can sign in to https://account.worxlandroid.com with my credentials.
But in iobroker it does not work.
Any suggestions?

Here the downloaded settings anonymised
{ "_id": "system.adapter.worx.0", "common": { "name": "worx", "version": "0.3.1", "title": "Worx Landroid Cloud", "authors": [ "MeisterTR <[email protected]>" ], "keywords": [ "ioBroker", "mower", "Landroid", "Worx", "Smart Home", "home automation" ], "license": "MIT", "platform": "Javascript/Node.js", "main": "main.js", "icon": "worx.png", "enabled": true, "extIcon": "https://raw.githubusercontent.com/MeisterTR/ioBroker.worx/master/admin/worx.png", "readme": "https://github.com/MeisterTR/ioBroker.worx/blob/master/README.md", "loglevel": "info", "mode": "daemon", "type": "garden", "compact": true, "materialize": true, "installedVersion": "0.3.1", "host": "nubroker" }, "native": { "mail": "[email protected]", "password": "yyyy", "edgeCutDelay": "5000" } }

regards
Fi

Think about to fix the issues found by adapter checker

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:

https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/iobroker-community-adapters/ioBroker.worx

  • [E605] No actual year found in copyright. Please add "Copyright (c) 2022 MeisterTR [email protected]" at the end of README.md
  • [E701] No actual year found in LICENSE. Please add "Copyright (c) 2022 MeisterTR [email protected]" at the start of LICENSE

Thanks,
your automatic adapter checker.

Pull Update

Hi,

vielen Dank für den Adapter.
Meine Adapter aktualisieren sich von Zeit zu Zeit nicht mehr auch ein regelmäßiger Neustart ändert das nicht.
Eine Aktualisierung findet dann nur noch statt wenn die App auf dem Smartphone gestartet wird.
Folgende Konstelation:

  • Zeitplan ist erstellt in der App
  • Zeitplan löst den Mähvorgang aus
  • IoBroker übernimmt die Dauer des Mähvorgangs (da mehrere Zonen [3])

Es sind keine echten Fehlermeldungen teilbar, der Log ist nach erfolgreichem Neustart des Adapters sauber.
Allerdings muss die app geöffnet werden, damit eine Aktualisierung erfolgt. Danach funktioniert das wieder eine Weile.

Gibt es etwas was ich tun kann? Kann ich den Adapter zwingen einen "PULL" der Daten vorzunehmen?

Think about to fix the issues found by adapter checker

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:

https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/MeisterTR/ioBroker.worx

  • [E201] Bluefox was not found in the collaborators on NPM!. Please execute in adapter directory: "npm owner add bluefox iobroker.worx"
  • [E801] No repository about text found. Please go to "https://github.com/MeisterTR/ioBroker.worx", press the first "Edit" button you will find on the page and add the description.
  • [E802] No topics found in the repository. Please go to "https://github.com/MeisterTR/ioBroker.worx" and press "Manage topics"

I have also found warnings that may be fixed if possible.

  • [W400] Cannot find "worx" in latest repository

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

Connection blocked from Worx Server - no communication possible

No connection to the Worx server. The connection is blocked by Worx. This means that no status data can be queried.

Error message in the log:
(17345) Connection blocked from Worx, please try again in 24h

Feedback from Worx Support

If you use an unofficial app, software or suite, you should uninstall it and disconnect it from the robot. We only support the official Worx Landroid app, which you can download from the App Store / Play Store. Most third-party apps can negatively impact server settings, so we won't support them for now. We would like to point out that some of these apps could be classified as malicious by our security systems, which will result in the account being temporarily blocked. >

Edge cut

Das aktivieren des "Edge cut" Datenpunktes sorgt zwar dafür, das er den Rand abfährt, dabei bleibt das Mähwerk allerdings ausgeschaltet.

Gibt es da einen "Trick" bzw. irgendwas, was man dort in der Schalt-reihenfolge beachten muss?

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.