Skip to content

Instantly share code, notes, and snippets.

View robwolff3's full-sized avatar

Rob Wolff robwolff3

View GitHub Profile
@felixstorm
felixstorm / esphome.yaml
Last active July 7, 2024 07:34
WiCAN ESPHome Configuration (work in progress, abbreviated)
# Be warned: This is just a first try and still very much work in progress - no guarantees given whatsoever!
#
# To install the ESPHome firmware on the WiCAN for the first time (before being able to use ESPHome OTA), I built the firmware
# for download (in "modern" format) and then used the following command line on Linux:
# esptool.py --before=default_reset --after=hard_reset --no-stub write_flash --flash_mode dio --flash_freq 80m --flash_size 4MB 0x0 /home/.../Downloads/m-wican-factory.bin
#
# Don't forget to short the pins to enable boot mode (https://github.com/meatpiHQ/wican-fw#obd).
#
# Using the graphical tool (https://github.com/meatpiHQ/wican-fw#2-usb-flash) will probably work just as well. Just populate
# the first item in the list with 0x0 and /home/.../Downloads/m-wican-factory.bin and leave the rest empty.
blueprint:
name: Easy Customizable Controller Automation Blueprint for Hue Dimmer Switch in Zigbee2MQTT
description:
Controller automation for easy customizable Buttons with Philips Hue Dimmer Switch.
----------------------------------------------------------------------
__--------> !!!!!!!!! FRUSTRATION CAUTION !!!!!!!!! <--------__
# Moved to https://github.com/anotherkev/homeassistant-config/blob/main/ui-lovelace.yaml
@emxsys
emxsys / raspberry_pi_script_as_service.md
Last active October 18, 2024 01:24
How to run a python script as a service in Raspberry Pi - Raspbian Jessie

How to Run a Script as a Service in Raspberry Pi - Raspbian Jessie

By: Diego Acuña

Original Article: http://www.diegoacuna.me/how-to-run-a-script-as-a-service-in-raspberry-pi-raspbian-jessie/

A pretty common task when using this device, is to run some script (for example a python script) as a service in the operating system so it can start on boot, stop and restart using systemctl and more. In this post I'm going to explain how to set a little script as a service using Raspbian Jessie in a Raspberry Pi.

Example Python Script

@AdamNaj
AdamNaj / about.md
Last active July 13, 2022 19:50
Z Wave Graph for Home Assistant
@carry0987
carry0987 / RPi3-Auto-WiFi.md
Last active November 10, 2024 01:33
Raspberry Pi 3B+ Auto reconnect to wifi when lost connect

Auto reconnect to wifi when lost connection

Before you start, make sure ip command is available on your system. In modern Linux distributions, ip replaces older ifconfig command. If net-tools package (that includes ifconfig) is not installed and you prefer using it, you can install it via sudo apt-get install net-tools.

Create script file

Use touch /home/pi/wifi-reconnect.sh to create a shell script file, with the following content:

#!/bin/bash
@dd-han
dd-han / README.md
Last active January 15, 2022 19:12
using Cloudflare as DDNS in ASUSWRT-Merlin firmware

ASUSWRT-MERLIN custom DDNS Script for Cloudflare

for Cloudflare as DDNS

using Cloudflare API v4

Using

put ddns-start at /jffs/scripts/, setting values and set DDNS type to Custom at web Admin panel.