Coder Social home page Coder Social logo

home-assistant-plugin-for-tasker's Introduction

Home Assistant Plug-In for Tasker

This is a Tasker plug-in to allow calling services on and getting entity states from a Home Assistant installation.

Get it on Google Play

Requirements

Usage

PLEASE NOTE: If your device is on Android 6.0 or higher, you should disable Battery Optimization for this plugin (and Tasker) - otherwise you may find that it doesn't work properly!

Add A Server

  • Generate a Long-Lived Access Token in Home Assistant.
  • Create a new Task in Tasker.
  • Add an Action: 'Plugin' > 'Home Assistant Plug-In for Tasker' to the Task.
  • Tap the edit button by 'Configuration'.
  • Tap the '+' button near the top right to add a new Home Assistant server.
  • Enter the details for your Home Assistant server. The Base URL must include the protocol, and not a trailing backslash (eg: https://my.home-assistant.com).
  • Test the server, then click 'Save'.

Call A Service

  • Create a new Task in Tasker.
  • Add the Action 'Plugin' > 'Home Assistant Plug-In for Tasker' > 'Call Service' to the Task.
  • Select a Server, or add a new one as above.
  • Select a Service, and optionally enter Service Data in JSON format.
  • Test the Service call, then click 'Save'.

Get An Entity's State

  • Create a new Task in Tasker.
  • Add the Action 'Plugin' > 'Home Assistant Plug-In for Tasker' > 'Get State' to the Task.
  • Select a Server, or add a new one as above.
  • Select an Entity.
  • Enter a Tasker variable name, including the leading %.
  • Click 'Save'.
  • Make sure to set a timeout - this tells the action to await a result, otherwise the task continues instantly and the variable will not be populated!

Variables

Variables are supported in the following fields:

  • 'Call Service' > 'Service'
  • 'Call Service' > 'Service Data'
  • 'Get State' > 'Entity ID'

Remember to always include the leading %

To Do

  • Actions
  • Tasker Variables

home-assistant-plugin-for-tasker's People

Contributors

ccjernigan avatar markadamson 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.