Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rest_command:
- set_options:
- # URL'en er angivet i secrets.yaml, men kan også stå direkte i
- # koden.
- # URL'en kan se således ud : https://IP:PORT/api/services/input_select/set_options
- url: !secret DYNAMIC_LIST_URL
- method: POST
- headers:
- content-type: "application/json"
- # Token er angivet isecrets.yaml
- # VIGTIGT: Der skal angives "Bearer " foran token.
- # Token kan se således ud: Bearer MEGET_LANGT_TOKEN
- Authorization: !secret DYNAMIC_LIST_TOKEN
- content_type: "application/json"
- payload: >-
- {
- "entity_id": "{{ entity }}",
- "options": {{ elements }}
- }
Add Comment
Please, Sign In to add comment