Skip to content

Instantly share code, notes, and snippets.

View klaasnicolaas's full-sized avatar
💚
Working on amazing projects for Mr.Green

Klaas Schoute klaasnicolaas

💚
Working on amazing projects for Mr.Green
View GitHub Profile
@klaasnicolaas
klaasnicolaas / z2m_ikea_styrbar_remote.yaml
Last active October 13, 2024 00:50
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 October 7, 2024 23:36
Used dev dependencies in python package project template repository
aresponses = "3.0.0"
codespell = "2.3.0"
covdefaults = "2.3.0"
coverage = {version = "7.6.1", extras = ["toml"]}
mypy = "1.11.2"
pre-commit = "4.0.0"
pre-commit-hooks = "5.0.0"
pylint = "3.3.1"
pytest = "8.3.3"
pytest-asyncio = "0.24.0"
@klaasnicolaas
klaasnicolaas / hourly_price_charts.yaml
Last active September 12, 2024 09:26
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