BirdNET (-PI)

Set this up today on the 3B+ - working just ok, slow and hangs now and then. But I’d love an integration for HA.

I would love this so much in Home Assistant. At best it would just take my camera audio stream. That would be sooooo awesome.

On the github there’s progress on getting it to work on a VM, which is a step in the right direction. Personally I think it’s suited for docker as it mainly 5 services working in unison. Maybe one day.

1 Like

Hey all,

I got some news. Some kind fellow has ported a birdnet-pi-esque solution to docker using docker-compose. It’s very similar as it runs the service in multiple containers rather than loads of scripts as in birnetpi.
Here’s the link : BirdCAGE
The endgame being that it becomes an add-on. At the moment it’s still in its infancy.

1 Like

Following on from my last post, I’ve managed to transform it into an addon. The only hitch is that it uses docker-compose, which is not a typical usage scenario for whatever reason. And thus you have to go the single-container route and allow that container to use the docker_api (level 1 addon) and run the docker-compose-up. It all starts fine but the 2nd hitch is at shutdown, I can’t modify the “S6_KILL_FINISH_MAXTIME” value from 5 seconds, it needs at least 20s to properly run the docker-compose down command.
If anyone has some experience with docker-compose and add-ons?
Maybe having the images used in docker-compose built upon the images provided by HA?

A true integration for Home Assistant would be the ‘cats meow’ (bad bird joke :wink: ) This might offer you something as a start. I wrote this rough Python program to send the ‘heard birds’ in BirdNET-Pi (or in my case a branch off that work that is running in a Proxmox VM) via MQTT to Home Assistant.

The BirdNET-Pi project and related work is a lot of fun. The code is a bit long in the tooth IMHO, but it works pretty well. I want to make a pass at simplifying the system, but that is one of many future TODO’s. For now, this code has been working pretty well and lets me see bird info in Home Assistant. You will have to poke around the code a bit to make changes to get it running in your environment, it does not currently have any ‘configuration’ files.

3 Likes

It does take the audio out of a rtsp stream I have it setup on a pi3b that way.

Missed that post somehow. You should ask at the HA add-on dev Discord: https://discord.gg/k3VdPK83

Yeah. I’m taking RTSP off my unifi cameras. The acquisition and processing function great. I just wish the UI could be cleaned up a bit. It sure seems like it’s downloading every audio snippet in the table every time a page loads - this makes it crawl if you’re on a phone. It’s really only usable on a desktop. That being said, it is totally neat and I love looking through it.

Are you getting accurate results with rtsp feeds? Pretty much every match is false with mine I wish it would work but I dont think the mic is very good in the cameras

I know precisely zilch about birds, but most seem very reasonable. There are a few recurring birds which are clearly wrong and I’ve blocked (frogs and dogs registering as some kind of birds) but beyond that, a lot of finches, crows, owls and hawks which I actually see daily.

So I am interested in using your code to get birdnet data into HA.

But also what’s going on with the card above your example? The one that shows satellite info. I’m interested in pulling in something like that.

It’s been a while since I reviewed this, so there may well be better ways of retrieving and displaying this information. Good hunting!

     # https://github.com/djtimca/harocketlaunchlive

     # https://github.com/custom-cards/flex-table-card

     - type: custom:flex-table-card
       title: Upcoming Rocket Launches
       entities:
         include: sensor.rocket_launch*
       columns:
         - name: State
           data: state
         - name: Missions
           data: launch_missions
         - name: Vehicle
           data: vehicle
         - name: Launch Pad
           data: launch_pad
         - name: Estimated Launch Date
           data: est_launch_date

1 Like

It looks as if development of BirdNet-Pi has stalled. No updates for ages and no pi5 support. All is not lost however.

A version based on the programming language GO is actively being developed.

It is still being developed but the recent pre-compiled pi release works amazingly well on a pi3 compared to the BirdNet-Pi version which basically choked the pi to death. You don’t even need to use a headless install. Woks well on the desktop version.


.

That is with a setup cobbled together from what I had available, a SoundBlaster USB sound card and a Yamaha YPAO microphone. Tested the sound card and it has no hum and very little hiss. The microphone is meant for room calibrating Yamah AV receivers so it is omni-directional and has a wide frequency range but it has poor sensitivity (low output, may need a pre-amp). I have a better mic on order.

There’s a small amount of talk about a HA addon:

1 Like

That’s fantastic. I have the existing one on my HA machine tied into the mic on my Unifi cameras. It works pretty well, save the UI experience is only useable on a desktop. It seems like it pre-loads ALL of the sound files on a page with the page and that makes it crawl if you try using it on mobile.

Definitely excited to see some movement here. Thanks for the update!

BirdNet-GO has the ability to listen to one rtsp stream.

My camera mics suffer way too much from wind noise for that unfortunately.

Yep. That’s how I’m doing it. It works pretty well.

My birdnet.pi server is running well enough for now (though I’ll agree I wish it was easier to view on mobile).

But if this new option gets a HA addon and support for multiple rtsp streams…I will gladly make the switch.

I use MQTT to bring some data into HA so I can see, at least, my most recent visitor when I’m not home. Would be fantastic to have the entire dash accessible in HA. Also nice to free up that Pi.

Will be following!

I’ve managed in the past to port a couple docker apps to the HA way of things. I seems that the S6 overlay will work just fine here, as all it needs to do is call a binary, which can be done through a .sh. As mentoined on GitHub i haven’t had much time nor a good internet connection. But only got a couple weeks left.

1 Like

Birdnet-go has just added mqtt reporting of detections. I’ve got it connected to the broker and reporting but have not yet worked out how best to display this data. Displaying Birdnet-go detections

1 Like