Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/opsdroid/skill-homeassistant

💬 A skill for opsdroid to interact with Home Assistant
https://github.com/opsdroid/skill-homeassistant

Last synced: about 2 months ago
JSON representation

💬 A skill for opsdroid to interact with Home Assistant

Awesome Lists containing this project

README

        

# opsdroid skill homeassistant

A skill for [opsdroid](https://github.com/opsdroid/opsdroid) to interact with [Home Assistant](https://home-assistant.io/). The skill provides a notification service and the ability to
pass opsdroid message through to the [conversation component](https://www.home-assistant.io/components/conversation/) in Home Assistant.

## Requirements

- A homeassistant installation.

To use the opsdroid notification you must configure the [rest notify component](https://home-assistant.io/components/notify.rest/) in homeassistant to point to opsdroid.

```yaml
# Home Assistant configuration file
notify:
- name: opsdroid
platform: rest
method: POST
resource: http://:/skill/homeassistant/notify
```

To use the conversation passthrough you must have the conversation component enabled in Home Assistant.

```yaml
# Home Assistant configuration file
conversation:
```

## Configuration

```yaml
skills:
- name: homeassistant
# Notification settings
room: "#homeassistant" # (Optional) room to send notifications to
# Conversation component passthrough settings
conversation-passthrough: false # Enable/disable the conversation component passthrough
hass-url: "http://127.0.0.1:8123" # The URL of your Home Assistant
hass-password: "YOURPASSWORD" # Your Home Assistant auth password
```
## Usage

#### Notification

When a notification is triggered in homeassistant it will be sent to opsdroid.

> opsdroid: Here is your homeassistant notification

#### Conversation component passthrough

When this is enabled all messages will be passed through to the Home Assistant conversation component.

> user: turn on the bedroom light
>
> opsdroid: ok
>
> *Light comes on*