Nur STATE Werte werden angezeigt / websockets not supportetd or not activated >

Begonnen von fireb1676, 20 Februar 2018, 22:11:10

Vorheriges Thema - Nächstes Thema

fireb1676

Hi zusammen,

auch nach längerem Lesen im Forum, neuinstallation von FTUI bekomme ich zwei Probleme nicht gelöst - hatte gerade die erste funktionierende oberfläche, die jetzt aber nach update aus aktuellem git nicht mehr funktioniert, da keine Werte außer STATE angezeigt werden.

1. longpoll: websockets not supportetd or not activated > fall back to AJAX
> alle Einträge dazu gelesen, Websocket in WEB als attribut und in der index.html
> trotzdem fallback auf AJAX.

2. Nur STATE werte werden angezeigt - keine anderen Werte werden angezeigt, e.g.
"1. EG_Temp:temperature -> --unknown--"

Any idea? DANK! Gruss M

INDEX.html

<!DOCTYPE html>
<html>

<head>
    <link rel="icon" href="favicon.ico" type="image/x-icon" />


    <script src="js/fhem-tablet-ui.js" defer></script>

    <title>FHEM-Tablet-UI</title>
    <meta name="longpoll" content="1">
    <meta name="longpoll_type" content="websocket">
    <meta name="debug" content="3">
    <!-- <meta name='web_device' content='WEB'> -->
    <!-- <meta name="fhemweb_url" content="http://192.168.1.7:8083/fhem"> -->
</head>

<body>
    <div class="gridster">
        <ul>
            <li data-row="1" data-col="1" data-sizey="4" data-sizex="3">
                <header>EXAMPLE1</header>
                <div>
                  <div data-type="label" data-device="EG_Temp" data-get="temperature" data-unit="&deg;C" class="big"></div>
                  <div>Temperatur</div>
                  <div data-type="label" data-device="EG_Temp" data-get="humidity" data-unit="%" class="big"></div>
                  <div>Luftfeuchte</div>
                  <div data-type="label" data-device="EG_Temp" data-unit="%" class="big"></div>
                  <div>all</div>
                </div>
            </li>

        </ul>
    </div>
</body>

</html>

Konsole:

