Presence sensor question (Newbie Question)

variables
presence

#1

1) Give a description of the problem

Hello all, new to 'everything WebCore" and love it. My experience with pistons is based on an old IRC program which was called mIRC. I taught myself how to “write” scripts by studying others works and figuring out what did what. With that said, I am approaching WebCore in the same fashion. My first question is: can I have multiple scripts/pistons that address the same condition? For instance, I have one piston that addresses temperature control based on wether or not someone is home. I have a second that deals with controlling exterior lights and setting Away/Home mode as well as Texting me when someone comes and goes so I can see if my pistons are functioning the way I designed them in my mind. Is this ok to have 2 separate pistons actuated by the same condition, Presence changing. Also, is there a system variable that carries the names of the current presence sensors status when the piston is actuated?


#2

Hi there and welcome…

The problems started in my house not when I checked the condition by multiple pistons but instead,
using the same device AS A TRIGGER.

ie:
My locks are locked by a piston if left unlocked more then 3 minutes.
piston #1 makes sure that lock is locked.
piston #2 checks the status of the lock (locked, unlocked, unkown)

this works.

But when did something like following, hell broke loose:)))
piston #1 #2 #3
All uses the same motion sensor to do 3 different things…

it really depends on what you are trying to do.

Another working example is,
open/close sensor on my fish tank lid.

piston #1 deals with if the fish are fed by checking that sensor.
piston # 2 checks the temp of that piston to see if AC is needed or not.

you’ll see some Pros around here that they really now what’s going on with webcore “Behind the scenes” they can answer much better.

so anyone?


#3

I would suggest you do a search in YouTube for Webcore and Pistons. Here you will see some examples on how Pistons can be written. Then do some experimentation on your own.

This form, the Webcore Wiki, Facebook Webcore Users and webCoRE (official) facebook goup will also be helpful to you.