Now I don't know if I'll get a post out this week! So many edits...Updated some broken links and images. Added how to add the camera entity.

This commit is contained in:
Norm Rasmussen
2023-10-12 16:25:55 -04:00
parent 3643d189ee
commit 0a008b2c45
25 changed files with 58 additions and 35 deletions

View File

@ -85,7 +85,7 @@ information that is pertinent to your own uses.
Here is how I've setup my MQTT payload from BirdNET-Pi Settings:
![Notification Settings](/posts/img/birdnet_mqtt_settings.png, "MQTT Settings in BirdNET-Pi")
![Notification Settings](../posts/img/birdnet_mqtt_settings.png)
Here it is in text form:
@ -304,6 +304,28 @@ For the rest of the mqtt payloads, we need HomeAssistant to create them as they
code block to our HomeAssistant configuration file. To be clear, you _do not_ need to add the Wikipedia and Flickr sensors to
HA's configuration file!
## Adding the Camera entity
Last but not least, we need to add a camera entity to ensure that the `sensor.birdpic` can actually be rendered visually.
It's really easy to add this sensor, so this should be quick. Here's how:
1. In HomeAssistant, navigate to Settings > Devices & Services > Integrations
2. Click "+ Add Integration" in the bottom right-hand corner. Alternatively, if you already have a camera integration
enabled, look for the "Generic Camera" card and click "Add Entry"
3. Name the sensor. In this case, I called it "BirdPicturesfromFlickr" and renamed the entity to `camera.birdnet_flickr`.
4. You should now see a "Still Image URL" as the first of a few options on the screen. Enter the following into the still
image field: `{{ state_attr('sensor.birdpic', 'image') }}` (This is the sensor we created in AppDaemon with the flickr url
as the attribute).
5. Stream Source and RTSP transport protocol can both be left blank.
6. Authentication - select "digest".
7. Username and Password can be left blank.
8. Frame Rate - 2
9. Leave the rest of the check boxes unchecked and click Submit
When you now click on the entity, you should see an image!
![HomeAssistant BirdNET Camera Entity](../posts/img/birdnet_camera_entity.png)
By this point, you should have successfully created 7 new sensors in HomeAssistant. In Part 2 of this article, we'll take a
look at Home Assistant, see what these sensors look like, and create a rudimentary dashboard.

View File

@ -47,8 +47,8 @@ but I wanted to get this out there sooner than later!
![HomeAssistant BirdNet-Pi Dashboard - Full View](../posts/img/birdnet-homeassistant-dash-full.png)
I've include the code for all the cards at the bottom of this post. You can find them [here]{{< ref
"birdnet_homeassistant_part2.md#dashboard-yaml" >}}. This dashboard is pretty simple, it brings in almost all of the sensors
I've included the code for all the cards at the bottom of this post. You can find them [here]({{< ref "birdnet_homeassistant_part2.md#dashboard-yaml" >}}).
This dashboard is pretty simple, it brings in almost all of the sensors
we created in the first post and organizes them in an as-pleasant-as-possible view. I'm definitely not a designer, so some of
the colors could be worked on...

Binary file not shown.

After

Width:  |  Height:  |  Size: 640 KiB

View File

@ -27,7 +27,6 @@
</style>
</noscript>
<script defer data-domain="selfhosted.rsmsn.co" src="https://analytics.rsmsn.co/js/script.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-X8VR5M0K20"></script>
<script>
var doNotTrack = false;

View File

@ -28,7 +28,6 @@
</style>
</noscript>
<script defer data-domain="selfhosted.rsmsn.co" src="https://analytics.rsmsn.co/js/script.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-X8VR5M0K20"></script>
<script>
var doNotTrack = false;

View File

@ -28,7 +28,6 @@
</style>
</noscript>
<script defer data-domain="selfhosted.rsmsn.co" src="https://analytics.rsmsn.co/js/script.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-X8VR5M0K20"></script>
<script>
var doNotTrack = false;

View File

@ -29,7 +29,6 @@
</style>
</noscript>
<script defer data-domain="selfhosted.rsmsn.co" src="https://analytics.rsmsn.co/js/script.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-X8VR5M0K20"></script>
<script>
var doNotTrack = false;
@ -169,7 +168,7 @@ The best way to do this is by just type e from any screen in the HomeAssistant U
Update: 10/11/2023. A huge thanks to Mastodon User e_mobile2014 who found a broken link in this guide and pointed out that I never explained how to get the mqtt sensors into HomeAssistant!
What you will need BirdNET-Pi HomeAssistant AppDaemon MQTT Broker (I use Mosquitto) Background In early 2023, at the height of the Raspberry Pi shortage I felt like a king with an extra Rpi laying around, not being used....</p>
</div>
<footer class="entry-footer"><span title='2023-09-30 11:21:55 -0400 EDT'>September 30, 2023</span>&nbsp;·&nbsp;11 min&nbsp;·&nbsp;2296 words&nbsp;·&nbsp;Me</footer>
<footer class="entry-footer"><span title='2023-09-30 11:21:55 -0400 EDT'>September 30, 2023</span>&nbsp;·&nbsp;12 min&nbsp;·&nbsp;2484 words&nbsp;·&nbsp;Me</footer>
<a class="entry-link" aria-label="post link to Creating a BirdNetPi Dashboard in HomeAssistant - Part 1" href="./posts/birdnet_homeassistant.html"></a>
</article>

