Hey Folks, I am playing around with the Queue-Times API to bring in amusement park data into my Home Assistant dashboards. I have all the data coming in at this point, and dashboards set up to display it, but I have a little quirk I have run into a wall trying to fix.
The API has a boolean for whether a ride is open or closed, and it returns true or false. I want my Dashboards to show Open for true and Closed for false. I seem to be struggling to get that to reflect in an easy way. Secondary note, I have each ride importing as a separate entity for this value, so I would like a way to do this via the configuration.yaml rather than any kind of modifier or automation if possible.
Configuration yaml
value_template: "{{ value_json['lands'][0]['rides'][11]['name'] }}"
- name: "Park 60 Coaster 11 Status"
value_template: "{{ value_json['lands'][0]['rides'][11]['is_open'] }}"
- name: "Park 60 Coaster 11 Wait Time"
value_template: "{{ value_json['lands'][0]['rides'][11]['wait_time'] }}" ```
Dashboard yaml
```- type: grid
cards:
- type: tile
entity: sensor.park_60_coaster_0_name
features_position: bottom
vertical: false
name: ' '
- type: entity
entity: sensor.park_60_coaster_0_wait_time
name: ' '
unit: Minutes
- type: tile
entity: sensor.park_60_coaster_0_status
features_position: bottom
vertical: false
name: ' ```
Ignore the mismatched sensor names, they are all identical.
I'm pretty new to API and custom sensors so lemme know what additional information I am neglecting to share.