MQTT2 für Worx Landroid Mähroboter

Begonnen von Otto123, 09 Juni 2020, 13:55:43

Vorheriges Thema - Nächstes Thema

pillepalle12

Zitat von: Allgaeuer am 11 Februar 2024, 10:27:25Hallo zusammen,

ich denke, ich habe das Problem identifiziert und eine Lösung gefunden.

Zum Testen hatte ich ja ein neues, ganz schlankes System (RPI2) aufgesetzt. Das hat sehr schnell gebootet und auch ganz schnell FHEM gestartet. Offensichtlich waren noch nicht alle Netzwerkdienste aktiv und deshalb der 3-Minuten reconnect. Als Abhilfe habe ich die fhem.service (unter /etc/systemd/system ) leicht modifiziert. Die beiden Einträge mit "network.target" auskommentiert und dafür die beiden Einträge mit "network-online.target" eingefügt. Jetzt sind die 3-Min-Reconnects weg.
Das erklärt auch, warum bei anderen der Fehler nicht auftritt.

[Unit]
Description=FHEM Home Automation
#Wants=network.target
#After=network.target
Requires=network-online.target
After=network-online.target
#Requires=postgresql.service

Viele Grüße,

Allgäuer

Hallo Allgäuer, da ich nach 2 Tagen Betrieb auch schon wieder aus meinem Worx Account ausgesperrt wurde, habe ich Deinen Vorschlag ausprobiert und dieser läuft nun schon seit Tagen Perfekt ohne Aussperren.

Vielen Dank!

efyzz

Moin,

die Verbindung zum Landroid lief bei mir jetzt seit 4 Monaten problemlos, doch vor ein paar Tagen war der MQTT_Worx plötzlich disconnected.

Soweit erst mal nicht schlimm. Aber damit ich es nächstes Mal mitbekomme, habe ich mir ein Monitoring gebastelt:
defmod MQTT_Worx_Ueberwachung monitoring MQTT_Worx:disconnected MQTT_Worx:opened
attr MQTT_Worx_Ueberwachung errorFuncAdded {fhem("set MQTT_Worx connect");;
fhem("set TelegramBot message Error: MQTT_Worx disconnected! Versuche reconnect.")}
attr MQTT_Worx_Ueberwachung errorWait 1200
attr MQTT_Worx_Ueberwachung room Garten
attr MQTT_Worx_Ueberwachung warningFuncAdded {fhem("set MQTT_Worx connect");;
fhem("set TelegramBot message Warning: MQTT_Worx disconnected! Versuche reconnect.")}
attr MQTT_Worx_Ueberwachung warningWait 600

Das funktioniert soweit, das Monitoring reagiert auf "disconnected" und verbindet den MQTT_Worx neu. Allerdings wird das Monitoring nicht zurückgesetzt. Ich habe den Eindruck, dass der Wechsel des State zu "opened" keinen Trigger auslöst. Ein notify, das ich testhalber erstellt habe, reagiert auch nicht darauf. Ebenso wird der State im Browser erst auf "opened" aktualisiert, wenn man die Seite neu lädt. Der Wechsel zu "disconnected" wird hingegen sofort angezeigt.

Woran könnte das liegen?

Danke im Voraus!
RaspberryPi3B, Bookworm Lite
Homematic Funkmodul HM-MOD-RPI-PCB
------------------------------------------------------------------------
Ich bin kein Programmierer ... aber ich weiß, auf welcher Seite der Lötkolben heiß ist.

ph0x

Bei mir lief die Verbindung letzten Sommer problemlos, jetzt disconnected der Broker regelmäßig alle 15 Minuten, bis ich schließlich gesperrt werde.
Außer dem Update auf Debian 12 hab ich allerdings nichts geändert.
Läuft die Verbindung bei allen anderen denn stabil?

Flachzange

Bei mir grundsätzlich stabil. Ich hatte aber auch vor zwei Wochen einmalig die Situation, dass ich durch die FHEM connection gesperrt wurde.

Allgaeuer

Bei mir auch grundsätzlich stabil. Nach Stromausfall musste ich manuell neu connecten.

Gruß Allgäuer

Ralli

Gruß,
Ralli

Proxmox 8.2 Cluster mit HP ED800G2i7, Intel NUC11TNHi7+NUC7i5BNH, virtualisiertes fhem 6.3 dev, virtualisierte RaspberryMatic (3.77.7.20240826) mit HB-RF-ETH 1.3.0 / RPI-RF-MOD, HM-LAN-GW (1.1.5) und HMW-GW, FRITZBOX 7490 (07.59), FBDECT, Siri und Alexa

ph0x

Ich versteh's nicht ... bei mir exakt alle 15 Minuten disconnect.

Wird keepalivetimeout noch benötigt?

Flachzange

Zitat von: ph0x am 01 Juni 2024, 17:44:29Ich versteh's nicht ... bei mir exakt alle 15 Minuten disconnect.
Disconnect oder ist es ein Re-Connect-Versuch, der fehlschlägt?

ph0x

#818
Mal so, mal so.
Im Log steht alle 15 Minuten ,,MQTT_Worx disconnected" und dann baut er eine neue Verbindung auf, auch öfter als 20 Mal. Aber irgendwann erfolgt wohl der Block und dann verbindet er sich gar nicht mehr.

