Hello everyone,
I’m super excited to be joining the OpenHab Community! I’ve been waiting to start creating my OpenHab setup for a few months now. I had to hold off because I wanted to finish another project I’ve been working on. (It was an automatic garden watering system that turns on a water pump based on the value of 3 soil moisture sensors dispersed around my garden).
Problem #1:
My first issue comes from the MQTT binding. After I installed the binding from the Paper UI, no configuration file was created in /etc/openhab2/services. I created one manually and named it “mqtt.cfg” and added
mosquitto.url=tcp://localhost:1883
mosquitto.clientId=openhab
Although the OpenHab log says that it started the MQTT service, it seems that it did not use the configuration file I created since it thinks it is called “broker” when in fact it is not.
18:15:30.658 [INFO ] [penhab.io.transport.mqtt.MqttService] - MQTT Service initialization completed.
18:15:30.661 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection ‘’
This seems to also be confirmed in the Mosquitto log file (I think the one new client connected was me, not OpenHab)
1492036018: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1492036726: New connection from 127.0.0.1 on port 1883.
1492036726: New client connected from 127.0.0.1 as root.1492036725290 (c1, k60).
1492037819: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
1492038480: mosquitto version 1.3.4 terminating
1492038480: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
It seems like I incorrectly installed the binding. Any suggestions on how I should proceed?
Problem #2 (more of a question):
I have started to design a custom wall plate I will use to control items on the network. I am using a piece of clear plexiglass that is cut to fit into the inside of a standard wall plate cover. I then used a ring-shaped sticker I cut with a compass to stick on the back of the plexiglass so that I could spray paint the back white, then peel off the sticker and have a clear ring still exposed on the wall cover. Then on the inner part of the ring that is spray painted I have some copper foil with conductive adhesive that is connected to a capacitive touch breakout which is in turn connected to an ESP8266 (I’m using a NodeMCU board). The reason I wanted there to a ring was because I want there to be an LED that illuminates the button if the item it is controlling is on or off (whether it be a light, outlet, or whatever). Right now I just have a Phillips Hue bulb for testing purposes. The ESP will send/receive status updates with MQTT.
My problem is that I do not understand how I will have the HabPanel AND the wall plate switch to control the on/off status of the bulb. I am also confused as to how I will have the LED turn on/off according to the state of the bulb. I want to be able to turn a Hue on from the wall switch where the LED in the switch also turns on, and turn off the Hue from my phone and have the LED in the switch turn off too. Could someone please clarify???
Looking forward to more fun with OpenHab! Thanks!