Skip to content

Instantly share code, notes, and snippets.

@niecore
niecore / gist:5d7c014183f0db6ed133b29d88c321b0
Created Oct 28, 2021
Recover backblaze rclone backup.md
View gist:5d7c014183f0db6ed133b29d88c321b0
1. Create new API Key on Backblaze
Login via password and 2FA
2. Create remote for b2
[b2]
type = b2
account = keyID
key = <applicationKey>
@niecore
niecore / commandlineswitch.yaml
Created Jul 16, 2021
homeassistant command line switch with usbrelay
View commandlineswitch.yaml
switch:
- platform: command_line
switches:
switch_name:
command_on: "usbrelay RELAY_1=1"
command_off: "usbrelay RELAY_1=0"
command_state: "usbrelay | grep -i 'RELAY_1' | grep -E -i '=1'"