From 100c66187ae6ccac511c95104215f3f829c3cf33 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Mon, 27 Nov 2023 10:13:21 -0600 Subject: [PATCH 01/13] update post --- .../backyard_person.png | Bin .../backyard_person_attached.png | Bin .../backyard_snap.png | Bin .../index.md | 8 ++++++-- .../schedule.png | Bin .../thumbnail.png | Bin 6 files changed, 6 insertions(+), 2 deletions(-) rename content/posts/{automating-security-camera-notifications-with-home-assistant-and-ntfy => automating-camera-notifications-home-assistant-ntfy}/backyard_person.png (100%) rename content/posts/{automating-security-camera-notifications-with-home-assistant-and-ntfy => automating-camera-notifications-home-assistant-ntfy}/backyard_person_attached.png (100%) rename content/posts/{automating-security-camera-notifications-with-home-assistant-and-ntfy => automating-camera-notifications-home-assistant-ntfy}/backyard_snap.png (100%) rename content/posts/{automating-security-camera-notifications-with-home-assistant-and-ntfy => automating-camera-notifications-home-assistant-ntfy}/index.md (97%) rename content/posts/{automating-security-camera-notifications-with-home-assistant-and-ntfy => automating-camera-notifications-home-assistant-ntfy}/schedule.png (100%) rename content/posts/{automating-security-camera-notifications-with-home-assistant-and-ntfy => automating-camera-notifications-home-assistant-ntfy}/thumbnail.png (100%) 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 97% 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..5b32e9a 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 @@ -407,7 +408,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 +441,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 From 12ed77705a282480c11eb1dc0f1bdbdc51d1651e Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Mon, 27 Nov 2023 10:52:43 -0600 Subject: [PATCH 02/13] switch torchlight theme for better contrast --- torchlight.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/torchlight.config.js b/torchlight.config.js index fb4f992..81c3bea 100644 --- a/torchlight.config.js +++ b/torchlight.config.js @@ -11,7 +11,7 @@ module.exports = { // Which theme you want to use. You can find all of the themes at // https://torchlight.dev/docs/themes. - theme: 'one-dark-pro', + theme: 'synthwave-84', // The Host of the API. host: 'https://api.torchlight.dev', @@ -34,7 +34,7 @@ module.exports = { // When lines are collapsed, this is the text that will // be shown to indicate that they can be expanded. - summaryCollapsedIndicator: 'Click to expand...', + summaryCollapsedIndicator: '{ ... }', }, // Options for the highlight command. From b2ab429061f107cf002bbac77d7215c8531da93f Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Mon, 27 Nov 2023 12:42:01 -0600 Subject: [PATCH 03/13] update post --- .../index.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/posts/automating-camera-notifications-home-assistant-ntfy/index.md b/content/posts/automating-camera-notifications-home-assistant-ntfy/index.md index 5b32e9a..73e39e5 100644 --- a/content/posts/automating-camera-notifications-home-assistant-ntfy/index.md +++ b/content/posts/automating-camera-notifications-home-assistant-ntfy/index.md @@ -48,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 @@ -73,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 %}} From 21d807204256ac00579b2ae66a188d159d14e197 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Sun, 10 Dec 2023 16:25:53 -0600 Subject: [PATCH 04/13] add proven.lol proof --- layouts/partials/footer.html | 1 + 1 file changed, 1 insertion(+) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 6ac089d..375beea 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -2,6 +2,7 @@

{"powered_by": [{{- range $i, $link := .Site.Params.powerLinks }}{{ if $i }}, {{ end }}"{{ $link.title }}"{{ end }}]}
<view source>

+ {{ if (findRE " Date: Sun, 10 Dec 2023 16:29:25 -0600 Subject: [PATCH 05/13] Revert "add proven.lol proof" This reverts commit 21d807204256ac00579b2ae66a188d159d14e197. --- layouts/partials/footer.html | 1 - 1 file changed, 1 deletion(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 375beea..6ac089d 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -2,7 +2,6 @@

{"powered_by": [{{- range $i, $link := .Site.Params.powerLinks }}{{ if $i }}, {{ end }}"{{ $link.title }}"{{ end }}]}
<view source>

- {{ if (findRE " Date: Sun, 10 Dec 2023 16:44:20 -0600 Subject: [PATCH 06/13] add proven.lol proof --- layouts/partials/footer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 6ac089d..f6f42f2 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,7 +1,7 @@ {{- partial "lang.html" . -}}

{"powered_by": [{{- range $i, $link := .Site.Params.powerLinks }}{{ if $i }}, {{ end }}"{{ $link.title }}"{{ end }}]} -
<view source>

+
<view source>

{{ if (findRE " Date: Sun, 10 Dec 2023 16:48:50 -0600 Subject: [PATCH 07/13] tweak proven.lol proof --- layouts/partials/footer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index f6f42f2..7922d66 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,7 +1,7 @@ {{- partial "lang.html" . -}}

{"powered_by": [{{- range $i, $link := .Site.Params.powerLinks }}{{ if $i }}, {{ end }}"{{ $link.title }}"{{ end }}]} -
<view source>

+
<view source>

{{ if (findRE " Date: Mon, 11 Dec 2023 09:29:58 -0600 Subject: [PATCH 08/13] remove proven.lol proof --- layouts/partials/footer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 7922d66..6ac089d 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,7 +1,7 @@ {{- partial "lang.html" . -}}

{"powered_by": [{{- range $i, $link := .Site.Params.powerLinks }}{{ if $i }}, {{ end }}"{{ $link.title }}"{{ end }}]} -
<view source>

+
<view source>

{{ if (findRE " Date: Mon, 11 Dec 2023 10:12:57 -0600 Subject: [PATCH 09/13] add status.lol --- layouts/partials/aside.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/layouts/partials/aside.html b/layouts/partials/aside.html index a896cde..d4f7374 100644 --- a/layouts/partials/aside.html +++ b/layouts/partials/aside.html @@ -59,3 +59,6 @@ {{- end }} {{- end }} +
+

Latest status.lol

+ From f33eee87e22a934bd48c3979ccf26503e025d0d6 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Tue, 12 Dec 2023 08:31:41 -0600 Subject: [PATCH 10/13] tweak status.lol --- layouts/partials/aside.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/aside.html b/layouts/partials/aside.html index d4f7374..38e32bf 100644 --- a/layouts/partials/aside.html +++ b/layouts/partials/aside.html @@ -60,5 +60,5 @@ {{- end }}
-

Latest status.lol

+

status.lol

From 1ef98a3a8c6ab15cf42569aa4e6f5781b5f4c7f9 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Tue, 12 Dec 2023 11:05:44 -0600 Subject: [PATCH 11/13] add omg.lol contacts and links --- config/_default/params.toml | 7 ++++++- content/about.md | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) 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..9ae43a4 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) +- [Email](jbowdre@omg.lol) + - [PGP: 613F B70C 4FA7 A077](https://home.omg.lol/keychain/jbowdre/pgp) [^1]: Congrats? And also, *thank you.* From df6887b484fec151dcd463dc965fbd4daec93a3b Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Tue, 12 Dec 2023 14:47:00 -0600 Subject: [PATCH 12/13] fix broken mailto --- content/about.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/about.md b/content/about.md index 9ae43a4..60b0ea4 100644 --- a/content/about.md +++ b/content/about.md @@ -30,7 +30,7 @@ See what I've been up to on: Connect with me via: - [SimpleX Chat](/simplex/) - [Matrix](https://matrix.to/#/@jbowdre:omg.lol) -- [Email](jbowdre@omg.lol) +- [Email](mailto:jbowdre@omg.lol) - [PGP: 613F B70C 4FA7 A077](https://home.omg.lol/keychain/jbowdre/pgp) From 96db53ddfd3ccde865d81d298eaf739549f70dc1 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Tue, 12 Dec 2023 16:25:42 -0600 Subject: [PATCH 13/13] tweak email listing --- content/about.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/about.md b/content/about.md index 60b0ea4..767fdf0 100644 --- a/content/about.md +++ b/content/about.md @@ -30,7 +30,7 @@ See what I've been up to on: Connect with me via: - [SimpleX Chat](/simplex/) - [Matrix](https://matrix.to/#/@jbowdre:omg.lol) -- [Email](mailto:jbowdre@omg.lol) +- [Electronic Mail](mailto:jbowdre@omg.lol) - [PGP: 613F B70C 4FA7 A077](https://home.omg.lol/keychain/jbowdre/pgp)