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

Get one var from json

$
0
0

@tiebe111 wrote:

Hey all,

I have spotcast set up, and when it has an attribute called devices_json

This json is like this:

[{"name": "Kitchen display", "cast_type": "cast", "model_name": "Google Nest Hub", "uuid": "9afaa83d-d64c-5485-d64d-cf464b9fc300", "manufacturer": "Unknown manufacturer"}, {"name": "Tiebe Bedroom", "cast_type": "audio", "model_name": "Google Home Mini", "uuid": "aeaf0506-0e8e-f1e9-fadf-3ca2a9c6d6e6", "manufacturer": "Unknown manufacturer"}, {"name": "Bedroom Lotte speaker", "cast_type": "audio", "model_name": "Google Home Mini", "uuid": "5e8e2113-597d-ed67-c7a1-e28e52e9f824", "manufacturer": "Unknown manufacturer"}, {"name": "Living Room speaker", "cast_type": "audio", "model_name": "Google Home", "uuid": "38aaf3c3-be68-f00a-a9ce-ce577a17751e", "manufacturer": "Unknown manufacturer"}, {"name": "Home group", "cast_type": "group", "model_name": "Google Cast Group", "uuid": "ce756229-6610-4d69-9aa5-c5da4add3cff", "manufacturer": "Unknown manufacturer"}, {"name": "Office speaker", "cast_type": "audio", "model_name": "Google Home Mini", "uuid": "0b55fd19-91b5-68f0-1c47-b6f153629716", "manufacturer": "Unknown manufacturer"}]

I would like to get all the name data, and put them in a input_select.

Is this possible, if so, how would I do this?

Thanks in advance.

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95478

Trending Articles



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