NEWS
Adapter: Worx Landroid v2.x.x
-
@cosmicbase Sorry, in meinem Skript hatte das Fehlerteufelchen zugeschlagen. Bitte tausche die nachfolgend zitierte Zeile in dem Skript aus:
alt:
setState(idBladeWorkTimeCurrent, stundenMinuten(getState('idBladeWorkTime').val - getState('idBladeWorkTimeReset').val));
neu:
setState(idBladeWorkTimeCurrent, stundenMinuten(getState(idBladeWorkTime).val - getState(idBladeWorkTimeReset).val));
Starte das geänderte Skript. lass Deinem Mäher eine halbe Stunde lang mähen und beobachte dabei den privaten Datenpunkt nach frühestens 10 Minuten.
-
@hsteinme said in Adapter: Worx Landroid:
setState(idBladeWorkTimeCurrent, stundenMinuten(getState(idBladeWorkTime).val - getState(idBladeWorkTimeReset).val));
Super das es jetzt klappt. Zumindest nach dem ich das JS und den Adapter neu gestartet habe war es vollendet (siehe Bild).
Läuft der manuelle Kantenschnitt auch die Klingenzeit mit ein?Das ganze könnte man auch mit dem Batterie cycle machen!
Kannst du mir das im Skript anpassen mit den stundenMinuten? Sollten ja Ladezyklen sein und keine Zeit.
'use strict'; const idBatterieCycleTime = 'worx.0.99999999999999999.rawMqtt.raw.battery_charge_cycles'; const idBatterieCycleTimeReset = 'worx.0.99999999999999999.rawMqtt.raw.battery_charge_cycles_reset'; const idBatterieCycleTimeCurrent = '0_userdata.0.worx.batterie_cycle_time_current'; on ({id: [idBatterieCycleTime, idBatterieCycleTimeReset], change: 'ne'}, function() { setState(idBatterieCycleTimeCurrent, stundenMinuten(getState(idBatterieCycleTime).val - getState(idBatterieCycleTimeReset).val)); })
Danke für deine Arbeit.
PS:
Was ich bemerkt habe das auch nach 30 Minuten mähen sich nichts an den Raw Werten geändert hat. Scheinbar werden die Daten von der Cloud nur unregelmäßig zur Verfügung gestellt. Könnte natürlich auch sein das die Klingenzeit immer erst beim erreichen der vollen Stundnzahl aktualisiert wird. Schließlich wird sie in der App auch nur mit Stunden angezeigt.
Neues Update:
Wie du schon im GitHub geschrieben hast hat sich irgendwo bei der Bereitstellung der Daten aus der Cloud ein Fehler eingeschlichen.
Habe einen Klingenreset gemacht und dann ist die Klingenzeit ins Minus gegangen weil der Reset Wert höher ist als die tatsächliche Klingenzeit. Ich weiß das dies zwar wieder überschrieben wird, aber irgendwie komisch.
Hoffe das hier irgendwas verbessert wird. -
@cosmicbase sagte in Adapter: Worx Landroid:
Das ganze könnte man auch mit dem Batterie cycle machen!
Kannst du mir das im Skript anpassen mit den stundenMinuten? Sollten ja Ladezyklen sein und keine Zeit.Dann schmeiß halt stundenMinuten mit dem zugehörigen Klammernpaar aus dem Skript raus.
Nebenbei; Die Verwendung von "time" in der Benamsung des privaten Datenpunktes und der Variablen ist extrem unglücklich, denn "Sollten ja Ladezyklen sein und keine Zeit."
-
'use strict'; const idBatterieCycleTime = 'worx.0.9999999999999999.rawMqtt.raw.battery_charge_cycles'; const idBatterieCycleTimeReset = 'worx.0.9999999999999999.rawMqtt.raw.battery_charge_cycles_reset'; const idBatterieCycleTimeCurrent = '0_userdata.0.worx.batterie_cycle_time_current'; on ({id: [idBatterieCycleTime, idBatterieCycleTimeReset], change: 'ne'}, function() { setState(idBatterieCycleTimeCurrent, getState(idBatterieCycleTime).val - getState(idBatterieCycleTimeReset).val); })
So funktioniert auch die Batterie Cycle.
Aber was mich ein wenig anwiedert ist die Tatsache das mal die Reset Werte unter RAW größer mal kleiner sind.
So kommt es im privaten DP zu einem Minus Wert.FINDE DEN FEHLER, bzw. DIE FEHLER!!!
Wie kann man dem Problem entgegen wirken das die Werte sich nicht immer drehen?
Und warum werden die RAW Werte so zögerlich aktualisiert?Eventuell im JS ne Funktion das immer automatisch der größte Wert subtrahiert wird?
Interessanterweise ist in der App immer alles richtig dargestellt...
-
@cosmicbase sagte in Adapter: Worx Landroid:
Aber was mich ein wenig anwiedert
Geht's nicht auch 'ne Nummer kleiner?
-
Hallo, ich habe folgendes Problem.
Bis lang hat der Worksadapter bei mir prima funktionier.
Seit dem letzten Gesamtupdate von IoBroker sowie auch JS Contoler funktioniert meine Ansteuerung über VIS an den Mäher nicht mehr.
Ich habe mich über den Worksadapter bei Works angemeldet.
Die Datenpunkte (welche ich auch schon mal komplett gelöscht habe) wurden auch angelegt.
Hier erfolgt aber keine Aktualisierung.
Im Protokoll habe ich mehrere Fehlermeldungen
Was mich wundert, die Seriennummer in den Objekten endet mit der *****1286
Im Fehlerprotokoll endet aber die Seriennummer mit ****3000
Hat jemand eine Lösung?
-
Hat keiner eine Lösung?
-
@ralfengelberth welcheist den jetzt dir richtige ?
ausserdem ist es schnuppe ob du die nummer maskeirst oder nicht.. kann ehh keiner was mit angangen
-
@arteck Das in den Objekten
Die 3000 in der Log gibt es nicht -
@ralfengelberth nein welche ist denn jetzt die die zu DEINEM Worx gehört.. ich meine ist die sereinnummer
-
@arteck 20193019840102591286
-
@ralfengelberth zeimgal komplett mal die LOG meldung
oder hast du 2 von den mähern ? -
@arteck Ich habe nur einen Mäher
worx.0 4156 2021-06-18 22:58:26.817 warn State "worx.0.20193019840102593000.mower.online" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:57:26.764 warn State "worx.0.20193019840102593000.mower.online" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:56:26.814 warn State "worx.0.20193019840102593000.mower.online" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:55:26.775 warn State "worx.0.20193019840102593000.mower.online" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:54:26.812 warn State "worx.0.20193019840102593000.mower.online" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:53:26.800 warn State "worx.0.20193019840102593000.mower.online" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:52:26.808 warn State "worx.0.20193019840102593000.mower.online" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:51:26.770 warn State "worx.0.20193019840102593000.mower.online" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:26.774 warn State "worx.0.20193019840102593000.mower.online" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.782 warn State "worx.0.20193019840102593000.calendar.calJson2" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.781 warn State "worx.0.20193019840102593000.calendar.calJson" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.781 warn State "worx.0.20193019840102593000.mower.partyModus" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.781 warn State "worx.0.20193019840102593000.mower.oneTimeJson" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.780 warn State "worx.0.20193019840102593000.mower.oneTimeWorkTime" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.780 warn State "worx.0.20193019840102593000.mower.oneTimeWithBorder" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.779 warn State "worx.0.20193019840102593000.calendar.saturday2.borderCut" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.779 warn State "worx.0.20193019840102593000.calendar.saturday2.workTime" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.779 warn State "worx.0.20193019840102593000.calendar.saturday2.startTime" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.778 warn State "worx.0.20193019840102593000.calendar.friday2.borderCut" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.777 warn State "worx.0.20193019840102593000.calendar.friday2.workTime" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.777 warn State "worx.0.20193019840102593000.calendar.friday2.startTime" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.776 warn State "worx.0.20193019840102593000.calendar.thursday2.borderCut" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.776 warn State "worx.0.20193019840102593000.calendar.thursday2.workTime" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.774 warn State "worx.0.20193019840102593000.calendar.thursday2.startTime" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.773 warn State "worx.0.20193019840102593000.calendar.wednesday2.borderCut" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.772 warn State "worx.0.20193019840102593000.calendar.wednesday2.workTime" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.772 warn State "worx.0.20193019840102593000.calendar.wednesday2.startTime" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.771 warn State "worx.0.20193019840102593000.calendar.tuesday2.borderCut" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.771 warn State "worx.0.20193019840102593000.calendar.tuesday2.workTime" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.770 warn State "worx.0.20193019840102593000.calendar.tuesday2.startTime" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.770 warn State "worx.0.20193019840102593000.calendar.monday2.borderCut" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.769 warn State "worx.0.20193019840102593000.calendar.monday2.workTime" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.768 warn State "worx.0.20193019840102593000.calendar.monday2.startTime" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.768 warn State "worx.0.20193019840102593000.calendar.sunday2.borderCut" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.767 warn State "worx.0.20193019840102593000.calendar.sunday2.workTime" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.759 warn State "worx.0.20193019840102593000.calendar.sunday2.startTime" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.758 warn State "worx.0.20193019840102593000.calendar.saturday.borderCut" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.757 warn State "worx.0.20193019840102593000.calendar.saturday.workTime" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.757 warn State "worx.0.20193019840102593000.calendar.saturday.startTime" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.756 warn State "worx.0.20193019840102593000.calendar.friday.borderCut" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.755 warn State "worx.0.20193019840102593000.calendar.friday.workTime" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.753 warn State "worx.0.20193019840102593000.calendar.friday.startTime" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.753 warn State "worx.0.20193019840102593000.calendar.thursday.borderCut" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.752 warn State "worx.0.20193019840102593000.calendar.thursday.workTime" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.750 warn State "worx.0.20193019840102593000.calendar.thursday.startTime" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.750 warn State "worx.0.20193019840102593000.calendar.wednesday.borderCut" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.749 warn State "worx.0.20193019840102593000.calendar.wednesday.workTime" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.749 warn State "worx.0.20193019840102593000.calendar.wednesday.startTime" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.748 warn State "worx.0.20193019840102593000.calendar.tuesday.borderCut" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.747 warn State "worx.0.20193019840102593000.calendar.tuesday.workTime" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.747 warn State "worx.0.20193019840102593000.calendar.tuesday.startTime" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.745 warn State "worx.0.20193019840102593000.calendar.monday.borderCut" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.744 warn State "worx.0.20193019840102593000.calendar.monday.workTime" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.744 warn State "worx.0.20193019840102593000.calendar.monday.startTime" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.744 warn State "worx.0.20193019840102593000.calendar.sunday.borderCut" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.743 warn State "worx.0.20193019840102593000.calendar.sunday.workTime" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.743 warn State "worx.0.20193019840102593000.calendar.sunday.startTime" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.742 warn State "worx.0.20193019840102593000.mower.state" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.742 warn State "worx.0.20193019840102593000.areas.startSequence" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.742 warn State "worx.0.20193019840102593000.mower.batteryState" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.741 warn State "worx.0.20193019840102593000.mower.waitRain" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.741 warn State "worx.0.20193019840102593000.mower.firmware" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.740 warn State "worx.0.20193019840102593000.areas.actualAreaIndicator" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.740 warn State "worx.0.20193019840102593000.areas.actualArea" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.740 warn State "worx.0.20193019840102593000.areas.area_3" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.739 warn State "worx.0.20193019840102593000.areas.area_2" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.732 warn State "worx.0.20193019840102593000.areas.area_1" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.732 warn State "worx.0.20193019840102593000.areas.area_0" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.731 warn State "worx.0.20193019840102593000.mower.mowTimeExtend" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.730 warn State "worx.0.20193019840102593000.mower.mowerActive" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.730 warn State "worx.0.20193019840102593000.mower.wifiQuality" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.729 warn State "worx.0.20193019840102593000.mower.status" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.729 warn State "worx.0.20193019840102593000.mower.error" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.728 warn State "worx.0.20193019840102593000.mower.batteryTemperature" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.728 warn State "worx.0.20193019840102593000.mower.batteryVoltage" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.727 warn State "worx.0.20193019840102593000.mower.batteryCharging" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.726 warn State "worx.0.20193019840102593000.mower.batteryChargeCycle" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.726 warn State "worx.0.20193019840102593000.mower.direction" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.725 warn State "worx.0.20193019840102593000.mower.inclination" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.725 warn State "worx.0.20193019840102593000.mower.gradient" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.724 warn State "worx.0.20193019840102593000.mower.totalBladeTime" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.723 warn State "worx.0.20193019840102593000.mower.totalDistance" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:50:05.722 warn State "worx.0.20193019840102593000.mower.totalTime" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:49:26.779 warn State "worx.0.20193019840102593000.mower.online" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:48:26.762 warn State "worx.0.20193019840102593000.mower.online" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:47:26.753 warn State "worx.0.20193019840102593000.mower.online" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:46:26.781 warn State "worx.0.20193019840102593000.mower.online" has no existing object, this might lead to an error in future versions worx.0 4156 2021-06-18 22:45:26.780 warn State "worx.0.20193019840102593000.mower.online" has no existing object, this might lead to an error in future versions
-
@ralfengelberth schauml in der app unter Geräteinfo.. welches steht da ??
die 20193019840102591286 oder die andereich hoffe du hast den adapter mal neu gestartet ? nach dem löschen der objecte
-
@arteck In der APP steht auch diese 20193019840102591286
Nach dem Löschen habe ich den Adapter schon mehrmals neu gestartet -
@ralfengelberth hmm.. komisch.. wo kommt dann die 20193019840102593000 her ?
und du hast
adapter stop
objekte löschen
dann adapter startgemacht ?
wie gesagt kmisch ist dass die nummer die du angeblich gelöscht hast 20193019840102593000 nicht dir gehört..und da das die sereinnummer den robi ist..finde ich es erst recht komisch ..
dann geh version zurück...
-
@arteck wenn ich das wüste.
Bis vor dem Update hat ja noch alles funktioniert -
@arteck Ja schon min. 3 mal
-
@arteck Die Vorgänger-Versinon funktioniert
-
@ralfengelberth was heisst funktioniert
ist da der richtige 20193019840102591286 drin und der 20193019840102593000 taucht nicht im log auf ?
und was ist wenn du jetzt ein update machst ohne die Datenpunkte zu löschen