# Home Assistant for Raycast

URL: https://www.raycast.com/tonka3000/homeassistant

> Home Assistant remote control. Control your house with Raycast 🚀

- Install: raycast://extensions/tonka3000/homeassistant
- Author: [Lfzdxbc Sflwbe](https://www.raycast.com/tonka3000)
- Installs: 1,751
- Categories: Other
- Updated: 2022-06-20
- Source: https://github.com/raycast/extensions/tree/950f1ba0618f358ca3b8047bd64f9ec487f774d5/extensions/homeassistant/

## Commands

- **All Entities**: Get/Set states of Home Assistant entities
- **Covers**: Get/Set states of Home Assistant covers
- **Fans**: Get/Set states of Home Assistant fans
- **Lights**: Get/Set states of Home Assistant lights
- **Persons**: Get/Set states of Home Assistant persons
- **Sensors**: Get/Set states of Home Assistant sensors
- **Binary Sensors**: Get/Set states of Home Assistant binary sensors
- **Mediaplayers**: Get/Set states of Home Assistant mediaplayers
- **Automations**: Home Assistant automations
- **Dashboard**: Open Home Assistant dashboard
- **Climate**: Get/Set states of Home Assistant climate entities
- **All Entities With Attributes**: Query Home Assistant entity attributes
- **Batteries**: Query Batteries
- **Motions**: Query Motion Sensors
- **Vacuum Cleaners**: Query Vacuum Cleaners
- **Cameras**: Query Cameras
- **Scripts**: Query Scripts
- **Buttons**: Query Buttons
- **Scenes**: Query Scenes
- **Switches**: Get/Set states of Home Assistant Switches
- **Helpers**: Get/Set states of Home Assistant Helpers
- **Updates**: Get/Set states of Home Assistant Entity Updates
- **Doors**: Get/Set states of Home Assistant Entity with device class door
- **Weather**: Get Weather states of Home Assistant Entity Weather

## README

<div align="center">
  <img
    src="https://github.com/raycast/extensions/blob/main/extensions/homeassistant/assets/home-assistant.png?raw=true"
    width="50"
  />

  <h1>
    Home Assistant
  </h1>

Raycast extension to manage your Home Assistant. Control your house with Raycast 🚀

  <p>
    <a href="https://www.raycast.com/tonka3000/homeassistant">
      <img src="https://img.shields.io/badge/Raycast-store-red.svg"
        alt="Find this extension on the Raycast store"
      />
    </a>
    <a
      href="https://github.com/raycast/extensions/blob/master/LICENSE"
    >
      <img
        src="https://img.shields.io/badge/license-MIT-blue.svg"
        alt="raycast-extensions is released under the MIT license."
      />
    </a>
    <img
      src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg"
      alt="PRs welcome!"
    />
    <a href="https://twitter.com/intent/follow?screen_name=tonka_2000">
      <img
        src="https://img.shields.io/twitter/follow/tonka_2000.svg?label=Follow%20@tonka_2000"
        alt="Follow @tonka_2000"
      />
    </a>
    <a href="https://open.vscode.dev/organization/repository">
      <img
        src="https://open.vscode.dev/badges/open-in-vscode.svg"
        alt="Open in Visual Studio Code"
      />
    </a>
  </p>
</div>

#### Features

- Manage all your Home Assistant entities
- Control your lights
- Control your mediaplayer
- Control your covers
- Show all entities
- Show all entities with attributes

and all in real time 🚀.

#### How to get the access token for Home Assistant

- Goto to your Home Assistant instance e.g. `https://myhomeassistant:8123`
- Click on your profile (next to notifications) in the left sidebar
- Scroll down to the `Long-Lived Access Tokens` section
- Create a token via `Create Token`
- Store the given token in a secure box, Home Assistant wont show it again
- Go to the Raycast preferences of Home Assistant or start a Home Assistant command
- Set your Home Assistant URL like e.g. `https://myhomeassistant:8123`
- Set your access token from the previous step into `API Token`

Now you should be able to manage your Home Assistant instance with Raycast 🚀.

#### Showcases

##### Lights

![lights](https://user-images.githubusercontent.com/3163807/138560046-f42149b2-b35b-4b4a-86c7-93cb8e827d15.png)

##### Covers

![covers](https://user-images.githubusercontent.com/3163807/138560052-8ff8c81d-6a56-4e0b-85a7-7b2415bca4db.png)

![covers-moving](https://user-images.githubusercontent.com/3163807/138560057-ce35f611-d55f-47c0-8f50-2e0bd3265520.png)

##### Media Player

![media-player](https://user-images.githubusercontent.com/3163807/143785481-a01f1574-87e8-4546-aadd-7537317ec12d.png)

##### Batteries

![batteries](https://user-images.githubusercontent.com/3163807/143785334-150f10ab-b679-4a85-a476-cd90ed1c9f76.png)

##### All Entities

![all-entities](https://user-images.githubusercontent.com/3163807/138604892-a25acae0-61af-495e-835a-d62b213ae7f3.png)

##### All Entities with Attributes

![all-entities-with-attrs](https://user-images.githubusercontent.com/3163807/138604945-cfd17634-a9da-40a3-87d1-cd53a891d318.png)