View File

@ -28,7 +28,6 @@
</style>
</noscript>
<script defer data-domain="selfhosted.rsmsn.co" src="https://analytics.rsmsn.co/js/script.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-X8VR5M0K20"></script>
<script>
var doNotTrack = false;
@ -143,7 +142,7 @@ The best way to do this is by just type e from any screen in the HomeAssistant U
Update: 10/11/2023. A huge thanks to Mastodon User e_mobile2014 who found a broken link in this guide and pointed out that I never explained how to get the mqtt sensors into HomeAssistant!
What you will need BirdNET-Pi HomeAssistant AppDaemon MQTT Broker (I use Mosquitto) Background In early 2023, at the height of the Raspberry Pi shortage I felt like a king with an extra Rpi laying around, not being used....</p>
</div>
<footer class="entry-footer"><span title='2023-09-30 11:21:55 -0400 EDT'>September 30, 2023</span>&nbsp;·&nbsp;11 min&nbsp;·&nbsp;2296 words&nbsp;·&nbsp;Me</footer>
<footer class="entry-footer"><span title='2023-09-30 11:21:55 -0400 EDT'>September 30, 2023</span>&nbsp;·&nbsp;12 min&nbsp;·&nbsp;2484 words&nbsp;·&nbsp;Me</footer>
<a class="entry-link" aria-label="post link to Creating a BirdNetPi Dashboard in HomeAssistant - Part 1" href="./posts/birdnet_homeassistant.html"></a>
</article>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -29,7 +29,6 @@
</style>
</noscript>
<script defer data-domain="selfhosted.rsmsn.co" src="https://analytics.rsmsn.co/js/script.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-X8VR5M0K20"></script>
<script>
var doNotTrack = false;

Binary file not shown.

After

Width:  |  Height:  |  Size: 640 KiB

View File

@ -29,7 +29,6 @@
</style>
</noscript>
<script defer data-domain="selfhosted.rsmsn.co" src="https://analytics.rsmsn.co/js/script.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-X8VR5M0K20"></script>
<script>
var doNotTrack = false;

View File

@ -29,7 +29,6 @@
</style>
</noscript>
<script defer data-domain="selfhosted.rsmsn.co" src="https://analytics.rsmsn.co/js/script.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-X8VR5M0K20"></script>
<script>
var doNotTrack = false;

View File

@ -29,7 +29,6 @@
</style>
</noscript>
<script defer data-domain="selfhosted.rsmsn.co" src="https://analytics.rsmsn.co/js/script.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-X8VR5M0K20"></script>
<script>
var doNotTrack = false;

View File

@ -28,7 +28,6 @@
</style>
</noscript>
<script defer data-domain="selfhosted.rsmsn.co" src="https://analytics.rsmsn.co/js/script.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-X8VR5M0K20"></script>
<script>
var doNotTrack = false;

View File

@ -28,7 +28,6 @@
</style>
</noscript>
<script defer data-domain="selfhosted.rsmsn.co" src="https://analytics.rsmsn.co/js/script.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-X8VR5M0K20"></script>
<script>
var doNotTrack = false;

View File

@ -28,7 +28,6 @@
</style>
</noscript>
<script defer data-domain="selfhosted.rsmsn.co" src="https://analytics.rsmsn.co/js/script.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-X8VR5M0K20"></script>
<script>
var doNotTrack = false;

View File

@ -28,7 +28,6 @@
</style>
</noscript>
<script defer data-domain="selfhosted.rsmsn.co" src="https://analytics.rsmsn.co/js/script.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-X8VR5M0K20"></script>
<script>
var doNotTrack = false;

View File

