searching for a way to let indicator LED (night light mode) of an Aeotech Smart Dimmer 6 "blink".
Already managed to control LED by API like:
Code: Select all
/ZAutomation/api/v1/devices/ZWayVDev_zway_9-0-51-rgb/command/exact?red=255&green=0&blue=0
a)
Code: Select all
var dev = controller.devices.get( 'ZWayVDev_zway_9-0-51-rgb'); dev.performCommand( 'exact', { red: 255, green: 0, blue: 0 } );
Code: Select all
var dev = controller.devices.get( 'ZWayVDev_zway_9-0-51-rgb'); dev.performCommand( 'exact', { red: 0, green: 0, blue: 0 } );
But now I'm stuck trying to find a solution to periodically (i.e. every 2 seconds) switch between a) and b) as long as an (activation) switch or a specific scene is active.
Can somebody help me please?
Any hints are very welcome.