Homeassistant - aktueller Stand der Integration

Open Source Hausautomation

Moderator: Co-Administratoren

CCuhilli
Beiträge: 28
Registriert: 06.05.2021, 21:42
System: CCU

Re: Homeassistant - aktueller Stand der Integration

Beitrag von CCuhilli » 31.01.2022, 19:41

Hallo zusammen,

ich wollte heute den Homeassistant testen und meine CCU3 ein binden.
Leider werde die Homematic Komponenten nicht angezeigt obwohl ich alles nach Anleitung ein getippt habe.
ich hoffe Ihr habt noch eine Idee.


code:

homematic:
interfaces:
Funk:
host: XXX.XXX.XXX.XXX
port: 2001
resolvenames: json
username: XXXX
password: XXXXXXXX
HMIP:
host: XXX.XXX.XXX.XXX
port: 2010
resolvenames: json
username: XXXX
password: XXXX
groups:
host: XXX.XXX.XXX.XXX
port: 2010
resolvenames: json
username: XXXX
password: XXXXXXXX
path: /groups
hosts:
CCu3:
host: XXX.XXX.XXX.XXX
username: XXXX
password: XXXXXXXX

Fehlermeldung kann ich bei bedarf nachliefern.
Achso ich habe keine HM Cloud.


Das Ikea Gateway einzubinden ging ohne probleme.

Ich hoffe Ihr könnt mir helfen.

Vielen Dank schonmal im vorraus.

VG Chilli

Chris Py
Beiträge: 15
Registriert: 24.10.2019, 19:20
System: Alternative CCU (auf Basis OCCU)
Hat sich bedankt: 5 Mal
Danksagung erhalten: 2 Mal

Re: Homeassistant - aktueller Stand der Integration

Beitrag von Chris Py » 01.02.2022, 10:20

Hallo,

mir fällt beim schnellen lesen auf :

- in YAML files alle HA Definitionen immer nur in "lower case" schreiben.
- einrücken mit 2 Leerzeichen oder Tabs nicht vergessen, dass ist in Python ( hier in YAML) ein Strukturelement.


kannst du dein yaml überarbeiten, testen und hier ggf mit Format darstellen?

Gruss
Christoph

CCuhilli
Beiträge: 28
Registriert: 06.05.2021, 21:42
System: CCU

Re: Homeassistant - aktueller Stand der Integration

Beitrag von CCuhilli » 01.02.2022, 17:07

Hallo Christoph,

nun mit Formatierung. :)
Ich hoffe das hilfe bei der fehler suche weiter.

Code: Alles auswählen

homematic:
     interfaces: 
        Funk:
            host: XXX.XXX.XXX.XX
            port: 2001
            resolvenames: json
            username: XXXX
            password: XXXX
        HMIP:
            host: XXX.XXX.XXX.XX
            port: 2010
            resolvenames: json
            username: XXXX
            password: XXXX
        groups:
            host: XXX.XXX.XXX.XX
            port: 2010
            resolvenames: json
            username: XXXX
            password: XXXX
            path: /groups
    hosts:
        CCu3: 
            host: XXX.XXX.XXX.XX
            username: XXXX
            password: XXXX
VG Chilli

Chris Py
Beiträge: 15
Registriert: 24.10.2019, 19:20
System: Alternative CCU (auf Basis OCCU)
Hat sich bedankt: 5 Mal
Danksagung erhalten: 2 Mal

Re: Homeassistant - aktueller Stand der Integration

Beitrag von Chris Py » 01.02.2022, 17:10

"Funk:"
"HMIP:"
"Ccu3:"
etc. immer noch Gross geschrieben.

Probier es nochmal.

CCuhilli
Beiträge: 28
Registriert: 06.05.2021, 21:42
System: CCU

Re: Homeassistant - aktueller Stand der Integration

Beitrag von CCuhilli » 01.02.2022, 17:11

Ok habe ich korregiert leider kein erfolg.

CCuhilli
Beiträge: 28
Registriert: 06.05.2021, 21:42
System: CCU

Re: Homeassistant - aktueller Stand der Integration

Beitrag von CCuhilli » 01.02.2022, 17:13

Logfile:
Erster Eintrag:

Logger: homeassistant.setup
Source: components/homematic/__init__.py:253
First occurred: 17:11:07 (1 occurrences)
Last logged: 17:11:07

Error during setup of component homematic
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/pyhomematic/connection.py", line 76, in start
self._server.start()
AttributeError: 'HMConnection' object has no attribute '_server'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 229, in _async_setup_component
result = await task
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/homematic/__init__.py", line 253, in setup
homematic.start()
File "/usr/local/lib/python3.9/site-packages/pyhomematic/connection.py", line 82, in start
self._server.stop()
AttributeError: 'HMConnection' object has no attribute '_server'

