OK,have figured out my openhab.cfg file is good.
however when adding …
rule “On System Startup"
when
System started
then
sendMail(“xxxxx@pemail.co.za”, “Test”, “This is the message.”)
end
at the top of my rules file,it breaks the existing rules that worked before and when adding the system startup rule at the bottom of my rules file it does not get triggered.
Can anyone explain why my working rules stop working and why does the system startup rule not get triggered if not at the top of the rules file ?
Below is my original rules that work ,
rule “car presence”
when
Item itm_park_dist_mqtt received update
then
if (itm_park_dist_mqtt.state < 30)
{
sendCommand(itm_park_car_present, 1)
}
if (itm_park_dist_mqtt.state > 35)
{
sendCommand(itm_park_car_present, 0)
}
end