I am using Bobrak’s Samsung Smartthings Binding (org.openhab.binding.smartthings)
Have a Bosch motion detector. Event log shows the following ’ Smartthings updated State for channel: smartthings:motionSensor:Home:Sensor1:motion to inactive’
But when I try to trigger a rule based on the channel event it never triggers. Not sure how to trigger a rule as seen per channel update listed above. I have tried the following without succes. What am I a missing ?
Here’s a snapshot of the log
2018-11-03 13:44:31.675 [INFO ] [ings.handler.SmartthingsThingHandler] - Smartthings updated State for channel: smartthings:motionSensor:Home:Sensor1:motion to active
2018-11-03 13:44:39.772 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler SmartthingsThingHandler of thing smartthings:motionSensor:Home:Sensor1 tried updating channel motion although the handler was already disposed.
2018-11-03 13:44:39.777 [INFO ] [ings.handler.SmartthingsThingHandler] - Smartthings updated State for channel: smartthings:motionSensor:Home:Sensor1:motion to inactive
import org.openhab.core.library.types
import org.openhab.core.persistence
import org.openhab.model.script.actions
import org.java.math
import org.joda.datetime.DateTime
// https://www.openhab.org/addons/bindings/astro/#full-example
val String logfile = "TriggerRules"
rule "MotionRule"
when
Channel "smartthings:motionSensor:Home:motion" triggered active
or
//Channel "smartthings:motionSensor:Home:#motion" triggered ACTIVE
or
//Channel "smartthings:motionSensor:Home:#motion" triggered START
or
//Channel "smartthings:motionSensor:Home:#sensor" triggered START
or
Channel "smartthings:motionSensor:Home:#Motion_Sensor" triggered ACTIVE
or
Channel "smartthings:motionSensor:Home:#Motion_Sensor" triggered start
or
Channel "smartthings:motionSensor:a0783373:Motion_Sensor" triggered start
or
Channel "smartthings:motionSensor:a0783373:Motion_Sensor" triggered active
or
Channel "smartthings:motionSensor:a0783373:Motion_Sensor#motion" triggered active
or
Channel "smartthings:motionSensor:Home:Sensor1:Motion_Sensor#motion" triggered active
or
Channel "smartthings:motionSensor:Home:Sensor1#Motion_Sensor" triggered active
or
Channel "smartthings:motionSensor:a0783373:Motion_Sensor#motion" triggered START
//#Channel "smartthings:motionSensor:Home:Sensor1" triggered START
//#Channel "smartthings:motionSensor:Home" triggered START
//#Channel "smartthings:motionSensor:Home:SENSOR1" triggered ACTIVE
//#Channel "smartthings:motionSensor:Home:Sensor1" triggered ACTIVE
//#Channel "smartthings:motionSensor:Home:Sensor1#state" triggered START
//#Channel "smartthings:motionSensor:Home:Sensor1#state" triggered ACTIVE
//#Channel "smartthings:motionSensor:Home:Sensor1#state" triggered
//#Channel "smartthings:motionSensor:Home:Sensor1:motion" triggered
//#Channel "smartthings:motionSensor:Home:Sensor2:motion" triggered
then
logInfo(logfile, "MotionRule triggerd---------------------- ")
Plus_TTS.sendCommand("Boooo")
sendCommand(OfficeLight5_Toggle, OFF)
end