Avatar
Home-Assistant
a14fbc9db86bdd5edcd5c8e999a4af213e369f90014a2b1cc07e530983559ae6
--> home assist everything <--

#Bitcoin #HomeAssistant Difficulty Sensor

- platform: command_line

command: 'curl -s https://mempool.space/api/v1/mining/hashrate/3d | jq -r ''.["currentDifficulty"]'''

name: currentDifficulty

unique_id: currentDifficulty

value_template: "{{ value | float | round(0) }}"

unit_of_measurement: Difficulty

scan_interval: 500

Good Morning #nostr

ready for more #BTC #homeassistant sensors?

Let's start with important sensors :)

#nostr #homeassistant #blocktime #fees

thanks @mempool

#Blocktime

- platform: rest

name: nextBlock

unique_id: nextblockid

resource: https://mempool.space/api/blocks/tip/height

value_template: "{{ value }}"

unit_of_measurement: Block

scan_interval: 500

#Fees High

- platform: command_line

command: 'curl -sSL https://mempool.space/api/v1/fees/recommended | jq -r ''.["fastestFee"]'''

name: Mempool High

unique_id: mempool_high

unit_of_measurement: sat/VB

value_template: "{{ value | float | round(0) }}"

scan_interval:

10

#Fees Medium

- platform: command_line

command: 'curl -sSL https://mempool.space/api/v1/fees/recommended | jq -r ''.["halfHourFee"]'''

name: Mempool Medium

unique_id: mempool_medium

unit_of_measurement: sat/VB

value_template: "{{ value | float | round(0) }}"

scan_interval:

10

#Fees Low

- platform: command_line

command: 'curl -sSL https://mempool.space/api/v1/fees/recommended | jq -r ''.["hourFee"]'''

name: Mempool Low

unique_id: mempool_low

unit_of_measurement: sat/VB

value_template: "{{ value | float | round(0) }}"

scan_interval: 10

hello world =)

#nostr