I’m trying to implement a ThingActions on my binding (freemobilesms).
My rules is:
var actions = getActions("freemobilesms","freemobilesms:account:123456")
rule "Alert John at home"
when
Item Presence changed from OFF to ON
then
logInfo("John presence","Actions: "+actions)
logInfo("John presence","Actions: "+actions.getClass())
logInfo("John presence","Actions: "+actions.getThingHandler())
logInfo("John presence","Actions: "+actions.getThingHandler().getClass())
actions.sendMessage("Action : John is at home!")
end
When running this rules, it appears that I encounter an error message: Rule 'Alert John at home' : null
. With the added logs (previous code) I can estimate that the ThingHandler is null.
What did I do wrong? How to progress? Any tips are welcome.