Read Antminer API and show details

well, that does not work…

i got this form the dev tools

Invalid config for [sensor.command_line]: invalid template (TemplateSyntaxError: expected name or number) for dictionary value @ data[‘value_template’]. Got ‘{{ value_json[“POOLS”][0].“Pool Rejected” }}’
string value is None for dictionary value @ data[‘unique_id’]. Got None. (See ?, line ?).

I tried this one

no dice. did not work, what ever combination i used.

edit: maybe i was toooo fast here.

indeed i was too fast

thats how it works:

- platform: command_line
  name: S19-30-Pool Rejected-1
  command: "python3 /config/shell/S19-30-pools.py"
  unit_of_measurement: "%"
  value_template: '{{ value_json["POOLS"][0]["Pool Rejected%"] }}'

ditch the dot behind [0] and get the field name into [" "]