Thanks for that. I did move the off action to it’s own function. It works everytime when I turn the front floodlight on or off from the ST app, but hardly ever when the front floodlight switch is physically activated. I changed the action to physical interaction instead of any interaction, but no fix. Even when I verify first that the barn floodlight is reporting off in ST IDE, then physically turn on the front floodlight, the barn light does not come on. I’m stumped. Several other simple pistons work fine with the front floodlight and barn floodlight.
Toggle navigation
Front Floodlight
Status
This piston is currently active and humming happily.
Piston Category
Quick Facts
Piston state: true
Last executed: 8/6/2018, 9:25:33 PM
Next scheduled: never
Subscriptions: 1 event, 1 control
Devices used: 2
Memory used: 46% (45603 bytes)
External URL: (click to open/execute)
Automatic Backup
Automatic backup enabled.
Touch the box to reveal your backup bin code. Make a note of this code as you may use it later to restore a deleted piston.
oiw96
Do NOT share this code with anyone.
Script
//
/* Front Floodlight */
//
/* Author : blaine phillips /
/ Created : 4/24/2018, 9:48:59 PM /
/ Modified : 8/6/2018, 9:23:55 PM /
/ Build : 38 /
/ UI version : v0.3.107.20180806 */
/**************************************************************/
/* Turns barn floodlight on or off */
execute
end execute;
Logs
8/6/2018, 9:25:33 PM +991ms
+1ms ╔Received event [Front Flood Light].switch = off with a delay of 341ms
+123ms ║RunTime Analysis CS > 11ms > PS > 46ms > PE > 66ms > CE
+125ms ║Runtime (38184 bytes) successfully initialized in 46ms (v0.3.106.20180731) (123ms)
+126ms ║╔Execution stage started
+134ms ║║Comparison (enum) off changes_to (string) on = false (1ms)
+135ms ║║Cancelling condition #10’s schedules…
+136ms ║║Condition #10 evaluated false (5ms)
+137ms ║║Cancelling condition #1’s schedules…
+138ms ║║Condition group #1 evaluated false (state changed) (6ms)
+140ms ║║Condition group #11 evaluated true (state did not change) (1ms)
+145ms ║║Comparison (enum) off changes_to (string) off = true (0ms)
+147ms ║║Cancelling condition #16’s schedules…
+147ms ║║Condition #16 evaluated true (4ms)
+148ms ║║Cancelling condition #13’s schedules…
+149ms ║║Condition group #13 evaluated true (state changed) (7ms)
+151ms ║║Cancelling statement #14’s schedules…
+169ms ║║Executed physical command [Barn Flood Light].off() (14ms)
+169ms ║║Executed [Barn Flood Light].off (16ms)
+172ms ║╚Execution stage complete. (45ms)
+173ms ╚Event processed successfully (173ms)