stopLongpoll
fhem-tablet-ui.js:1942:13
longpoll: websockets not supportetd or not activated > fall back to AJAX
fhem-tablet-ui.js:1942:13
Longpoll re-started
fhem-tablet-ui.js:1942:13
ajax lomgpoll responseURL=
fhem-tablet-ui.js:1942:13
ajax longpol  statusText=
fhem-tablet-ui.js:1942:13
FTUI is offline
fhem-tablet-ui.js:1942:13
Error while longpoll: error:
fhem-tablet-ui.js:1942:13
restartLongpoll
fhem-tablet-ui.js:1942:13
stopLongpoll
fhem-tablet-ui.js:1942:13
Base dir: ./
fhem-tablet-ui.js:2289:1
jQuery dynamically loaded
fhem-tablet-ui.js:2298:17
Filename:
fhem-tablet-ui.js:1942:13
FHEM dir: http://192.168.1.7:8083/fhem/
fhem-tablet-ui.js:1942:13
dynamic load file:./lib/jquery.toast.min.js / async:false
fhem-tablet-ui.js:1942:13
Got csrf from FHEM:null
fhem-tablet-ui.js:1942:13
dynamic load done:./lib/jquery.toast.min.js
fhem-tablet-ui.js:1942:13
fhem-tablet-ui.css dynamically loaded. Waiting until it is ready to use...
fhem-tablet-ui.js:1942:13
fhem-tablet-ui.css dynamically loaded. Waiting until it is ready to use...
fhem-tablet-ui.js:1942:13
fhem-tablet-ui.css is ready to use.
fhem-tablet-ui.js:1942:13
initPage - area=
fhem-tablet-ui.js:1942:13
dynamic load file:./lib/jquery.gridster.min.js / async:false
fhem-tablet-ui.js:1942:13
Object { modules: [], addModule: addModule(), removeArea: removeArea(), updateParameters: updateParameters(), load: load(), reinit: reinit(), update: update() }
fhem-tablet-ui.js:1942:13
Object { modules: [], addModule: addModule(), removeArea: removeArea(), updateParameters: updateParameters(), load: load(), reinit: reinit(), update: update() }
fhem-tablet-ui.js:1942:13
initWidgets - area=
fhem-tablet-ui.js:1942:13
Load plugin "label" for area ""
fhem-tablet-ui.js:1942:13
Start load plugin "label" for area ""
fhem-tablet-ui.js:1942:13
dynamic load file:./js/widget_label.js / async:true
fhem-tablet-ui.js:1942:13
init templates - Done
fhem-tablet-ui.js:1942:13
dynamic load done:./lib/jquery.gridster.min.js
fhem-tablet-ui.js:1942:13
dynamic load done:./js/widget_label.js
fhem-tablet-ui.js:1942:13
function depends_label not found (maybe ok)
fhem-tablet-ui.js:1942:13
Try to init plugin: label
fhem-tablet-ui.js:1942:13
init widget: name=label area=
fhem-tablet-ui.js:1942:13
Finished load plugin "label" for area ""
fhem-tablet-ui.js:1942:13
initWidgets - Done
fhem-tablet-ui.js:1942:13
initPage: 192.54ms
fhem-tablet-ui.js:771:13
start shortpoll in (ms):500
fhem-tablet-ui.js:1942:13
restartLongpoll
fhem-tablet-ui.js:1942:13
stopLongpoll
fhem-tablet-ui.js:1942:13
start shortpoll
fhem-tablet-ui.js:1942:13
send to FHEM: jsonlist2 WEB,EG_Temp STATE longpoll temperature humidity
fhem-tablet-ui.js:1942:13
start shortpoll in (ms):30000
fhem-tablet-ui.js:1942:13
get jsonlist2: 90.94ms
fhem-tablet-ui.js:878:17
fhemJSON: 0=Arg 1=Results
fhem-tablet-ui.js:1942:13
shortpoll: fhemJSON.Results.length=2
fhem-tablet-ui.js:1942:13
shortPoll - Done
fhem-tablet-ui.js:1942:13
read jsonlist2: 6.56ms
fhem-tablet-ui.js:965:17
startLongpoll: true
fhem-tablet-ui.js:1942:13
longpoll: websockets not supportetd or not activated > fall back to AJAX
fhem-tablet-ui.js:1942:13
Longpoll re-started
fhem-tablet-ui.js:1942:13
ajax lomgpoll responseURL=
fhem-tablet-ui.js:1942:13
ajax longpol  statusText=
fhem-tablet-ui.js:1942:13
start shortpoll in (ms):900000
Page became visible again -> start healthCheck in 3 secondes
fhem-tablet-ui.js:1942:13
--------- start healthCheck --------------
fhem-tablet-ui.js:1530:13
now: Tue Feb 20 2018 22:09:39 GMT+0100
fhem-tablet-ui.js:1531:13
FTUI version: 2.6.40
fhem-tablet-ui.js:1532:13
Longpoll: true
fhem-tablet-ui.js:1533:13
Longpoll type: websocket
fhem-tablet-ui.js:1534:13
Longpoll objects there: true
fhem-tablet-ui.js:1535:13
Longpoll current line: 1
fhem-tablet-ui.js:1537:13
Longpoll last event before: 45 Sekunde(n)
fhem-tablet-ui.js:1538:13
Longpoll last reading update before: 48 Sekunde(n)
fhem-tablet-ui.js:1539:13
Shortpoll interval: 900
fhem-tablet-ui.js:1540:13
Shortpoll last run before: 46 Sekunde(n)
fhem-tablet-ui.js:1541:13
FHEM dev/par count: 2
fhem-tablet-ui.js:1542:13
FTUI known devices count: 3
fhem-tablet-ui.js:1543:13
Current modules count: 1
fhem-tablet-ui.js:1544:13
0. label@
fhem-tablet-ui.js:1552:21
Current subscriptions count: 3
fhem-tablet-ui.js:1556:13
1. EG_Temp:temperature -> --unknown--
fhem-tablet-ui.js:1573:21
2. EG_Temp:humidity -> --unknown--
fhem-tablet-ui.js:1573:21
3. EG_Temp:STATE -> T: -0.9 H: 78
fhem-tablet-ui.js:1573:21
Page length: 7030
fhem-tablet-ui.js:1578:13
Widgets count: 3
fhem-tablet-ui.js:1579:13
--------- end healthCheck ---------------
fhem-tablet-ui.js:1580:13


setstate

Die Zeile "1. EG_Temp:temperature -> --unknown--" zeigt mir, die Subscriptions werden korrekt aus deinen Definitionen gelesen, aber es werden dazu keine Daten von FHEM geholt (Shortpoll). Da ist longpoll noch außen vor, das brauchen wir erst für Echtzeitupdates. Jetzt kann man prüfen: Gibt es Verbindung zum FHEM? (Webconsole -> Netzwerkmonitor -> Result vom jsonlist2 Aufruf ansehen) 2. Kennt FHEM dieses Device:Reading? (Was sagt das Command "jsonlist2 EG_Temp temperature" im FHEM)

fireb1676

Danke fürs checken -- auch gerade in einem anderen Post gelöst worden. Obwohl ich mehrfach schon update habe laufen lassen. Gerade noch einmal gemacht und schon funkt wieder alles.

justme1968

kannst du mir sagen was wo gelöst wurde?

ich kämpfe gerade mit dem gleichen problem beim versuch meine alte ftui 1 version auf 2.7 zu aktualisieren.

ausser STATE wird werden keine werte angezeigt und ftui_check zeigt alles was nicht STATE ist mit --unknown-- an.
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

justme1968

hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968