Skip to main content

An OVOS/Neon.AI Skill for Home Assistant, which integrates with ovos-PHAL-plugin-homeassistant.

Project description

Home Assistant Neon Skill

Uses PHAL Home Assistant plugin

Available on PyPi: pip install neon-homeassistant-skill

Installation on Neon

**Note**: This skill and the required PHAL plugin come pre-installed on Neon images for the Mycroft Mark II and Neon's published Docker images. These instructions are for custom development builds or creating your own Neon instance from scratch.

Install ovos-PHAL-plugin-homeassistant per their documentation

Then, you can pip install neon-homeassistant-skill, or handle the installation from the ~/.config/neon/neon.yaml file if you prefer:

skills:
  default_skills:
    # Jokes skill included because it cannot be pip installed to the image
    - https://github.com/JarbasSkills/skill-icanhazdadjokes/tree/dev
    - neon-homeassistant-skill # Optionally with a version, such as neon-homeassistant-skill==0.0.10

Authenticating to Home Assistant

On a device with a screen, such as the Mycroft Mark II, you can say open home assistant dashboard and use the OAuth login flow to authenticate from the PHAL plugin. If you don't have a screen available or prefer to edit the configuration directly, read on.


The documentation for ovos-PHAL-plugin-homeassistant specifies which configuration file to put your Home Assistant hostname/port and API key. Note that Neon uses a YAML configuration, not a JSON file, so edit ~/.config/neon/neon.yaml and make the following update for a minimal installation:

PHAL:
  ovos-PHAL-plugin-homeassistant:
    host: http://<HA_IP_OR_HOSTNAME>:8123
    api_key: <HA_LONG_LIVED_TOKEN>

On OVOS, you would update ~/.config/mycroft/mycroft.conf to include the following:

{
  "PHAL": {
    "ovos-PHAL-plugin-homeassistant": {
      "host": "http://<HA_IP_OR_HOSTNAME>:8123",
      "api_key": "<HA_LONG_LIVED_TOKEN>"
    }
}

The PHAL node above should be at the root of the Neon user configuration file, appended to the end of file if existing content exists, and will merge with system configuration per Neon Configuration Docs.

Mycroft Mark II does not always support .local hostnames such as the default homeassistant.local DNS. You may need to use the IP of your Home Assistant instance instead. If you have a Nabu Casa subscription and don't mind traffic going out to the internet using your public Nabu Casa DNS is also a supported option. However, if your internet connectivity drops from your Neon instance, you will be unable to control your smart home devices from Neon. A local DNS/IP is preferable.

Disabling Intents

If you don't want to have all of the intents enabled, which may be the case if you ship this skill by default in a voice assistant image, there is a setting available to disable intents. This can be done in the settings.json file for the skill. The path will be ~/.config/mycroft/skills/neon_homeassistant_skill.mikejgray/settings.json or ~/.config/neon/skills/neon_homeassistant_skill/settings.json for Neon.

{
  "__mycroft_skill_firstrun": false,
  "disable_intents": false
}

Upcoming Features

  • Start OAuth workflow with voice
  • Start an instance of the ovos-PHAL-plugin-homeassistant if PHAL isn't already running
  • Vacuum functions
  • HVAC functions

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

neon_homeassistant_skill-0.0.17.tar.gz (14.0 kB view details)

Uploaded Source

Built Distribution

neon_homeassistant_skill-0.0.17-py3-none-any.whl (21.9 kB view details)

Uploaded Python 3

File details

Details for the file neon_homeassistant_skill-0.0.17.tar.gz.

File metadata

  • Download URL: neon_homeassistant_skill-0.0.17.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.5 Darwin/23.4.0

File hashes

Hashes for neon_homeassistant_skill-0.0.17.tar.gz
Algorithm Hash digest
SHA256 07fbcc7651c446d857372b067a3ebf34bd4ba8f126436716c0710dc0f0b9a02d
MD5 05d3fe33c8ead4ea1880075f4ba2d8d9
BLAKE2b-256 1437c8f38407ede31d5f4dfcf88d21d51621e146eb1cba31fb716465f90eb543

See more details on using hashes here.

Provenance

File details

Details for the file neon_homeassistant_skill-0.0.17-py3-none-any.whl.

File metadata

File hashes

Hashes for neon_homeassistant_skill-0.0.17-py3-none-any.whl
Algorithm Hash digest
SHA256 c4022e7854e950174efc4ee193d0e0afe9c1218b8980affeb5cf18c7961fcd7b
MD5 ae9fa8a57f071c95e4d65429a102b9e3
BLAKE2b-256 b657030e6d98b7afc9caf3711074400325423e4a3b3925bc2abaa6ef5c27c3c8

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page