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