Ich habe den Timeout auf 600 Sekunden gestellt. Im Log sieht man PINGREQ und PINGRESP, fünf Minuten später (also nach insgesamt 15) geht der Broker offline und kommt nach 2 Sekunden wieder:
2024.06.06 02:11:49 5: MQTT_Worx: sending PINGREQ (192)(0)
2024.06.06 02:11:49 4: MQTT_Worx received PINGRESP
2024.06.06 02:11:49 5: MQTT_Worx: received PINGRESP
2024.06.06 02:16:49 4: iot.eu-west-1.worxlandroid.com:443 disconnected, waiting to reappear (MQTT_Worx)
...
2024.06.06 02:16:50 4: iot.eu-west-1.worxlandroid.com:443 reappeared (MQTT_Worx)
2024.06.06 02:16:50 4: MQTT_Worx received CONNACK
2024.06.06 02:16:50 5: MQTT_Worx: received CONNACK (0)(0)
2024.06.06 02:16:50 5: MQTT_Worx: sending SUBSCRIBE (130)#(0)(12)(0)(30)PRM100/xxx/commandOut(0)
2024.06.06 02:16:50 4: MQTT_Worx received SUBACK
2024.06.06 02:16:50 5: MQTT_Worx: received SUBACK (0)(12)(0)
2024.06.06 02:16:50 5: MQTT_Worx: sending PUBLISH 0!(0)(29)PRM100/xxx/commandIn{}
2024.06.06 02:16:50 5: DevIo_SimpleWrite MQTT_Worx: 3021001d50524d3130302f3043444337453134373342302f636f6d6d616e64496e7b7d
2024.06.06 02:16:50 5: MQTT_Worx: sending PUBLISH 0!(0)(29)PRM100/xxx/commandIn{}
2024.06.06 02:16:50 4: MQTT_Worx received PUBLISH
2024.06.06 02:16:50 5: MQTT_Worx: received PUBLISH (0)(30)PRM100/xxx/commandOut{"cfg":{"id":1,"lg":"de","tm":"02:16:53","dt":"06/06/2024","sc":{"m":1,"distm":0,"ots":{"bc":0,"wtm":0},"p":0,"d":[["00:00",0,0],["11:00",105,1],["11:00",105,0],["11:00",105,0],["11:00",105,1],["11:00",105,0],["11:00",105,0]],"dd":[["00:00",0,0],["18:00",105,0],["18:00",105,0],["18:00",105,0],["18:00",105,0],["18:00",105,0],["18:00",105,0]]},"cmd":0,"mz":[0,0,0,0],"mzv":[0,0,0,0,0,0,0,0,0,0],"mzk":0,"rd":90,"sn":"1234","al":{"lvl":1,"t":600},"tq":-25,"modules":{"US":{"enabled":1}}},"dat":{"mac":"xxx","fw":3.32,"fwb":1,"bt":{"t":9.9,"v":19.59,"p":100,"nr":365,"c":0,"m":1},"dmp":[-9.6,4.8,328.4],"st":{"b":47756,"d":654321,"wt":49291,"bl":81},"ls":1,"le":5,"lz":0,"rsi":-77,"lk":1,"act":1,"tr":0,"conn":"wifi","rain":{"s":1,"cnt":90},"time":{"r":0,"l":0},"modules":{"US":{"stat":"ok"}}}}
2024.06.06 02:16:50 5: MQTT_Worx: dispatch autocreate=no\000WX_USER_123456_FHEM_643ebf45_f33f_269a_8aa8_edd296d5c81164f2\000PRM100/xxx/commandOut\000{"cfg":{"id":1,"lg":"de","tm":"02:16:53","dt":"06/06/2024","sc":{"m":1,"distm":0,"ots":{"bc":0,"wtm":0},"p":0,"d":[["00:00",0,0],["11:00",105,1],["11:00",105,0],["11:00",105,0],["11:00",105,1],["11:00",105,0],["11:00",105,0]],"dd":[["00:00",0,0],["18:00",105,0],["18:00",105,0],["18:00",105,0],["18:00",105,0],["18:00",105,0],["18:00",105,0]]},"cmd":0,"mz":[0,0,0,0],"mzv":[0,0,0,0,0,0,0,0,0,0],"mzk":0,"rd":90,"sn":"1234","al":{"lvl":1,"t":600},"tq":-25,"modules":{"US":{"enabled":1}}},"dat":{"mac":"xxx","fw":3.32,"fwb":1,"bt":{"t":9.9,"v":19.59,"p":100,"nr":365,"c":0,"m":1},"dmp":[-9.6,4.8,328.4],"st":{"b":47756,"d":654321,"wt":49291,"bl":81},"ls":1,"le":5,"lz":0,"rsi":-77,"lk":1,"act":1,"tr":0,"conn":"wifi","rain":{"s":1,"cnt":90},"time":{"r":0,"l":0},"modules":{"US":{"stat":"ok"}}}}
2024.06.06 02:16:50 4: MQTT2_DEVICE_Parse: MQTT_Worx_M__hlanie PRM100/xxx/commandOut => { json2nameValue($EVENT,'',$JSONMAP) }
2024.06.06 02:24:41 4: MQTT_Worx received PUBLISH
2024.06.06 02:24:41 5: MQTT_Worx: received PUBLISH (0)(30)PRM100/xxx/commandOut{"cfg":{"id":0,"lg":"de","tm":"02:24:43","dt":"06/06/2024","sc":{"m":1,"distm":0,"ots":{"bc":0,"wtm":0},"p":0,"d":[["00:00",0,0],["11:00",105,1],["11:00",105,0],["11:00",105,0],["11:00",105,1],["11:00",105,0],["11:00",105,0]],"dd":[["00:00",0,0],["18:00",105,0],["18:00",105,0],["18:00",105,0],["18:00",105,0],["18:00",105,0],["18:00",105,0]]},"cmd":0,"mz":[0,0,0,0],"mzv":[0,0,0,0,0,0,0,0,0,0],"mzk":0,"rd":90,"sn":"1234","al":{"lvl":1,"t":600},"tq":-25,"modules":{"US":{"enabled":1}}},"dat":{"mac":"xxx","fw":3.32,"fwb":1,"bt":{"t":9.8,"v":19.56,"p":100,"nr":365,"c":0,"m":1},"dmp":[-9.6,4.8,328.4],"st":{"b":47756,"d":654321,"wt":49291,"bl":81},"ls":1,"le":5,"lz":0,"rsi":-78,"lk":1,"act":1,"tr":0,"conn":"wifi","rain":{"s":1,"cnt":90},"time":{"r":0,"l":0},"modules":{"US":{"stat":"ok"}}}}
2024.06.06 02:24:41 5: MQTT_Worx: dispatch autocreate=no\000WX_USER_123456_FHEM_643ebf45_f33f_269a_8aa8_edd296d5c81164f2\000PRM100/xxx/commandOut\000{"cfg":{"id":0,"lg":"de","tm":"02:24:43","dt":"06/06/2024","sc":{"m":1,"distm":0,"ots":{"bc":0,"wtm":0},"p":0,"d":[["00:00",0,0],["11:00",105,1],["11:00",105,0],["11:00",105,0],["11:00",105,1],["11:00",105,0],["11:00",105,0]],"dd":[["00:00",0,0],["18:00",105,0],["18:00",105,0],["18:00",105,0],["18:00",105,0],["18:00",105,0],["18:00",105,0]]},"cmd":0,"mz":[0,0,0,0],"mzv":[0,0,0,0,0,0,0,0,0,0],"mzk":0,"rd":90,"sn":"1234","al":{"lvl":1,"t":600},"tq":-25,"modules":{"US":{"enabled":1}}},"dat":{"mac":"xxx","fw":3.32,"fwb":1,"bt":{"t":9.8,"v":19.56,"p":100,"nr":365,"c":0,"m":1},"dmp":[-9.6,4.8,328.4],"st":{"b":47756,"d":744067,"wt":49291,"bl":81},"ls":1,"le":5,"lz":0,"rsi":-78,"lk":1,"act":1,"tr":0,"conn":"wifi","rain":{"s":1,"cnt":90},"time":{"r":0,"l":0},"modules":{"US":{"stat":"ok"}}}}
2024.06.06 02:24:41 4: MQTT2_DEVICE_Parse: MQTT_Worx_M__hlanie PRM100/xxx/commandOut => { json2nameValue($EVENT,'',$JSONMAP) }
2024.06.06 02:26:50 5: MQTT_Worx: sending PINGREQ (192)(0)
2024.06.06 02:26:50 4: MQTT_Worx received PINGRESP
2024.06.06 02:26:50 5: MQTT_Worx: received PINGRESP
2024.06.06 02:31:50 4: iot.eu-west-1.worxlandroid.com:443 disconnected, waiting to reappear (MQTT_Worx)

