Skip to content

Add an option to Transform to allow the bulbs to be turned on and off #2

@Djelibeybi

Description

@Djelibeybi

It's currently possible to turn a bulb on and run a waveform using the following JSON:

{
    "command": "transform",
    "args": {
    	"matcher": {
    		"serial": "d073d5xxxxxx"
    	},
    	"transform": {
    		"color": "red",
    		"effect": "breathe",
    		"cycles": 2,
    		"period": 0.5,
    		"transient": true,
    		"power": "on"
    	}
    }
}

It would be super peachy keen if transient applied to the power status of the bulb as well, i.e. if I'm turning the bulb on and I'm setting transient to true and the bulb was off, then the bulb should turn be turned off again afterwards too.

Perhaps an addition to transform_options called transient_power as a boolean?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions