Skip to content

A live bird collage card for your Home Assistant dashboard.

Editor: fold title/background/font into Dashboard, 2x2 grids, scale default 1

Adam Oberleyf28c6e2d43d3
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 131e91a2..817b6690 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -23,12 +23,13 @@
- **Stats & Atlas** drop the page title, and the stats heatmap now uses
nearly the full height before it scrolls - many more species rows show
at once.
-- **Card editor reorganized**: a single **Dashboard** section (view, time
- window, view switcher + position, collage scale, clock/weather); **Birds
- & audio** reordered (tap action → Xeno-Canto key → sit confidence →
- volume boost → artwork) with the **volume boost now a slider**;
- **Connection & data** laid out data source → BirdNET-Go URL →
- history/refresh; and clearer "blank = default" hints on optional fields.
+- **Card editor reorganized** into three sections. **Dashboard** (open by
+ default) holds title, background, font, then a view/time-window +
+ switcher 2×2, a clock/weather 2×2, idle-cursor, and collage scale
+ (which now defaults to **1**). **Birds & audio** is ordered tap action →
+ Xeno-Canto key → sit confidence → volume boost (now a **slider**) →
+ artwork. **Connection & data** is data source → BirdNET-Go URL →
+ history/refresh. Optional fields carry "blank = default" hints.
- **Stats side panel**: detection counts sit in a single aligned column
at the panel's right edge (lined up with the group subtitles), with the
names kept tight on the left - no longer stretched far from the names.
diff --git a/README.md b/README.md
index 69c7662f..64cc2603 100644
--- a/README.md
+++ b/README.md
@@ -213,8 +213,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
-collage_scale: 1.5 # how much of the card the flock claims (0.5-3)
- # (0 = always perched, 1.01 = always flying)
+collage_scale: 1 # how much of the card the flock claims (0.5-3)
tap_action: both # both (open details + play call, default) |
# info (details only) | call (reference call only)
xeno_canto_key: "" # free key from xeno-canto.org/account; enables the
diff --git a/dist/habird-card.js b/dist/habird-card.js
index 0b2c5d0b..ff0ddc85 100644
--- a/dist/habird-card.js
+++ b/dist/habird-card.js
@@ -4855,24 +4855,19 @@ var HABIRD_CDN_ASSETS = 'https://cdn.jsdelivr.net/gh/adamoberley/HABirdDashboard
var HABIRD_VERSION = '1.1.0';
var HABIRD_EDITOR_SCHEMA = [
- { name: 'title', selector: { text: {} } },
- { name: '', type: 'grid', schema: [
- { name: 'background', selector: { select: { mode: 'dropdown', options: [
- { value: 'transparent', label: 'Transparent' },
- { value: 'paper', label: 'Paper' },
- ] } } },
- { name: 'font', selector: { select: { mode: 'dropdown', options: [
- { value: 'system', label: 'Home Assistant' },
- { value: 'serif', label: 'Editorial serif' },
- ] } } },
- ] },
- { name: 'dashboard', type: 'expandable', flatten: true, title: 'Dashboard', schema: [
+ { name: 'dashboard', type: 'expandable', flatten: true, title: 'Dashboard', expanded: true, schema: [
+ { name: 'title', selector: { text: {} } },
{ name: '', type: 'grid', schema: [
- { name: 'view', selector: { select: { mode: 'dropdown', options: [
- { value: 'collage', label: 'Collage' },
- { value: 'stats', label: 'Stats' },
- { value: 'atlas', label: 'Atlas' },
+ { name: 'background', selector: { select: { mode: 'dropdown', options: [
+ { value: 'transparent', label: 'Transparent' },
+ { value: 'paper', label: 'Paper' },
+ ] } } },
+ { name: 'font', selector: { select: { mode: 'dropdown', options: [
+ { value: 'system', label: 'Home Assistant' },
+ { value: 'serif', label: 'Editorial serif' },
] } } },
+ ] },
+ { name: '', type: 'grid', schema: [
{ name: 'window', selector: { select: { mode: 'dropdown', options: [
{ value: '1', label: 'Last hour' },
{ value: '12', label: 'Last 12 hours' },
@@ -4883,29 +4878,30 @@ var HABIRD_EDITOR_SCHEMA = [
{ value: '720', label: 'Last 30 days' },
{ value: 'all', label: 'All time' },
] } } },
- ] },
- { name: '', type: 'grid', schema: [
{ name: 'view_selector', selector: { boolean: {} } },
+ { name: 'view', selector: { select: { mode: 'dropdown', options: [
+ { value: 'collage', label: 'Collage' },
+ { value: 'stats', label: 'Stats' },
+ { value: 'atlas', label: 'Atlas' },
+ ] } } },
{ name: 'selector_position', selector: { select: { mode: 'dropdown', options: [
{ value: 'bottom', label: 'Bottom' },
{ value: 'top', label: 'Top' },
] } } },
] },
- { name: 'collage_scale', selector: { number: { min: 0.5, max: 3, step: 0.1, mode: 'slider' } } },
{ name: '', type: 'grid', schema: [
{ name: 'clock', selector: { boolean: {} } },
- { name: 'weather', selector: { boolean: {} } },
- ] },
- { name: 'weather_entity', selector: { entity: { domain: 'weather' } } },
- { name: '', type: 'grid', schema: [
{ name: 'corner', selector: { select: { mode: 'dropdown', options: [
{ value: 'bottom-right', label: 'Bottom right' },
{ value: 'bottom-left', label: 'Bottom left' },
{ value: 'top-right', label: 'Top right' },
{ value: 'top-left', label: 'Top left' },
] } } },
- { name: 'hide_cursor', selector: { boolean: {} } },
+ { name: 'weather', selector: { boolean: {} } },
+ { name: 'weather_entity', selector: { entity: { domain: 'weather' } } },
] },
+ { name: 'hide_cursor', selector: { boolean: {} } },
+ { name: 'collage_scale', selector: { number: { min: 0.5, max: 3, step: 0.1, mode: 'slider' } } },
] },
{ name: 'birds', type: 'expandable', flatten: true, title: 'Birds & audio', schema: [
{ name: 'tap_action', selector: { select: { mode: 'dropdown', options: [
@@ -5067,7 +5063,7 @@ class HABirdCard extends HTMLElement {
pollSeconds: c.poll_seconds || 60,
__budgetScale: (typeof c.collage_scale === 'number' && c.collage_scale > 0)
? c.collage_scale
- : 1.5, // birds command a card harder than a full page
+ : 1, // default fill
audioBoostDb: (c.audio_boost == null ? 24 : +c.audio_boost),
tapAction: c.tap_action || 'both', // both | info | call
xenoCantoKey: c.xeno_canto_key || '', // enables reference calls
@@ -5136,7 +5132,7 @@ class HABirdCardEditor extends HTMLElement {
this.appendChild(this._form);
}
this._form.schema = HABIRD_EDITOR_SCHEMA;
- this._form.data = Object.assign({ corner: 'bottom-right', sit_confidence: 0.90, window: '24', background: 'transparent', font: 'system', data_source: 'auto', view: 'collage', view_selector: true, selector_position: 'bottom', collage_scale: 1.5, audio_boost: 24 }, this._config);
+ this._form.data = Object.assign({ corner: 'bottom-right', sit_confidence: 0.90, window: '24', background: 'transparent', font: 'system', data_source: 'auto', view: 'collage', view_selector: true, selector_position: 'bottom', collage_scale: 1, audio_boost: 24 }, this._config);
this._form.hass = this._hass;
}
}
diff --git a/homeassistant/card/build.js b/homeassistant/card/build.js
index 3d328cdf..611f2ae0 100644
--- a/homeassistant/card/build.js
+++ b/homeassistant/card/build.js
@@ -200,24 +200,19 @@ var HABIRD_CDN_ASSETS = 'https://cdn.jsdelivr.net/gh/adamoberley/HABirdDashboard
var HABIRD_VERSION = '1.1.0';
var HABIRD_EDITOR_SCHEMA = [
- { name: 'title', selector: { text: {} } },
- { name: '', type: 'grid', schema: [
- { name: 'background', selector: { select: { mode: 'dropdown', options: [
- { value: 'transparent', label: 'Transparent' },
- { value: 'paper', label: 'Paper' },
- ] } } },
- { name: 'font', selector: { select: { mode: 'dropdown', options: [
- { value: 'system', label: 'Home Assistant' },
- { value: 'serif', label: 'Editorial serif' },
- ] } } },
- ] },
- { name: 'dashboard', type: 'expandable', flatten: true, title: 'Dashboard', schema: [
+ { name: 'dashboard', type: 'expandable', flatten: true, title: 'Dashboard', expanded: true, schema: [
+ { name: 'title', selector: { text: {} } },
{ name: '', type: 'grid', schema: [
- { name: 'view', selector: { select: { mode: 'dropdown', options: [
- { value: 'collage', label: 'Collage' },
- { value: 'stats', label: 'Stats' },
- { value: 'atlas', label: 'Atlas' },
+ { name: 'background', selector: { select: { mode: 'dropdown', options: [
+ { value: 'transparent', label: 'Transparent' },
+ { value: 'paper', label: 'Paper' },
+ ] } } },
+ { name: 'font', selector: { select: { mode: 'dropdown', options: [
+ { value: 'system', label: 'Home Assistant' },
+ { value: 'serif', label: 'Editorial serif' },
] } } },
+ ] },
+ { name: '', type: 'grid', schema: [
{ name: 'window', selector: { select: { mode: 'dropdown', options: [
{ value: '1', label: 'Last hour' },
{ value: '12', label: 'Last 12 hours' },
@@ -228,29 +223,30 @@ var HABIRD_EDITOR_SCHEMA = [
{ value: '720', label: 'Last 30 days' },
{ value: 'all', label: 'All time' },
] } } },
- ] },
- { name: '', type: 'grid', schema: [
{ name: 'view_selector', selector: { boolean: {} } },
+ { name: 'view', selector: { select: { mode: 'dropdown', options: [
+ { value: 'collage', label: 'Collage' },
+ { value: 'stats', label: 'Stats' },
+ { value: 'atlas', label: 'Atlas' },
+ ] } } },
{ name: 'selector_position', selector: { select: { mode: 'dropdown', options: [
{ value: 'bottom', label: 'Bottom' },
{ value: 'top', label: 'Top' },
] } } },
] },
- { name: 'collage_scale', selector: { number: { min: 0.5, max: 3, step: 0.1, mode: 'slider' } } },
{ name: '', type: 'grid', schema: [
{ name: 'clock', selector: { boolean: {} } },
- { name: 'weather', selector: { boolean: {} } },
- ] },
- { name: 'weather_entity', selector: { entity: { domain: 'weather' } } },
- { name: '', type: 'grid', schema: [
{ name: 'corner', selector: { select: { mode: 'dropdown', options: [
{ value: 'bottom-right', label: 'Bottom right' },
{ value: 'bottom-left', label: 'Bottom left' },
{ value: 'top-right', label: 'Top right' },
{ value: 'top-left', label: 'Top left' },
] } } },
- { name: 'hide_cursor', selector: { boolean: {} } },
+ { name: 'weather', selector: { boolean: {} } },
+ { name: 'weather_entity', selector: { entity: { domain: 'weather' } } },
] },
+ { name: 'hide_cursor', selector: { boolean: {} } },
+ { name: 'collage_scale', selector: { number: { min: 0.5, max: 3, step: 0.1, mode: 'slider' } } },
] },
{ name: 'birds', type: 'expandable', flatten: true, title: 'Birds & audio', schema: [
{ name: 'tap_action', selector: { select: { mode: 'dropdown', options: [
@@ -412,7 +408,7 @@ class HABirdCard extends HTMLElement {
pollSeconds: c.poll_seconds || 60,
__budgetScale: (typeof c.collage_scale === 'number' && c.collage_scale > 0)
? c.collage_scale
- : 1.5, // birds command a card harder than a full page
+ : 1, // default fill
audioBoostDb: (c.audio_boost == null ? 24 : +c.audio_boost),
tapAction: c.tap_action || 'both', // both | info | call
xenoCantoKey: c.xeno_canto_key || '', // enables reference calls
@@ -481,7 +477,7 @@ class HABirdCardEditor extends HTMLElement {
this.appendChild(this._form);
}
this._form.schema = HABIRD_EDITOR_SCHEMA;
- this._form.data = Object.assign({ corner: 'bottom-right', sit_confidence: 0.90, window: '24', background: 'transparent', font: 'system', data_source: 'auto', view: 'collage', view_selector: true, selector_position: 'bottom', collage_scale: 1.5, audio_boost: 24 }, this._config);
+ this._form.data = Object.assign({ corner: 'bottom-right', sit_confidence: 0.90, window: '24', background: 'transparent', font: 'system', data_source: 'auto', view: 'collage', view_selector: true, selector_position: 'bottom', collage_scale: 1, audio_boost: 24 }, this._config);
this._form.hass = this._hass;
}
}