[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead [phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead [phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead [phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead Husdata forum • View topic - MQTT och Home Assistant
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)
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.
Lösningen var väldigt enkel. Det var bara att lägga till username och password som egenskap på objektet för MQTT-klienten. Sedan fungerar det.
En varning dock. Den inbyggda MQTT-servern i Hassio ville inte kännas vid kommunikationen från Husdata-scriptet. Installerar man Mosquitto-addon istället så fungerar det hur bra som helst.
Sedan tror jag att Statlink-programmet inte tolkar alla värden som kommer från min värmepump (Nibe Fighter 360P). Så det kommer nog att krävas lite anpassning.