diff --git a/core/archipelago/src/api/rpc/package/pine_ha.rs b/core/archipelago/src/api/rpc/package/pine_ha.rs index e5a7b939..dc1efdad 100644 --- a/core/archipelago/src/api/rpc/package/pine_ha.rs +++ b/core/archipelago/src/api/rpc/package/pine_ha.rs @@ -132,6 +132,7 @@ rest: unique_id: archy_bitcoin_sync unit_of_measurement: "%" value_template: "{{{{ value_json.bitcoin.sync_percent }}}}" + availability: "{{{{ value_json.bitcoin.sync_percent is not none }}}}" - name: "Archy Bitcoin Peers" unique_id: archy_bitcoin_peers value_template: "{{{{ value_json.bitcoin.peers }}}}" @@ -142,10 +143,12 @@ rest: unique_id: archy_lightning_balance unit_of_measurement: "sats" value_template: "{{{{ (value_json.lightning or {{}}).get('channel_balance_sats') }}}}" + availability: "{{{{ (value_json.lightning or {{}}).get('channel_balance_sats') is not none }}}}" - name: "Archy Onchain Balance" unique_id: archy_onchain_balance unit_of_measurement: "sats" value_template: "{{{{ (value_json.lightning or {{}}).get('balance_sats') }}}}" + availability: "{{{{ (value_json.lightning or {{}}).get('balance_sats') is not none }}}}" - name: "Archy Mesh Message" unique_id: archy_mesh_message value_template: "{{{{ (value_json.mesh_message or {{}}).get('id') }}}}"