Und nach einer gewissen Zeit ist dann Schluss und es erfolgt sofort ein disconnect:
2024.06.06 15:41:05 4: iot.eu-west-1.worxlandroid.com:443 disconnected, waiting to reappear (MQTT_Worx)
2024.06.06 15:41:05 4: MQTT_Worx: reusing the acess_token
2024.06.06 15:41:05 5: {"id":123456,"user_type":"customer","push_notifications":true,"location":null,"mqtt_endpoint":"a2optpg90s0ydf-ats.iot.eu-west-1.amazonaws.com","actions_on_google_pin_code":null,"created_at":"2022-07-03 13:12:33","updated_at":"2022-08-10 20:15:36"}
2024.06.06 15:41:05 4: MQTT_Worx: Got userId: 123456
2024.06.06 15:41:05 5: [{"id":654321,"uuid":"96c53275-b948-4002-97cd-4a999b423512","product_id":69,"user_id":123456,"serial_number":"1234","mac_address":"xxx","locked":true,"firmware_version":"3.32.0+1","firmware_auto_upgrade":true,"sim":null,"test":false,"iot_registered":true,"mqtt_registered":true,"registered_at":"2022-07-03 00:00:00","online":true,"protocol":0,"pending_radio_link_validation":null,"capabilities":["auto_lock","bluetooth_control","bluetooth_pairing","border_cut","digital_fence_settings","follow_border","lock","mqtt","multi_zone","multi_zone_percentage","one_time_scheduler","ota_upgrade","pairing_smartconfig","pause_over_border","pause_over_wire","rain_delay","rain_delay_start","safe_go_home","scheduler_two_slots","unrestricted_mowing_time","zone_keeper"],"capabilities_available":["display_pairing_shortcut"],"features":{"auto_lock":3.25,"bluetooth_control":3.2,"bluetooth_pairing":true,"chassis":"m_2021","digital_fence_settings":3.25,"display_type":"lcd","input_type":"keyboard_push_knob","lock":true,"mqtt":true,"multi_zone":true,"multi_zone_percentage":true,"multi_zone_zones":4,"one_time_scheduler":3.15,"pause_over_wire":3.26,"rain_delay":true,"rain_delay_start":3.08,"safe_go_home":3.25,"scheduler_two_slots":3.15,"unrestricted_mowing_time":true,"wifi_pairing":"smartconfig"},"accessories":{"ultrasonic":true},"mqtt_endpoint":"iot.eu-west-1.worxlandroid.com","mqtt_topics":{"command_in":"PRM100\/xxx\/commandIn","command_out":"PRM100\/xxx\/commandOut"},"name":"M\u00e4hlanie","blade_height_shift":0,"push_notifications":true,"push_notifications_level":"warning","pin_code":null,"app_settings":null,"warranty_registered":true,"purchased_at":"2022-06-20 00:00:00","warranty_expires_at":"2025-06-20 00:00:00","setup_location":{"latitude":50.56569209,"longitude":6.7570069},"city":{"id":2953398,"country_id":276,"name":"Bad Munstereifel","latitude":50.549999,"longitude":6.76667,"created_at":"2018-02-15 22:22:51","updated_at":"2018-02-15 22:22:51"},"time_zone":"Europe\/Berlin","lawn_size":298.32376098633,"lawn_perimeter":81,"auto_schedule_settings":{"boost":2,"exclusion_scheduler":{"days":[{"slots":[],"exclude_day":true},{"slots":[],"exclude_day":false},{"slots":[],"exclude_day":false},{"slots":[],"exclude_day":false},{"slots":[],"exclude_day":false},{"slots":[],"exclude_day":false},{"slots":[],"exclude_day":false}],"exclude_nights":true},"grass_type":"mixed_species","irrigation":null,"nutrition":{"k":12,"n":21,"p":5},"soil_type":"silt"},"auto_schedule":true,"improvement":false,"diagnostic":false,"distance_covered":744067,"mower_work_time":49291,"blade_work_time":47756,"blade_work_time_reset":47352,"blade_work_time_reset_at":"2024-06-03 10:59:49","battery_charge_cycles":365,"battery_charge_cycles_reset":40,"battery_charge_cycles_reset_at":"2023-04-15 12:55:32","created_at":"2022-04-15 08:15:55","updated_at":"2024-06-04 02:26:57","last_status":{"timestamp":"2024-06-06 13:34:01","payload":{"cfg":{"id":0,"sn":"1234","dt":"06\/06\/2024","tm":"15:34:05","lg":"de","cmd":0,"sc":{"m":1,"d":[["00:00",0,0],["11:00",105,1],["11:00",105,0],["11:00",105,0],["11:00",105,1],["11:00",105,0],["11:00",105,0]],"dd":[["00:00",0,0],["18:00",105,0],["18:00",105,0],["18:00",105,0],["18:00",105,0],["18:00",105,0],["18:00",105,0]],"distm":0,"p":0,"ots":{"wtm":0,"bc":0}},"mz":[0,0,0,0],"mzv":[0,0,0,0,0,0,0,0,0,0],"mzk":0,"rd":90,"al":{"lvl":1,"t":600},"tq":-25,"modules":{"US":{"enabled":1}}},"dat":{"mac":"xxx","fw":3.32,"fwb":1,"ls":1,"le":0,"conn":"wifi","bt":{"t":22.5,"v":18.67,"p":44,"nr":365,"c":1,"m":0},"dmp":[-9.5,5,282.7],"st":{"b":47870,"d":745286,"wt":49416,"bl":81},"act":1,"rsi":-71,"lk":1,"tr":0,"lz":0,"rain":{"s":0,"cnt":0},"modules":{"US":{"stat":"ok"}}}}}}]
2024.06.06 15:41:05 4: MQTT_Worx: Got device info
2024.06.06 15:41:05 5: MQTT_Worx: discarding DISCONNECT (224)(0)
2024.06.06 15:41:05 5: HttpUtils url=https://iot.eu-west-1.worxlandroid.com:443/ NonBlocking via https
2024.06.06 15:41:05 4: IP: iot.eu-west-1.worxlandroid.com -> 54.74.239.240
2024.06.06 15:41:06 5: MQTT_Worx: sending CONNECT (16)(191)(11)(0)(4)MQTT(4)(130)(2)X(0)<WX/USER/123456/FHEM/643eb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D4tNvexbOO9SBV3axILiXUJ%2BiMYvI6WvEkT7Svj58S8dIoLSYx8aTjrJtVcPnnSGtHp7jUkLcW3lf0xJZGYpEEMgwOLZzGSf%2B7cTSWVugaO47UXc2XL1RcMCyzGQOFt1darneDgXZs%2BQC94GO5pDaeAG9C8kmPCP0dxWkodm8rIKpIzjRmg95qjX3YvRhbFdX5U%2Fe4KEJ1NxndriUUeVBQvE4COHN%2B99zJEbEpgnWFYQ4Yjp%2F5bnkI%2FJedXmmnu5TeDHbAoNC89cZl9QfEH6ybCETx0tncXUn4NySdClFOVzRw%2FhqUcCM%2FgymN0xUzMT84K2OGO9Dw
2024.06.06 15:41:06 5: DevIo_SimpleWrite MQTT_Worx: 10bf0b00044d51545404820258003c57582f555345522f3631383336312f4648454d2f36343365626634352d663333662d323639612d386161382d6564643239366435633831313634663205754648454d3f6a77743d65794a30655841694f694a4b563151694c434a68624763694f694a53557a49314e694a392e65794a68645751694f6949784e54426b5954526b4d693169596a51304c54517a4d3249744f5451794f53307a4e7a637a5957526a4e7a42684d6d45694c434a7164476b694f694935596d566d4f544d304d6a67774d7a4d354d54686d4d474d31596d45794e6a55304e4445344e6d4531596d46684e7a4a6c596a5a6c4e474a6d4d6a51354d54566a5a544269597a426a4e6a6734596a6c6c5a44686c5a57526d4e7a6c68596d4d795a4459774e6d59794f534973496d6c68644349364d5463784e7a59334f446b324d6934784d4463774f537769626d4a6d496a6f784e7a45334e6a63344f5459794c6a45774e7a41354d6977695a586877496a6f784e7a45334e6a67794e5459794c434a7a645749694f6949324d54677a4e6a45694c434a7a593239775a584d694f6c73695a47463059547077636d396b64574e3063794973496e567a5a58493663484a765a6d6c735a534973496e567a5a584936625746755957646c4969776964584e6c636a706a5a584a3061575a70593246305a534973496d3176596d6c735a547075623352705a6d6c6a595852706232357a49697769625739335a584936646d6c6c64794973496d3176643256794f6e56775a4746305a534973496d3176643256794f6d466a64476c3261585235583278765a794973496d3176643256794f6d7868643234694c434a746233646c636a7074595841694c434a746233646c636a703359584a795957353065534973496d3176643256794f6d5a70636d313359584a6c49697769625739335a5849366347467063694973496d3176643256794f6e56756347467063694a64665126782d616d7a2d637573746f6d617574686f72697a65722d7369676e61747572653d69314d436254384c6d3048775672756776726145324d6c756f32736446464534354a394f3057716b43376d70314b6751466d6f4f57414567524462646b51506a38646c3363304d694559666568327431253246774869686c4f65734a4e794c6637375746444a794a4f4e497170614f35475a684a4b777953336b57337955487641756274437577755a63506c3371587a4e6d454e4567313025324667615652464970535773686d4844684846356f396d6c4b4b5261457a41365665506d4a4f692532427a6c74546934526b6c72614f6e5a7a667774253246646f45343173494e7757554530466649624c5072626664455464665a4c25324248506f4b56625a71484b6c3278557374534672745468424a314f6568574f5052655a73253246466979727458712532424f73784855664f4a62686a4b4e7744664958383345305a5130696e757578253242433856357676374543566d36346a6a647853314b4847384e466d4569703754744a6b3245485a253242474434744e766578624f4f39534256336178494c6958554a253242694d597649365776456b543753766a3538533864496f4c5359783861546a724a745663506e6e5347744870376a556b4c6357336c6630784a5a47597045454d67774f4c5a7a4753662532423763545357567567614f343755586332584c3152634d43797a47514f4674316461726e654467585a7325324251433934474f357044616541473943386b6d504350306478576b6f646d3872494b70497a6a526d673935716a58335976526862466458355525324665344b454a314e786e647269555565564251764534434f484e25324239397a4a45624570676e5746595134596a7025324635626e6b492532464a6564586d6d6e75355465444862416f4e433839635a6c39516645483679624345547830746e6358556e344e795364436c464f567a527725324668715563434d25324667796d4e3078557a4d5438344b324f474f394477
2024.06.06 15:41:06 4: iot.eu-west-1.worxlandroid.com:443 reappeared (MQTT_Worx)
2024.06.06 15:41:06 4: iot.eu-west-1.worxlandroid.com:443 disconnected, waiting to reappear (MQTT_Worx)