@ -28,7 +28,6 @@
</style>
</noscript>
<script defer data-domain="selfhosted.rsmsn.co" src="https://analytics.rsmsn.co/js/script.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-X8VR5M0K20"></script>
<script>
var doNotTrack = false;
@ -128,7 +127,7 @@ The best way to do this is by just type e from any screen in the HomeAssistant U
Update: 10/11/2023. A huge thanks to Mastodon User e_mobile2014 who found a broken link in this guide and pointed out that I never explained how to get the mqtt sensors into HomeAssistant!
What you will need BirdNET-Pi HomeAssistant AppDaemon MQTT Broker (I use Mosquitto) Background In early 2023, at the height of the Raspberry Pi shortage I felt like a king with an extra Rpi laying around, not being used....</p>
</div>
<footer class="entry-footer"><span title='2023-09-30 11:21:55 -0400 EDT'>September 30, 2023</span>&nbsp;·&nbsp;11 min&nbsp;·&nbsp;2296 words&nbsp;·&nbsp;Me</footer>
<footer class="entry-footer"><span title='2023-09-30 11:21:55 -0400 EDT'>September 30, 2023</span>&nbsp;·&nbsp;12 min&nbsp;·&nbsp;2484 words&nbsp;·&nbsp;Me</footer>
<a class="entry-link" aria-label="post link to Creating a BirdNetPi Dashboard in HomeAssistant - Part 1" href="../posts/birdnet_homeassistant.html"></a>
</article>

View File

@ -28,7 +28,6 @@
</style>
</noscript>
<script defer data-domain="selfhosted.rsmsn.co" src="https://analytics.rsmsn.co/js/script.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-X8VR5M0K20"></script>
<script>
var doNotTrack = false;

View File

@ -28,7 +28,6 @@
</style>
</noscript>
<script defer data-domain="selfhosted.rsmsn.co" src="https://analytics.rsmsn.co/js/script.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-X8VR5M0K20"></script>
<script>
var doNotTrack = false;
@ -128,7 +127,7 @@ The best way to do this is by just type e from any screen in the HomeAssistant U
Update: 10/11/2023. A huge thanks to Mastodon User e_mobile2014 who found a broken link in this guide and pointed out that I never explained how to get the mqtt sensors into HomeAssistant!
What you will need BirdNET-Pi HomeAssistant AppDaemon MQTT Broker (I use Mosquitto) Background In early 2023, at the height of the Raspberry Pi shortage I felt like a king with an extra Rpi laying around, not being used....</p>
</div>
<footer class="entry-footer"><span title='2023-09-30 11:21:55 -0400 EDT'>September 30, 2023</span>&nbsp;·&nbsp;11 min&nbsp;·&nbsp;2296 words&nbsp;·&nbsp;Me</footer>
<footer class="entry-footer"><span title='2023-09-30 11:21:55 -0400 EDT'>September 30, 2023</span>&nbsp;·&nbsp;12 min&nbsp;·&nbsp;2484 words&nbsp;·&nbsp;Me</footer>
<a class="entry-link" aria-label="post link to Creating a BirdNetPi Dashboard in HomeAssistant - Part 1" href="../posts/birdnet_homeassistant.html"></a>
</article>
</main>

View File

@ -28,7 +28,6 @@
</style>
</noscript>
<script defer data-domain="selfhosted.rsmsn.co" src="https://analytics.rsmsn.co/js/script.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-X8VR5M0K20"></script>
<script>
var doNotTrack = false;

View File

@ -28,7 +28,6 @@
</style>
</noscript>
<script defer data-domain="selfhosted.rsmsn.co" src="https://analytics.rsmsn.co/js/script.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-X8VR5M0K20"></script>
<script>
var doNotTrack = false;
@ -113,7 +112,7 @@ if (!doNotTrack) {
Update: 10/11/2023. A huge thanks to Mastodon User e_mobile2014 who found a broken link in this guide and pointed out that I never explained how to get the mqtt sensors into HomeAssistant!
What you will need BirdNET-Pi HomeAssistant AppDaemon MQTT Broker (I use Mosquitto) Background In early 2023, at the height of the Raspberry Pi shortage I felt like a king with an extra Rpi laying around, not being used....</p>
</div>
<footer class="entry-footer"><span title='2023-09-30 11:21:55 -0400 EDT'>September 30, 2023</span>&nbsp;·&nbsp;11 min&nbsp;·&nbsp;2296 words&nbsp;·&nbsp;Me</footer>
<footer class="entry-footer"><span title='2023-09-30 11:21:55 -0400 EDT'>September 30, 2023</span>&nbsp;·&nbsp;12 min&nbsp;·&nbsp;2484 words&nbsp;·&nbsp;Me</footer>
<a class="entry-link" aria-label="post link to Creating a BirdNetPi Dashboard in HomeAssistant - Part 1" href="../posts/birdnet_homeassistant.html"></a>
</article>
</main>

View File

@ -28,7 +28,6 @@
</style>
</noscript>
<script defer data-domain="selfhosted.rsmsn.co" src="https://analytics.rsmsn.co/js/script.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-X8VR5M0K20"></script>
<script>
var doNotTrack = false;