Skip to content

Instantly share code, notes, and snippets.

View marciogranzotto's full-sized avatar

Marcio Granzotto Rodrigues marciogranzotto

View GitHub Profile
@marciogranzotto
marciogranzotto / zigbee2mqtt_aqara_wireless_switch.yaml
Created March 29, 2022 23:07 — forked from rhl2401/zigbee2mqtt_aqara_wireless_switch.yaml
Aqara Wireless Switch (single, double, hold)
blueprint:
name: Aqara Wireless Switch (single, double, hold)
description: 'Control anything using Aqara Wireless Switch.
Customizable actions for each press.
This version of the blueprint is for buttons supporting single, double and hold actions.
'
domain: automation
@marciogranzotto
marciogranzotto / backup.sh
Last active April 30, 2018 06:53 — forked from fragolinux/backup.sh
simple but effective node-red setup backup script
#!/bin/bash
cd
# useful vars
DATE=$(date +"%Y%m%d%H%M")
WHERE=~/backup/$DATE
# create dated backup folders
mkdir -p $WHERE/{sqlite,nodered,etc}
# safely backup sqlite db
# sqlite3 ~/dbs/iot.db ".backup $WHERE/sqlite/iot.db"
# backup json and js files