Skip to content

A live bird collage card for your Home Assistant dashboard.

sit_confidence extremes: 1.01 = always flying, 0 = always perched (#12)

Adam Oberley6280af7b74c3
diff --git a/README.md b/README.md
index 818abc23..19634836 100644
--- a/README.md
+++ b/README.md
@@ -160,6 +160,7 @@ birdnet_url: "" # empty = this host, port 8080 (the stock app)
data_source: auto # auto | api | ha (see Data sources below)
history_days: 10 # ha-source span; bounded by recorder retention
sit_confidence: 0.90 # perched at/above, flying below
+ # (0 = always perched, 1.01 = always flying)
clock: true # time + date in a corner of the collage
weather: true # conditions + sunrise/sunset from HA
weather_entity: "" # empty = first weather.* entity found
diff --git a/dist/habird-card.js b/dist/habird-card.js
index 06169c5c..dd12cdfd 100644
--- a/dist/habird-card.js
+++ b/dist/habird-card.js
@@ -4183,7 +4183,7 @@ var HABIRD_EDITOR_SCHEMA = [
{ value: 'ha', label: 'MQTT sensor history only' },
] } } },
{ name: 'history_days', selector: { number: { min: 1, max: 365, step: 1, mode: 'box', unit_of_measurement: 'days' } } },
- { name: 'sit_confidence', selector: { number: { min: 0.5, max: 1, step: 0.01, mode: 'slider' } } },
+ { name: 'sit_confidence', selector: { number: { min: 0, max: 1.01, step: 0.01, mode: 'slider' } } },
{ name: 'clock', selector: { boolean: {} } },
{ name: 'weather', selector: { boolean: {} } },
{ name: 'weather_entity', selector: { entity: { domain: 'weather' } } },
@@ -4212,7 +4212,7 @@ var HABIRD_LABELS = {
birdnet_url: 'BirdNET-Go URL (empty = this host, port 8080)',
data_source: 'Data source',
history_days: 'MQTT history span (bounded by recorder retention)',
- sit_confidence: 'Sit confidence (perched at/above, flying below)',
+ sit_confidence: 'Sit confidence (perched at/above, flying below; 0 = always perched, 1.01 = always flying)',
clock: 'Clock',
weather: 'Weather (from your HA weather integration)',
weather_entity: 'Weather entity (empty = auto-detect)',
diff --git a/homeassistant/card/build.js b/homeassistant/card/build.js
index 6d06d742..75f118fd 100644
--- a/homeassistant/card/build.js
+++ b/homeassistant/card/build.js
@@ -200,7 +200,7 @@ var HABIRD_EDITOR_SCHEMA = [
{ value: 'ha', label: 'MQTT sensor history only' },
] } } },
{ name: 'history_days', selector: { number: { min: 1, max: 365, step: 1, mode: 'box', unit_of_measurement: 'days' } } },
- { name: 'sit_confidence', selector: { number: { min: 0.5, max: 1, step: 0.01, mode: 'slider' } } },
+ { name: 'sit_confidence', selector: { number: { min: 0, max: 1.01, step: 0.01, mode: 'slider' } } },
{ name: 'clock', selector: { boolean: {} } },
{ name: 'weather', selector: { boolean: {} } },
{ name: 'weather_entity', selector: { entity: { domain: 'weather' } } },
@@ -229,7 +229,7 @@ var HABIRD_LABELS = {
birdnet_url: 'BirdNET-Go URL (empty = this host, port 8080)',
data_source: 'Data source',
history_days: 'MQTT history span (bounded by recorder retention)',
- sit_confidence: 'Sit confidence (perched at/above, flying below)',
+ sit_confidence: 'Sit confidence (perched at/above, flying below; 0 = always perched, 1.01 = always flying)',
clock: 'Clock',
weather: 'Weather (from your HA weather integration)',
weather_entity: 'Weather entity (empty = auto-detect)',
diff --git a/homeassistant/www/config.js b/homeassistant/www/config.js
index 60619963..98ed26a0 100644
--- a/homeassistant/www/config.js
+++ b/homeassistant/www/config.js
@@ -30,6 +30,8 @@ window.AV_CONFIG = {
// in its flight pose (when a flight illustration exists). The idea:
// a loud, unmistakable bird is probably settled nearby - a faint,
// uncertain one is just passing through.
+ // Extremes work too: 0 = everyone always perches, 1.01 = everyone
+ // always flies (confidence never exceeds 1.0).
sitConfidence: 0.90,
// Wall-mounted display extras. All off by default for desk browsing.