diff --git a/config/_default/params.toml b/config/_default/params.toml index 470d9ac..0fb6d21 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -135,7 +135,12 @@ url = "https://runtimeterror.dev/simplex" [[socialLinks]] icon = "fa-solid fa-envelope" title = "Email" -url = "mailto:ops@runtimeterror.dev" +url = "mailto:jbowdre@omg.lol" + +[[socialLinks]] +icon = "fa-solid fa-heart" +title = "omg.lol" +url = "https://jbowdre.omg.lol" [[powerLinks]] title = "hugo" diff --git a/content/about.md b/content/about.md index dee9db0..767fdf0 100644 --- a/content/about.md +++ b/content/about.md @@ -24,9 +24,14 @@ And in the free time I have left, I game on my Steam Deck. See what I've been up to on: - [GitHub](https://github.com/jbowdre) - [CounterSocial](https://counter.social/@john_b) +- [status.lol](https://status.lol/jbowdre) +- [/now page](https://jbowdre.omg.lol/now) -Securely chat with me via: +Connect with me via: - [SimpleX Chat](/simplex/) +- [Matrix](https://matrix.to/#/@jbowdre:omg.lol) +- [Electronic Mail](mailto:jbowdre@omg.lol) + - [PGP: 613F B70C 4FA7 A077](https://home.omg.lol/keychain/jbowdre/pgp) [^1]: Congrats? And also, *thank you.* diff --git a/content/posts/automating-security-camera-notifications-with-home-assistant-and-ntfy/backyard_person.png b/content/posts/automating-camera-notifications-home-assistant-ntfy/backyard_person.png similarity index 100% rename from content/posts/automating-security-camera-notifications-with-home-assistant-and-ntfy/backyard_person.png rename to content/posts/automating-camera-notifications-home-assistant-ntfy/backyard_person.png diff --git a/content/posts/automating-security-camera-notifications-with-home-assistant-and-ntfy/backyard_person_attached.png b/content/posts/automating-camera-notifications-home-assistant-ntfy/backyard_person_attached.png similarity index 100% rename from content/posts/automating-security-camera-notifications-with-home-assistant-and-ntfy/backyard_person_attached.png rename to content/posts/automating-camera-notifications-home-assistant-ntfy/backyard_person_attached.png diff --git a/content/posts/automating-security-camera-notifications-with-home-assistant-and-ntfy/backyard_snap.png b/content/posts/automating-camera-notifications-home-assistant-ntfy/backyard_snap.png similarity index 100% rename from content/posts/automating-security-camera-notifications-with-home-assistant-and-ntfy/backyard_snap.png rename to content/posts/automating-camera-notifications-home-assistant-ntfy/backyard_snap.png diff --git a/content/posts/automating-security-camera-notifications-with-home-assistant-and-ntfy/index.md b/content/posts/automating-camera-notifications-home-assistant-ntfy/index.md similarity index 96% rename from content/posts/automating-security-camera-notifications-with-home-assistant-and-ntfy/index.md rename to content/posts/automating-camera-notifications-home-assistant-ntfy/index.md index d9a8ae0..73e39e5 100644 --- a/content/posts/automating-security-camera-notifications-with-home-assistant-and-ntfy/index.md +++ b/content/posts/automating-camera-notifications-home-assistant-ntfy/index.md @@ -1,9 +1,10 @@ --- title: "Automating Security Camera Notifications With Home Assistant and Ntfy" date: 2023-11-25 -# lastmod: 2023-11-23 +lastmod: 2023-11-27 description: "Using the power of Home Assistant automations and Ntfy push notifications to level-up security camera motion detections." featured: true +alias: automating-security-camera-notifications-with-home-assistant-and-ntfy toc: true comment: true thumbnail: thumbnail.png @@ -47,7 +48,7 @@ notify: The Reolink integration exposes a number of entities for each camera. For triggering a notification on motion detection, I'll be interested in the [binary sensor](https://www.home-assistant.io/integrations/binary_sensor/) entities named like `binary_sensor.$location_$type` (like `binary_sensor.backyard_person` and `binary_sensor.driveway_vehicle`), the state of which will transition from `off` to `on` when the selected motion type is detected. -So I'll craft start with a simple automation which will push out a notification whenever any of the listed cameras detect a person (or vehicle): +So I'll begin by crafting a simple automation which will push out a notification whenever any of the listed cameras detect a person or vehicle[^vehicle]: ```yaml # torchlight! {"lineNumbers": true} # exterior_motion.yaml @@ -72,6 +73,8 @@ action: message: "{{ trigger.to_state.attributes.friendly_name }}" ``` +[^vehicle]: Hopefully I only need to worry about vehicles in the driveway. _Please don't drive through my backyard, thanks._ + {{% notice tip "Templating" %}} That last line is taking advantage of Jinja templating and [trigger variables](https://www.home-assistant.io/docs/automation/templating/#state) so that the resulting notification displays the friendly name of whichever `binary_sensor` triggered the automation run. This way, I'll see something like "Backyard Person" instead of the entity ID listed earlier. {{% /notice %}} @@ -407,7 +410,7 @@ variables: # [tl! collapse:start] binary_sensor.garage_vehicle: timer.garage_vehicle # [tl! collapse:end] ``` -I'd also like to ensure that the interior motion alerts are also activated whenever our [Abode](https://goabode.com/) security system is set to "Away", regardless of what time that may be. That will make the condition a little bit trickier: alerts should be pushed if the timer isn't running AND the schedule is active OR the security system is armed. So here's what that will look like: +I'd also like to ensure that the interior motion alerts are also activated whenever our [Abode](https://goabode.com/) security system is armed, regardless of what time that may be. That will make the condition a little bit trickier: alerts should be pushed if the timer isn't running AND the schedule is active OR the security system is armed (in either "Home" or "Away" mode). So here's what that will look like: ```yaml # torchlight! {"lineNumbers": true} @@ -440,6 +443,9 @@ condition: # [tl! focus:start] state: "on" - condition: state state: armed_away + entity_id: alarm_control_panel.abode_alarm + - condition: state + state: armed_home entity_id: alarm_control_panel.abode_alarm # [tl! ++:end focus:end] action: # [tl! collapse:start] - service: camera.snapshot diff --git a/content/posts/automating-security-camera-notifications-with-home-assistant-and-ntfy/schedule.png b/content/posts/automating-camera-notifications-home-assistant-ntfy/schedule.png similarity index 100% rename from content/posts/automating-security-camera-notifications-with-home-assistant-and-ntfy/schedule.png rename to content/posts/automating-camera-notifications-home-assistant-ntfy/schedule.png diff --git a/content/posts/automating-security-camera-notifications-with-home-assistant-and-ntfy/thumbnail.png b/content/posts/automating-camera-notifications-home-assistant-ntfy/thumbnail.png similarity index 100% rename from content/posts/automating-security-camera-notifications-with-home-assistant-and-ntfy/thumbnail.png rename to content/posts/automating-camera-notifications-home-assistant-ntfy/thumbnail.png diff --git a/layouts/partials/aside.html b/layouts/partials/aside.html index a896cde..38e32bf 100644 --- a/layouts/partials/aside.html +++ b/layouts/partials/aside.html @@ -59,3 +59,6 @@ {{- end }} {{- end }} +