Autor Thema: [Gelöst] fronthem devices disconnected  (Gelesen 76 mal)

Offline grossmaggul

  • Full Member
  • ***
  • Beiträge: 334
    • Mein Blog
[Gelöst] fronthem devices disconnected
« am: 31 Juli 2020, 14:18:22 »
Hallo,

ich wurschtele jetzt hier schon ein paar Tage rum um fronthem mit smartvisu ans Laufen zu bekommen, leider funktioniert es nicht wie gewünscht.
Ich habe die Doku gelesen und enstprechend die Devices in fhem und smartvisu auf meinem Apache Server installiert, die smartvisu Seite kann auch aufgerufen werden und ich habe die Konfigurationsseite bearbeitet(Driver: FHEM,192.168.1.12,2121 etc.)

Leider zeigt mir das in fhem angelegte Device(meinLaptop) immer "disconnected" an.
fhem und der Apache liegen auf demselben Rechner.
Ich habe verbose bereits auf 5 gesetzt, bekomme aber keine oder nur minimale Ausgaben

Hier mal die entsprechenden Lists:

fronthem
Internals:
   FD         30
   FUUID      5f23fd1c-f33f-f310-4379-e07069b08857e0c1
   NAME       fronthem
   NR         326
   STATE      ???
   TYPE       fronthem
   READINGS:
     2020-07-31 13:20:37   ws              open
   helper:
     COMMANDSET save
     listen     
     client:
       mbpoben    registered
     config:
     ipc:
       ws:
         name       fronthem:127.0.0.1:41532
         pid        22455
         sock:
           FD         43
           NAME       fronthem:127.0.0.1:41532
           TYPE       fronthem
           buffer     
           registered ws
           PARENT:
     main:
       state      run
     receiver:
Attributes:
   DbLogExclude .*
   verbose    5

websocket
Internals:
   CFGFN     
   DEF        8080 global
   FUUID      5f23fe83-f33f-f310-ef33-ebd47d044801b489
   NAME       websocketPort
   NOTIFYDEV  global
   NR         331
   NTFY_ORDER 50-websocketPort
   SERVERSOCKET
   STATE      Initialized
   TYPE       websocket
   global     global
   port       8080
   READINGS:
     2020-07-31 13:20:35   state           Initialized
   onclose:
     HASH(0x5617ac76cc40):
       arg:
         FUUID      5e239fbe-f33f-f310-fa20-2a1a9ead16b90d42
         IODev      websocketPort
         IODevName  websocketPort
         NAME       wsPort_json
         NOTIFYDEV 
         NR         247
         NTFY_ORDER 50-wsPort_json
         STATE      ???
         TYPE       websocket_json
         resource   /
         typeSubscriptions:
         websockets:
   onopen:
     HASH(0x5617ac76cc40):
       arg:
         FUUID      5e239fbe-f33f-f310-fa20-2a1a9ead16b90d42
         IODev      websocketPort
         IODevName  websocketPort
         NAME       wsPort_json
         NOTIFYDEV 
         NR         247
         NTFY_ORDER 50-wsPort_json
         STATE      ???
         TYPE       websocket_json
         resource   /
         typeSubscriptions:
         websockets:
Attributes:

Device
Internals:
   DEF        192.168.1.130
   FUUID      5f23fe27-f33f-f310-22df-1a9fc09aa4fbe4f9
   NAME       mbp2015
   NR         327
   NTFY_ORDER 50-mbpoben
   STATE      disconnected
   TYPE       fronthemDevice
   READINGS:
     2020-07-31 13:20:34   gateway         fronthem
     2020-07-31 13:20:30   identity        192.168.1.130
     2020-07-31 13:20:30   state           disconnected
   helper:
     gateway    fronthem
     init       done
     config:
     converter:
       Direct
       NumDisplay
       NumDirect
       Trigger
       ReadingsTimestamp
       OnOff
       RGBCombined
       Attribute
Attributes:
   DbLogExclude .*
   verbose    5

