[DEPRECATED Thread: visit community.webcore.co for assistance] webCoRE - Piston Design Help (ask your fellow members for assistance)

Need a little help with the push message portion (bottom) of this piston. When I receive the push it looks like this: “The Kitchen has changed to mode: Kitchenidle, fan: Kitchenon…”

what I would like it to say is "The Kitchen has changed to mode: idle, fan: on…

I use this on a stair gate so my daughter doesn’t fall down the stairs. I have used it for about a week and it has worked great. I get a text when it opens and then another when it closes.

1 Like

Here is my example for when thermostat changes

This is not mine but I can’t remember where I found it. So credit to whoever wrote this. But it does a beautiful job of the messaging and the piston states.

I would LOVE it if I could do something similar for just a doors open/close piston with the pistonState and the whole nine yards.

Has anyone had issues with using the Samsung Radiant 360 R1 speakers with WebCore? I had issues with CoRE as well but if I used ‘speak text and resume’ that it typically worked but with WebCoRE it never works. Anyone have any suggestions?

Thanks!

Help! Been searching through countless threads to try and find the answer with no joy :disappointed:
Anyone help on how to set a variable to list devices that are present. So I can have a push sent listing who is present when anyone arrives or leaves. Tar!

@bangali, @c1arkbar, and @lflorack - I think you had come posts on capture/restore. I’m at wit’s end trying to figure out why this Hue light/door contact alert piston isn’t working. When a door opens, the Hues’ current state is captured and after a two second wait, all turn red. When the door closes, they’re supposed to return to their previous state. Here’s what happens:

If the lights were on when the door opened, the Hue blooms will return to their current light level/color (LAN Hue Bloom DTH), but the Hue irises and Lightstrips will not, staying lit and red (LAN Hue Extended Color DTH)

If the lights were off when the door opened, the Hue blooms turn off, come back on red for a few seconds, then go off. The Irises and Lightstrips remain on and red.

The DTHs appear to be stock. I tried another DTH (LGK Hue bulb) but that didn’t even talk to my bulbs. Any help appreciated to figure this out!

Hi, any advice on detecting the hub power mode. I’d like to know when it loses power. I’m trying the following …

I wanted to execute on change of power source but it does not seem to detect and always says it is on battery power.

Thanks

you need to create a local variable for any/all you want to be part of presence variable check, example: varFamilyPresence, then when building your IF statement, you can toggle the gear at the bottom and tell it to match any devices that meet the check and place ONLY those into the local variable.

1 Like

like so?

1 Like

You got it! then you should be able to send a push with {here} to list out those who are present.

thanks @bigverm23 not OP, posted that as an example for @Baz2473 to use. :slight_smile:

thank you.

1 Like

this one confuses me often:

motion sensor motion was active for less than x time

should that be read and will be evaluated as?

motion sensor motion was active at least once in less than x time

or is there another way to check that a motion sensor was active at least once in the last x time?

@bigverm23 @bangali Thank You Thank You Thank You!
Works just like I wanted. You guys are saviours. :+1:t3::grinning:

Okay, finally got another try at this. Here’s my piston. With this, once the minute count down ends and with the switch 5 staying on an motion sensor 2 still active switch 6 turns on then immediately off and the minute countdown is restarted. So, the ten minute wait is not getting triggered.

@Nezmo one last try … if this does not work we will both ask someone else from the community to help :slight_smile:

Getting closer. With that the one minute wait does not restart but the ten minute wait kicks in immediately after ‘white bulb 9’ turns on when I want it to start ten minutes when movement has stopped or ‘RGB Bulb 1’ is turned off. And if there’s new movement ‘white bulb 9’ turns off so the loop is ending. At least we seem to dropping to the loop now. I’ll play with the statement at line 35 some.

at least we are headed in the right direction. try turning on never cancel tasks for line 32.

also, after changing piston wait at least 10 mins to test the piston. i think the condition was not inactive for at least 10 minutes does not seem to work till the first 10 mins of the piston runtime has expired.

1 Like

could someone please tell me how to calculate difference between two time instances? I would then like to represent them in Hours and Minutes.

For example:

time_one = {now}
time_two = could be time after an action took place ‘x’ minutes later

diff_time = 00 Hours XX minutes

Define a datetime variable called since and set it to what you need, when you need. Then display like this:

Use

formatDuration($now - since, true, ‘m’)
1 Like