if after I reboot from command line add a file Activity.rules with this content
"rule "ActivityOutsideTSNearby"
when
Item TSiPhone changed to ON
then
sendCommand(AlarmActiveOutside, OFF)
sendCommand(AlarmActiveInside, OFF)
end
rule "ActivityOutsidePRNearby"
when
Item PRiPhone changed to ON
then
sendCommand(AlarmActiveOutside, OFF)
sendCommand(AlarmActiveInside, OFF)
end
rule "ActivityOutsideCheckiPhoneLocation"
when
Item TSiPhoneLocation changed or PRiPhoneLocation changed
then
if ((TSiPhoneLocation.state > 0) && (PRiPhoneLocation.state > 0)) {
if(TSiPhone.state != ON && PRiPhone.state != ON) {
sendCommand(AlarmActiveOutside, ON)
sendCommand(AlarmActiveInside, ON)
}
}
end
rule “ActivityOutsideNotifyAlarmISOn”
when
Item AlarmActiveInside changed to ON
then
sendBroadcastNotification("Alarm on")
end
rule “ActivityOutsideNotifyAlarmISOff”
when
Item AlarmActiveInside changed to OFF
then
sendBroadcastNotification("Alarm off")
end
"
2016-09-04 20:59:14.162 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'Activity.rules’
2016-09-04 20:59:14.349 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'Activity.rules’
2016-09-04 20:59:36.379 [ERROR] [alization.ZWaveNodeInitStageAdvancer] - NODE 5: Node advancer: Retries exceeded at STATIC_VALUES
Then I test and everything is working…
2016-09-04 20:59:40.026 [INFO ] [del.script.PingBluetooth_ts_NOT_home] - 2016-09-04 20:59:40
2016-09-04 21:00:00.030 [INFO ] [e.model.script.PingBluetooth_ts_home] - 2016-09-04 21:00:00
2016-09-04 21:00:20.019 [INFO ] [del.script.PingBluetooth_ts_NOT_home] - 2016-09-04 21:00:20
2016-09-04 21:00:30.031 [INFO ] [del.script.PingBluetooth_pr_NOT_home] - 2016-09-04 21:00:30
2016-09-04 21:01:00.243 [ERROR] [alization.ZWaveNodeInitStageAdvancer] - NODE 5: Node advancer: Retries exceeded at STATIC_VALUES
2016-09-04 21:02:00.021 [INFO ] [e.model.script.PingBluetooth_ts_home] - 2016-09-04 21:02:00
I then from command line add an item file FibaroMotionSensor.items
with this content
"Group MotionSensors “Entre” (Security)
Switch Motion_Sensor_Motion “Motion detected in entre [%s]” (MotionSensors) { channel=“zwave:device:43fabe5f:node3:sensor_binary” }
Number Motion_Sensor_battery “Motion sensor entre battery [%s %%]” (MotionSensors) { channel=“zwave:device:43fabe5f:node3:battery-level” }
Number Motion_Sensor_temp “Entre temperature [%.1f C]” (MotionSensors) { channel=“zwave:device:43fabe5f:node3:sensor_temperature” }
Number Motion_Sensor_lux “Entre lux [%.1f]” (MotionSensors) { channel=“zwave:device:43fabe5f:node3:sensor_luminance” }
"
2016-09-04 21:02:26.457 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'FibaroMotionSensor.items’
2016-09-04 21:02:26.503 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model ‘FibaroMotionSensor.items’
Then I test and it breaks …
2016-09-04 21:02:30.916 [INFO ] [.model.script.PingBluetooth_pr__home] - 2016-09-04 21:02:30
2016-09-04 21:02:37.765 [ERROR] [.script.engine.ScriptExecutionThread] - Rule ‘ActivityOutsideNotifyAlarmISOn’: Script interpreter couldn’t be obtain