home-assistant-variables icon indicating copy to clipboard operation
home-assistant-variables copied to clipboard

varible for caller list results in value: "[object Object]": null

Open Bram-diederik opened this issue 2 years ago • 0 comments

I have a asterisk server and i want to get the last 5 callers in a display in home assistant. but i cant get the variable set with the call data.

alias: inkomende beller
description: ""
trigger:
  - platform: webhook
    webhook_id: sip_call_webhook_id
condition: []
action:
  - service: var.set
    data:
      entity_id: var.call1
      value: {{trigger.json.caller | regex_findall_index("\"(.+)\"|\<(.*)\>")  }}

it results in

  - service: var.set
    data:
      entity_id: var.call1
      value:
        "[object Object]": null

is trigger.json. supported. Or do i doing something wrong. (I can set other variables)

Bram-diederik avatar Sep 20 '22 22:09 Bram-diederik