Skip to content

Instantly share code, notes, and snippets.

View thomas-maurice's full-sized avatar

Thomas Maurice thomas-maurice

View GitHub Profile
@thomas-maurice
thomas-maurice / homeassistant-blueprint-zha-styrbar-multipress.yaml
Created May 10, 2025 08:24
Blueprint to automate your Styrbar remote with ZHA
blueprint:
name: ZHA Events - IKEA Styrbar 4 Button Remote - Multipress
description:
This automation enables the user to do single/double/triple/quadruple/quintuple presses with an Ikea STYRBAR
four buttons remote
domain: automation
input:
remote:
name: IKEA Styrbar remote control 4 buttons
description: Pick the remote you want to bind to the automation
@thomas-maurice
thomas-maurice / setup-net.sh
Last active March 20, 2024 20:52
Setup the openwrt networks
#!/bin/bash
set -eo pipefail
# List of bridges to create space delimited
bridges="sw-r0-eth0 sw-r0-eth1 sw-r0-eth2 sw-r0-eth3"
# Veths peirs to create with the following format, space delimited
# <veth dev 1>[|options]:<veth dev 1>[|options]
# where options are a comma delimited key=values pair
# options: master=<master bridge> or dhcp