Bei einem Page Reload kommt das hier in der Browserconsole:
[io.fhem]: init [V1.10] (address=192.168.1.12 port=2121)
animation.js:39 [animation.prepare]
animation.js:46 [animation.redraw]
index.php?page=config:1 [DOM] Input elements should have autocomplete attributes (suggested: "current-password"): (More info: https://goo.gl/9p2vKq)

In der fhem.log tauchten auch schonmal diese Meldungen auf, ich kann diese aber nicht mehr reproduzieren.:-/
2020.07.31 13:32:03 5: ipc fronthem:127.0.0.1:41532 (ws): receive {"connection":"conn-7ZpyK50O","sender":"192.168.1.130","identity":"unknown","message":{"cmd":"connect"}}
2020.07.31 13:32:03 5: ipc fronthem:127.0.0.1:41532 (ws): receive {"connection":"conn-7ZpyK50O","sender":"192.168.1.130","identity":"unknown","message":{"cmd":"disconnect"}}
2020.07.31 13:32:56 5: ipc fronthem:127.0.0.1:41532 (ws): receive {"connection":"conn-y4mnYNQ7","sender":"192.168.1.130","identity":"unknown","message":{"cmd":"connect"}}
2020.07.31 13:32:56 5: ipc fronthem:127.0.0.1:41532 (ws): receive {"connection":"conn-y4mnYNQ7","sender":"192.168.1.130","identity":"unknown","message":{"cmd":"disconnect"}}
2020.07.31 13:33:26 5: ipc fronthem:127.0.0.1:41532 (ws): receive {"connection":"conn-Shoc6M5z","sender":"192.168.1.130","identity":"unknown","message":{"cmd":"connect"}}
2020.07.31 13:33:26 5: ipc fronthem:127.0.0.1:41532 (ws): receive {"connection":"conn-Shoc6M5z","sender":"192.168.1.130","identity":"unknown","message":{"cmd":"disconnect"}}
2020.07.31 13:34:13 5: ipc fronthem:127.0.0.1:41532 (ws): receive {"connection":"conn-eBRArhtl","sender":"192.168.1.130","identity":"unknown","message":{"cmd":"connect"}}
2020.07.31 13:34:13 5: ipc fronthem:127.0.0.1:41532 (ws): receive {"connection":"conn-eBRArhtl","sender":"192.168.1.130","identity":"unknown","message":{"cmd":"disconnect"}}
2020.07.31 13:34:13 5: ipc fronthem:127.0.0.1:41532 (ws): receive {"connection":"conn-bZG9hOCX","sender":"192.168.1.130","identity":"unknown","message":{"cmd":"connect"}}
2020.07.31 13:34:13 5: ipc fronthem:127.0.0.1:41532 (ws): receive {"connection":"conn-bZG9hOCX","sender":"192.168.1.130","identity":"unknown","message":{"cmd":"disconnect"}}
2020.07.31 13:37:38 5: ipc fronthem:127.0.0.1:41532 (ws): receive {"connection":"conn-XTnNbwVs","sender":"192.168.1.130","identity":"unknown","message":{"cmd":"connect"}}
2020.07.31 13:37:38 5: ipc fronthem:127.0.0.1:41532 (ws): receive {"connection":"conn-XTnNbwVs","sender":"192.168.1.130","identity":"unknown","message":{"cmd":"disconnect"}}
2020.07.31 13:37:38 5: ipc fronthem:127.0.0.1:41532 (ws): receive {"connection":"conn-CZu5n4SR","sender":"192.168.1.130","identity":"unknown","message":{"cmd":"connect"}}
2020.07.31 13:37:38 5: ipc fronthem:127.0.0.1:41532 (ws): receive {"connection":"conn-CZu5n4SR","sender":"192.168.1.130","identity":"unknown","message":{"cmd":"disconnect"}}
2020.07.31 13:37:44 5: ipc fronthem:127.0.0.1:41532 (ws): receive {"connection":"conn-jdJPTwM0","sender":"192.168.1.130","identity":"unknown","message":{"cmd":"connect"}}
2020.07.31 13:37:44 5: ipc fronthem:127.0.0.1:41532 (ws): receive {"connection":"conn-jdJPTwM0","sender":"192.168.1.130","identity":"unknown","message":{"cmd":"disconnect"}}
2020.07.31 13:37:44 5: ipc fronthem:127.0.0.1:41532 (ws): receive {"connection":"conn-kN2LkT65","sender":"192.168.1.130","identity":"unknown","message":{"cmd":"connect"}}
2020.07.31 13:37:44 5: ipc fronthem:127.0.0.1:41532 (ws): receive {"connection":"conn-kN2LkT65","sender":"192.168.1.130","identity":"unknown","message":{"cmd":"disconnect"}}
2020.07.31 13:38:04 5: ipc fronthem:127.0.0.1:41532 (ws): receive {"connection":"conn-OsUV3P1i","sender":"192.168.1.130","identity":"unknown","message":{"cmd":"connect"}}
2020.07.31 13:38:04 5: ipc fronthem:127.0.0.1:41532 (ws): receive {"connection":"conn-OsUV3P1i","sender":"192.168.1.130","identity":"unknown","message":{"cmd":"disconnect"}}
2020.07.31 13:38:04 5: ipc fronthem:127.0.0.1:41532 (ws): receive {"connection":"conn-NXjDNvx7","sender":"192.168.1.130","identity":"unknown","message":{"cmd":"connect"}}
2020.07.31 13:38:04 5: ipc fronthem:127.0.0.1:41532 (ws): receive {"connection":"conn-NXjDNvx7","sender":"192.168.1.130","identity":"unknown","message":{"cmd":"disconnect"}}
2020.07.31 13:38:22 5: ipc fronthem:127.0.0.1:41532 (ws): receive {"connection":"conn-MGoazkQR","sender":"192.168.1.130","identity":"unknown","message":{"cmd":"connect"}}
2020.07.31 13:38:22 5: ipc fronthem:127.0.0.1:41532 (ws): receive {"connection":"conn-MGoazkQR","sender":"192.168.1.130","identity":"unknown","message":{"cmd":"disconnect"}}
2020.07.31 13:38:22 5: ipc fronthem:127.0.0.1:41532 (ws): receive {"connection":"conn-K3ictpt5","sender":"192.168.1.130","identity":"unknown","message":{"cmd":"connect"}}
2020.07.31 13:38:22 5: ipc fronthem:127.0.0.1:41532 (ws): receive {"connection":"conn-K3ictpt5","sender":"192.168.1.130","identity":"unknown","message":{"cmd":"disconnect"}}
2020.07.31 13:38:35 5: ipc fronthem:127.0.0.1:41532 (ws): receive {"connection":"conn-QneOCaxW","sender":"192.168.1.130","identity":"unknown","message":{"cmd":"connect"}}
2020.07.31 13:38:35 5: ipc fronthem:127.0.0.1:41532 (ws): receive {"connection":"conn-QneOCaxW","sender":"192.168.1.130","identity":"unknown","message":{"cmd":"disconnect"}}
2020.07.31 13:38:35 5: ipc fronthem:127.0.0.1:41532 (ws): receive {"connection":"conn-RC180crl","sender":"192.168.1.130","identity":"unknown","message":{"cmd":"connect"}}
2020.07.31 13:38:35 5: ipc fronthem:127.0.0.1:41532 (ws): receive {"connection":"conn-RC180crl","sender":"192.168.1.130","identity":"unknown","message":{"cmd":"disconnect"}}
2020.07.31 13:39:06 5: ipc fronthem:127.0.0.1:41532 (ws): receive {"connection":"conn-vlDSikqe","sender":"192.168.1.130","identity":"unknown","message":{"cmd":"connect"}}
2020.07.31 13:39:06 5: ipc fronthem:127.0.0.1:41532 (ws): receive {"connection":"conn-vlDSikqe","sender":"192.168.1.130","identity":"unknown","message":{"cmd":"disconnect"}}
2020.07.31 13:39:06 5: ipc fronthem:127.0.0.1:41532 (ws): receive {"connection":"conn-YDzWDOYu","sender":"192.168.1.130","identity":"unknown","message":{"cmd":"connect"}}
2020.07.31 13:39:06 5: ipc fronthem:127.0.0.1:41532 (ws): receive {"connection":"conn-YDzWDOYu","sender":"192.168.1.130","identity":"unknown","message":{"cmd":"disconnect"}}

Testweise habe ich mal einen Schalter angelegt:
/**
* -----------------------------------------------------------------------------
* @package     smartVISU
* @author      Martin Gleiß
* @copyright   2012 - 2015
* @license     GPL [http://www.gnu.de]
* -----------------------------------------------------------------------------
*/


{% extends "rooms.html" %}

{% block content %}
<h1><img class="icon" src='{{ icon0 }}scene_livingroom.svg'/>Wohnzimmer</h1>
  <div class="preblock">
  </div>
  <div class="block">
    <div class="set-2" data-role="collapsible-set" data-theme="c" data-content-theme="a" data-mini="true">
      <div data-role="collapsible" data-collapsed="false" >
        <h3>Licht</h3>
          <table width="90%">
            <tr><td align="left" width="100px"> {{ basic.switch('lampe', 'lampe.sw', icon1~'light_office_desk.png', icon0~'light_office_desk.png') }}</td>
              <td>Schreibtischlampe</td>
            </tr>
          </table>
        </div>
      </div>
   </div>
{% endblock %}

Kann es was damit zu tun haben, daß  mein Apache die Seiten per ssl verschlüsselt?

Wäre schön, wenn mir jemand helfen könnte.

gm
« Letzte Änderung: 02 August 2020, 15:21:31 von grossmaggul »
FHEM auf Debian Server, 2 x nanoCUL868,Homematic,MAX,MiLight,HUE

Offline grossmaggul

  • Full Member
  • ***
  • Beiträge: 334
    • Mein Blog
Antw:[Gelöst] fronthem devices disconnected
« Antwort #1 am: 02 August 2020, 15:23:15 »
Falls es überhaupt noch interessiert, das Problem ist gelöst, es hatte etwas mit der SSL Verschlüsselung zu tun, mit der ja smartvisu, bzw. fronthem nicht zurecht kommt.
Ich habe die smartvisu Seite auf einen anderen Port gelegt und dann funtkioniert es unter smartvisu 2.7, allerdings nur mit dem domotiga Treiber.
FHEM auf Debian Server, 2 x nanoCUL868,Homematic,MAX,MiLight,HUE