Function HomeassistantProvider

  • Main wrapper component. Establishes connection to the Homeassistant websocket API on mount, and starts listening to entity data feed.

    const App = () => {
    return <HomeassistantProvider homeassistantUrl={url} accessToken={token}>
    <Lightbulb>
    </HomeassistantProvider>
    }

    Parameters

    • props: {
          accessToken: string;
          children: ReactNode;
          fallback?: ReactNode;
          homeassistantUrl: string;
      }

    Returns Element

Generated using TypeDoc