Color changing looping with Edge driver lights?

Has anyone figured how to loop color lights (based on user’s preference of color) from one color to the next (ex. red, white, and blue) on a Edge driver lights. I know there are Edge drivers like the Zigbee Light Multifunction but we can not change the colors to user preference. Is there a way with Tasker or some other alternative? Thanks

Using RulesAPI it’s possible to make rule that loops color lights

Have you managed to do that? If you have, could you share your rules to us so we could experiment with them?

Custom 3 color loop can be made with:

  • One virtual switchBoard with 3 switch (type only Switch On) Virtual Appliances Mc driver
  • One virtual switch to stop the loop
  • 3 routines
  • one scene to start loop and another to stop loop

Routines

  1. IF: S1 is On and virtual Off Then Color Red ON + S2 on + delay 2 sec
  2. IF: S2 is On and virtual Off Then Color Blue ON + S3 on + delay 2 sec
  3. IF: S3 is On and virtual Off Then Color Green ON + S1 on + delay 2 sec
    Start loop scene: virtual switch Off + S1 turn On
    Stop loop scene : virtual switch On + S1 & S2 & S3 turn Off
2 Likes

RulesAPI solution: red color 30s - blue color 30s

2 virtual switches needed

  • One switch enables looping “virtual_switch_which_enables_looping-ID”
  • Second for internal use “internal_virtual_switch-ID”
{
  "name": "Virtual Switch on - Loop RGBW bulb colors",
   "actions": [
        {
            "if": {
                "and": [
                    {
                        "equals": {
                            "right": {
                                "device": {
                                    "devices": [
                                        "virtual_switch_which_enables_looping-ID"
                                    ],
                                    "component": "main",
                                    "capability": "switch",
                                    "attribute": "switch"
                                }
                            },
                            "left": {
                                "string": "on"
                            }
                        }
                    },
                    {
                        "equals": {
                            "right": {
                                "device": {
                                    "devices": [
                                        "internal_virtual_switch-ID"
                                    ],
                                    "component": "main",
                                    "capability": "switch",
                                    "attribute": "switch"
                                }
                            },
                            "left": {
                                "string": "off"
                            }
                        }
                    }
                ],
                "then": [
                    {
                        "command": {
                            "devices": [
                                "RGBW_bulb-ID"
                            ],
                            "commands": [
                                {
                                    "component": "main",
                                    "capability": "colorControl",
                                    "command": "setColor",
                                    "arguments": [
                                        {
                                            "map": {
                                                "saturation": {
                                                    "integer": 99
                                                },
                                                "hue": {
                                                    "integer": 99
                                                }
                                            }
                                        }
                                    ]
                                }
                            ]
                        }
                    },
                    {
                        "command": {
                            "devices": [
                                "internal_virtual_switch-ID"
                            ],
                            "commands": [
                                {
                                    "component": "main",
                                    "capability": "switch",
                                    "command": "on"
                                }
                            ]
                        }
                    },
                    {
                        "sleep": {
                            "duration": {
                                "value": {
                                    "integer": 30
                                },
                                "unit": "second"
                            }
                        }
                    },
                    {
                        "command": {
                            "devices": [
                                "RGBW_bulb-ID"
                            ],
                            "commands": [
                                {
                                    "component": "main",
                                    "capability": "colorControl",
                                    "command": "setColor",
                                    "arguments": [
                                        {
                                            "map": {
                                                "saturation": {
                                                    "integer": 99
                                                },
                                                "hue": {
                                                    "integer": 65
                                                }
                                            }
                                        }
                                    ]
                                }
                            ]
                        }
                    },
                    {
                        "sleep": {
                            "duration": {
                                "value": {
                                    "integer": 30
                                },
                                "unit": "second"
                            }
                        }
                    },
                    {
                        "command": {
                            "devices": [
                                "internal_virtual_switch-ID"
                            ],
                            "commands": [
                                {
                                    "component": "main",
                                    "capability": "switch",
                                    "command": "off"
                                }
                            ]
                        }
                    }
                ]
            }
        }
    ]
}

In this example hue setting are fixed.

1 Like