Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add variables support #1

Open
filipowm opened this issue Sep 18, 2018 · 0 comments
Open

Add variables support #1

filipowm opened this issue Sep 18, 2018 · 0 comments

Comments

@filipowm
Copy link
Owner

filipowm commented Sep 18, 2018

It should be possible to define default variables (not in secret way) like:

variables:
   var1:
      value: somevalue

and then use it:

- alias: 'Do something'
  trigger:
    platform: homeassistant
    event: start
  action:
    service: sensor.some_sensor.set_state
    data:
      state: {{ variables.var1.state }}

Suggestion to use: https://github.com/rogro82/hass-variables

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant