Just starting with webcore and ST


#1

1) Give a description of the problem
not sure where to start - i have the idea of what a piston is and the concept of if then statements but not sure how to setup

2) What is the expected behavior?
I am trying to have a piston turn lights on triggered by motion and set to a certain level based on status of home, away, night, vacation.
I may need a piston for each room based on my understanding of the device triggers or maybe just a different piston for each status possibly.

Goal was to have an automated lighting system throughout the home since every-room has motion sensors and smartlights eithier hue, lifx, or cree. all are dimmable

any advice is appreciated

3) What is happening/not happening?
nothing yet not sure where to start

**4) Post a Green Snapshot of the piston![image|45x37
not here yet

5) Attach any logs (From ST IDE and by turning logging level to Full)
``


#2

Do by room, it is easier to track down problems when they occur. As far as not knowing where to start, just jump in. Your going to rewrite whatever you create a dozen times as you learn new things and better ways of doing things. Part of the learning process. Have fun ask questions as needed. Lots of people willing to help


#3

I might also suggest starting with the Wiki at the top right if you haven’t already

There is a section here with Example pistons that will do almost anything you can imagine, a great place to start, import a few and have at it
https://community.webcore.co/c/Examples

Come on in, the waters fine

Rick


#4

Ok made my first go at it. It seems to be working as intended. Any suggestions here or continue with the KISS method and build one for each room. I assume I can just restore this into a new piston for each room and name it, and select the devices for each as I go correct?


#5

OK I lied something weird was happening where it was not executing every time properly. I could see in the ST app logs where it was sending the commands but the devices where not responding.
So I modified the piston a bit to try and fix the issue. These fixes had to deal with using only device commands instead of emulated. After these changes everything is working as designed on every event tested so far.

So… Are emulated actions something to stay away from? should I only try using device specific commands for pistons?