DSC Alarm & Nest

I’m trying to configure my Nest to set away when one of my doors is opened, and to set home when one of the doors is closed. Ultimately I’m going to put a timer on it so if the door is open for let’s say 2 minutes set away, but for testing purposes I want it to be instant.

I’m not seeing my loginfo in the logs stating “Door Opened”, but I do see DSC events for status changes for ZONE8_GENERAL_STATUS.

rule "Patio Opened"
when
Item ZONE8_GENERAL_STATUS changed from CLOSED to OPEN
then
logInfo(“rules”, “Door Opened”)
if (DSCAlarmKeypads.members.filter(s|s.state==OPEN).size == 1) {
Nest_away.sendCommand(“away”)
}
end

Careful with case sensitive names

yea, apologize I was lazy… here’s the log

[.p.rrd4j.internal.RRD4jService] - Stored ‘ZONE8_GENERAL_STATUS’ with state ‘OPEN’ in rrd4j database (again)
[.p.rrd4j.internal.RRD4jService] - Stored ‘ZONE8_GENERAL_STATUS’ with state ‘CLOSED’ in rrd4j database (again)

I found out that my use of sendCommnd was not correct, here’s my updated rule.

rule "Patio Opened"
when
Item ZONE8_GENERAL_STATUS changed from CLOSED to OPEN
then
logInfo(“rules”, “opened”)
if (DSCAlarmKeypads.members.filter(s|s.state==OPEN).size == 1) {
sendCommand(Nest_away, “away”)
}
end