Skip to content

Instantly share code, notes, and snippets.

@niecore
niecore / commandlineswitch.yaml
Created July 16, 2021 15:55
homeassistant command line switch with usbrelay
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'"
@niecore
niecore / gist:5d7c014183f0db6ed133b29d88c321b0
Created October 28, 2021 20:45
Recover backblaze rclone backup.md
1. Create new API Key on Backblaze
Login via password and 2FA
2. Create remote for b2
[b2]
type = b2
account = keyID
key = <applicationKey>