Skip to content

Instantly share code, notes, and snippets.

Please, think about the environment 🌎

Franck Nijhof frenck

Please, think about the environment 🌎
View GitHub Profile
frenck / selectors.yaml
Last active December 4, 2020 14:59
Device selectors
View selectors.yaml
name: Test blueprint
domain: automation
name: Event to trigger on
description: This is a field you have to fill out
name: Service to call
frenck /
Last active June 18, 2020 20:45
Home Assistant Scripts & Automations Syntax Idea Palette

This is a gist for me personally to play and think about extending the Home Assistant script & automation engine and its syntax.

This is in no way a direction Home Assistant is going, and is just a personal idea/notebook.

View 01-types.yaml
# Let first talk about the different types in YAML
# It is important to understand the differences and terms.
# Not just for configuration splitting, but in general!
# Scalar values: String, Integer, Float, Boolean, Null
# Comments
# Collections: List (sequence), Dictionary (mapping) (important for splitting!)
from ctypes import c_ushort
class CRC16(object):
crc16_tab = []
# The CRC's are computed using polynomials. Here is the most used
# coefficient for CRC16
crc16_constant = 0xA001 # 40961
frenck / doorbell.yaml
Last active December 20, 2021 02:43
Blog: For just $2, convert any existing wired doorbell into a smart doorbell; using ESPHome and Home Assistant:
View doorbell.yaml
name: doorbell
platform: ESP8266
board: esp01_1m
# WiFi connection, correct these
# with values for your WiFi.
ssid: !secret wifi_ssid
View shield.yaml
- platform: androidtv
name: SHIELD
adb_server_ip: local-adb
adb_server_port: 5037
frenck / basic.yaml
Created January 22, 2019 22:49
Sonoff Basic ESPHome
View basic.yaml
name: basic
platform: ESP8266
board: esp01_1m
board_flash_mode: dout
ssid: 'Demo'
password: 'Livestream'
frenck / pow.yaml
Created January 22, 2019 22:35
Sonoff POW R2 Washing Machine Sensor Example
View pow.yaml
name: pow
platform: ESP8266
board: esp01_1m
board_flash_mode: dout
ssid: 'Demo'
password: 'Livestream'
frenck / .zshrc
Created December 11, 2018 21:05
My ZSH config
View .zshrc
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$(brew --prefix coreutils)/libexec/gnubin:$PATH
export PATH="$PATH:/Applications/Visual Studio"
# Path to your oh-my-zsh installation.
export ZSH="/Users/frenck/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
View phpcs_issue_63_composer.json
"name": "drupal-composer/drupal-project",
"description": "Project template for Drupal 8 projects with composer",
"type": "project",
"license": "GPL-2.0-or-later",
"authors": [
"name": "",
"role": ""