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

Use basic variables

$
0
0

@darato wrote:

Hello, is it possible to use basic YAML vars like in Ansible:

tel_free: "4567"
tel_damien: "1234"

and use it like :

  - name: signaldebug
    platform: signalmessenger
    sender_nr: "{{ tel_free }}"
    recp_nr:
      - "{{ tel_damien }}"
    signal_cli_rest_api: http://10.0.10.203:8080


And also, is it possible to append custom attribute to a entity.

I am now defined as :

- name: Damien
  id: 67653228e7694e86a5cfd6d90c46e31f
  device_trackers:
    - device_tracker.damien_galaxys9_wifi
    - device_tracker.damien_galaxys9_gps

Is it possible to do something like

- name: Damien
  phone: "1234"
  id: 67653228e7694e86a5cfd6d90c46e31f
  device_trackers:
    - device_tracker.damien_galaxys9_wifi
    - device_tracker.damien_galaxys9_gps

And use it with:

  - name: signaldebug
    platform: signalmessenger
    sender_nr: "{{ tel_free }}"
    recp_nr:
      - person.damien.phone
    signal_cli_rest_api: http://10.0.10.203:8080

Thanks a lot,
Damien

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95327

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>