It helped some - you no longer see the
It helped some - you no longer see the
Thanks - I’ll try
| instead of
\\| and see what it does tonight (thanks for the edit I was a little confused by your original suggestion).
Back when ActionTiles was SmartTiles I created an app that let me use virtual switches to control the FanMode and TheromStatMode. This in turn was helpful when Alexa came around and I could set individual mode states.
I have been going through my IDE to find apps that I can convert to webCoRE. My Thermo-App was the current one I converted over.
I am still deciding to keep the Setpoints separate or eventually merge them with my Thermo-webCoRE piston. Or even having full control in one piston and create another one to show PistonState of the Thermostat itself, but for now, this is my Thermostat Modes controller.
I still like buttons for individual commands and this keeps them in sync.
Also if someone has a better method, I would appreciate a piston code share.
Ok - got it to work using
| didn’t work and got the same result as
I updated the piston in the original posting - either adjust the
replace() to match what is in that screen shot or import again. The updated piston now correctly removes all formatting from the push notification.
This was a helpful start.
I modified the piston to turn a bunch or lights on and off, but I’m planning to use it for a group of locks and rollup doors.
Does ST time out? Because one of my devices is very stubborn and it stays on? any ideas on dealing with that issue? The problem is that you can’t hit the all lights on/off button again without turning all on and then hopefully off.
The second part of piston, monitor’s the individual lights for status? Are you away of any DTH types that separates out the switch status from the indicator status?
Without digging into the piston code there is a solution to stubborn lights. You can use a for or while loop.
In your action for turning lights off add the loop. Then a turn off command with a wait. The wait is very important.
@c1arkbar does the wait go after the turn off command? Is 5 seconds enough of a wait?
Wait placement doesn’t matter. Just so long as it is in there. And yes 5 seconds is good
I have this simple piston running & want to add wait 10 min. & turn off. For the life of me I can not figure it out any help
below the turn on add a wait then turn off
Hi there. Was just wondering if it is possible to capture power usage and push that information to fuel stream to show a daily graph of usage. If it is at all possible, has anybody done something like this?
Not sure if it’s a bug or just something i’m doing wrongly. I’m getting an error when setting up my LIFX bulb
" Set LIFX lights matching Bulb1 to color ‘Antique White’ level 100% in 30 minutes"
The error i’m seeing from the logs are:-
Error executing virtual command .lifxState: (41ms) groovy.lang.MissingMethodException: No signature of method: static physicalgraph.developer.ColorUtilities.findByName() is applicable for argument types: (java.lang.Integer) values:  Possible solutions: findByName(java.lang.String)
PARAMS ARE [d073d513f720, null, Antique White, 100, null, 1800000]
Please reserve this thread for working examples to share with others. Not pistons that need help. If you need help, please go to the assistance thread.
Thanks for this. I used it as my introduction in to using variables and experimenting with the dashboard.
I do have a question … I can’t seem to set a THEN like you have. I am doing a WITH/DO which is working but I’m curious how you managed to set your THEN statement.
I just used the basic if-then statement, nothing special.
One of my longer pistons.
I live in PHX. we have tiered electric.
12-7 M-F .24/kWh All other times, including holidays .06/kWh
This piston is desiged to maximize comfort vs. electric cost based on my evaluations for the past year of what effectively works in this house.
I have it set to pull day’s forecast high temp. The hotter it’s forecast to be, the earlier my AC units kick on to flood the house with cold air before peak electric pricing.
- This piston checks if it’s a peak pricing day (M-F) or not (S,S, holidays).
- It looks to see if anyone is physically present.
- It sets precool time based on forecast high temp.
- It sets precooling routine if home at precool time. or to “away” settings if not home
- It sets peak pricing settings at noon or not based on peak day/not
- cools house after peak if people are home, doesn’t if away
- Sets cooling when my wife goes to bed.
- sets cooling lower when I go to bed (always after her).
- sets cooling temps if everyone was away, and anyone came home based on peak or off peak pricing.
- resets variables daily to evaluate programming after all variables are refreshed.
Eventually I’ll write in complimentary winter programming. For now I just finished the auto cooling section. Eventually I’ll follow with auto heat.
hope it helps anyone looking for similar use cases.
Dang, that’s cheap compared to SAN (where $0.18/kWh from midnight to 5am is the lowest…)
Do you have APS? I do the EZ3 with SRP.