help needed to let RGB device "blink"
Posted: 30 Jan 2017 23:11
Hello,
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:
Also made code devices (toggle button) to activate different LED colors / brightness levels with:
a)
or b)
By "wrapping" these code devices into light scenes I can also use these as scenes in a lot of modules (in some modules they otherwise don't show up).
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.
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.