tom2966

Zitat von: ph0x am 31 Mai 2024, 19:06:09Bei mir lief die Verbindung letzten Sommer problemlos, jetzt disconnected der Broker regelmäßig alle 15 Minuten, bis ich schließlich gesperrt werde.
Außer dem Update auf Debian 12 hab ich allerdings nichts geändert.
Läuft die Verbindung bei allen anderen denn stabil?
Hallo,
ich sehe auch seit Ende Mai auch dieses Problem- alle 15 Minuten gibt es ein Disconnect. Weil ich next nextOpenDelay auf 1200 stehen habe kommt dann nach 5 Minuten wieder das connected. Bis nach 15 Minuten das Spiel von vorn beginnt... Hat schon jemand eine Idee?
Tom

frober

#820
Habt ihr "keepaliveTimeout 600" gesetzt?

Der Server beendet nach 15 Min ohne Kommunikation die Verbindung. Das ist, von Positec, so vorgesehen, bzw. MQTT "Standard".

keepalivetimeout sendet eine Nachricht an den Server, damit die Verbindung gehalten wird.

ZitatkeepaliveTimeout <seconds;>
number of seconds for sending keepalive messages, 0 disables it. The broker will disconnect, if there were no messages for 1.5 * keepaliveTimeout seconds.
Raspi 3b mit Raspbian Bullseye und relativ aktuellem Fhem,  FS20, LGW, PCA301, Zigbee, MQTT, MySensors mit RS485(CAN-Receiver) und RFM69, etc.,
einiges umgesetzt, vieles in Planung, smile

********************************************
...man wächst mit der Herausforderung...

Flachzange

Ich habe seit heute Nacht 1 Uhr auch wieder einen Disconnect. Merkwürdigerweise passiert es bei mir, wenn es passiert, immer mitten in der Nacht. Danach bin ich erstmal fürf 24 Stunden gesperrt. Ich poste einfach mal das komplette Log. Einige Zeilen habe ich unkenntlich gemacht / abgekürzt aufgrund von sensitiven Informationen.

