Skip to content

Instantly share code, notes, and snippets.

View kmdm's full-sized avatar

Kenny Millington kmdm

  • United Kingdom
View GitHub Profile
@kmdm
kmdm / zha-philips-hue-dimmer-switch-alarm-keypad.yaml
Created March 7, 2021 15:22
ZHA Phillips Hue Dimmer Switch Alarm Keypad
blueprint:
name: ZHA - Philips Hue Dimmer Switch Alarm Keypad
description: 'Use the Philips Hue Dimmer Switch as an Alarm Keypad'
domain: automation
input:
remote:
name: Remote
description: The remote to use
selector:
device:
@kmdm
kmdm / esphome_ble_config.yaml
Last active February 7, 2024 09:53
esphome, esp32 ble tracker and Home Assistant mqtt_room sensors
# MQTT broker configuration
mqtt:
broker: !secret mqtt_broker
username: !secret mqtt_username
password: !secret mqtt_password
discovery: False # Only if you use the HA API usually
id: mqtt_client
# Define the room for this ESP32 node
substitutions:
@kmdm
kmdm / key-transition-2019-01-03.txt
Created January 3, 2019 14:08
OpenPGP key transition statement 2019-01-03
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1,SHA512
OpenPGP Key Transition Statement for Kenny Millington
I have created a new OpenPGP key and will be transitioning away from
my old key. The old key has not been compromised and will continue to
be valid for some time, but I prefer all future correspondence to be
encrypted to the new key, and will be making signatures with the new
key going forward.
@kmdm
kmdm / configuration.yaml
Last active August 22, 2022 09:30
Home assistant and Mitsubishi via https://github.com/SwiCago/HeatPump
# Assumes you have a topic structure like: heatpump/<room> and heatpump/<room>/set
# E.g. heatpump/bedroom, heatpump/bedroom/set, heatpump/office, heatpump/office/set
#
# Configure the MQTT HVAC climate platforms (Example for master bedroom, office and nursery. Change to suit.):
climate:
- <<: &mitsu_platform
platform: mqtt
modes:
- "off"

Keybase proof

I hereby claim:

  • I am kmdm on github.
  • I am kmdm (https://keybase.io/kmdm) on keybase.
  • I have a public key whose fingerprint is 28A2 3A3A C7E3 3BD9 FF77 B0A1 6500 2563 ED89 0A5E

To claim this, I am signing this object:

@kmdm
kmdm / gist:3227794
Created August 1, 2012 15:25
Shortcut to running app/console from any subdirectory of your symfony2 app (name: sc, place in $PATH)
#!/bin/bash
PHP=`which php`
EDITOR=`which editor`
while [ ! -f app/console ]; do
cd ..
if [ "$PWD" == "/" ]; then
break
fi
done