-
Notifications
You must be signed in to change notification settings - Fork 131
MQTT interface
Since MisterHouse v4.0 there is support for MQTT.
This is a stub page that needs expansion, for initial info on how to configure this, please see the comments in #488.
- add these lines to my mh.private.ini mqtt_host=192.168.1.2 mqtt_server_port=1883 mqtt_topic=home/#
-
restart mh, get errors Can't locate Net/MQTT/Constants.pm in @INC (you may need to install the Net::MQTT::Constants module) (@INC contains: ./../../local/code ./../code/common /hom
e/mh/mrhouse/mrhouse-hollie/bin/../lib /home/mh/mrhouse/mrhouse-hollie/bin/../lib/site . /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.28.0 /usr/local/sha
re/perl/5.28.0 /usr/lib/x86_64-linux-gnu/perl5/5.28 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.28 /usr/share/perl/5.28 /usr/local/lib/site_perl /usr/l
ib/x86_64-linux-gnu/perl-base) at /home/mh/mrhouse/mrhouse-hollie/bin/../lib/mqtt.pm line 180. at mh line 31. -
Install Net::MQTT (I use debian, so these are the steps that I'm using)
-
wget https://cpan.metacpan.org/authors/id/B/BE/BEANZ/Net-MQTT-1.163170.tar.gz
-
tar -zxvf Net-MQTT-1.163170.tar.gz
-
dh-make-perl Net-MQTT-1.163170/
-
cd Net-MQTT-1.163170
-
debuild -i -us -uc -b
-
sudo dpkg -i ../libnet-mqtt-perl_1.163170-1_all.deb
-
restart mh, get no errors