Step by Step Guide

Hi all
I am very new to openhab2. I want to control relay board connected to nodemcu using openhab. I tried many tutorials but none of them are working for me. I have openhabian installed in raspberry zero. Nodemcu and raspberry is connected in same network. Detailed step by step procedure is appreciable.

Does openHAB run?

yes its running smoothly :slight_smile:


What have you done up to now?

All software part is set now… can i check working of button without hardware??

You can use a MQTT-Tool to set the MQTT-value
or RestUI or rules to set the item.state

this is where i m confused. what rules to set ??

https://docs.openhab.org/configuration/rules-dsl.html

when
    System started
then
    yourItem.postUpdate(your-state)
end

unable to start mosquitto
[20:13:11] openhabian@openHABianPi:~$ sudo mosquitto
Segmentation fault
[20:15:37] openhabian@openHABianPi:~$
:frowning:

[20:23:23] openhabian@openHABianPi:~$ sudo /etc/init.d/mosquitto start
[ ok ] Starting mosquitto (via systemctl): mosquitto.service.
[20:23:28] openhabian@openHABianPi:~$