Zweiter Eintrag:
Logger: pyhomematic.connection
Source: /usr/local/lib/python3.9/site-packages/pyhomematic/connection.py:80
First occurred: 17:11:07 (1 occurrences)
Last logged: 17:11:07

Failed to start server: 'HMConnection' object has no attribute '_server'

Dritter Eintrag:
Logger: pyhomematic.connection
Source: /usr/local/lib/python3.9/site-packages/pyhomematic/connection.py:61
First occurred: 17:11:07 (1 occurrences)
Last logged: 17:11:07

Failed to create server
Logger: pyhomematic._hm
Source: /usr/local/lib/python3.9/site-packages/pyhomematic/_hm.py:655
First occurred: 17:11:07 (1 occurrences)
Last logged: 17:11:07

Failed connecting to proxy at http://XXX.XXX.XXX.XX:2001

CCuhilli
Beiträge: 28
Registriert: 06.05.2021, 21:42
System: CCU

Re: Homeassistant - aktueller Stand der Integration

Beitrag von CCuhilli » 01.02.2022, 17:16

Den fehler beim group Port habe ich korregiert.

Benutzeravatar
Baxxy
Beiträge: 10847
Registriert: 18.12.2018, 15:45
System: Alternative CCU (auf Basis OCCU)
Hat sich bedankt: 610 Mal
Danksagung erhalten: 2229 Mal

Re: Homeassistant - aktueller Stand der Integration

Beitrag von Baxxy » 01.02.2022, 17:16

Die Interfaces sind doch auch fest vorgegeben, glaube nicht das man da einfach "HMIP" hinschreiben kann.

Code: Alles auswählen

homematic:
  interfaces:
    rf:
      host: 127.0.0.1
      resolvenames: "json"
      username: "Admin"
      password: "secret"
    wired:
      host: 127.0.0.1
      port: 2000
      resolvenames: "json"
      username: "Admin"
      password: "secret"
    ip:
      host: 127.0.0.1
      port: 2010
    groups:
      host: 127.0.0.1
      port: 9292
      resolvenames: "json"
      username: "Admin"
      password: "secret"
      path: /groups
  hosts:
    ccu2:
      host: 127.0.0.1
      port: 2001
      username: "Admin"
      password: "secret"

CCuhilli
Beiträge: 28
Registriert: 06.05.2021, 21:42
System: CCU

Re: Homeassistant - aktueller Stand der Integration

Beitrag von CCuhilli » 01.02.2022, 17:30

Also ich habe den Code wie folgt übernommen.

Code: Alles auswählen

homematic:
  interfaces:
    rf:
      host: IP
      resolvenames: json
      username: XXXX
      password: XXXX
    wired:
      host: IP
      port: 2000
      resolvenames: json
      username: XXXX
      password: XXXX
    ip:
      host: IP
      port: 2010
      username: XXXX
      password: XXXX
    groups:
      host: IP
      port: 9292
      resolvenames: json
      username: XXXX
      password:XXXX
      path: /groups
  hosts:
    ccu3:
      host: IP
      port: 2001
      username: XXXX
      password: XXXX

Ich gehe davon aus das die "" platzhalter sind.
Es kommt folgende Meldung.
Dateianhänge
Log.JPG

Chris Py
Beiträge: 15
Registriert: 24.10.2019, 19:20
System: Alternative CCU (auf Basis OCCU)
Hat sich bedankt: 5 Mal
Danksagung erhalten: 2 Mal

Re: Homeassistant - aktueller Stand der Integration

Beitrag von Chris Py » 01.02.2022, 17:50

Tatsächlich sehe ich das Problem nicht,
kann dir nur meine funktionierende config senden (s.u.)
- nur die IP korrigieren
- nameless ersetzen
- und password1 ersetzten und die Hochkommata lassen !
und muss funktionieren

Ansonsten gibt es weitere Probleme und nicht hier im yaml begründet.
Hinweis : das Passwort sollte auch kein "#" enthalten

Code: Alles auswählen

# yaml entry for Homematic integration
homematic:
  interfaces:
    # raspberrymatic extern interfaces:
    rf4:
      host: 192.168.xxx.yyy
      port: 2001
      resolvenames: json
      username: nameless
      password: 'password1'
    hmip4:
      host: 192.168.xxx.yyy
      port: 2010
      resolvenames: json
      username: nameless
      password: 'password1'
    cuxd4:
      host: 192.168.xxx.yyy
      port: 8701
      resolvenames: json
      username: nameless
      password: 'password1'
    groups4:
      host: 192.168.xxx.yyy
      port: 9292
      resolvenames: json
      username: nameless
      password: 'password1'
      path: /groups
      
# homematic hosts integration
  hosts:
    homematic:
      host: 192.168.xxx.yyy
      username: nameless
      password: 'password1'

# end of Homematic integration
 
Zuletzt geändert von Chris Py am 01.02.2022, 17:54, insgesamt 2-mal geändert.

Antworten

Zurück zu „Home Assistant“