dale3h / hue-mqtt-bridge

MQTT bridge for Philips Hue Dimmer and Hue Tap
MIT License
51 stars 6 forks source link

No MQTT topics #10

Closed dannuttall closed 7 years ago

dannuttall commented 7 years ago

Hi, I've been using this on my laptop running ubuntu 16.10 and it's working great. Can't fault it! However, I've decided it's time to move to a RP3.

Having set it all up the process runs fine when I run the command: ./bin/hue-mqtt-bridge

It also runs fine when I run the command: pm2 start index.js --name hue-mqtt-bridge

When I then listen for the topics using: mosquitto_sub -h localhost -p 1883 -u pi -P raspberry -v -t '#' nothing gets returned. I set it up exactly the same way as on my laptop so I'm a bit stumped. I've double checked the config.json settings - they also use "pi/raspberry" log in details and the hue username is definitely the same as in phue.conf

Is there any way to find out what's going wrong?

dannuttall commented 7 years ago

Sorry not an issue - this happened due to node.js being out of date or something. Took me ages to work it out! I knew MQTT was working fine as mosquitto was picking up on my owntracks data, so I guessed it was due to node, even though everything seemed to keep on installing properly. I followed these instructions to get the appropriate version installed. https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=130217

After that it worked.