Thanks for the reply, here’s my code:
#configuration.yaml
frontend:
extra_html_url:
- /local/custom_ui/state-card-crypto_profit.html
sensor:
- platform: rest
name: Miners
resource: http://192.168.1.106:17790/api/miners
json_attributes:
- groupList
value_template: '{{value_json.totalHashrate5s}}'
- platform: template
sensors:
miner_data:
friendly_name: 'Miner Data'
value_template: '{{ states.sensor.miners.attributes["groupList"] }}'
#customize.yaml
sensor.miners:
custom_ui_state_card: state-card-crypto_profit
#groups.yaml
dashboard:
name: Dashboard
entities:
- sensor.miners
You could be right that it doesn’t support Jinja, since I used the idea from This thread on the forum and they use this code to loop through an object:
<template is="dom-repeat" items="{{stateObj.attributes.next_trains}}">
However my issue is still that I can’t get item [0] of the groupList which is a list, and I need to loop through that, either using a for loop or the template dom-repeat as above.
Thank you in advance!