Damus
d0enakalle🐇⚡ · 5d
I'm a happier Pleb now! 🥳 I managed to write api-sensors for my self hosted Public Pool in Home Assistant. Now I'm getting push notifications to my Smartphone when my miners find a new "Bestever"...
d0enakalle🐇⚡ profile picture
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"
21❤️1
YoungSatoshi · 5d
What's a public pool IP address?
d0enakalle🐇⚡ · 5d
your miners' names are found on the Public Pool Browser Page, under "Online Devices".