Zitat2024.06.16 00:47:03 5: MQTT_Worx: sending PINGREQ (192)(0)
2024.06.16 00:47:03 4: MQTT_Worx received PUBLISH
2024.06.16 00:47:03 5: MQTT_Worx: received PUBLISH (0)?WX/MW/WR213E/98beb16d-5f2d-4002-a6b5-ce432d80c97b/v1/commandOut{.......}}}
2024.06.16 00:47:04 4: MQTT_Worx received PINGRESP
2024.06.16 00:47:04 5: MQTT_Worx: received PINGRESP
2024.06.16 00:47:39 1: PERL WARNING: Use of uninitialized value in numeric gt (>) at (eval 12740623) line 3.
2024.06.16 00:52:01 4: iot.eu-west-1.worxlandroid.com:443 disconnected, waiting to reappear (MQTT_Worx)
2024.06.16 00:52:02 5: {"token_type":"Bearer","expires_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oDMSGNOCioAMYCXq59E97aaiAVIhlblHGnoa5SnCIrmqf5U9MTywNt6M7ulmCwPYSqt54tFyqFxCPrh1zbYgWZKNEw2-F8ypUBVwiYli7GYBE99Lw5_ul-kEUphaUc-ZvJ3i-4a-wdY0E_MX0SulMZ8CiwF_EFnGj2nAGmlD4FUGEF_WbWpYD19s-6DVeZ159uwTNLFc4EWWJTQMYvnkKVayHZnWSBgd9cmSD1hVQxfcGhSKCOaJiXdTd7iICFTr6F734s2TKM2I1-u1xazK7dekM","refresh_token":"def5020031181a154cb37afb1b33cdbdff3841603df0ff96ca9e538b8e658612b279c319347c2f0a99a08fbcf449e03def1d89826af28c4436a058b253e0b9382c458302e6dd50a7cd6f377da880ee8eaa45af28148967e045b7a09ff9f430808bee35e70861fc65fc1d1be1c5b4c4bfac9fdb945ff244848b52e0045d10ab4b4108532c7195f6bff81968b1d445f4d9878d57a3d399220f14b76a63534b0d0a0e2d5215a8c85769c3383c7c0255fbba0f45d33123a8ac96452f05d9fd606a695e716e4feed120b0afdc52577280c5c3366d7814b0f145ca303a353cfa0e30c5309751718f67ca119d103c6ef0f0dd1c49cee0aa3c4b74ae2a676c7426fcfdfb249ee508f75892fbcb568ce2e889e75af882e0b7653c9e3e0860a1a45eb11cf01128c254740775a57f35e0f237aff3e85f58615d21e752a5cb1a1af6836c6aa52013ffba80fadd0f80484d6f0d7bca700cd068103d7d5a7d4674d75c51b07f7aa3ecb801283f01696d1d0f55e8add65724c6b0cc5fa985c06afa66a3b4048322f979dcdd377d3acb7c73dd2c8d4580d7bbbd6763595190afe4e0cc16b53c45306dff0d6690a1242f756c06890b58516bf438e02e0f9b4b1d025ee83b251e2aaf0381490e066907d85d7c838a58798d7c6562aaac97a33f53f3acccb7b06564571015d4a65f4fc2d9869675e8f7cc0f5d43d792c67f56c532c540aed0684be60a2db4d5de7f826a7f568be0fcf92b3be07a1630576f69d85dce3cd6c5c029dc4ae3de4c34f30d38a030acd24b1a46aed3d0966c8711174ffa9d106cd6efc9e64b61bd30b04ee9a02460e93ff0cfe707b6747e7f03d9d9ff24557b48c627d8c31110639d75d42b63"}
2024.06.16 00:52:02 4: MQTT_Worx: Got auth info, type refresh_token
2024.06.16 00:52:02 5: {"id":731795,"user_type":"tester","push_notifications":true,"location":null,"mqtt_endpoint":"a1optpg91s0ydf-ats.iot.eu-west-1.amazonaws.com","actions_on_google_pin_code":null,"created_at":"2023-05-22 16:38:02","updated_at":"2023-09-04 08:20:40"}
2024.06.16 00:52:02 4: MQTT_Worx: Got userId: 731795
2024.06.16 00:52:02 5: [{"id":9208.....}}}}}}]
2024.06.16 00:52:02 4: MQTT_Worx: Got device info
2024.06.16 00:52:02 5: MQTT_Worx: discarding DISCONNECT (224)(0)
2024.06.16 00:52:02 5: HttpUtils url=https://iot.eu-west-1.worxlandroid.com:443/ NonBlocking via https
2024.06.16 00:52:02 4: IP: iot.eu-west-1.worxlandroid.com -> 52.30.50.69
2024.06.16 00:52:02 5: MQTT_Worx: sending CONNECT (16)(210)(11)(0)(6)MQIsdp(3)(130)(2)X(0)<WX/USER/731795/FHEM/646cdd2d-f33f-fd7e-8403-787602827baf1224(5)(134)FHEM?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxNTBkYTRkMi1iYjQ0LTQzM2ItOTQyOS0zNzczYWRjNzBhMmEiLCJqdGkiOiI5NzQxN2E2NzUxYTg1MGYxNDhiMjY5YmNhNGU4ZjdjYWRmYmExNzQ4MzhlZjkwYjU5OTkxYzRlNGE4NzA5MmRmM2I3Nzk1Yjk3MjQwNzIzOCIsImlhdCI6MTcxODQ5MTkyMi4wNjM5OTMsIm5iZiI6MTcxODQ5MTkyMi4wNjM5OTUsImV4cCI6MTcxODQ5NTUyMiwic3ViIjoiNzMxNzk1Iiwic2NvcGVzIjpbImRhdGE6cHJvZHVjdHMiLCJ1c2VyOnByb2ZpbGUiLCJ1c2VyOm1hbmFnZSIsInVzZXI6Y2VydGlmaWNhdGUiLCJtb2JpbGU6bm90aWZpY2F0aW9ucyIsIm1vd2VyOnZpZXciLCJtb3dlcjp1cGRhdGUiLCJtb3dlcjphY3Rpdml0eV9sb2ciLCJtb3dlcjpsYXduIiwibW93ZXI6bWFwIiwibW93ZXI6d2FycmFudHkiLCJtb3dlcjpmaXJtd2FyZSIsIm1vd2VyOnBhaXIiLCJtb3dlcjp1bnBhaXIiXX0&x-amz-customauthorizer-signature=XX3hQppieR2fBepnojYUYHaBIqKMi0S%2FhIlwEkNFdHbREYL8FQX1dGK%2FTKKUhl%2B4UK16Ouy7%2FtKI25emzTktA2gaM3VpxEvG%2BEkTh8mYmGCWe2t7dWa%2F5saTpxzHenkDf%2FTLdzFcpTkP49e8SrroorSZ2%2Bti5ZRIfyDgE%2BIp1qxV6W9XsplOKoyk5LgyWZeZ6BpCaaAQQBb%2F%2FpUflhrHirjti0ldBdVpYj6iQEzAZI27aL8it2KnSXE5r2TapTIgRWkCYrFzUI79OyD7NtjX70r0TkLOL6CJ%2FtqpGvGhfxAlkGI4ZsNvHB0O33RzJwQ8%2FTu2fQ6nirp4%2FaggVfdsLmNhj24RJduYZ3vq5MTtk5eq%2F6FeRUAvqCK9prkJ2hijsz2dnKx2YfHeoQvXUUoDMSGNOCioAMYCXq59E97aaiAVIhlblHGnoa5SnCIrmqf5U9MTywNt6M7ulmCwPYSqt54tFyqFxCPrh1zbYgWZKNEw2%2BF8ypUBVwiYli7GYBE99Lw5%2Ful%2BkEUphaUc%2BZvJ3i%2B4a%2BwdY0E%2FMX0SulMZ8CiwF%2FEFnGj2nAGmlD4FUGEF%2FWbWpYD19s%2B6DVeZ159uwTNLFc4EWWJTQMYvnkKVayHZnWSBgd9cmSD1hVQxfcGhSKCOaJiXdTd7iICFTr6F734s2TKM2I1%2Bu1xazK7dekM
2024.06.16 00:52:02 5: DevIo_SimpleWrite MQTT_Worx: 10d20b00064d514973647003820258003c57582f555345522f3733313739352f4648454d2f36343663646432642d663333662d666437652d383430332d3738373630323832376261663132323405864648454d3f6a77743d65794a30655841694f694a4b563151694c434a68624763694f694a53557a49314e694a392e65794a68645751694f6949784e54426b5954526b4d693169596a51304c54517a4d3249744f5451794f53307a4e7a637a5957526a4e7a42684d6d45694c434a7164476b694f6949354e7a51784e3245324e7a5578595467314d4759784e4468694d6a5935596d4e684e4755345a6a646a5957526d596d45784e7a51344d7a686c5a6a6b77596a55354f546b78597a526c4e4745344e7a41354d6d526d4d3249334e7a6b31596a6b334d6a51774e7a497a4f434973496d6c68644349364d5463784f4451354d546b794d6934774e6a4d354f544d73496d35695a6949364d5463784f4451354d546b794d6934774e6a4d354f545573496d5634634349364d5463784f4451354e5455794d69776963335669496a6f694e7a4d784e7a6b314969776963324e766347567a496a7062496d52686447453663484a765a48566a64484d694c434a31633256794f6e427962325a70624755694c434a31633256794f6d3168626d466e5a534973496e567a5a5849365932567964476c6d61574e68644755694c434a7462324a7062475536626d393061575a70593246306157397563794973496d3176643256794f6e5a705a5863694c434a746233646c636a703163475268644755694c434a746233646c636a706859335270646d6c3065563973623263694c434a746233646c636a70735958647549697769625739335a5849366257467749697769625739335a58493664324679636d467564486b694c434a746233646c636a706d61584a74643246795a534973496d3176643256794f6e4268615849694c434a746233646c636a7031626e42686158496958583026782d616d7a2d637573746f6d617574686f72697a65722d7369676e61747572653d5858336851707069655232664265706e6f6a59555948614249714b4d69305325324668496c77456b4e466448625245594c384651583164474b253246544b4b55686c25324234554b31364f757937253246744b493235656d7a546b74413267614d33567078457647253242456b5468386d596d474357653274376457612532463573615470787a48656e6b4466253246544c647a466370546b50343965385372726f6f72535a322532427469355a524966794467452532424970317178563657395873706c4f4b6f796b354c6779575a655a36427043616141515142622532462532467055666c68724869726a7469306c6442645670596a366951457a415a493237614c386974324b6e53584535723254617054496752576b435972467a554937394f7944374e746a5837307230546b4c4f4c36434a253246747170477647686678416c6b4749345a734e764842304f3333527a4a7751382532465475326651366e69727034253246616767566664734c6d4e686a3234524a6475595a337671354d54746b3565712532463646655255417671434b3970726b4a3268696a737a32646e4b7832596648656f51765855556f444d53474e4f43696f414d594358713539453937616169415649686c626c48476e6f6135536e4349726d71663555394d5479774e74364d37756c6d43775059537174353474467971467843507268317a625967575a4b4e457732253242463879705542567769596c69374759424539394c7735253246756c2532426b455570686155632532425a764a3369253242346125324277645930452532464d583053756c4d5a384369774625324645466e476a326e41476d6c44344655474546253246576257705944313973253242364456655a3135397577544e4c4663344557574a54514d59766e6b4b566179485a6e575342676439636d5344316856517866634768534b434f614a69586454643769494346547236463733347332544b4d324931253242753178617a4b3764656b4d
2024.06.16 00:52:02 4: iot.eu-west-1.worxlandroid.com:443 reappeared (MQTT_Worx)
2024.06.16 00:52:02 4: MQTT_Worx received CONNACK
2024.06.16 00:52:02 5: MQTT_Worx: received CONNACK (0)(0)
2024.06.16 00:52:02 5: MQTT_Worx: sending SUBSCRIBE (130)D(0)(18)(0)?WX/MW/WR213E/98beb16d-5f2d-4002-a6b5-ce432d80c97b/v1/commandOut(0)
2024.06.16 00:52:03 4: MQTT_Worx received SUBACK
2024.06.16 00:52:03 5: MQTT_Worx: received SUBACK (0)(18)(0)
2024.06.16 00:52:03 5: MQTT_Worx: sending PUBLISH 0B(0)>WX/MW/WR213E/98beb16d-5f2d-4002-a6b5-ce432d80c97b/v1/commandIn{}
2024.06.16 00:52:04 4: MQTT_Worx received PUBLISH
2024.06.16 00:52:04 5: MQTT_Worx: received PUBLISH (0)?WX/MW/WR213E/98beb16d-5f2d-4002-a6b5-ce432d80c97b/v1/commandOut{.......}}}
2024.06.16 00:55:58 1: PERL WARNING: Use of uninitialized value in numeric gt (>) at (eval 12742957) line 3.
2024.06.16 01:00:00 3: DbRep DbRep.Delete - execute command before delEntries: 'set logdb reopen 7200'
2024.06.16 01:00:00 2: logdb - Connection closed until 03:00:00 (7200 seconds).
2024.06.16 01:00:01 3: DbRep DbRep.Delete - Entries of fhem.history deleted: /--/--267987
2024.06.16 01:00:01 3: DbRep DbRep.Delete - execute command after delEntries: 'set logdb reopen'
2024.06.16 01:00:01 3: DbRep DbRep.Delete - command message after delEntries: >Reopen executed.<
2024.06.16 01:02:02 5: MQTT_Worx: sending PINGREQ (192)(0)
2024.06.16 01:02:02 4: MQTT_Worx received PINGRESP
2024.06.16 01:02:02 5: MQTT_Worx: received PINGRESP
2024.06.16 01:02:04 4: MQTT_Worx received PUBLISH
2024.06.16 01:02:04 5: MQTT_Worx: received PUBLISH (0)?WX/MW/WR213E/98beb16d-5f2d-4002-a6b5-ce432d80c97b/v1/commandOut{.......}}}
2024.06.16 01:02:04 5: MQTT_Worx: dispatch autocreate=no\000WX_USER_....}}}
2024.06.16 01:07:02 4: iot.eu-west-1.worxlandroid.com:443 disconnected, waiting to reappear (MQTT_Worx)
2024.06.16 01:07:02 4: MQTT_Worx: reusing the acess_token
2024.06.16 01:07:03 5: {"id":731795,"user_type":"tester","push_notifications":true,"location":null,"mqtt_endpoint":"a1optpg91s0ydf-ats.iot.eu-west-1.amazonaws.com","actions_on_google_pin_code":null,"created_at":"2023-05-22 16:38:02","updated_at":"2023-09-04 08:20:40"}
2024.06.16 01:07:03 4: MQTT_Worx: Got userId: 731795
2024.06.16 01:07:03 5: [{"id":9208.....}}}}}}]
2024.06.16 01:07:03 4: MQTT_Worx: Got device info
2024.06.16 01:07:03 5: MQTT_Worx: discarding DISCONNECT (224)(0)
2024.06.16 01:07:03 5: HttpUtils url=https://iot.eu-west-1.worxlandroid.com:443/ NonBlocking via https
2024.06.16 01:07:03 4: IP: iot.eu-west-1.worxlandroid.com -> 52.30.231.1
2024.06.16 01:07:03 5: MQTT_Worx: sending CONNECT (16)(210)(11)(0)(6)MQIsdp(3)(130)(2)X(0)<WX/USER/731795/FHEM/646cdd2d-f33f-fd7e-8403-787602827baf1224(5)(134)FHEM?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxNTBkYTRkMi1iYjQ0LTQzM2ItOTQyOS0zNzczYWRjNzBhMmEiLCJqdGkiOiI5NzQxN2E2NzUxY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ypUBVwiYli7GYBE99Lw5%2Ful%2BkEUphaUc%2BZvJ3i%2B4a%2BwdY0E%2FMX0SulMZ8CiwF%2FEFnGj2nAGmlD4FUGEF%2FWbWpYD19s%2B6DVeZ159uwTNLFc4EWWJTQMYvnkKVayHZnWSBgd9cmSD1hVQxfcGhSKCOaJiXdTd7iICFTr6F734s2TKM2I1%2Bu1xazK7dekM
2024.06.16 01:07:03 5: DevIo_SimpleWrite MQTT_Worx: 10d20b00064d514973647003820258003c57582f555345522f3733313739352f4648454d2f36343663646432642d663333662d666437652d383430332d3738373630323832376261663132323405864648454d3f6a77743d65794a30655841694f694a4b563151694c434a68624763694f694a53557a49314e694a392e65794a68645751694f6949784e54426b5954526b4d693169596a51304c54517a4d3249744f5451794f53307a4e7a637a5957526a4e7a42684d6d45694c434a7164476b694f6949354e7a51784e3245324e7a5578595467314d4759784e4468694d6a5935596d4e684e4755345a6a646a5957526d596d45784e7a51344d7a686c5a6a6b77596a55354f546b78597a526c4e4745344e7a41354d6d526d4d3249334e7a6b31596a6b334d6a51774e7a497a4f434973496d6c68644349364d5463784f4451354d546b794d6934774e6a4d354f544d73496d35695a6949364d5463784f4451354d546b794d6934774e6a4d354f545573496d5634634349364d5463784f4451354e5455794d69776963335669496a6f694e7a4d784e7a6b314969776963324e766347567a496a7062496d52686447453663484a765a48566a64484d694c434a31633256794f6e427962325a70624755694c434a31633256794f6d3168626d466e5a534973496e567a5a5849365932567964476c6d61574e68644755694c434a7462324a7062475536626d393061575a70593246306157397563794973496d3176643256794f6e5a705a5863694c434a746233646c636a703163475268644755694c434a746233646c636a706859335270646d6c3065563973623263694c434a746233646c636a70735958647549697769625739335a5849366257467749697769625739335a58493664324679636d467564486b694c434a746233646c636a706d61584a74643246795a534973496d3176643256794f6e4268615849694c434a746233646c636a7031626e42686158496958583026782d616d7a2d637573746f6d617574686f72697a65722d7369676e61747572653d5858336851707069655232664265706e6f6a59555948614249714b4d69305325324668496c77456b4e466448625245594c384651583164474b253246544b4b55686c25324234554b31364f757937253246744b493235656d7a546b74413267614d33567078457647253242456b5468386d596d474357653274376457612532463573615470787a48656e6b4466253246544c647a466370546b50343965385372726f6f72535a322532427469355a524966794467452532424970317178563657395873706c4f4b6f796b354c6779575a655a36427043616141515142622532462532467055666c68724869726a7469306c6442645670596a366951457a415a493237614c386974324b6e53584535723254617054496752576b435972467a554937394f7944374e746a5837307230546b4c4f4c36434a253246747170477647686678416c6b4749345a734e764842304f3333527a4a7751382532465475326651366e69727034253246616767566664734c6d4e686a3234524a6475595a337671354d54746b3565712532463646655255417671434b3970726b4a3268696a737a32646e4b7832596648656f51765855556f444d53474e4f43696f414d594358713539453937616169415649686c626c48476e6f6135536e4349726d71663555394d5479774e74364d37756c6d43775059537174353474467971467843507268317a625967575a4b4e457732253242463879705542567769596c69374759424539394c7735253246756c2532426b455570686155632532425a764a3369253242346125324277645930452532464d583053756c4d5a384369774625324645466e476a326e41476d6c44344655474546253246576257705944313973253242364456655a3135397577544e4c4663344557574a54514d59766e6b4b566179485a6e575342676439636d5344316856517866634768534b434f614a69586454643769494346547236463733347332544b4d324931253242753178617a4b3764656b4d
2024.06.16 01:07:03 4: iot.eu-west-1.worxlandroid.com:443 reappeared (MQTT_Worx)
2024.06.16 01:07:03 4: MQTT_Worx received CONNACK
2024.06.16 01:07:03 5: MQTT_Worx: received CONNACK (0)(0)
2024.06.16 01:07:03 5: MQTT_Worx: sending SUBSCRIBE (130)D(0)(18)(0)?WX/MW/WR213E/98beb16d-5f2d-4002-a6b5-ce432d80c97b/v1/commandOut(0)
2024.06.16 01:07:03 4: MQTT_Worx received SUBACK
2024.06.16 01:07:03 5: MQTT_Worx: received SUBACK (0)(18)(0)
2024.06.16 01:07:03 5: MQTT_Worx: sending PUBLISH 0B(0)>WX/MW/WR213E/98beb16d-5f2d-4002-a6b5-ce432d80c97b/v1/commandIn{}
2024.06.16 01:07:04 4: MQTT_Worx received PUBLISH
2024.06.16 01:07:04 5: MQTT_Worx: received PUBLISH (0)?WX/MW/WR213E/98beb16d-5f2d-4002-a6b5-ce432d80c97b/v1/commandOut{.......}}}
2024.06.16 01:07:04 5: MQTT_Worx: dispatch autocreate=no\000WX_USER_....}}}
2024.06.16 01:09:25 1: [Alarm 3] will be armed from alarmSensor DOIF_Alarm_Activate_Huelle_Auto with event ready, delay 1:30
2024.06.16 01:09:25 3: alarm3.arm.N return value: [Alarm 3] will be armed from alarmSensor DOIF_Alarm_Activate_Huelle_Auto with event ready, delay 1:30
2024.06.16 01:10:55 3: [Alarm 3] armed from alarmSensor DOIF_Alarm_Activate_Huelle_Auto with event delay
2024.06.16 01:10:55 3: alarm3.arm.dly: [Alarm 3] armed from alarmSensor DOIF_Alarm_Activate_Huelle_Auto with event delay
2024.06.16 01:15:06 4: iot.eu-west-1.worxlandroid.com:443 disconnected, waiting to reappear (MQTT_Worx)
2024.06.16 01:15:06 4: MQTT_Worx: reusing the acess_token
2024.06.16 01:15:06 5: {"id":731795,"user_type":"tester","push_notifications":true,"location":null,"mqtt_endpoint":"a1optpg91s0ydf-ats.iot.eu-west-1.amazonaws.com","actions_on_google_pin_code":null,"created_at":"2023-05-22 16:38:02","updated_at":"2023-09-04 08:20:40"}
2024.06.16 01:15:06 4: MQTT_Worx: Got userId: 731795
2024.06.16 01:15:06 5: [{"id":9208.....}}}}}}]
2024.06.16 01:15:07 4: MQTT_Worx: Got device info
2024.06.16 01:15:07 5: MQTT_Worx: discarding DISCONNECT (224)(0)
2024.06.16 01:15:07 5: HttpUtils url=https://iot.eu-west-1.worxlandroid.com:443/ NonBlocking via https
2024.06.16 01:15:07 4: IP: iot.eu-west-1.worxlandroid.com -> 52.213.17.116
2024.06.16 01:15:07 5: MQTT_Worx: sending CONNECT (16)(210)(11)(0)(6)MQIsdp(3)(130)(2)X(0)<WX/USER/731795/FHEM/646cdd2d-f33f-fd7e-8403-787602827baf1224(5)(134)FHEM?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxNTBkY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VIhlblHGnoa5SnCIrmqf5U9MTywNt6M7ulmCwPYSqt54tFyqFxCPrh1zbYgWZKNEw2%2BF8ypUBVwiYli7GYBE99Lw5%2Ful%2BkEUphaUc%2BZvJ3i%2B4a%2BwdY0E%2FMX0SulMZ8CiwF%2FEFnGj2nAGmlD4FUGEF%2FWbWpYD19s%2B6DVeZ159uwTNLFc4EWWJTQMYvnkKVayHZnWSBgd9cmSD1hVQxfcGhSKCOaJiXdTd7iICFTr6F734s2TKM2I1%2Bu1xazK7dekM
2024.06.16 01:15:07 5: DevIo_SimpleWrite MQTT_Worx: 10d20b00064d514973647003820258003c57582f555345522f3733313739352f4648454d2f36343663646432642d663333662d666437652d383430332d3738373630323832376261663132323405864648454d3f6a77743d65794a30655841694f694a4b563151694c434a68624763694f694a53557a49314e694a392e65794a68645751694f6949784e54426b5954526b4d693169596a51304c54517a4d3249744f5451794f53307a4e7a637a5957526a4e7a42684d6d45694c434a7164476b694f6949354e7a51784e3245324e7a5578595467314d4759784e4468694d6a5935596d4e684e4755345a6a646a5957526d596d45784e7a51344d7a686c5a6a6b77596a55354f546b78597a526c4e4745344e7a41354d6d526d4d3249334e7a6b31596a6b334d6a51774e7a497a4f434973496d6c68644349364d5463784f4451354d546b794d6934774e6a4d354f544d73496d35695a6949364d5463784f4451354d546b794d6934774e6a4d354f545573496d5634634349364d5463784f4451354e5455794d69776963335669496a6f694e7a4d784e7a6b314969776963324e766347567a496a7062496d52686447453663484a765a48566a64484d694c434a31633256794f6e427962325a70624755694c434a31633256794f6d3168626d466e5a534973496e567a5a5849365932567964476c6d61574e68644755694c434a7462324a7062475536626d393061575a70593246306157397563794973496d3176643256794f6e5a705a5863694c434a746233646c636a703163475268644755694c434a746233646c636a706859335270646d6c3065563973623263694c434a746233646c636a70735958647549697769625739335a5849366257467749697769625739335a58493664324679636d467564486b694c434a746233646c636a706d61584a74643246795a534973496d3176643256794f6e4268615849694c434a746233646c636a7031626e42686158496958583026782d616d7a2d637573746f6d617574686f72697a65722d7369676e61747572653d5858336851707069655232664265706e6f6a59555948614249714b4d69305325324668496c77456b4e466448625245594c384651583164474b253246544b4b55686c25324234554b31364f757937253246744b493235656d7a546b74413267614d33567078457647253242456b5468386d596d474357653274376457612532463573615470787a48656e6b4466253246544c647a466370546b50343965385372726f6f72535a322532427469355a524966794467452532424970317178563657395873706c4f4b6f796b354c6779575a655a36427043616141515142622532462532467055666c68724869726a7469306c6442645670596a366951457a415a493237614c386974324b6e53584535723254617054496752576b435972467a554937394f7944374e746a5837307230546b4c4f4c36434a253246747170477647686678416c6b4749345a734e764842304f3333527a4a7751382532465475326651366e69727034253246616767566664734c6d4e686a3234524a6475595a337671354d54746b3565712532463646655255417671434b3970726b4a3268696a737a32646e4b7832596648656f51765855556f444d53474e4f43696f414d594358713539453937616169415649686c626c48476e6f6135536e4349726d71663555394d5479774e74364d37756c6d43775059537174353474467971467843507268317a625967575a4b4e457732253242463879705542567769596c69374759424539394c7735253246756c2532426b455570686155632532425a764a3369253242346125324277645930452532464d583053756c4d5a384369774625324645466e476a326e41476d6c44344655474546253246576257705944313973253242364456655a3135397577544e4c4663344557574a54514d59766e6b4b566179485a6e575342676439636d5344316856517866634768534b434f614a69586454643769494346547236463733347332544b4d324931253242753178617a4b3764656b4d
2024.06.16 01:15:07 4: iot.eu-west-1.worxlandroid.com:443 reappeared (MQTT_Worx)
2024.06.16 01:15:07 4: iot.eu-west-1.worxlandroid.com:443 disconnected, waiting to reappear (MQTT_Worx)
2024.06.16 01:18:06 4: MQTT_Worx: reusing the acess_token
2024.06.16 01:18:06 5: {"id":731795,"user_type":"tester","push_notifications":true,"location":null,"mqtt_endpoint":"a1optpg91s0ydf-ats.iot.eu-west-1.amazonaws.com","actions_on_google_pin_code":null,"created_at":"2023-05-22 16:38:02","updated_at":"2023-09-04 08:20:40"}
2024.06.16 01:18:06 4: MQTT_Worx: Got userId: 731795
2024.06.16 01:18:07 5: [{"id":9208.....}}}}}}]
2024.06.16 01:18:07 4: MQTT_Worx: Got device info
2024.06.16 01:18:07 5: MQTT_Worx: discarding DISCONNECT (224)(0)

