You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
to have an sensor helper or variable that would live during the uptime of HA, which may contain an array of string values.
to be able to add new items to the array.
to be able to remove items from array, if there are more than X items.
to render the item values in a card. For now I'm using Markdown Card with a template which enumerates all the values and renders them in the card.
From other issues of the repository I understand that the add-on supports any type of JSON-like objects, like strings, dictionaries, etc. So I expected to have arrays also supported by the add-on, correct me if I'm wrong.
To reproduce
Here is the variable definition in configuration.yaml:
Briefly
I have a scenario where I need:
From other issues of the repository I understand that the add-on supports any type of JSON-like objects, like strings, dictionaries, etc. So I expected to have arrays also supported by the add-on, correct me if I'm wrong.
To reproduce
Here is the variable definition in configuration.yaml:
Then I'm attempting to set a value to that array variable using the Developer tools / Actions:
This doesn't work with an error reported:
Caution
Failed to perform the action var.set. template value should be a string for dictionary value @ data['value_template']. Got None
I've attempted to assign an array to an attribute, same issue.
If I try to assign an array using
value
parameter, then it seems it is being assigned as a string. Here is the script:Then I validated it with Developer tools / Template:
It renders only:
Could someone help me to understand how to work with arrays correctly?
Thanks.
The text was updated successfully, but these errors were encountered: