Coder Social home page Coder Social logo

gerschinner / terraform-provider-homeassistant Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mikescops/terraform-provider-homeassistant

0.0 0.0 0.0 93 KB

๐Ÿ’ก Terraform Provider for Home Assistant

Home Page: https://registry.terraform.io/providers/Mikescops/homeassistant/latest

Go 93.07% Makefile 6.93%

terraform-provider-homeassistant's Introduction

Terraform Provider Home Assistant

User documentation is available on Terraform Registry.

Building provider

Run the following command to build the provider

go build -o terraform-provider-ha

Install the addon

First, build and install the provider.

make install

Go to the examples directory :

terraform init && terraform apply

Requirements

You can setup the provider in TF or use env variables like:

export HA_BEARER_TOKEN=xxxxxx
export HA_HOST_URL=https://<insert_domain_or_ip>/api

Using media players

In order to use "ha_mediaplayer", you need to have media_extractor integration on your Home Assistant instance. Please, follow this tutorial.

How to run tests

You need to have a Home Assistant instance running with a dummy light setup. To do so, add the following configuration to your configuration.yaml file :

# Dummy light
light:
  - platform: template
    lights:
      dummy_light:
        friendly_name: 'Dummy Light'
        turn_on:
        turn_off:
        set_level:

You also need to setup env variables in your terminal :

export HA_BEARER_TOKEN=xxxxxx
export HA_HOST_URL=https://<insert_domain_or_ip>/api

Then run the following command :

make testacc

terraform-provider-homeassistant's People

Contributors

mikescops avatar shaeli avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.