Hi all, trying to set up a rest sensor for this json https://api.tfl.gov.uk/Line/district/Status
and I want the “statusSeverityDescription” field. I have the below but not working… Any tips appreciated
Also, keep in mind that JSON is just a collection of objects, usually arrays. And the arrays are zero-based. You might need to experiment to learn when to use a number index and when to use a string (like “statusSeverityDescription”).
I don’t think that’s possible with normal config. I think you’d need to do some extra work that’s not supported by HA (dynamically changing some CSS in the front-end).
A work around for changing icons on sensors is to use automation. You can create a group call District line in Good Service and customize the icon to a green bus. You can then create another group called District line is Out of Service with a red bus icon. You can then automate which one is hidden or visible based on your District line sensor.