I’ve been playing with a quirky tripper to see if I can use it for a hardwired smoke/co system with SM120C and C0120C. I’m currently only working with the tripper device but I’ve run into a stag on a change state of Alarm to clear when both Smoke & Carbon Monoxide are clear. I’ve re-coded the tamper sensor to smoke and the contact sensor to co. Everything appears to be working as expected minus the change state if both are clear. I’ve thought about a boelean varr for each state but wondering if there is a more elegant way to get the job done.
I’m hoping my issue is basically syntax related because my coding is rusty and groovy is new to me. In the scenario above, I flipped the switch to cause “carbon-monoxide” to go “clear” but would like “alarm” to hold in “alarm” until “smoke” also goes clear. Is below possible?
carbon-monoxide goes clear
check if smoke is currently set to clear then set alarm to clear
smoke goes clear
check if carbon-monoxide is currently set to clear then set alarm to clear