public/script/services/philips_hue_bindings.js
// the visualization of the lights through the PhilipsHueElement[on] attribute.
the visualization of the lights through the PhilipsHueElement[on] attribute.
the visualization of the lights through the PhilipsHueElement [ on ] attribute .
async toggle(on) {
        if (!this.#connection.available || this.#active)
            return;  
        this.#active = true;
        await this.#connection.send({
            command: 'philips-hue-power',
            group: this.#options.group,
            on,
        });
        this.#active = false;
        on ? this.#element.setAttribute('on', '')
           : this.#element.removeAttribute('on');
    }
async toggle ( on ) { if ( ! this . #connection . available || this . #active ) return ; this . #active = true ; await this . #connection . send ( { command : 'philips-hue-power' , group : this . #options . group , on , } ) ; this . #active = false ; on ? this . #element . setAttribute ( 'on' , '' ) : this . #element . removeAttribute ( 'on' ) ; }
the visualization of the lights through the PhilipsHueElement[on] attribute.
the visualization of the lights through the PhilipsHueElement [ on ] attribute .
// the service connection is not available right now, or the element is active