here's the whole package, if somebody is interested. You gotta change fill in your Public Pool's IP address and then paste this into your confiiguration.yaml . "cgminer" is my AvalonQ, the "2025" is a S19 with BraiinsOS+:
rest:
- resource:
http://YOUR_PUBLIC_POOL_IP/api/info
scan_interval: 60
sensor:
- name: "Bitcoin Best Difficulty (cgminer)"
unique_id: bitcoin_best_difficulty_cgminer
value_template: "{{ (value_json.userAgents[0].bestDifficulty | float) | round(2) }}"
unit_of_measurement: "Diff"
- name: "Bitcoin Best Difficulty (2025)"
unique_id: bitcoin_best_difficulty_2025
value_template: "{{ (value_json.userAgents[1].bestDifficulty | float) | round(2) }}"
unit_of_measurement: "Diff"
- name: "Bitcoin Best Difficulty (High Score)"
unique_id: bitcoin_best_difficulty_highscore
value_template: "{{ (value_json.highScores[0].bestDifficulty | float) | round(2) }}"
unit_of_measurement: "Diff"
- name: "Bitcoin Found Blocks Count"
unique_id: bitcoin_found_blocks_count
value_template: "{{ value_json.blockData | length }}"
unit_of_measurement: "Blöcke"
icon: "mdi:cube"