NEWS
Worx Adapter: Kalender-Änderungen per JavaScript unwirksam
-
Mir gelingt es nicht, Kalender-Änderungen per JavaScript durchzuführen.
setState('worx.0.xxxxxxxxxxxxxxxxxxxx.mower.mowTimeExtend', 0); console.log('worx.0.xxxxxxxxxxxxxxxxxxxx.mower.mowTimeExtend = 0'); setState('worx.0.xxxxxxxxxxxxxxxxxxxx.calendar.sunday.borderCut', true); console.log('worx.0.xxxxxxxxxxxxxxxxxxxx.calendar.sunday.borderCut = true'); setState('worx.0.xxxxxxxxxxxxxxxxxxxx.calendar.sunday.startTime', '19:19'); console.log('worx.0.xxxxxxxxxxxxxxxxxxxx.calendar.sunday.startTime = 19:19'); setState('worx.0.xxxxxxxxxxxxxxxxxxxx.calendar.sunday.workTime', 99); console.log('worx.0.xxxxxxxxxxxxxxxxxxxx.calendar.sunday.workTime = 99');
2020-03-24 15:39:48.626 - [32minfo[39m: javascript.0 (15621) Start javascript script.js.common.Haushalt.Test 2020-03-24 15:39:48.630 - [32minfo[39m: javascript.0 (15621) script.js.common.Haushalt.Test: worx.0.xxxxxxxxxxxxxxxxxxxx.mower.mowTimeExtend = 0 2020-03-24 15:39:48.631 - [32minfo[39m: javascript.0 (15621) script.js.common.Haushalt.Test: worx.0.xxxxxxxxxxxxxxxxxxxx.calendar.sunday.borderCut = true 2020-03-24 15:39:48.632 - [32minfo[39m: javascript.0 (15621) script.js.common.Haushalt.Test: worx.0.xxxxxxxxxxxxxxxxxxxx.calendar.sunday.startTime = 19:19 2020-03-24 15:39:48.632 - [32minfo[39m: javascript.0 (15621) script.js.common.Haushalt.Test: worx.0.xxxxxxxxxxxxxxxxxxxx.calendar.sunday.workTime = 99 2020-03-24 15:39:48.633 - [32minfo[39m: javascript.0 (15621) script.js.common.Haushalt.Test: registered 0 subscriptions and 0 schedules
In den Objekten sind die Änderungen nicht zu sehen, auch nicht nach einem Browserwechsel. Greifen externe Apps auf den MQTT-Server zu, so zeigen sie auch nicht die geänderten Werte,
2020-03-24 15:39:00.174 - [34mdebug[39m: worx.0 (15819) Mower hstLandroid (xxxxxxxxxxxxxxxxxxxx) online status = true 2020-03-24 15:39:48.630 - [32minfo[39m: javascript.0 (15621) script.js.common.Haushalt.Test: worx.0.xxxxxxxxxxxxxxxxxxxx.mower.mowTimeExtend = 0 2020-03-24 15:39:48.631 - [32minfo[39m: javascript.0 (15621) script.js.common.Haushalt.Test: worx.0.xxxxxxxxxxxxxxxxxxxx.calendar.sunday.borderCut = true 2020-03-24 15:39:48.632 - [32minfo[39m: javascript.0 (15621) script.js.common.Haushalt.Test: worx.0.xxxxxxxxxxxxxxxxxxxx.calendar.sunday.startTime = 19:19 2020-03-24 15:39:48.632 - [32minfo[39m: javascript.0 (15621) script.js.common.Haushalt.Test: worx.0.xxxxxxxxxxxxxxxxxxxx.calendar.sunday.workTime = 99 2020-03-24 15:39:48.644 - [34mdebug[39m: worx.0 (15819) state change: id_____ worx.0.xxxxxxxxxxxxxxxxxxxx.mower.mowTimeExtend Mower xxxxxxxxxxxxxxxxxxxx_____mowTimeExtend______{"_events":{},"_eventsCount":0,"_maxListeners":100,"serial":"xxxxxxxxxxxxxxxxxxxx","online":true,"raw":{"id":291241,"product_id":49,"user_id":159747,"serial_number":"xxxxxxxxxxxxxxxxxxxx","mac_address":"XXXXXXXXXXXX","name":"hstLandroid","setup_location":{"latitude":51.7627524,"longitude":8.6691971},"locked":false,"firmware_version":2.92,"firmware_auto_upgrade":true,"distance_covered":417737,"mower_work_time":23999,"blade_work_time":22756,"battery_charge_cycles":260,"messages_in":535,"messages_out":27864,"push_notifications":true,"city":{"id":2950963,"country_id":276,"name":"Bentfeld","latitude":51.73333,"longitude":8.63333,"created_at":"2018-02-15 22:24:29","updated_at":"2018-02-15 22:24:29"},"sim":null,"push_notifications_level":"notice","lawn_size":300,"lawn_perimeter":null,"raw_messages_in":1792,"raw_messages_out":27864,"test":0,"iot_registered":true,"warranty_registered":true,"pin_code":____,"time_zone":"Europe/Berlin","purchased_at":"2019-03-27 00:00:00","warranty_expires_at":"2022-03-27 00:00:00","registered_at":"2019-03-27 00:00:00","online":true,"app_settings":null,"accessories":null,"features":{"unrestricted_mowing_time":true,"multi_zone":true,"wifi_connection":"smartlink_tube_display","display_type":"tube","lock":true,"pin":true,"rain_delay":true,"chassis":"m_2019","mqtt":true,"provisionable":true,"wifi_pairing":"smartlink","tracking_firmware":true,"provisoning_replaceable":true},"auto_schedule_settings":null,"auto_schedule":false,"pending_radio_link_validation":null,"mqtt_topics":{"command_in":"PRM100/XXXXXXXXXXXX/commandIn","command_out":"PRM100/XXXXXXXXXXXX/commandOut"},"created_at":"2019-01-24 05:50:03","updated_at":"2020-03-24 01:22:24"},"edgeCut":false,"mqtt_command_in":"PRM100/XXXXXXXXXXXX/commandIn","mqtt_command_out":"PRM100/XXXXXXXXXXXX/commandOut","weatherdata":{"coord":{"lon":8.63,"lat":51.73},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"base":"stations","main":{"temp":8.99,"feels_like":1.76,"temp_min":7,"temp_max":11.11,"pressure":1031,"humidity":20},"visibility":10000,"wind":{"speed":5.7,"deg":120},"clouds":{"all":0},"dt":1585058954,"sys":{"type":1,"id":1304,"country":"DE","sunrise":1585027089,"sunset":1585071901},"timezone":3600,"id":2950963,"name":"Bentfeld","cod":200},"message":{"cfg":{"id":1,"lg":"it","tm":"15:38:27","dt":"24/03/2020","sc":{"m":1,"p":0,"d":[["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]]},"cmd":0,"mz":[14,0,0,0],"mzv":[0,0,0,0,0,0,0,0,0,0],"rd":1,"sn":"xxxxxxxxxxxxxxxxxxxx"},"dat":{"mac":"XXXXXXXXXXXX","fw":2.92,"bt":{"t":22,"v":19.21,"p":100,"nr":262,"c":0,"m":0},"dmp":[2.7,-2,9.3],"st":{"b":22834,"d":419136,"wt":24079,"bl":81},"ls":1,"le":0,"lz":3,"rsi":-70,"lk":0,"act":1,"conn":"wifi"}}} 2020-03-24 15:39:48.645 - [34mdebug[39m: worx.0 (15819) Worxcloud MQTT sendMessage to xxxxxxxxxxxxxxxxxxxx Message: {"sc":{"m":1,"p":0,"d":[["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]]}} 2020-03-24 15:39:48.645 - [34mdebug[39m: worx.0 (15819) MowerTimeExtend set to : 0 2020-03-24 15:39:48.648 - [34mdebug[39m: worx.0 (15819) state change: id_____ worx.0.xxxxxxxxxxxxxxxxxxxx.calendar.sunday.borderCut Mower xxxxxxxxxxxxxxxxxxxx_____borderCut______{"_events":{},"_eventsCount":0,"_maxListeners":100,"serial":"xxxxxxxxxxxxxxxxxxxx","online":true,"raw":{"id":291241,"product_id":49,"user_id":159747,"serial_number":"xxxxxxxxxxxxxxxxxxxx","mac_address":"XXXXXXXXXXXX","name":"hstLandroid","setup_location":{"latitude":51.7627524,"longitude":8.6691971},"locked":false,"firmware_version":2.92,"firmware_auto_upgrade":true,"distance_covered":417737,"mower_work_time":23999,"blade_work_time":22756,"battery_charge_cycles":260,"messages_in":535,"messages_out":27864,"push_notifications":true,"city":{"id":2950963,"country_id":276,"name":"Bentfeld","latitude":51.73333,"longitude":8.63333,"created_at":"2018-02-15 22:24:29","updated_at":"2018-02-15 22:24:29"},"sim":null,"push_notifications_level":"notice","lawn_size":300,"lawn_perimeter":null,"raw_messages_in":1792,"raw_messages_out":27864,"test":0,"iot_registered":true,"warranty_registered":true,"pin_code":____,"time_zone":"Europe/Berlin","purchased_at":"2019-03-27 00:00:00","warranty_expires_at":"2022-03-27 00:00:00","registered_at":"2019-03-27 00:00:00","online":true,"app_settings":null,"accessories":null,"features":{"unrestricted_mowing_time":true,"multi_zone":true,"wifi_connection":"smartlink_tube_display","display_type":"tube","lock":true,"pin":true,"rain_delay":true,"chassis":"m_2019","mqtt":true,"provisionable":true,"wifi_pairing":"smartlink","tracking_firmware":true,"provisoning_replaceable":true},"auto_schedule_settings":null,"auto_schedule":false,"pending_radio_link_validation":null,"mqtt_topics":{"command_in":"PRM100/XXXXXXXXXXXX/commandIn","command_out":"PRM100/XXXXXXXXXXXX/commandOut"},"created_at":"2019-01-24 05:50:03","updated_at":"2020-03-24 01:22:24"},"edgeCut":false,"mqtt_command_in":"PRM100/XXXXXXXXXXXX/commandIn","mqtt_command_out":"PRM100/XXXXXXXXXXXX/commandOut","weatherdata":{"coord":{"lon":8.63,"lat":51.73},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"base":"stations","main":{"temp":8.99,"feels_like":1.76,"temp_min":7,"temp_max":11.11,"pressure":1031,"humidity":20},"visibility":10000,"wind":{"speed":5.7,"deg":120},"clouds":{"all":0},"dt":1585058954,"sys":{"type":1,"id":1304,"country":"DE","sunrise":1585027089,"sunset":1585071901},"timezone":3600,"id":2950963,"name":"Bentfeld","cod":200},"message":{"cfg":{"id":1,"lg":"it","tm":"15:38:27","dt":"24/03/2020","sc":{"m":1,"p":0,"d":[["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]]},"cmd":0,"mz":[14,0,0,0],"mzv":[0,0,0,0,0,0,0,0,0,0],"rd":1,"sn":"xxxxxxxxxxxxxxxxxxxx"},"dat":{"mac":"XXXXXXXXXXXX","fw":2.92,"bt":{"t":22,"v":19.21,"p":100,"nr":262,"c":0,"m":0},"dmp":[2.7,-2,9.3],"st":{"b":22834,"d":419136,"wt":24079,"bl":81},"ls":1,"le":0,"lz":3,"rsi":-70,"lk":0,"act":1,"conn":"wifi"}}} 2020-03-24 15:39:48.648 - [34mdebug[39m: worx.0 (15819) Mow time change to: [["00:00",0,1],["00:00",0,0],["00:00",0,0],["00:00",0,0],["00:00",0,0],["00:00",0,0],["00:00",0,0]] 2020-03-24 15:39:48.649 - [34mdebug[39m: worx.0 (15819) Worxcloud MQTT sendMessage to xxxxxxxxxxxxxxxxxxxx Message: {"sc":{"d":[["00:00",0,1],["00:00",0,0],["00:00",0,0],["00:00",0,0],["00:00",0,0],["00:00",0,0],["00:00",0,0]]}} 2020-03-24 15:39:48.650 - [34mdebug[39m: worx.0 (15819) test cfg: 0 valID: 2 val: true sval: 1 2020-03-24 15:39:48.653 - [34mdebug[39m: worx.0 (15819) state change: id_____ worx.0.xxxxxxxxxxxxxxxxxxxx.calendar.sunday.startTime Mower xxxxxxxxxxxxxxxxxxxx_____startTime______{"_events":{},"_eventsCount":0,"_maxListeners":100,"serial":"xxxxxxxxxxxxxxxxxxxx","online":true,"raw":{"id":291241,"product_id":49,"user_id":159747,"serial_number":"xxxxxxxxxxxxxxxxxxxx","mac_address":"XXXXXXXXXXXX","name":"hstLandroid","setup_location":{"latitude":51.7627524,"longitude":8.6691971},"locked":false,"firmware_version":2.92,"firmware_auto_upgrade":true,"distance_covered":417737,"mower_work_time":23999,"blade_work_time":22756,"battery_charge_cycles":260,"messages_in":535,"messages_out":27864,"push_notifications":true,"city":{"id":2950963,"country_id":276,"name":"Bentfeld","latitude":51.73333,"longitude":8.63333,"created_at":"2018-02-15 22:24:29","updated_at":"2018-02-15 22:24:29"},"sim":null,"push_notifications_level":"notice","lawn_size":300,"lawn_perimeter":null,"raw_messages_in":1792,"raw_messages_out":27864,"test":0,"iot_registered":true,"warranty_registered":true,"pin_code":____,"time_zone":"Europe/Berlin","purchased_at":"2019-03-27 00:00:00","warranty_expires_at":"2022-03-27 00:00:00","registered_at":"2019-03-27 00:00:00","online":true,"app_settings":null,"accessories":null,"features":{"unrestricted_mowing_time":true,"multi_zone":true,"wifi_connection":"smartlink_tube_display","display_type":"tube","lock":true,"pin":true,"rain_delay":true,"chassis":"m_2019","mqtt":true,"provisionable":true,"wifi_pairing":"smartlink","tracking_firmware":true,"provisoning_replaceable":true},"auto_schedule_settings":null,"auto_schedule":false,"pending_radio_link_validation":null,"mqtt_topics":{"command_in":"PRM100/XXXXXXXXXXXX/commandIn","command_out":"PRM100/XXXXXXXXXXXX/commandOut"},"created_at":"2019-01-24 05:50:03","updated_at":"2020-03-24 01:22:24"},"edgeCut":false,"mqtt_command_in":"PRM100/XXXXXXXXXXXX/commandIn","mqtt_command_out":"PRM100/XXXXXXXXXXXX/commandOut","weatherdata":{"coord":{"lon":8.63,"lat":51.73},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"base":"stations","main":{"temp":8.99,"feels_like":1.76,"temp_min":7,"temp_max":11.11,"pressure":1031,"humidity":20},"visibility":10000,"wind":{"speed":5.7,"deg":120},"clouds":{"all":0},"dt":1585058954,"sys":{"type":1,"id":1304,"country":"DE","sunrise":1585027089,"sunset":1585071901},"timezone":3600,"id":2950963,"name":"Bentfeld","cod":200},"message":{"cfg":{"id":1,"lg":"it","tm":"15:38:27","dt":"24/03/2020","sc":{"m":1,"p":0,"d":[["00:00",0,1],["00:00",0,0],["00:00",0,0],["00:00",0,0],["00:00",0,0],["00:00",0,0],["00:00",0,0]]},"cmd":0,"mz":[14,0,0,0],"mzv":[0,0,0,0,0,0,0,0,0,0],"rd":1,"sn":"xxxxxxxxxxxxxxxxxxxx"},"dat":{"mac":"XXXXXXXXXXXX","fw":2.92,"bt":{"t":22,"v":19.21,"p":100,"nr":262,"c":0,"m":0},"dmp":[2.7,-2,9.3],"st":{"b":22834,"d":419136,"wt":24079,"bl":81},"ls":1,"le":0,"lz":3,"rsi":-70,"lk":0,"act":1,"conn":"wifi"}}} 2020-03-24 15:39:48.654 - [34mdebug[39m: worx.0 (15819) h: 19 m: 19 2020-03-24 15:39:48.655 - [34mdebug[39m: worx.0 (15819) Mow time change to: [["19:19",0,1],["00:00",0,0],["00:00",0,0],["00:00",0,0],["00:00",0,0],["00:00",0,0],["00:00",0,0]] 2020-03-24 15:39:48.655 - [34mdebug[39m: worx.0 (15819) Worxcloud MQTT sendMessage to xxxxxxxxxxxxxxxxxxxx Message: {"sc":{"d":[["19:19",0,1],["00:00",0,0],["00:00",0,0],["00:00",0,0],["00:00",0,0],["00:00",0,0],["00:00",0,0]]}} 2020-03-24 15:39:48.656 - [34mdebug[39m: worx.0 (15819) test cfg: 0 valID: 0 val: 19:19 sval: 19:19 2020-03-24 15:39:48.658 - [34mdebug[39m: worx.0 (15819) state change: id_____ worx.0.xxxxxxxxxxxxxxxxxxxx.calendar.sunday.workTime Mower xxxxxxxxxxxxxxxxxxxx_____workTime______{"_events":{},"_eventsCount":0,"_maxListeners":100,"serial":"xxxxxxxxxxxxxxxxxxxx","online":true,"raw":{"id":291241,"product_id":49,"user_id":159747,"serial_number":"xxxxxxxxxxxxxxxxxxxx","mac_address":"XXXXXXXXXXXX","name":"hstLandroid","setup_location":{"latitude":51.7627524,"longitude":8.6691971},"locked":false,"firmware_version":2.92,"firmware_auto_upgrade":true,"distance_covered":417737,"mower_work_time":23999,"blade_work_time":22756,"battery_charge_cycles":260,"messages_in":535,"messages_out":27864,"push_notifications":true,"city":{"id":2950963,"country_id":276,"name":"Bentfeld","latitude":51.73333,"longitude":8.63333,"created_at":"2018-02-15 22:24:29","updated_at":"2018-02-15 22:24:29"},"sim":null,"push_notifications_level":"notice","lawn_size":300,"lawn_perimeter":null,"raw_messages_in":1792,"raw_messages_out":27864,"test":0,"iot_registered":true,"warranty_registered":true,"pin_code":____,"time_zone":"Europe/Berlin","purchased_at":"2019-03-27 00:00:00","warranty_expires_at":"2022-03-27 00:00:00","registered_at":"2019-03-27 00:00:00","online":true,"app_settings":null,"accessories":null,"features":{"unrestricted_mowing_time":true,"multi_zone":true,"wifi_connection":"smartlink_tube_display","display_type":"tube","lock":true,"pin":true,"rain_delay":true,"chassis":"m_2019","mqtt":true,"provisionable":true,"wifi_pairing":"smartlink","tracking_firmware":true,"provisoning_replaceable":true},"auto_schedule_settings":null,"auto_schedule":false,"pending_radio_link_validation":null,"mqtt_topics":{"command_in":"PRM100/XXXXXXXXXXXX/commandIn","command_out":"PRM100/XXXXXXXXXXXX/commandOut"},"created_at":"2019-01-24 05:50:03","updated_at":"2020-03-24 01:22:24"},"edgeCut":false,"mqtt_command_in":"PRM100/XXXXXXXXXXXX/commandIn","mqtt_command_out":"PRM100/XXXXXXXXXXXX/commandOut","weatherdata":{"coord":{"lon":8.63,"lat":51.73},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"base":"stations","main":{"temp":8.99,"feels_like":1.76,"temp_min":7,"temp_max":11.11,"pressure":1031,"humidity":20},"visibility":10000,"wind":{"speed":5.7,"deg":120},"clouds":{"all":0},"dt":1585058954,"sys":{"type":1,"id":1304,"country":"DE","sunrise":1585027089,"sunset":1585071901},"timezone":3600,"id":2950963,"name":"Bentfeld","cod":200},"message":{"cfg":{"id":1,"lg":"it","tm":"15:38:27","dt":"24/03/2020","sc":{"m":1,"p":0,"d":[["19:19",0,1],["00:00",0,0],["00:00",0,0],["00:00",0,0],["00:00",0,0],["00:00",0,0],["00:00",0,0]]},"cmd":0,"mz":[14,0,0,0],"mzv":[0,0,0,0,0,0,0,0,0,0],"rd":1,"sn":"xxxxxxxxxxxxxxxxxxxx"},"dat":{"mac":"XXXXXXXXXXXX","fw":2.92,"bt":{"t":22,"v":19.21,"p":100,"nr":262,"c":0,"m":0},"dmp":[2.7,-2,9.3],"st":{"b":22834,"d":419136,"wt":24079,"bl":81},"ls":1,"le":0,"lz":3,"rsi":-70,"lk":0,"act":1,"conn":"wifi"}}} 2020-03-24 15:39:48.659 - [34mdebug[39m: worx.0 (15819) Mow time change to: [["19:19",99,1],["00:00",0,0],["00:00",0,0],["00:00",0,0],["00:00",0,0],["00:00",0,0],["00:00",0,0]] 2020-03-24 15:39:48.660 - [34mdebug[39m: worx.0 (15819) Worxcloud MQTT sendMessage to xxxxxxxxxxxxxxxxxxxx Message: {"sc":{"d":[["19:19",99,1],["00:00",0,0],["00:00",0,0],["00:00",0,0],["00:00",0,0],["00:00",0,0],["00:00",0,0]]}} 2020-03-24 15:39:48.660 - [34mdebug[39m: worx.0 (15819) test cfg: 0 valID: 1 val: 99 sval: 99 2020-03-24 15:39:50.102 - [34mdebug[39m: worx.0 (15819) Worxcloud MQTT get Message for mower hstLandroid (xxxxxxxxxxxxxxxxxxxx) 2020-03-24 15:39:50.102 - [34mdebug[39m: worx.0 (15819) GET MQTT DATA from API: {"cfg":{"id":1,"lg":"it","tm":"15:39:52","dt":"24/03/2020","sc":{"m":1,"p":0,"d":[["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]]},"cmd":0,"mz":[14,0,0,0],"mzv":[0,0,0,0,0,0,0,0,0,0],"rd":1,"sn":"xxxxxxxxxxxxxxxxxxxx"},"dat":{"mac":"XXXXXXXXXXXX","fw":2.92,"bt":{"t":22.1,"v":19.21,"p":100,"nr":262,"c":0,"m":0},"dmp":[2.7,-2.1,9.3],"st":{"b":22834,"d":419136,"wt":24079,"bl":81},"ls":1,"le":0,"lz":3,"rsi":-69,"lk":0,"act":1,"conn":"wifi"}} 2020-03-24 15:39:50.103 - [34mdebug[39m: worx.0 (15819) Test Status: 1 2020-03-24 15:40:00.229 - [34mdebug[39m: worx.0 (15819) Mower hstLandroid (xxxxxxxxxxxxxxxxxxxx) online status = true
Was kann ich tun? (Meine Adapter-Version: 1.0.0)
-
@hsteinme stoppe mal den Adapter für 24h und versuch es dann nochmals. Ich hatte auch das Problem dass keine Datenpunkte mehr aktualisiert wurden. Das wurde von worx für 24h blockiert.
-
@drapo sagte in Worx Adapter: Kalender-Änderungen per JavaScript unwirksam:
stoppe mal den Adapter für 24h und versuch es dann nochmals. Ich hatte auch das Problem dass keine Datenpunkte mehr aktualisiert wurden. Das wurde von worx für 24h blockiert.
Danke für den Hinweis. Eine 24-Stunden-Blockade durch Worx hatte ich schon überprüft. Da aber in meiner Logdatei der allseits bekannte Eintrag "Connection blocked from Worx, please try again in 24h" nicht vorkommt, schließe ich diese Situation aus.
-
Ich habe mittlerweile folgendes getan:
- Worx Adapter deinstalliert und erneut installiert
- JavaScript Adapter neu gestartet.
Danach ergibt sich nun folgende Situation:
(1) Das gestern gelistete Skript ist weiterhin wirkungslos.
(2) Manuelle Änderungen der betreffenden Datenpunkte im Objects Tab kommen durch.
(3) Beim nachfolgend gelisteten modifizierten Skript sind 6 von 7 Aufrufen erfolgreich. Beim 7. Aufruf wurde nur ein Teil der Datenpunkt-Änderungen übernommen.setState('worx.0.201930198401009061F2.mower.mowTimeExtend', 0); console.log('worx.0.201930198401009061F2.mower.mowTimeExtend = 0'); setTimeout(function() { setState('worx.0.201930198401009061F2.calendar.sunday.borderCut', false); console.log('worx.0.201930198401009061F2.calendar.sunday.borderCut = false'); }, 5000) setTimeout(function() { setState('worx.0.201930198401009061F2.calendar.sunday.startTime', '14:14'); console.log('worx.0.201930198401009061F2.calendar.sunday.startTime = 14:14'); }, 10000) setTimeout(function() { setState('worx.0.201930198401009061F2.calendar.sunday.workTime', 44); console.log('worx.0.201930198401009061F2.calendar.sunday.workTime = 44'); }, 15000)
Könnte bitte ein "Landroid-Anhänger" in der Forumsgemeinde diesen Test mit dem "bösen" und mit dem (fast) "guten" Skript in seiner Umgebung laufen lassen. Heißen Dank im Voraus.
-
@hsteinme meiner funktioniert grad einwandfrei und möchte nichts ändern. Kann dir aber hier eine funktionierende Lösung verlinken. Vielleicht kannst du das auch gebrauchen...
https://youtu.be/nIDj6D4ynyY -
@drapo sagte in Worx Adapter: Kalender-Änderungen per JavaScript unwirksam:
Kann dir aber hier eine funktionierende Lösung verlinken.
Danke! Ja, das ist schon ein Super-Cockpit für eine Mähmaschine.
@drapo sagte in Worx Adapter: Kalender-Änderungen per JavaScript unwirksam:
Vielleicht kannst du das auch gebrauchen...
Nööh, leider nicht. Die gezeigte Lösung, so elegant sie auch ist, passt nicht zu meiner Aufgabenstellung. Ich möchte die geplanten Mähzeiten in einen Kalender eingeben, in vielen Fällen natürlich als Serientermine. Ein Skript im ioBroker wertet dann den Kalender aus und stellt kurz vor anstehenden Mähaktionen den Worx-Kalender dazu passend ein. Damit könnte ich dann auch z.B. mehrere Mäh-Zeitfenster an einem Tag planen.
-
@hsteinme sagte in Worx Adapter: Kalender-Änderungen per JavaScript unwirksam:
Beim nachfolgend gelisteten modifizierten Skript sind 6 von 7 Aufrufen erfolgreich.
Ich habe nun protokollmäßig einen derart positiven Fall mitgeschnitten (also einen Fall mit jeweils zeitverzögerten Änderungen der Datenpunkte:
2020-03-26 12:17:13.643 - [32minfo[39m: javascript.0 (680) script.js.common.Haushalt.Test: worx.0.xxxxxxxxxxxxxxxxxxxx.mower.mowTimeExtend = 0 2020-03-26 12:17:13.651 - [34mdebug[39m: worx.0 (4540) state change: id_____ worx.0.xxxxxxxxxxxxxxxxxxxx.mower.mowTimeExtend Mower xxxxxxxxxxxxxxxxxxxx_____mowTimeExtend______{"_events":{},"_eventsCount":0,"_maxListeners":100,"serial":"xxxxxxxxxxxxxxxxxxxx","online":true,"raw":{"id":291241,"product_id":49,"user_id":159747,"serial_number":"xxxxxxxxxxxxxxxxxxxx","mac_address":"XXXXXXXXXXXX","name":"hstLandroid","setup_location":{"latitude":51.7627524,"longitude":8.6691971},"locked":false,"firmware_version":2.92,"firmware_auto_upgrade":true,"distance_covered":420452,"mower_work_time":24154,"blade_work_time":22905,"battery_charge_cycles":263,"messages_in":543,"messages_out":28083,"push_notifications":true,"city":{"id":2950963,"country_id":276,"name":"Bentfeld","latitude":51.73333,"longitude":8.63333,"created_at":"2018-02-15 22:24:29","updated_at":"2018-02-15 22:24:29"},"sim":null,"push_notifications_level":"notice","lawn_size":300,"lawn_perimeter":null,"raw_messages_in":2014,"raw_messages_out":28083,"test":0,"iot_registered":true,"warranty_registered":true,"pin_code":____,"time_zone":"Europe/Berlin","purchased_at":"2019-03-27 00:00:00","warranty_expires_at":"2022-03-27 00:00:00","registered_at":"2019-03-27 00:00:00","online":true,"app_settings":null,"accessories":null,"features":{"unrestricted_mowing_time":true,"multi_zone":true,"wifi_connection":"smartlink_tube_display","display_type":"tube","lock":true,"pin":true,"rain_delay":true,"chassis":"m_2019","mqtt":true,"provisionable":true,"wifi_pairing":"smartlink","tracking_firmware":true,"provisoning_replaceable":true},"auto_schedule_settings":null,"auto_schedule":false,"pending_radio_link_validation":null,"mqtt_topics":{"command_in":"PRM100/XXXXXXXXXXXX/commandIn","command_out":"PRM100/XXXXXXXXXXXX/commandOut"},"created_at":"2019-01-24 05:50:03","updated_at":"2020-03-25 01:17:43"},"edgeCut":false,"mqtt_command_in":"PRM100/XXXXXXXXXXXX/commandIn","mqtt_command_out":"PRM100/XXXXXXXXXXXX/commandOut","weatherdata":{"coord":{"lon":8.63,"lat":51.73},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"base":"stations","main":{"temp":7.7,"feels_like":-0.34,"temp_min":7,"temp_max":8.33,"pressure":1023,"humidity":39},"visibility":10000,"wind":{"speed":7.7,"deg":90},"clouds":{"all":0},"dt":1585220688,"sys":{"type":1,"id":1304,"country":"DE","sunrise":1585199611,"sunset":1585244903},"timezone":3600,"id":2950963,"name":"Bentfeld","cod":200},"message":{"cfg":{"id":0,"lg":"it","tm":"12:12:16","dt":"26/03/2020","sc":{"m":1,"p":0,"d":[["00:00",0,0],["00:00",0,0],["00:00",0,0],["00:00",0,0],["09:15",240,1],["00:00",0,0],["00:00",0,0]]},"cmd":0,"mz":[14,0,0,0],"mzv":[0,0,0,0,0,0,0,0,0,0],"rd":1,"sn":"xxxxxxxxxxxxxxxxxxxx"},"dat":{"mac":"XXXXXXXXXXXX","fw":2.92,"bt":{"t":14.2,"v":18.55,"p":82,"nr":267,"c":0,"m":0},"dmp":[2.1,3.2,219.6],"st":{"b":23186,"d":425706,"wt":24456,"bl":80},"ls":7,"le":0,"lz":4,"rsi":-65,"lk":0,"act":1,"conn":"wifi"}}} 2020-03-26 12:17:13.652 - [34mdebug[39m: worx.0 (4540) Worxcloud MQTT sendMessage to xxxxxxxxxxxxxxxxxxxx Message: {"sc":{"m":1,"p":0,"d":[["00:00",0,0],["00:00",0,0],["00:00",0,0],["00:00",0,0],["09:15",240,1],["00:00",0,0],["00:00",0,0]]}} 2020-03-26 12:17:13.652 - [34mdebug[39m: worx.0 (4540) MowerTimeExtend set to : 0 2020-03-26 12:17:15.115 - [34mdebug[39m: worx.0 (4540) Worxcloud MQTT get Message for mower hstLandroid (xxxxxxxxxxxxxxxxxxxx) 2020-03-26 12:17:15.116 - [34mdebug[39m: worx.0 (4540) GET MQTT DATA from API: {"cfg":{"id":1,"lg":"it","tm":"12:17:12","dt":"26/03/2020","sc":{"m":1,"p":0,"d":[["00:00",0,0],["00:00",0,0],["00:00",0,0],["00:00",0,0],["09:15",240,1],["00:00",0,0],["00:00",0,0]]},"cmd":0,"mz":[14,0,0,0],"mzv":[0,0,0,0,0,0,0,0,0,0],"rd":1,"sn":"xxxxxxxxxxxxxxxxxxxx"},"dat":{"mac":"XXXXXXXXXXXX","fw":2.92,"bt":{"t":14.4,"v":18.41,"p":74,"nr":267,"c":0,"m":0},"dmp":[0,0.5,101.4],"st":{"b":23191,"d":425793,"wt":24461,"bl":80},"ls":7,"le":0,"lz":4,"rsi":-78,"lk":0,"act":1,"conn":"wifi"}} 2020-03-26 12:17:15.117 - [34mdebug[39m: worx.0 (4540) Test Status: 7 2020-03-26 12:17:18.645 - [32minfo[39m: javascript.0 (680) script.js.common.Haushalt.Test: worx.0.xxxxxxxxxxxxxxxxxxxx.calendar.sunday.borderCut = false 2020-03-26 12:17:18.857 - [34mdebug[39m: worx.0 (4540) state change: id_____ worx.0.xxxxxxxxxxxxxxxxxxxx.calendar.sunday.borderCut Mower xxxxxxxxxxxxxxxxxxxx_____borderCut______{"_events":{},"_eventsCount":0,"_maxListeners":100,"serial":"xxxxxxxxxxxxxxxxxxxx","online":true,"raw":{"id":291241,"product_id":49,"user_id":159747,"serial_number":"xxxxxxxxxxxxxxxxxxxx","mac_address":"XXXXXXXXXXXX","name":"hstLandroid","setup_location":{"latitude":51.7627524,"longitude":8.6691971},"locked":false,"firmware_version":2.92,"firmware_auto_upgrade":true,"distance_covered":420452,"mower_work_time":24154,"blade_work_time":22905,"battery_charge_cycles":263,"messages_in":543,"messages_out":28083,"push_notifications":true,"city":{"id":2950963,"country_id":276,"name":"Bentfeld","latitude":51.73333,"longitude":8.63333,"created_at":"2018-02-15 22:24:29","updated_at":"2018-02-15 22:24:29"},"sim":null,"push_notifications_level":"notice","lawn_size":300,"lawn_perimeter":null,"raw_messages_in":2014,"raw_messages_out":28083,"test":0,"iot_registered":true,"warranty_registered":true,"pin_code":____,"time_zone":"Europe/Berlin","purchased_at":"2019-03-27 00:00:00","warranty_expires_at":"2022-03-27 00:00:00","registered_at":"2019-03-27 00:00:00","online":true,"app_settings":null,"accessories":null,"features":{"unrestricted_mowing_time":true,"multi_zone":true,"wifi_connection":"smartlink_tube_display","display_type":"tube","lock":true,"pin":true,"rain_delay":true,"chassis":"m_2019","mqtt":true,"provisionable":true,"wifi_pairing":"smartlink","tracking_firmware":true,"provisoning_replaceable":true},"auto_schedule_settings":null,"auto_schedule":false,"pending_radio_link_validation":null,"mqtt_topics":{"command_in":"PRM100/XXXXXXXXXXXX/commandIn","command_out":"PRM100/XXXXXXXXXXXX/commandOut"},"created_at":"2019-01-24 05:50:03","updated_at":"2020-03-25 01:17:43"},"edgeCut":false,"mqtt_command_in":"PRM100/XXXXXXXXXXXX/commandIn","mqtt_command_out":"PRM100/XXXXXXXXXXXX/commandOut","weatherdata":{"coord":{"lon":8.63,"lat":51.73},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"base":"stations","main":{"temp":7.7,"feels_like":-0.34,"temp_min":7,"temp_max":8.33,"pressure":1023,"humidity":39},"visibility":10000,"wind":{"speed":7.7,"deg":90},"clouds":{"all":0},"dt":1585220688,"sys":{"type":1,"id":1304,"country":"DE","sunrise":1585199611,"sunset":1585244903},"timezone":3600,"id":2950963,"name":"Bentfeld","cod":200},"message":{"cfg":{"id":1,"lg":"it","tm":"12:17:12","dt":"26/03/2020","sc":{"m":1,"p":0,"d":[["00:00",0,0],["00:00",0,0],["00:00",0,0],["00:00",0,0],["09:15",240,1],["00:00",0,0],["00:00",0,0]]},"cmd":0,"mz":[14,0,0,0],"mzv":[0,0,0,0,0,0,0,0,0,0],"rd":1,"sn":"xxxxxxxxxxxxxxxxxxxx"},"dat":{"mac":"XXXXXXXXXXXX","fw":2.92,"bt":{"t":14.4,"v":18.41,"p":74,"nr":267,"c":0,"m":0},"dmp":[0,0.5,101.4],"st":{"b":23191,"d":425793,"wt":24461,"bl":80},"ls":7,"le":0,"lz":4,"rsi":-78,"lk":0,"act":1,"conn":"wifi"}}} 2020-03-26 12:17:18.859 - [34mdebug[39m: worx.0 (4540) Mow time change to: [["00:00",0,0],["00:00",0,0],["00:00",0,0],["00:00",0,0],["09:15",240,1],["00:00",0,0],["00:00",0,0]] 2020-03-26 12:17:18.859 - [34mdebug[39m: worx.0 (4540) Worxcloud MQTT sendMessage to xxxxxxxxxxxxxxxxxxxx Message: {"sc":{"d":[["00:00",0,0],["00:00",0,0],["00:00",0,0],["00:00",0,0],["09:15",240,1],["00:00",0,0],["00:00",0,0]]}} 2020-03-26 12:17:18.860 - [34mdebug[39m: worx.0 (4540) test cfg: 0 valID: 2 val: false sval: 0 2020-03-26 12:17:20.305 - [34mdebug[39m: worx.0 (4540) Worxcloud MQTT get Message for mower hstLandroid (xxxxxxxxxxxxxxxxxxxx) 2020-03-26 12:17:20.306 - [34mdebug[39m: worx.0 (4540) GET MQTT DATA from API: {"cfg":{"id":1,"lg":"it","tm":"12:17:17","dt":"26/03/2020","sc":{"m":1,"p":0,"d":[["00:00",0,0],["00:00",0,0],["00:00",0,0],["00:00",0,0],["09:15",240,1],["00:00",0,0],["00:00",0,0]]},"cmd":0,"mz":[14,0,0,0],"mzv":[0,0,0,0,0,0,0,0,0,0],"rd":1,"sn":"xxxxxxxxxxxxxxxxxxxx"},"dat":{"mac":"XXXXXXXXXXXX","fw":2.92,"bt":{"t":14.4,"v":18.4,"p":74,"nr":267,"c":0,"m":0},"dmp":[2.4,0.2,42.1],"st":{"b":23191,"d":425794,"wt":24461,"bl":80},"ls":7,"le":0,"lz":4,"rsi":-78,"lk":0,"act":1,"conn":"wifi"}} 2020-03-26 12:17:20.307 - [34mdebug[39m: worx.0 (4540) Test Status: 7 2020-03-26 12:17:23.645 - [32minfo[39m: javascript.0 (680) script.js.common.Haushalt.Test: worx.0.xxxxxxxxxxxxxxxxxxxx.calendar.sunday.startTime = 14:14 2020-03-26 12:17:23.648 - [34mdebug[39m: worx.0 (4540) state change: id_____ worx.0.xxxxxxxxxxxxxxxxxxxx.calendar.sunday.startTime Mower xxxxxxxxxxxxxxxxxxxx_____startTime______{"_events":{},"_eventsCount":0,"_maxListeners":100,"serial":"xxxxxxxxxxxxxxxxxxxx","online":true,"raw":{"id":291241,"product_id":49,"user_id":159747,"serial_number":"xxxxxxxxxxxxxxxxxxxx","mac_address":"XXXXXXXXXXXX","name":"hstLandroid","setup_location":{"latitude":51.7627524,"longitude":8.6691971},"locked":false,"firmware_version":2.92,"firmware_auto_upgrade":true,"distance_covered":420452,"mower_work_time":24154,"blade_work_time":22905,"battery_charge_cycles":263,"messages_in":543,"messages_out":28083,"push_notifications":true,"city":{"id":2950963,"country_id":276,"name":"Bentfeld","latitude":51.73333,"longitude":8.63333,"created_at":"2018-02-15 22:24:29","updated_at":"2018-02-15 22:24:29"},"sim":null,"push_notifications_level":"notice","lawn_size":300,"lawn_perimeter":null,"raw_messages_in":2014,"raw_messages_out":28083,"test":0,"iot_registered":true,"warranty_registered":true,"pin_code":____,"time_zone":"Europe/Berlin","purchased_at":"2019-03-27 00:00:00","warranty_expires_at":"2022-03-27 00:00:00","registered_at":"2019-03-27 00:00:00","online":true,"app_settings":null,"accessories":null,"features":{"unrestricted_mowing_time":true,"multi_zone":true,"wifi_connection":"smartlink_tube_display","display_type":"tube","lock":true,"pin":true,"rain_delay":true,"chassis":"m_2019","mqtt":true,"provisionable":true,"wifi_pairing":"smartlink","tracking_firmware":true,"provisoning_replaceable":true},"auto_schedule_settings":null,"auto_schedule":false,"pending_radio_link_validation":null,"mqtt_topics":{"command_in":"PRM100/XXXXXXXXXXXX/commandIn","command_out":"PRM100/XXXXXXXXXXXX/commandOut"},"created_at":"2019-01-24 05:50:03","updated_at":"2020-03-25 01:17:43"},"edgeCut":false,"mqtt_command_in":"PRM100/XXXXXXXXXXXX/commandIn","mqtt_command_out":"PRM100/XXXXXXXXXXXX/commandOut","weatherdata":{"coord":{"lon":8.63,"lat":51.73},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"base":"stations","main":{"temp":7.7,"feels_like":-0.34,"temp_min":7,"temp_max":8.33,"pressure":1023,"humidity":39},"visibility":10000,"wind":{"speed":7.7,"deg":90},"clouds":{"all":0},"dt":1585220688,"sys":{"type":1,"id":1304,"country":"DE","sunrise":1585199611,"sunset":1585244903},"timezone":3600,"id":2950963,"name":"Bentfeld","cod":200},"message":{"cfg":{"id":1,"lg":"it","tm":"12:17:17","dt":"26/03/2020","sc":{"m":1,"p":0,"d":[["00:00",0,0],["00:00",0,0],["00:00",0,0],["00:00",0,0],["09:15",240,1],["00:00",0,0],["00:00",0,0]]},"cmd":0,"mz":[14,0,0,0],"mzv":[0,0,0,0,0,0,0,0,0,0],"rd":1,"sn":"xxxxxxxxxxxxxxxxxxxx"},"dat":{"mac":"XXXXXXXXXXXX","fw":2.92,"bt":{"t":14.4,"v":18.4,"p":74,"nr":267,"c":0,"m":0},"dmp":[2.4,0.2,42.1],"st":{"b":23191,"d":425794,"wt":24461,"bl":80},"ls":7,"le":0,"lz":4,"rsi":-78,"lk":0,"act":1,"conn":"wifi"}}} 2020-03-26 12:17:23.648 - [34mdebug[39m: worx.0 (4540) h: 14 m: 14 2020-03-26 12:17:23.649 - [34mdebug[39m: worx.0 (4540) Mow time change to: [["14:14",0,0],["00:00",0,0],["00:00",0,0],["00:00",0,0],["09:15",240,1],["00:00",0,0],["00:00",0,0]] 2020-03-26 12:17:23.649 - [34mdebug[39m: worx.0 (4540) Worxcloud MQTT sendMessage to xxxxxxxxxxxxxxxxxxxx Message: {"sc":{"d":[["14:14",0,0],["00:00",0,0],["00:00",0,0],["00:00",0,0],["09:15",240,1],["00:00",0,0],["00:00",0,0]]}} 2020-03-26 12:17:23.649 - [34mdebug[39m: worx.0 (4540) test cfg: 0 valID: 0 val: 14:14 sval: 14:14 2020-03-26 12:17:25.139 - [34mdebug[39m: worx.0 (4540) Worxcloud MQTT get Message for mower hstLandroid (xxxxxxxxxxxxxxxxxxxx) 2020-03-26 12:17:25.140 - [34mdebug[39m: worx.0 (4540) GET MQTT DATA from API: {"cfg":{"id":1,"lg":"it","tm":"12:17:22","dt":"26/03/2020","sc":{"m":1,"p":0,"d":[["14:14",0,0],["00:00",0,0],["00:00",0,0],["00:00",0,0],["09:15",240,1],["00:00",0,0],["00:00",0,0]]},"cmd":0,"mz":[14,0,0,0],"mzv":[0,0,0,0,0,0,0,0,0,0],"rd":1,"sn":"xxxxxxxxxxxxxxxxxxxx"},"dat":{"mac":"XXXXXXXXXXXX","fw":2.92,"bt":{"t":14.4,"v":18.39,"p":73,"nr":267,"c":0,"m":0},"dmp":[4.3,-4.4,42.5],"st":{"b":23191,"d":425796,"wt":24461,"bl":80},"ls":7,"le":0,"lz":4,"rsi":-78,"lk":0,"act":1,"conn":"wifi"}} 2020-03-26 12:17:25.141 - [34mdebug[39m: worx.0 (4540) Test Status: 7 2020-03-26 12:17:28.645 - [32minfo[39m: javascript.0 (680) script.js.common.Haushalt.Test: worx.0.xxxxxxxxxxxxxxxxxxxx.calendar.sunday.workTime = 44 2020-03-26 12:17:28.650 - [34mdebug[39m: worx.0 (4540) state change: id_____ worx.0.xxxxxxxxxxxxxxxxxxxx.calendar.sunday.workTime Mower xxxxxxxxxxxxxxxxxxxx_____workTime______{"_events":{},"_eventsCount":0,"_maxListeners":100,"serial":"xxxxxxxxxxxxxxxxxxxx","online":true,"raw":{"id":291241,"product_id":49,"user_id":159747,"serial_number":"xxxxxxxxxxxxxxxxxxxx","mac_address":"XXXXXXXXXXXX","name":"hstLandroid","setup_location":{"latitude":51.7627524,"longitude":8.6691971},"locked":false,"firmware_version":2.92,"firmware_auto_upgrade":true,"distance_covered":420452,"mower_work_time":24154,"blade_work_time":22905,"battery_charge_cycles":263,"messages_in":543,"messages_out":28083,"push_notifications":true,"city":{"id":2950963,"country_id":276,"name":"Bentfeld","latitude":51.73333,"longitude":8.63333,"created_at":"2018-02-15 22:24:29","updated_at":"2018-02-15 22:24:29"},"sim":null,"push_notifications_level":"notice","lawn_size":300,"lawn_perimeter":null,"raw_messages_in":2014,"raw_messages_out":28083,"test":0,"iot_registered":true,"warranty_registered":true,"pin_code":____,"time_zone":"Europe/Berlin","purchased_at":"2019-03-27 00:00:00","warranty_expires_at":"2022-03-27 00:00:00","registered_at":"2019-03-27 00:00:00","online":true,"app_settings":null,"accessories":null,"features":{"unrestricted_mowing_time":true,"multi_zone":true,"wifi_connection":"smartlink_tube_display","display_type":"tube","lock":true,"pin":true,"rain_delay":true,"chassis":"m_2019","mqtt":true,"provisionable":true,"wifi_pairing":"smartlink","tracking_firmware":true,"provisoning_replaceable":true},"auto_schedule_settings":null,"auto_schedule":false,"pending_radio_link_validation":null,"mqtt_topics":{"command_in":"PRM100/XXXXXXXXXXXX/commandIn","command_out":"PRM100/XXXXXXXXXXXX/commandOut"},"created_at":"2019-01-24 05:50:03","updated_at":"2020-03-25 01:17:43"},"edgeCut":false,"mqtt_command_in":"PRM100/XXXXXXXXXXXX/commandIn","mqtt_command_out":"PRM100/XXXXXXXXXXXX/commandOut","weatherdata":{"coord":{"lon":8.63,"lat":51.73},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"base":"stations","main":{"temp":7.7,"feels_like":-0.34,"temp_min":7,"temp_max":8.33,"pressure":1023,"humidity":39},"visibility":10000,"wind":{"speed":7.7,"deg":90},"clouds":{"all":0},"dt":1585220688,"sys":{"type":1,"id":1304,"country":"DE","sunrise":1585199611,"sunset":1585244903},"timezone":3600,"id":2950963,"name":"Bentfeld","cod":200},"message":{"cfg":{"id":1,"lg":"it","tm":"12:17:22","dt":"26/03/2020","sc":{"m":1,"p":0,"d":[["14:14",0,0],["00:00",0,0],["00:00",0,0],["00:00",0,0],["09:15",240,1],["00:00",0,0],["00:00",0,0]]},"cmd":0,"mz":[14,0,0,0],"mzv":[0,0,0,0,0,0,0,0,0,0],"rd":1,"sn":"xxxxxxxxxxxxxxxxxxxx"},"dat":{"mac":"XXXXXXXXXXXX","fw":2.92,"bt":{"t":14.4,"v":18.39,"p":73,"nr":267,"c":0,"m":0},"dmp":[4.3,-4.4,42.5],"st":{"b":23191,"d":425796,"wt":24461,"bl":80},"ls":7,"le":0,"lz":4,"rsi":-78,"lk":0,"act":1,"conn":"wifi"}}} 2020-03-26 12:17:28.650 - [34mdebug[39m: worx.0 (4540) Mow time change to: [["14:14",44,0],["00:00",0,0],["00:00",0,0],["00:00",0,0],["09:15",240,1],["00:00",0,0],["00:00",0,0]] 2020-03-26 12:17:28.651 - [34mdebug[39m: worx.0 (4540) Worxcloud MQTT sendMessage to xxxxxxxxxxxxxxxxxxxx Message: {"sc":{"d":[["14:14",44,0],["00:00",0,0],["00:00",0,0],["00:00",0,0],["09:15",240,1],["00:00",0,0],["00:00",0,0]]}} 2020-03-26 12:17:28.651 - [34mdebug[39m: worx.0 (4540) test cfg: 0 valID: 1 val: 44 sval: 44 2020-03-26 12:17:30.135 - [34mdebug[39m: worx.0 (4540) Worxcloud MQTT get Message for mower hstLandroid (xxxxxxxxxxxxxxxxxxxx) 2020-03-26 12:17:30.136 - [34mdebug[39m: worx.0 (4540) GET MQTT DATA from API: {"cfg":{"id":1,"lg":"it","tm":"12:17:27","dt":"26/03/2020","sc":{"m":1,"p":0,"d":[["14:14",44,0],["00:00",0,0],["00:00",0,0],["00:00",0,0],["09:15",240,1],["00:00",0,0],["00:00",0,0]]},"cmd":0,"mz":[14,0,0,0],"mzv":[0,0,0,0,0,0,0,0,0,0],"rd":1,"sn":"xxxxxxxxxxxxxxxxxxxx"},"dat":{"mac":"XXXXXXXXXXXX","fw":2.92,"bt":{"t":14.3,"v":18.44,"p":73,"nr":267,"c":0,"m":0},"dmp":[-0.8,-2.7,4.6],"st":{"b":23191,"d":425797,"wt":24461,"bl":80},"ls":7,"le":0,"lz":4,"rsi":-78,"lk":0,"act":1,"conn":"wifi"}} 2020-03-26 12:17:30.136 - [34mdebug[39m: worx.0 (4540) Test Status: 7 2020-03-26 12:17:48.389 - [34mdebug[39m: worx.0 (4540) Mower hstLandroid (xxxxxxxxxxxxxxxxxxxx) online status = true
Wenn ich nun meine Logs vom 24. März und von heute auf das wesentliche "eindampfe", ergibt sich folgendes Bild:
(1) fehlerhafter Fall:
2020-03-24 15:39:48.630 javascript.0 Test: .mower.mowTimeExtend = 0 2020-03-24 15:39:48.631 javascript.0 Test: .calendar.sunday.borderCut = true 2020-03-24 15:39:48.632 javascript.0 Test: .calendar.sunday.startTime = 19:19 2020-03-24 15:39:48.632 javascript.0 Test: .calendar.sunday.workTime = 99 2020-03-24 15:39:48.645 sendMessage { "sc":{"m":1,"p":0,"d":[["00:00", 0,0],... 2020-03-24 15:39:48.649 sendMessage { "sc":{ "d":[["00:00", 0,1],... 2020-03-24 15:39:48.655 sendMessage { "sc":{ "d":[["19:19", 0,1],... 2020-03-24 15:39:48.660 sendMessage { "sc":{ "d":[["19:19",99,1],... 2020-03-24 15:39:50.102 GET MQTT DATA {... "sc":{"m":1,"p":0,"d":[["00:00", 0,0],...
(2) korrekter Fall:
2020-03-26 12:17:13.643 javascript.0 Test: .mower.mowTimeExtend = 0 2020-03-26 12:17:13.652 sendMessage { "sc":{"m":1,"p":0,"d":[["00:00", 0,0],... 2020-03-26 12:17:15.116 GET MQTT DATA {... "sc":{"m":1,"p":0,"d":[["00:00", 0,0],... 2020-03-26 12:17:18.645 javascript.0 Test: .calendar.sunday.borderCut = false 2020-03-26 12:17:18.859 sendMessage { "sc":{ "d":[["00:00", 0,0],... 2020-03-26 12:17:20.306 GET MQTT DATA {... "sc":{"m":1,"p":0,"d":[["00:00", 0,0],... 2020-03-26 12:17:23.645 javascript.0 Test: .calendar.sunday.startTime = 14:14 2020-03-26 12:17:23.649 sendMessage { "sc":{ "d":[["14:14", 0,0],... 2020-03-26 12:17:25.140 GET MQTT DATA {... "sc":{"m":1,"p":0,"d":[["14:14", 0,0],... 2020-03-26 12:17:28.645 javascript.0 Test: .calendar.sunday.workTime = 44 2020-03-26 12:17:28.651 sendMessage { "sc":{ "d":[["14:14",44,0], 2020-03-26 12:17:30.136 GET MQTT DATA {... "sc":{"m":1,"p":0,"d":[["14:14",44,0],...
Folgender Unterschied springt ins Auge:
- Fall (1): 3 x send und 1 x abschließendes get mit veralteten Werten
- Fall (2): 3 x send und 3 x zwischenzeitliches get mit jeweils aktuellen Werten
@Meistertr: Habe ich eine Chance, Dich als intimen Kenner des Adapters sowie des Protokolls zum Worx MQTT Server hier ins Boot zu holen? Wenn Du das unterschiedliche Verhalten in den beiden obigen Fällen Dir anschaust, auf was tippst Du dann:
- Verhalten ist bedingt durch Logik des Adapters und/oder des Protokolls?
- Verhalten ist bedingt durch irgendeinen Umstand in meiner Umgebung (den es dann zu suchen und zu eliminieren gilt)?
-
@hsteinme Wie man an den MQTT data sieht, sind die gesamten Enstellungen in einer JSON datei, hierbei muss/wird der gesamte Config block übertragen , wenn du innerhalb von 15 Milliekunden die werte ändernst, können die neuen Daten noch nicht vo server wieder da sein, immer bedenken , dass hier eine verbindung iobroker >cloud > roboter >cloud > iobroker stattfindet, das braucht etwas zeit. Wie im zweiten auszug zu sehen , dauert das Rüchschreiben ca 3 sekunden. von daher musst du zwischen dem senden wie im zweiten beispiel 5 sekunden Timeout haben
-
@Meistertr: Willkommen im Boot ... und ganz herzlichen Dank für Deine Erläuterungen und Klarstellungen.
Meine geschilderte Situation scheint also durch einen Bruch in der Kommunikationsmethode verursacht zu werden: Server und Adapter reden in Blöcken miteinander, während Skripte und Adapter in Feldern miteinander reden. Und da es skriptseitig keine Technik gibt, Feldänderungen in Transaktionen zu bündeln, kommt es zu den beschriebenen Effekten. Diese Effekte habe ich hier bei den Datenpunkten des Worx-Terminplans angetroffen. Letztlich können sie ja immer dann "zuschlagen", wenn logisch zusammenhängende Datenpunkte einzeln geändert werden. Das wird das Skripten für den Worx Adapter so richtig spannend machen
Deine Aussage, dass in dieser Hin-und-her-Informationskette auch der Mäher einbezogen ist, überrascht mich (da ich bisher die MQTT-Broker-Rolle etwas anders verstanden hatte). Bei jedem Update-Versuch eines Datenpunktes muss ich also sicherstellen, dass der Mäher online ist. Und ich muss im Offline-Fall eine Wiederholung der ausgefallenen Aktion vorsehen. Von daher wird also eine einfach klingende Aktion der Art "Montags morgens um 0:00 Uhr alle Eintragungen des Worx-Terminkalender resetten" programmiertechnisch schon etwas anspruchsvoll werden.
Abschließend nochmals besten Dank für Deine Aufklärung und darüber hinaus ein ganz dickes und fettes "Danke schön" für die Bereitstellung dieses Adapters. Bleib gesund!
-
@hsteinme Prinzipiell sollte der Möher schon online sein. Im grunde hast du recht mit Mqtt jedoch nutzt der Adapter immer die zuletzt gesendetet Config vom Mäher. Ein Reset über alle Datenpunkte wird direkt in einem Blocken vom Worx server enden, da das sendeaufkommen zu hoch ist. Es gibt jedoch eine Backdoor die ich öffnen könnte. Wobei die Config als JSON in einem Object abgelegt wird und dann mir einem Script angepasst werden kann (oder besser noch mit sendto). Das ist aber nur zu empfehlen, wenn man genau weiß was man macht. Deswegen hab ich das nicht offizell mit rein genommen.
-
@Meistertr sagte in Worx Adapter: Kalender-Änderungen per JavaScript unwirksam:
Es gibt jedoch eine Backdoor die ich öffnen könnte. Wobei die Config als JSON in einem Object abgelegt wird und dann mir einem Script angepasst werden kann (oder besser noch mit sendto).
Davon hatte ich bisher nur geträumt. Aber jetzt, da Du diesen Vorschlag selbst auf den Tisch legst, sage ich: Nur Mut! Nur zu!
-
@hsteinme sagte in Worx Adapter: Kalender-Änderungen per JavaScript unwirksam:
Meine geschilderte Situation scheint also durch einen Bruch in der Kommunikationsmethode verursacht zu werden: Server und Adapter reden in Blöcken miteinander, während Skripte und Adapter in Feldern miteinander reden. Und da es skriptseitig keine Technik gibt, Feldänderungen in Transaktionen zu bündeln, kommt es zu den beschriebenen Effekten.
@Meistertr: Ich hatte mich im FHEM-Gelände umgehört, ob dort ähnliche Effekte bekannt sind. Sind sie nicht. Die Erklärung, weshalb sie dort nicht auftreten können, findet sich in der Schnittstellenbeschreibung:
changeCfgCalendar: Set calendar per weekday Example: 0,10:00,300,1 - weekday 0-6 (0 = Sunday, 6 = Saturday) - starttime (hh:mm) (e.g 10:00) - worktime in minutes (value between 0 and 720) - bordercut (1 = bordercut on, 0 = bordercut off)
Die Plandaten eines Wochentages werden also mit einem einzigen Befehl vom Skript an den Adapter übergeben und können somit auch in einem gemeinsamen JSON-Text auf einen Schlag zum MQTT Server geschickt werden.
Dies könnte doch auch ein Lösungsansatz für Deinen ioBroker Worx Adapter sein: 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.
Was hältst Du von diesem Ansatz?