Homeassistant MQTT spørsmål

Kult, endelig :slight_smile: Ingen enheter nei - Du er vist ikke den første om har det problemet.
De skulle bare dukket opp ja som dette…

bilde

Hvilken type enheter er 10 og 11? Fibareo wall plugs burde bare fungere.

mqtt discovery er slått på i HA ?

mqtt:
  discovery: true

Hehe! Jeg er god på å finne feil, på godt og vondt :sweat_smile:
Blomsterlys er lys, og oppvaskmaskin står som appliance i FH.
Hvis du ser på bildet i post 14, ser du configuration.yaml, der ligger discovery: true. Det skulle vel være riktig?

Hmm… Om du har en Fibaro dommer 2 satt opp som belysning i futurehome så kan du prøve å begrense enheter med selected_devices som akkurat er lagt til i addon konfigen. Legg inn nummeret for address enheten har i futurehome. Og så send meg loggen.

Addonen må oppgraderes først.

God kveld!
Nå er jeg på v0.1.29. Har ingen dimmere i systemet enda. Skal den ta med alle om det ikke angis noe på selected devices?
Her er logg uten å ha endret noe i config eller lagt inn tall på selected devices. Ingen enheter dukket opp i HA. Kan det være jeg ser på feil sted i HA?

Debug :  False
Selected devices 
MQTT client: Connected successfull
Check for HA restart: Current uptime 4039 minutes
Asking FIMP to expose all devices...
Received list of devices from FIMP. FIMP reported 50 devices
Devices without rooms are ignored
Creating: 10 Oppvaskmaskin
- Functionality: appliance
Creating: 11 Blomsterlys
- Functionality: lighting
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.8/site-packages/paho/mqtt/client.py", line 3452, in _thread_main
    self.loop_forever(retry_first_connection=True)
  File "/usr/lib/python3.8/site-packages/paho/mqtt/client.py", line 1779, in loop_forever
    rc = self.loop(timeout, max_packets)
  File "/usr/lib/python3.8/site-packages/paho/mqtt/client.py", line 1181, in loop
    rc = self.loop_read(max_packets)
  File "/usr/lib/python3.8/site-packages/paho/mqtt/client.py", line 1572, in loop_read
    rc = self._packet_read()
  File "/usr/lib/python3.8/site-packages/paho/mqtt/client.py", line 2310, in _packet_read
    rc = self._packet_handle()
  File "/usr/lib/python3.8/site-packages/paho/mqtt/client.py", line 2936, in _packet_handle
    return self._handle_publish()
  File "/usr/lib/python3.8/site-packages/paho/mqtt/client.py", line 3216, in _handle_publish
    self._handle_on_message(message)
  File "/usr/lib/python3.8/site-packages/paho/mqtt/client.py", line 3444, in _handle_on_message
    self.on_message(self, self._userdata, message)
  File "/app/pyfimptoha/client.py", line 133, in on_message
    self.create_components(data["val"]["param"]["device"])
  File "/app/pyfimptoha/client.py", line 275, in create_components
    light = Light(service_name, service, device)
  File "/app/pyfimptoha/light.py", line 49, in __init__
    self._brightness_value = self._device["param"]["dimValue"]
KeyError: 'dimValue'
Publishing init states
- lights
- switches
- sensors
Sleeping forever...
Check for HA restart: Current uptime 4040 minutes

Nå forsøkte jeg å skrive inn 12 på selected devices, da kom den enheten inn med én gang, kategorisert under MQTT.
Da kommer denne loggen:

Debug :  False
Selected devices ['12']
MQTT client: Connected successfull
Check for HA restart: Current uptime 47 minutes
Asking FIMP to expose all devices...
Received list of devices from FIMP. FIMP reported 50 devices
Devices without rooms are ignored
Skipping: 10 Oppvaskmaskin
Skipping: 11 Blomsterlys
Creating: 12 Kaffetrakter
- Functionality: appliance
Skipping: 13 Bevegelse trapp
Skipping: 15 Bevegelse vaskerom
Skipping: 16 Bakkespot
Skipping: ab926026-1f9a-4152-9e84-41c5fcb2316d Tibber Pulse
Skipping: l1 E nattbord
Skipping: l2 Thomas nattbord
Skipping: l3 Trapp
Skipping: s2 Seng bryter
Skipping: 0200001e1e74 Netatmo Ute
Skipping: 05000002aae4 Netatmo Regn
Skipping: 060000023e66 Netatmo Vind
Skipping: 03000006085a Netatmo Stue
Skipping: 70ee501e1e32 Netatmo Soverom
Skipping: 25 Vifteovn
Skipping: 25 Vaskerom romtemp
Skipping: 32 Uthus
Skipping: 33 Hønehus
Skipping: 34 Vindfang
Skipping: 34 Trapp inngang
Skipping: 38 VVB Relé
Skipping: 38 VVB tank
Skipping: 38 VVB utløp
Skipping: 38 VVB vannsensor
Skipping: 45 Varmepumpe
Publishing init states
- lights
- switches
- sensors
Sleeping forever...
Check for HA restart: Current uptime 48 minutes

Nå begynner det å vise seg litt gjentakende feil her. Det går bra helt frem til device 11, som er Fibaro wall plug satt opp som lighting, den ser ut til å kræsje importen. Jeg trodde den bare ville hoppe over den, siden den ikke er støttet, men tar jeg med den, så kommer feilmeldingen(e):

Debug :  False
Selected devices ['11', '13']
MQTT client: Connected successfull
Check for HA restart: Current uptime 57 minutes
Asking FIMP to expose all devices...
Received list of devices from FIMP. FIMP reported 50 devices
Devices without rooms are ignored
Skipping: 10 Oppvaskmaskin
Creating: 11 Blomsterlys
- Functionality: lighting
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.8/site-packages/paho/mqtt/client.py", line 3452, in _thread_main
    self.loop_forever(retry_first_connection=True)
  File "/usr/lib/python3.8/site-packages/paho/mqtt/client.py", line 1779, in loop_forever
    rc = self.loop(timeout, max_packets)
  File "/usr/lib/python3.8/site-packages/paho/mqtt/client.py", line 1181, in loop
    rc = self.loop_read(max_packets)
  File "/usr/lib/python3.8/site-packages/paho/mqtt/client.py", line 1572, in loop_read
    rc = self._packet_read()
  File "/usr/lib/python3.8/site-packages/paho/mqtt/client.py", line 2310, in _packet_read
    rc = self._packet_handle()
  File "/usr/lib/python3.8/site-packages/paho/mqtt/client.py", line 2936, in _packet_handle
    return self._handle_publish()
  File "/usr/lib/python3.8/site-packages/paho/mqtt/client.py", line 3216, in _handle_publish
    self._handle_on_message(message)
  File "/usr/lib/python3.8/site-packages/paho/mqtt/client.py", line 3444, in _handle_on_message
    self.on_message(self, self._userdata, message)
  File "/app/pyfimptoha/client.py", line 133, in on_message
    self.create_components(data["val"]["param"]["device"])
  File "/app/pyfimptoha/client.py", line 275, in create_components
    light = Light(service_name, service, device)
  File "/app/pyfimptoha/light.py", line 49, in __init__
    self._brightness_value = self._device["param"]["dimValue"]
KeyError: 'dimValue'
Publishing init states
- lights
- switches
- sensors
Sleeping forever...
Check for HA restart: Current uptime 58 minutes