[FUIP] Simple-Switch schaltet oft doppelt

Begonnen von caldir65, 24 Juli 2022, 12:49:59

Vorheriges Thema - Nächstes Thema

caldir65

Hallo,

ich habe eine FUIP-Oberfläche auf einem Samsung SM-T530 (Android 5.0.2) mit fully als Browser laufen. Leider gibt es öfters das Problem, daß Simple-Switch-Taster, die via toggle z.B. Shelly-Plug umschalten sollen, statt einen gleich zwei Schaltvorgänge schnell hintereinander ausführen - das Relais schaltet dann vernehmlich auch zwei Mal, und es erscheinen auf dem Tablet auch zwei Tast-Nachrichten, einmal switch off, einmal switch on z.B.
Hinzu kommt, daß es u.U. recht lange dauert, bis überhaupt der Fingertip auf den Button in eine Aktion umgesetzt wird. Wenn jedoch die erste Aktion erfolgt ist, kann ich in den nächten Minuten (vermutlich, bis das Tablet wieder für länger dunkel schaltet?) ganz normal bedienen, die Räume wechseln etc., es funktioniert also alles flüssig.

Alle beteiligten Apps und Komponenten sind soweit auf dem jeweils aktuellem Stand.

Hier die fuip-Definition:
Internals:
   FUUID      62977a1f-f33f-378b-82e1-adb570fd59762bb3
   FVERSION   42_FUIP.pm:0.009900/2019-11-16
   NAME       ui
   NOTIFYDEV  global
   NR         1846
   NTFY_ORDER 50-ui
   STATE      ui
   TYPE       FUIP
   autosave   none
   editOnly   0
   eventCount 75
   lockIPs    192.168.1.20:0
   READINGS:
   colors:
   fhem:
     directory  ./www/tablet
     friendlyname ui
     infix      ui/
   pages:
   viewtemplates:
Attributes:
   DbLogExclude .*
   alias      Fhem UI-Painter
   baseHeight 54
   baseWidth  150
   gridlines  hide
   layout     gridster
   locked     1
   loglevel   1
   room       System->System,Web
   snapTo     quarterGrid
   styleSchema blue
   verbose    1


