This code is usable only if you are on Home Assistant 0.114 or older
For Home Assistant 0.115 and newer please go to: https://github.com/AdamNaj/ZWaveGraphHA
{ | |
// -------------------------------------------------------------------- | |
// JSHint Configuration, Strict Edition | |
// -------------------------------------------------------------------- | |
// | |
// This is a options template for [JSHint][1], using [JSHint example][2] | |
// and [Ory Band's example][3] as basis and setting config values to | |
// be most strict: | |
// | |
// * set all enforcing options to true |
// Just before switching jobs: | |
// Add one of these. | |
// Preferably into the same commit where you do a large merge. | |
// | |
// This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
// and then it quickly escalated into more and more evil suggestions. | |
// I've tried to capture interesting suggestions here. | |
// | |
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
require 'csv' | |
# Parses CSV-exported data from SleepBot | |
def parse_export(row) | |
# Parse the wake up date | |
date_to = row[0].split('/') | |
date_to = Time.new(2000 + date_to[2].to_i, date_to[1], date_to[0]) | |
# Parse the wake up/sleep times | |
time_from = row[1].split(':') |
This code is usable only if you are on Home Assistant 0.114 or older
For Home Assistant 0.115 and newer please go to: https://github.com/AdamNaj/ZWaveGraphHA
#!/bin/bash | |
# Shell script to stop all KVM instances, create a BTRFS snapshot (read-only) and restart the stopped KVM instances | |
# https://gist.github.com/grisu48/535c27cd25c096248ce234ad81abf1b9 | |
## Configuration ############################################################## | |
IMGDIR="/mnt/RAID/libvirt/images" | |
SNAPDIR="/mnt/RAID/libvirt/snapshots" | |
# timeout in seconds | |
TIMEOUT=300 |
<?xml version="1.0" encoding="utf-8"?> | |
<Product xmlns='http://code.google.com/p/open-zwave/'> | |
<!-- | |
Qubino: ZMNHHDx Mini Dimmer Z-Wave+ | |
https://products.z-wavealliance.org/products/3381 | |
--> | |
<!-- Configuration --> | |
<CommandClass id="112"> | |
<Value genre="config" index="1" instance="1" label="In-wall Switch Type for Load to control I1" max="1" min="0" size="1" type="list" value="0"> | |
<Help>With this parameter, you can select between push-button (momentary) and on/off toggle switch types.</Help> |
#cloud-config | |
autoinstall: | |
version: 1 | |
identity: | |
hostname: btrbox | |
password: "$6$exDY1mhS4KUYCE/2$zmn9ToZwTKLhCw.b4/b.ZRTIZM30JZ4QrOQ2aOXJ8yk96xpcCof0kxKwuX1kqLG/ygbJ1f8wxED22bTL4F46P0" | |
username: ubuntu | |
storage: | |
config: | |
### drive |