sahilchaddha / homebridge-magichome-platform

Homebridge Plugin for MagicHome LED Strips with Preset Scene Automation Support (Cycle Color/Fade/Strobe)
MIT License
47 stars 12 forks source link

Custom presets #19

Open FeBe95 opened 5 years ago

FeBe95 commented 5 years ago

Is your feature request related to a problem? Please describe. Currently only pre-installed presets are supported. Switches for custom presets are not possible.

Describe the solution you'd like Something like this would be nice:

"presetSwitches": [
    ...
    {
        "name": "Red & Purple Fading",
        "ips": {"192.168.1.101": "255,255,255"},
        "preset": "custom",
        "presetMode": "gradual",
        "presetString": "26,0,0 0,0,0 26,0,26 0,0,0",
        "speed": 57
    },
    ...
]

resulting in a call to flux_led with the following parameters:

flux_led.py 192.168.1.101 -C=gradual 57 "26,0,0 0,0,0 26,0,26 0,0,0"