Skip to content
biffhero edited this page Nov 14, 2018 · 6 revisions

Since MisterHouse v4.0 there is support for MQTT.

Configuration

This is a stub page that needs expansion, for initial info on how to configure this, please see the comments in #488.

Notes from my install.

  1. add these lines to my mh.private.ini mqtt_host=192.168.1.2 mqtt_server_port=1883 mqtt_topic=home/#

mqtt_user=user # (optional)

mqtt_password=password # (optional)

mqtt_keepalive=120 # (optional)

  1. 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.

  2. Install Net::MQTT (I use debian, so these are the steps that I'm using)

  3. wget https://cpan.metacpan.org/authors/id/B/BE/BEANZ/Net-MQTT-1.163170.tar.gz

  4. tar -zxvf Net-MQTT-1.163170.tar.gz

  5. dh-make-perl Net-MQTT-1.163170/

  6. cd Net-MQTT-1.163170

  7. debuild -i -us -uc -b

  8. sudo dpkg -i ../libnet-mqtt-perl_1.163170-1_all.deb

  9. restart mh, get no errors

Clone this wiki locally