Skip to content

Instantly share code, notes, and snippets.

View codyc1515's full-sized avatar

Cody C codyc1515

  • New Zealand
  • 22:08 (UTC +12:00)
View GitHub Profile
@codyc1515
codyc1515 / ha-update-notification.yaml
Created January 23, 2024 21:23
Home Assistant Blueprint for Update Notifications
blueprint:
name: Update notifications
description: Send notifications for new updates and install or skip on action
homeassistant:
min_version: '2022.4.0'
domain: automation
input:
update_entities:
name: Update entities
description: >-
@codyc1515
codyc1515 / AmazonGlobal Standard Shipping with DPD.md
Last active February 17, 2024 08:38
AmazonGlobal Standard Shipping with DPD - How to track to New Zealand
@codyc1515
codyc1515 / sodastream.md
Created November 4, 2023 20:30
Sodastream 60L bottle weights

Bottle

Full

1204

Empty

753

Gas

Difference

451

@codyc1515
codyc1515 / Goodnature A24 Rat & Stoat Trap - Chirp BLE Protocol.md
Last active May 2, 2024 01:07
Goodnature A24 Rat & Stoat Trap - Chirp BLE Protocol

Introduction

Goodnature is a New Zealand based manufacturer of humane traps. Their model A24 trap targets Rat & Stoats. The device is triggered when a pest brushes past an activation pin. This causes the striker to activate instantly using the power of a small, replacable CO2 gas canister.

The device is also available with an optional visual counter or a Bluetooth Low Energy (BLE) enabled device and companion app, named Chirp. This gist aims to document some of the more technical details of the Goodnature A24 Chirp device (such as the BLE Services and Characteristics) which are not immediately clear from the support website.

How it works

  • The app requires "Always"-On location permission to detect when the user is near the trap. When near the trap, the app will then listen for BLE beacons from the Chirp.
  • Only one device using the app can connect to the Chirp at any time. When the device disconnects from the Chirp, it goes back to "sleep" again and must be "woken".
  • Because the Chirp does not have Wi