Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 96123

Global Variables (House Statuses) and custom scripting

$
0
0

@azevenhuizen wrote:

Hi all,

Pretty new to HA and trying to get my way around the automation/scene/scripting stuff.
I am used to create lua scripts or write some python code, but yaml sequences is quite new to me.

For starters I would like to set a (global) variable to hold the state of my house.
Sleeping/Home/Away/Holiday/etc. Based on those states I used to fire or hold a lot of automations.

  • How can I create and set global variables?
  • Also how to create some simple IF_ELSE, AND_OR scripts? It seems the automations are quite limited to at least different to what I know, compared to lua and python.

Posts: 9

Participants: 6

Read full topic


Viewing all articles
Browse latest Browse all 96123

Trending Articles