Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View frenck's full-sized avatar
🌱
Please, think about the environment 🌎

Franck Nijhof frenck

🌱
Please, think about the environment 🌎
View GitHub Profile
@frenck
frenck / selectors.yaml
Last active December 4, 2020 14:59
Device selectors
blueprint:
name: Test blueprint
domain: automation
input:
trigger_event:
name: Event to trigger on
description: This is a field you have to fill out
service_to_call:
name: Service to call
entity:
@frenck
frenck / 1-introduction.md
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.

---
#
# 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
frenck / doorbell.yaml
Last active March 31, 2024 13:29
Blog: For just $2, convert any existing wired doorbell into a smart doorbell; using ESPHome and Home Assistant: https://frenck.dev/diy-smart-doorbell-for-just-2-dollar/
---
esphome:
name: doorbell
platform: ESP8266
board: esp01_1m
# WiFi connection, correct these
# with values for your WiFi.
wifi:
ssid: !secret wifi_ssid
media_player:
- platform: androidtv
host: 192.168.5.194
name: SHIELD
adb_server_ip: local-adb
adb_server_port: 5037
@frenck
frenck / basic.yaml
Created January 22, 2019 22:49
Sonoff Basic ESPHome
esphomeyaml:
name: basic
platform: ESP8266
board: esp01_1m
board_flash_mode: dout
wifi:
ssid: 'Demo'
password: 'Livestream'
@frenck
frenck / pow.yaml
Created January 22, 2019 22:35
Sonoff POW R2 Washing Machine Sensor Example
esphomeyaml:
name: pow
platform: ESP8266
board: esp01_1m
board_flash_mode: dout
wifi:
ssid: 'Demo'
password: 'Livestream'
@frenck
frenck / .zshrc
Created December 11, 2018 21:05
My ZSH config
# 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 Code.app/Contents/Resources/app/bin"
# 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
{
"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": ""
}