Skip to content

Instantly share code, notes, and snippets.

View thilander's full-sized avatar

Andreas Thilander thilander

View GitHub Profile
@thilander
thilander / low-battery-level-detection-notification-for-all-battery-sensors.yaml Home Assistant Blueprint: Low battery level detection & notification for all battery sensors
blueprint:
name: Low battery level detection & notification for all battery sensors
description: Regularly test all sensors with 'battery' device-class for crossing
a certain battery level threshold and if so execute an action.
domain: automation
input:
threshold:
name: Battery warning level threshold
description: Battery sensors below threshold are assumed to be low-battery (as
well as binary battery sensors with value 'on').
@thilander
thilander / useHexo.md
Created February 18, 2018 18:42 — forked from btfak/useHexo.md
How to use Hexo and deploy to GitHub Pages
@thilander
thilander / test.js
Created January 11, 2018 13:37 — forked from treo/test.js
Accessing a SOAP web service which requires a client certificate using node-soap 0.4.3
var soap = require('soap'),
fs = require('fs');
client = soap.createClient('https://some-webserv.ic/something.wsdl', {
wsdl_options: {
cert: fs.readFileSync('cert.pem'),
key: fs.readFileSync('keyfile.key')
}
}, function(err, client){
console.log(client.describe());