Skip to content

Instantly share code, notes, and snippets.

View klaasnicolaas's full-sized avatar
🧐
Looking for a job

Klaas Schoute klaasnicolaas

🧐
Looking for a job
View GitHub Profile
@klaasnicolaas
klaasnicolaas / z2m_ikea_styrbar_remote.yaml
Last active February 8, 2024 00:59
Home Assistant - Blueprint - Zigbee2MQTT - IKEA STYRBAR - 4 Button Remote
---
blueprint:
name: Z2M - IKEA styrbar (4 button) remote for lights
description: |
Control lights with an IKEA styrbar (4 button) remote.
There are 3 different features:
- Turn the light group on or off
- Increase or decrease the brightness
- Immediately switch to the min or max brightness
@klaasnicolaas
klaasnicolaas / shelly1_v3.yaml
Created January 18, 2024 13:58
A basic YAML config for the Shelly 1, equipped with everything necessary to use it.
---
# Shelly 1 - ESPHome yaml config
substitutions:
device_name: shelly-1
friendly_name: Shelly 1
project_version: "1.0.0"
# Define GPIO pins
relay_pin: GPIO4
switch_pin: GPIO5
@klaasnicolaas
klaasnicolaas / dependencies.txt
Last active March 27, 2024 22:42
Used dev dependencies in python package project template repository
aresponses = "3.0.0"
codespell = "2.2.6"
covdefaults = "2.3.0"
coverage = {version = "7.4.4", extras = ["toml"]}
mypy = "1.9.0"
pre-commit = "3.7.0"
pre-commit-hooks = "4.5.0"
pylint = "3.1.0"
pytest = "8.1.1"
pytest-asyncio = "0.23.6"
@klaasnicolaas
klaasnicolaas / hourly_price_charts.yaml
Last active April 12, 2024 13:13
Collecting the hourly energy prices via a service in the EnergyZero or easyEnergy integration and using them in an ApexCharts card in your dashboard.
- type: custom:apexcharts-card
graph_span: 1d
header:
show: true
title: Electriciteitsprijzen Vandaag (€/kwh)
span:
start: day
now:
show: true
label: Now
# Step 1
# create main branch locally, taking the history from master
git branch -m master main
# Step 2
# push the new local main branch to the remote repo (GitHub)
git push -u origin main
# Step 3
# switch the current HEAD to the main branch