I am using following piston to show switches as tiles. After installing this piston, it is turning on one of the lights randomly. Attached is the screenshot of that switch.
How do I troubleshoot this issue?
Troubleshooting: piston turning on switch randomly
sumya
#1
ipaterson
#2
Looks like you posted a different piston, can you update the image for the Tiles Switches piston?
ipaterson
#4
Thanks! I made a simple piston to test a theory, it seems that the issue here is that the entire piston runs when your on events
receives an event. The tilePressDeviceID
seems fine, but I think you should also be checking that $currentEventAttribute == 'tile'
in your if
to ensure you’re handling the correct event.
In this example, both “Power” and “Executed” are logged whenever a power event is received.