MQTT och Home Assistant

Discuss Raspberry Pi / Linux development using the H1-Interface

Moderator: Peter

MQTT och Home Assistant

Postby Roger » Mon May 01, 2017 14:03

Hej

Intressant med stödet för Home Assistant och MQTT. Var hittar jag de extra Pythonprogrammet för detta?

mqtt.py
get-pip.py

Nvh
Roger
Roger
 
Posts: 2
Joined: Mon May 01, 2017 13:39

Re: MQTT och Home Assistant

Postby calleman » Thu Jan 18, 2018 15:28

Hej,

Jag undrar detta också? Har jag missat något väsentligt? Kör HA hemma och vill gärna använda några temp värden där.

Mvh,
Calle
calleman
 
Posts: 1
Joined: Wed Jan 03, 2018 10:52

Re: MQTT och Home Assistant

Postby Pekka » Tue Feb 20, 2018 10:27

Jag mailade Peter på husdata och fick filerna därifrån. :-)

Funkar fint att ta in datan via MQTT till HA - jag satte dock en "egen" RPi som kör Home Assistant (Med mosquitto som broker, jag hade problem att få den inbyggda i HA att fungera med vissa andra sensorer)
Pekka
 
Posts: 2
Joined: Sun Jan 28, 2018 10:32

Re: MQTT och Home Assistant

Postby germarsh » Tue Aug 28, 2018 15:13

Is the interface still working after latest Home Assistant Update (0.76.2)?

Statlink is still sending the MQTT broker but I do not think Home Assistant can now access the data.

I think that Statlink is not publishing the data to the MQTT broker. Using MQTT.fx client from Windows I managed to update one of the heatpump values. There are frequent errors in the Statlink output...
Code: Select all
XINFO:21:33:58 H1 RX: XR0002FDF7
INFO:21:33:59 Heat carrier Return = 50.9c
INFO:21:33:59 Heat carrier Forwrd = 58.6c
[Errno 32] Broken pipe
XINFO:21:33:59 Mqtt lost connection with broker
INFO:21:33:59 Brine in/Evaporator = 16.8c
INFO:21:33:59 Brine out/Condenser = 13.6c
INFO:21:34:00 Outdoor = 13.0c
INFO:21:34:00 Indoor = -48.3c
INFO:21:34:00 Stat written to var!  7  456
INFO:21:34:00 Abortin online comm.. communications is disabled
XINFO:21:34:00 Mqtt Reconnecting
germarsh
 
Posts: 2
Joined: Mon Nov 13, 2017 21:55

Re: MQTT och Home Assistant

Postby germarsh » Wed Sep 05, 2018 09:35

I have sorted it out myself. In order to simplify the situation, I placed some rationalised MQTT code directly into STATLINK so I did not have to include the additional module.

The connect to the broker was failing but not reporting the exception. The code now requires specific username and password to be included.
germarsh
 
Posts: 2
Joined: Mon Nov 13, 2017 21:55


Return to H1 and Raspberry Pi

Who is online

Users browsing this forum: No registered users and 0 guests

cron