Hi sorry for my bad english.
Simple program for door sensor with mqtt broker and notification with openhab cloud.
Item file
// Items file
//Security items
Switch SecuritySystem "SecuritySystem"
Contact DoorSensor "Door Sensor [%s]" <door> {mqtt="<[broker:Home/Security/Sensor1:state:default]"}
Mqtt it workin i view change open/closed.
Rules file
//rules file
rule "Door sensor"
when
item DoorSensor received update OPEN
then
if(SecuritySystem.state == ON)
{
SendBroadcastNotification("Door is opening!")
}
in log file i have warn
[WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model 'xxxx.rules' has error, therefore ignoring it : [4,3]: no viable alternative at input 'item'
Where I’m wrong, syntax or something else. Please help