Ich hänge auch einmal die aktuelle fully-Einrichtung mit an:
Internals:
   DEF        192.168.1.106 xxxxxxxx
   FUUID      5f43d220-f33f-378b-c8ca-213c16e08897f9a3
   FVERSION   89_FULLY.pm:0.255160/2022-01-20
   NAME       Tablet_Wohnzimmer
   NOTIFYDEV  global,TYPE=FULLY
   NR         1370
   NTFY_ORDER 50-Tablet_Wohnzimmer
   STATE      off
   TYPE       FULLY
   eventCount 514
   host       192.168.1.106
   lastUpdate 24.07.2022 12:45:07
   nextUpdate 24.07.2022 12:47:21
   onForTimer off
   port       2323
   prot       http
   version    2.3
   READINGS:
     2020-10-18 12:07:09   acoustic_detection off
     2020-10-18 12:07:09   active_fragment main
     2020-10-18 12:07:09   android_id      cc571eeb23b6866f
     2020-10-18 12:07:09   android_version 5.0.2 (SDK 21)
     2022-07-24 12:45:07   androidsdk      21
     2022-07-24 12:45:07   androidversion  5.0.2
     2020-09-12 04:37:09   app_code_data_cache ?/?/? KB
     2020-10-18 12:07:09   app_package     de.ozerov.fully
     2020-10-18 12:07:09   app_ram_free_total 104929/131072 KB
     2020-10-18 12:07:09   app_version     1.42.2
     2022-07-24 12:45:07   appfreememory   116304580
     2022-07-24 12:45:07   apptotalmemory  134217728
     2022-07-24 12:45:07   appusedmemory   17913100
     2022-07-24 12:45:07   appversioncode  1054
     2022-07-24 12:45:07   appversionname  1.47-play
     2020-10-18 12:07:09   battery_level   100
     2022-07-24 12:45:07   batterylevel    49
     2022-07-24 12:45:07   batterytemperature 25
     2020-10-18 12:07:09   brightness      200
     2022-07-24 12:45:07   bssid           f4:92:bf:c4:f9:f3
     2022-07-24 12:45:07   build           LRX22G.T530XXS1BRH1
     2020-10-18 12:07:09   current_page    https://192.168.1.144:8083/fhem/tablet/index.html
     2022-07-24 12:45:07   currentpage     http://192.168.1.144:8083/fhem/ui/
     2022-07-24 12:45:07   currenttabindex 0
     2020-10-18 12:07:09   denied          PACKAGE_USAGE_STATS
     2020-10-18 12:07:09   device_admin    on
     2020-10-18 12:07:09   device_model    SM-T530 (samsung)
     2020-10-18 12:07:09   device_name     Galaxy Tab 4
     2020-10-18 12:07:09   device_owner    off
     2020-08-25 10:16:30   device_type     SM-T530 (samsung)
     2022-07-24 12:45:07   deviceid        554fd2e3-a6925edf
     2022-07-24 12:45:07   devicemanufacturer samsung
     2022-07-24 12:45:07   devicemodel     SM-T530
     2022-07-24 12:45:07   devicename      Galaxy Tab 4
     2022-07-24 12:45:07   displayheightpixels 800
     2022-07-24 12:45:07   displaywidthpixels 1280
     2021-11-03 20:54:33   execState       error
     2022-07-24 12:45:07   execstate       OK N/A
     2020-10-18 12:07:09   foreground_app 
     2022-07-24 12:45:07   foregroundapp   
     2020-08-25 10:16:30   full_wakelock   off
     2020-10-18 12:07:09   fully_device_id 554fd2e3-a6925edf
     2020-08-25 10:16:30   fully_version   1.39.3
     2020-10-18 12:07:09   hostname        Samsung-Tablet-Meike.fritz.box
     2022-07-24 12:45:07   hostname4       Samsung-Tablet-fhemWhz.fritz.box
     2022-07-24 12:45:07   hostname6       fd00::f00a:71c4:b5a4:f197%22
     2020-10-18 12:07:09   internal_storage_free_total 7467/12142 MB
     2022-07-24 12:45:07   internalstoragefreespace 7138746368
     2022-07-24 12:45:07   internalstoragetotalspace 12732411904
     2022-07-24 12:45:07   ip4             192.168.1.106
     2020-10-18 12:07:09   ip4_address     192.168.1.106
     2022-07-24 12:45:07   ip6             FD00::F00A:71C4:B5A4:F197
     2020-10-18 12:07:09   ip6_address     FD00::A077:9C9F:E081:9CE
     2022-07-24 12:45:07   isdeviceadmin   yes
     2022-07-24 12:45:07   isdeviceowner   no
     2022-07-24 12:45:07   isindaydream    no
     2022-07-24 12:45:07   isinforcedsleep no
     2022-07-24 12:45:07   isinscreensaver no
     2022-07-24 12:45:07   islicensed      yes
     2022-07-24 12:45:07   ismenuopen      no
     2022-07-24 12:45:07   ismobiledataenabled yes
     2022-07-24 12:45:07   isplugged       no
     2022-07-24 12:45:07   isrooted        no
     2020-10-18 12:07:09   keyguard_locked on
     2022-07-24 12:45:07   keyguardlocked  yes
     2020-10-18 12:07:09   kiosk_mode      off
     2022-07-24 12:45:07   kiosklocked     no
     2022-07-24 12:45:07   kioskmode       no
     2020-10-18 12:07:09   knox_version_licensed 2.4 (15)/no
     2020-10-18 12:07:09   last_app_start  17.10.2020 15:39:05
     2022-07-24 12:45:07   lastappstart    23.07.2022 17:00:07
     2022-07-24 12:45:07   locale          de_DE
     2022-07-24 12:45:07   mac             18:3A:2D:C4:76:02
     2020-10-18 12:07:09   mac_address     18:3A:2D:C4:76:02
     2020-10-18 12:07:09   maintenance_mode off
     2022-07-24 12:45:07   maintenancemode no
     2020-10-18 12:07:09   motion_detection on
     2022-07-24 12:45:07   motiondetectorstatus yes
     2020-10-18 12:07:09   movement_detection off
     2022-07-24 12:45:07   packagename     de.ozerov.fully
     2020-08-25 10:16:30   partial_wakelock on
     2022-07-24 12:45:07   plugged         no
     2020-10-18 12:07:09   plus_licensed   yes (App ID: 1)
     2020-10-18 12:07:09   power           plugged
     2020-10-18 12:07:09   ram_free_total  525/1407 MB
     2022-07-24 12:45:07   ramfreememory   519274496
     2022-07-24 12:45:07   ramtotalmemory  1476001792
     2022-07-24 12:45:07   ramusedmemory   956727296
     2020-09-12 04:37:09   root_avail_enabled no/no
     2020-10-18 12:07:09   root_available_enabled no/no
     2022-07-24 12:45:07   scopedstorage   0
     2020-08-25 10:16:30   screen          1280x800 px
     2020-10-18 12:07:09   screen_size     1280x800 px
     2020-10-18 12:07:09   screen_status   off
     2022-07-24 12:45:07   screenbrightness 200
     2022-07-24 12:45:07   screenlocked    yes
     2022-07-24 12:45:07   screenon        no
     2022-07-24 12:45:07   screenorientation 0
     2022-07-24 12:45:07   serial          14b6754d086e0036
     2022-07-24 12:45:07   ssid            "yyyyyyyy"
     2020-10-18 12:07:09   start_url       https://192.168.1.144:8083/fhem/tablet/index.html
     2022-07-24 12:45:07   starturl        http://192.168.1.144:8083/fhem/ui/
     2022-07-24 12:45:07   state           off
     2022-07-24 12:45:07   status          OK
     2022-07-24 12:45:07   statustext      N/A
     2022-07-24 12:45:07   timestamp       1658659508104
     2022-07-24 12:45:07   topfragmenttag 
     2020-09-27 13:24:41   wakelock_full_partial off/on
     2020-10-18 12:07:09   wakelock_full_partial_up off/on/off
     2020-10-18 12:07:09   webview_provider com.google.android.webview
     2020-10-18 12:07:09   webview_version
     2020-10-18 12:07:09   wifi_ssid       "xxxxxxxx"
     2022-07-24 12:45:07   wifisignallevel 9
   fully:
     password   xxxxxxxx
     schedule   0
