Hello there,
could anybody help me see what I’m missing in my solution? I have a json file stored the custom_components folder. What I want is to parse all 24 values to 24 unique entities/attributes, so I can make a plot over them.
I’m trying to use command_line sensor with jq function. I was even able to get 1 of the values, but not all of them.
The jq output looks like this:
`$ jq '.z' output.json
{
"0": 0.6192634,
"1": 1.1251751,
"2": 0.5181792,
...
}`
while the config is like:
- platform: command_line
name: nrg
command: "jq '.z' /config/nrg/output.json"
value_template: "{{ value_json[0] }}"
json_attributes:
- 0
- 1
- 2
Thank you!