fbacker / broadlink-mqtt-bridge

Bridge Broadlink RM Devices with MQTT and API for e.g. OpenHAB
41 stars 14 forks source link

Only logger run (3001) #68

Open AdirOpenHab opened 2 years ago

AdirOpenHab commented 2 years ago

Hi bro, thank you for your work, I've been worked with your git for years! thanks first. I atm have 2.5 openhab (stable) on RPI 4 . I've installed on clean 2.5 image the git, all works fine.. I've installed Mosqitto on OH. I've added MQTT Broker, And MQTT Generic with the MQTT as Bridge. (Both online status) Didn't really touched the settings.

And the main problem it's not connect me to the GUI . Only to the logger, in the Logger (port 3001) it's telling me this:

2021-09-02 21:13:35 [error]: Missing commands { "path": "", "type": "folder", "text": "commands", "time": "2021-09-02T20:26:53.084Z", "children": [], "id": "d41d8cd98f00b204e9800998ecf8427e" } 2021-09-02 21:13:36 [info]: Device found model: Broadlink RM Mini, id: 42f7c874d241, ip: 10.0.0.3 2021-09-02 21:14:00 [info]: Broadlink Discovery completed. Found 1 devices.

Apprciat your help thank you so much for everything you do!!!!

panegius commented 2 years ago

I had a similar problem, web server on port 3000 was only responding to host 127.0.0.1, so it was not reachable from the rest of the local network then, in case of access from another PC, the connection was denied. I changed the line 28 in file web.js from: this.host = isDocker ()? '0.0.0.0': '127.0.0.1'; to: this.host = '0.0.0.0'; docker detection probably wasn't working properly, at least in my setup