MarkAdamson / home-assistant-plugin-for-tasker

Home Assistant plugin for Tasker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Condition plug-in

MarkAdamson opened this issue · comments

Add a 'Condition' plug-in for use in Tasker contexts.

The condition should allow the user to check the state of an entity and use the result to decide whether a task should run.

After some thought, I don't think this is appropriate for this plugin. To get timely events and statuses from a home assistant server, it would need to connect to the websocket api (currently only the REST api is used). This would require an always-on background service, which would be complicated, unreliable, and potentially battery-draining.

The alternative would be to poll the REST api for changes which would almost certainly suffer the same issues and be slower to receive events.

As an alternative, I'm using Join to receive push commands from HA/NodeRED - I suggest others do the same. When the official HA app comes out, it might offer decent Tasker functionality. In fact, if it's open-source, I might add it myself.