@Rudi: Vielen Dank für deine Antwort, ich mache also mal ein neues Thema auf.
Zitat von: rudolfkoenig am 15 Oktober 2017, 11:06:57
Unmittelbar nach dem Aufruf https://gho1:8083/fhem reagieren die "State-Ikons" nicht auf Statusänderungen.
Erst nach Anfordern der "Desktop site" (entweder durch langes Drücken auf das "reload"-Symbol oben oder via "option share" Symbol unten und Desktop-Site reload reagieren die Ikons wie gewohnt.
Ich habe dieses Problem seit ca. Mitte/Ende Oktober.
Ich füge mal ein WEB-list und WEB-log mit verbose 5 an, in der Hoffnung es geben sich daraus Hinweise.
Internals:
CONNECTS 545
DEF 8083 global
FD 7
NAME WEB
NR 5
NTFY_ORDER 50-WEB
PORT 8083
SSL 1
STATE Initialized
TYPE FHEMWEB
Attributes:
DbLogExclude .*
HTTPS 1
JavaScripts codemirror/fhem_codemirror.js
confirmDelete 1
csrfToken none
defaultRoom 1
deviceOverview always
editConfig 1
hiddenroom 10
iconPath openautomation:fhemSVG:default
longpoll 1
longpollSVG 1
mainInputLength 80
menuEntries DOIFtools,/fhem?detail=DOIFtools,restart,cmd=shutdown+ restart,update,cmd=update,updatecheck,cmd=update+check,reloadMyUt ils,cmd=reload+99_myUtils.pm,CodeImport,/fhem?detail=TE.ImportDummy#
room System
roomIcons Save config:message_attention Everything
sortRooms 1 Wohnzimmer Arbeitszimmer Gästezimmer Schlafzimmer Küche Flur Wetter Heizung System
title {WebTitle()}
verbose 5
### initialer Aufruf von Safari ####
2017.11.16 15:03:42.754 4 : Connection closed for WEB_192.168.178.21_51182: EOF
------- 1. Klick "on" (dummy Office)
2017.11.16 15:04:21.263 4 : Connection accepted from WEB_192.168.178.21_51194
2017.11.16 15:04:21.272 4 : WEB_192.168.178.21_51194 POST /fhem?cmd.Office=set%20Office%20on&room=1&XHR=1&fw_id=1956; BUFLEN:0
2017.11.16 15:04:21.289 4 : WEB: /fhem?cmd.Office=set%20Office%20on&room=1&XHR=1&fw_id=1956 / RL:20 / text/plain; charset=UTF-8 / Content-Encoding: gzip /
2017.11.16 15:04:30.216 1 : FHEMWEB SSL/HTTPS error: SSL accept attempt failed error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unknown (peer: 192.168.178.21)
------- 2 . Klick "on"
2017.11.16 15:04:37.622 4 : Connection accepted from WEB_192.168.178.21_51221
2017.11.16 15:04:37.634 4 : WEB_192.168.178.21_51221 POST /fhem?cmd.Office=set%20Office%20on&room=1&XHR=1&fw_id=1956; BUFLEN:0
2017.11.16 15:04:37.643 4 : WEB: /fhem?cmd.Office=set%20Office%20on&room=1&XHR=1&fw_id=1956 / RL:20 / text/plain; charset=UTF-8 / Content-Encoding: gzip /
2017.11.16 15:04:52.791 4 : Connection accepted from WEB_192.168.178.21_51222
2017.11.16 15:04:52.815 4 : WEB_192.168.178.21_51222 POST /fhem?cmd.Office=set%20Office%20on&room=1&XHR=1&fw_id=1956; BUFLEN:0
2017.11.16 15:04:52.832 4 : WEB: /fhem?cmd.Office=set%20Office%20on&room=1&XHR=1&fw_id=1956 / RL:20 / text/plain; charset=UTF-8 / Content-Encoding: gzip /
-------- 3. select share option and select "Desktop-Site anfordern" (denglish=:)
2017.11.16 15:05:38.785 4 : Connection accepted from WEB_192.168.178.21_51223
2017.11.16 15:05:38.792 4 : WEB_192.168.178.21_51223 GET /apple-touch-icon-120x120-precomposed.png; BUFLEN:0
2017.11.16 15:05:38.793 4 : WEB: redirecting /apple-touch-icon-120x120-precomposed.png to /fhem
2017.11.16 15:05:38.818 4 : WEB_192.168.178.21_51223 GET /fhem; BUFLEN:0
2017.11.16 15:05:38.969 4 : WEB: /fhem / RL:9021 / text/html; charset=UTF-8 / Content-Encoding: gzip /
2017.11.16 15:05:39.374 4 : WEB_192.168.178.21_51223 GET /apple-touch-icon-120x120.png; BUFLEN:0
2017.11.16 15:05:39.375 4 : WEB: redirecting /apple-touch-icon-120x120.png to /fhem
2017.11.16 15:05:39.393 4 : WEB_192.168.178.21_51223 GET /fhem; BUFLEN:0
2017.11.16 15:05:39.508 4 : WEB: /fhem / RL:9021 / text/html; charset=UTF-8 / Content-Encoding: gzip /
2017.11.16 15:05:40.724 4 : WEB_192.168.178.21_51223 GET /apple-touch-icon.png; BUFLEN:0
2017.11.16 15:05:40.724 4 : WEB: redirecting /apple-touch-icon.png to /fhem
2017.11.16 15:05:40.736 4 : WEB_192.168.178.21_51223 GET /fhem; BUFLEN:0
2017.11.16 15:05:40.913 4 : WEB: /fhem / RL:9021 / text/html; charset=UTF-8 / Content-Encoding: gzip /
2017.11.16 15:05:41.065 4 : WEB_192.168.178.21_51223 GET /apple-touch-icon.png; BUFLEN:0
2017.11.16 15:05:41.066 4 : WEB: redirecting /apple-touch-icon.png to /fhem
2017.11.16 15:05:41.907 4 : WEB_192.168.178.21_51223 GET /fhem; BUFLEN:0
2017.11.16 15:05:42.057 4 : WEB: /fhem / RL:9023 / text/html; charset=UTF-8 / Content-Encoding: gzip /
2017.11.16 15:06:08.506 4 : Connection accepted from WEB_192.168.178.21_51225
2017.11.16 15:06:08.515 4 : WEB_192.168.178.21_51225 GET /fhem; BUFLEN:0
2017.11.16 15:06:08.676 4 : WEB: /fhem / RL:9022 / text/html; charset=UTF-8 / Content-Encoding: gzip /
2017.11.16 15:06:09.329 4 : Connection accepted from WEB_192.168.178.21_51226
2017.11.16 15:06:09.348 4 : WEB_192.168.178.21_51226 GET /fhem?XHR=1&inform=type=status;filter=room=1;since=1510841167;fmt=JSON&fw_id=1976×tamp=1510841169129; BUFLEN:0
2017.11.16 15:06:13.322 4 : Connection closed for WEB_192.168.178.21_51223: EOF
2017.11.16 15:06:19.363 4 : Connection accepted from WEB_192.168.178.21_51227
-------4. Seite wurde neu geladen und zeigt den korrekten Status im Ikon (on) und readgiert auch korrekt auf weitere Klicks
2017.11.16 15:06:19.376 4 : WEB_192.168.178.21_51227 POST /fhem?cmd.Office=set%20Office%20off&room=1&XHR=1&fw_id=1976; BUFLEN:0
2017.11.16 15:06:19.398 4 : WEB: /fhem?cmd.Office=set%20Office%20off&room=1&XHR=1&fw_id=1976 / RL:20 / text/plain; charset=UTF-8 / Content-Encoding: gzip /
Um es fuer Andere klarzustellen: der o.g. Zitat ist nicht von mir.
Weiterhin bezieht sich der Autor bezieht auf diesen Kommentar: https://forum.fhem.de/index.php/topic,77691.msg699659.html#msg699659
Ich habe kein iPhone zum Testen, auf einem iPad mit iOS 11 sehe ich keine Probleme, weder mit http, noch mit https nachdem ich die uebliche HTTPS-Selfsigned-Certificate-Warnung bestaetigt habe. In deinem Log sehe ich einen SSL Fehler, den ich nicht erklaeren kann, bei mir gibts das nicht.
Damit die Benachrichtigung funktioniert, muss der Client eine separate Verbindung oeffnen, das sieht man an dem "inform=" Parameter im URL. Das habe ich nur in deinem Desktop Abschnitt gesehen, andererseits sind deine Logs ja auch nicht zusammenhaengend.
Fragen:
- Gibt es Probleme mit iOS 11?
- Gibt es Probleme mit HTTP (also kein HTTPS / SSL)
- Gibt es Probleme mit "attr WEB longpoll websocket". Mit iOS11@iPad + selbstsignierten Zertifikat funktioniert das bei mir nicht, insofern erwarte ich ein nein.
P.S.: Die Kombination csrftoken=none und SSL=1 ist seltsam.
Ok hier meine neuesten Erkenntnisse:
Leider haben wir nur "alte" 5er iPhones, daher kein IOS 11.
Ich habe getestet mit Safari, Chrome, Firefox (also auf dem Iohone)
1. Https/SSL crsfToken=aktiv
2. http crsfToken=aktiv
3. http crsfToken=none
Immer mit dem Ergebnis: stateIkon wird nur aktualisiert NACH einmaligem Anfordern der Desktopversion
Es fällt auf, dass Chrome die Auswahl "Desktop Version" speichert, da hier nach der Auswahl jetzt die Mobile Version angeboten wird.
Ich habe nochmal ein Log angehängt: restart - bis zum Schalten des "office" Dummy vom iPhone nach Desktop-Anforderung
WEB_192.168.178.29 ist das MacBook, WEB_192.168.178.21 das iPhone
Was kann ich noch testen?
Es faellt auf, dass weder vom MacBook, noch vom iPhone ein Request mit inform= Zeile auftaucht.
Habe aber keine Idee, warum. Evtl. steht in der JavaScript-Konsole des Browsers mehr drin.
Es gibt browser-Plugins, die sowas unterbinden, dachte aber bisher, dass auf iOS sowas nicht moeglich ist.
Ich habe nochmal etwas rumgespielt. Leider keine neuen bzw. brauchbare Erkenntnisse.
Die Analyse via "Mac Safari Entwickler Menü" der Konsolmessages brachte mich auch nicht weiter (hier fehlen mir d/noch gewisse Kenntnisse, ich arbeite dran).
Als Ergebnis bleibt mir CHROME, denn hier funktioniert es stabil (nach einmaligem Anfordern der Desktopversion)
Damit kann ich leben.
Gruß Günter