ph0x

Zitat von: frober am 16 Juni 2024, 08:40:59Habt ihr "keepaliveTimeout 600" gesetzt?
Ja, das ist gesetzt. Man sieht in meinem (und auch in Flachzanges) Beitrag im Log den PINGREQ und PINGRESP nach 10 Minuten. Nach weiteren 5 ist dann disconnect.
Was mich wundert ist, dass das manchmal relativ lange gut geht, während der Account an anderen Tagen sehr zügig gesperrt wird.

Flachzange

D.h. die Frage ist, warum überhaupt diese disconnects stattfinden, die dann ein zu häufiges re-connecten auslösen?

tom2966

also ich kann auch noch mal bestätigen- nach 15 Minuten kommt der Disconnect völlig unabhängig von den Werten in den Attributen. Wurde ja in #820 auch schon so bemerkt. Mit nextOpenDelay=900 und keepaliveTimeout=900 läuft es aber so bei mir, das sofort nach Disconnect ein Connect folgt. so richtig verstanden habe ich das aber noch nicht- warum genau bei dieser Einstellung das Verhalten so ist (vielleicht weil 900 Sekunden ja auch 15 Minuten sind). Eigentlich müsste doch nur alle x Sekunden eine Kommunikation zum Server gehen. Statusabfrage oder so...