I have been struggling with this since yesterday afternoon. Help appreciated.
I am using a Tiva Launchpad to send sensor status (binary - simple on or off of machine) to an RPi using 2 nrf24L01 radios, using mosquitto to bind to openHAB.
I have tested everything up to mosquitto and it works as it should (two terminal window test on pi, get status updates as I should)
Unfortunately, the openHAB portion of this project has me flummoxed. Upon trying to start openHAB, it seems to stick on "Loading Model âhome.rulesâ. When I hit CTRL^C, it says âStopped REST API Stopped Classic UIâ
Iâm having trouble understanding how things are linking up. I get some of it, but Iâm still awash in multiple tutorials that all take a different approach. Any feedback is appreciated. Here are my pieces:
sitemap (taken from here):
Text label=âLaundry Roomâ icon=âfirstfloorâ {
Frame label=âLaundr Room Statusâ
{
Text item=itm_laun_washer_mqtt valuecolor=[<1=âgrayâ,==1=âgreenâ,>1=âredâ] labelcolor=[<1=âgrayâ,==1=âgreenâ,>1=âredâ]
}
}
items:
Group All
Group gGroundFloor
Group GF_Laundry "Laundry Room" <video> (gGroundFloor)
Number itm_laun_washer_mqtt "Washer [MAP(laundry.map):%s]" (ALL) {mqtt="<[mymisquitto:3042:state:default]"}
rules:
rule âWasher Completeâ
when
Item itm_laun_washer_mqtt received update
then
if(itm_laun_washer_mqtt.state == 2)
{
say(âWasher Complete!â)
sendMail("oddlogic@gmail.com", âWasher is finishedâ, âYay! Clean clothes!â)
}
end