Function useActivateScene

  • Activate a scene by name.

    const LightsOff = () => {
    const activateScene = useActivateScene()
    return <button onClick={() => activateScene('scene.all_lights_off')}>Lights off!</button>
    }

    Returns ((entity_id: string) => Promise<unknown>)

      • (entity_id: string): Promise<unknown>
      • Parameters

        • entity_id: string

        Returns Promise<unknown>

Generated using TypeDoc