[DEPRECATED THREAD: visit community.webcore.co for assistance] WebCoRE - Example Pistons

Sure. I will keep an eye. Happy Moving.

1 Like

@sumya thats the first open door icon i have seen … where did you find it?

thanks.

Its from @anon36505037’s piston

thank you, hadnt seen it before. funny when i import that piston the door looks very different … maybe an ios vs android thing.

ahh, its an IE thing. yeah, all i saw was the closed doors

I followed the awesome advice here to get instantaneous syncing of my Harmony activity virtual switches in ST as Harmony starts activities:

But even though the switches themselves updated, the “Harmony Hub” device itself did not update its currentActivity until either the next refresh cycle or a manual refresh. I wrote this simple piston to force it to stay in sync with the activity start/end.

I finally got back to playing with this. Never got a chance to make it work before vacation…

I can’t find anything on randomtoggle. Does it always turn a light back off when it’s done or it just “toggles” it back to the state it was in before?

I’m basically trying to turn one light +/- 30-40 minutes of sunset and back off +/- 30-40 minutes of 10:00pm. I’m sure it should be simple to do by modifying your piston but I can’t make it work. :confused:

@scoob8000 Random Toggle is a dumbed down version of Toggle - let me explain: it only works sometimes. :smiley: :smiley: :smiley:

Which is pretty much saying that Random Toggle works erratically - only when it feels like it.

Jokes aside, Random Toggle toggles the light (it does not always turn it on or always turn it off, it toggles it). There’s a random decision to really execute it or not, but when elected to execute, the task will reverse the current switch state of the light.

1 Like

Gotcha. So in the example @anon36505037 provided of using it every xx minutes between sunset and 10:00pm it’s possible that the lights could be left on all night. The piston should end with a turn off for each device. Am I thinking about that correctly?

1 Like

Correct, that is a possibility

Sumya,

Here’s my Motion Sensor Tile Piston below. I disagree that it’s not useful, the motion sensors I use will show as active for a few minutes (configurable on DTH) so it does show relevant data. Thanks to bangali for the Presence Sensor, I took that piston and used parts of it for this piston: [DEPRECATED THREAD: visit community.webcore.co for assistance] WebCoRE - Example Pistons

I’ll look to share the others later tonight if anyone is interested.

Something to note, the tiles do not show until the Motion Sensor is used (Motion) for first time after piston is created. You have to put the Motion Sensor names under the MotionSensorNames Variable on top and name as you like for each one like it’s formatted now. This is helpful if you have longer names so they fit the title of the Tile without resizing to fix (shrinking the text size).

image

This piston will create gauge tiles and piston state for a HEM.

The piston shows:

  • Power
  • Energy
  • Current (calculated)
  • Cost (calculated)

You can set your cost per kWh in the variable. Cost is a simple calculation assuming a flat rate per kWh. I believe there’s another example in here that calculates based on time of day.

Make sure to put the piston in a category that shows tiles to get the gauges:

I prefer the medium-sized gauges but note with it set to medium you won’t get the piston state display.

7 Likes

Looking for a piston with Blue Iris integration with motion detection.

Yeah you will… wanna bet?! ;))

1 Like

Thanks @bfara83. I will give it a try.

@ahndee love your battery level piston, but how would I make this piston show what device has the lowest battery level? I’ve been using it for some time now and I like the low battery warning message but in the dashboard it says all battery levels are fine (lowest is 67%) is there a way to make it say for example" (lowest is 67% on the Back Door) " would really appreciate any advice on how to do that one.
Cheers. :grinning:

I love this. What HEM are you using?

I have the Aeon Labs earlier gen model …

https://www.amazon.com/Aeon-Labs-AEDSB09104ZWUS-Aeotec-Monitor/dp/B00DIBSKFU

There is a later, more featured (and more expensive) model.

Many threads in the forum covering the model I use and the custom handler for it.

If you open the piston code, there is a variable at the top which lists the battery level for each device:

53

I think you may have misunderstood what I meant. Is there a way to modify it so the string that is read out on the dashboard can state which device is the one with the lowest battery level? Rather than having to open the piston and search through loads of devices to try and see which one is the one with the lowest battery level?