Attributes:
   DbLogExclude .*
   event-on-update-reading state,batterylevel
   icon       tablet_fhem
   pollInterval 150
   room       Arbeitszimmer,Wohnzimmer
   verbose    1


Wie kann ich jetzt verhindern, daß das Tablet solche doppelten Schaltvorgänge durchführt - also quasi entprellen?

Gruß, Christoph
Alte Techniker-Regel: "kaum macht man es richtig, funktioniert es auch"
------
Dell Wyse5070 ThinClient 16GBRam, 64GB SSD, Lubuntu 22.04LTS, fhem (aktuell), debmatic, Homematic-Devs, ConBee II und deConz, viele Shellys, Rademacher, NextCloud-Anbindung, FullyKioskBrowser+FUIP uvm.

Thorsten Pferdekaemper

Hi,
sorry, dass es etwas gedauert hat. Ich war ein bisschen beschäftigt...
Tja, leider habe ich da auch keine wirkliche Antwort. Die SimpleSwitch View ist eigentlich nur ein FTUI switch. Da ist nicht viel FUIP-eigenes dran. Kannst Du es mal ohne FUIP "außenrum" probieren?
Ansonsten kann ich mir vorstellen, dass das Tablet ein bisschen überfordert ist und dann halt lange braucht, um überhaupt zu reagieren. Bis dahin gab es dann schon mehrere Events, die alle abgehandelt werden. (Zumindest ist das mal meine Hypothese, es kann auch komplett falsch sein.)
Was man da sinnvoll machen kann weiß ich auch gerade nicht.
Gruß,
   Thorsten
FUIP