Skip to content

Tuesday, August 25

Using a fake HomeKit switch to automate capturing real sensor data

of

In Apple Home, an action runs whenever the Homebridge dummy switch is "pressed" (every 15 minutes). The action sends a JSON payload to dashd (the backend server/database) consisting of HomePod sensor readings and a timestamp.
In Homebridge, the virtual switch is set to trigger every 15 minutes, and also to create a local webhook where it can be triggered on-demand.
Main settings panel for virtual switch in Apple Home.
Apple Home provides a settings panel for the Homebridge virtual switch, including actions that can be run on single press, double press, and long press.

Homebridge is an open-source, virtual HomeKit bridge that runs on inexpensive hardware (I’m using a Raspberry Pi). With it, non-HomeKit devices can be added to, and controlled by, Apple Home. homebridge-dummy is a Homebridge plugin providing virtual switches and other fake “devices” that can trigger or extend HomeKit automations.

View full post…

Git Commits

days commits 5 ohnsh/days
  • 4:30 pm — John Sherrell <dev@ohn.sh>

    CE

  • 2:37 pm — John Sherrell <dev@ohn.sh>

    Minor post edit.

  • 11:17 am — John Sherrell <dev@ohn.sh>

    Remove Latest Streams section from /latest (default route). The component was pointing to YouTube live streams, which are getting stale.

  • 11:07 am — John Sherrell <dev@ohn.sh>

    Edit title of latest post and change to sentence-case to be consistent with other recent posts.

  • 11:00 am — John Sherrell <dev@ohn.sh>

    New post about homebridge/homekit automation to capture sensor data on schedule. Created a bare-bones Slideshow.astro component that uses Alpine.js for reactive state. Installed Astro Alpine integration. Bumped dependencies.

dash commits 5 ohnsh/dash
  • 9:50 pm — John Sherrell <dev@ohn.sh>

    next: social icon accessibility tweaks. Descriptive text now in a[aria-label], with the generic icon description in svg > title (ignored inside of aforementioned links).

  • 7:13 pm — John Sherrell <dev@ohn.sh>

    next: Tweak new icons.

  • 6:31 pm — John Sherrell <dev@ohn.sh>

    next: Add GitHub icon and link to project repository to sidebar.

  • 5:57 pm — John Sherrell <dev@ohn.sh>

    next: move my global styles into tailwind's base layer so they can be overridden by tailwind utilities.

  • 5:48 pm — John Sherrell <dev@ohn.sh>

    next: Add YouTube link to sidebar using Feather YouTube icon. Tweak global CSS so that global link style (accent color, underline) does not apply to links that contain an <svg>.

YouTube