Skip to content

Instantly share code, notes, and snippets.

blueprint:
name: Timed Switch Control
description: Control your switches between certain times
domain: automation
input:
switch_device:
name: Switch device
description: The switch device to use.
selector:
entity:
blueprint:
name: Heating Control for Floor heating (CBUS relay)
description: Control your heating with options for person home, if the times are right.
domain: automation
input:
heating:
name: Floor switch device
description: The climate device to use.
selector:
entity:
@dougrathbone
dougrathbone / heating.yaml
Last active June 22, 2022 11:30 — forked from r3mcos3/heating.yaml
Home Assistant Blueprint For Heating
blueprint:
name: Heating Control for IR Controlled Heater
description: Control your heating with options for person home, if temp is below a specific value, set temp, and heating between specific times.
domain: automation
input:
heating:
name: Climate IR Device
description: The climate device to use.
selector:
entity:
@dougrathbone
dougrathbone / SqlAzureQueryStats.sql
Created January 3, 2015 07:12
SQL Azure Query Runtime Stats
SELECT creation_time
,last_execution_time
,total_physical_reads
,total_logical_reads
,total_logical_writes
, execution_count
, total_worker_time
, total_elapsed_time
, total_elapsed_time / execution_count avg_elapsed_time
,SUBSTRING(st.text, (qs.statement_start_offset/2) + 1,
@dougrathbone
dougrathbone / gist:7223216
Created October 29, 2013 21:45
Mozilla XBL CSS binding example
CSS:
body {
-moz-binding: url(/scripts/script.xbl#execute);
}
XBL:
<?xml version="1.0"?>
<bindings xmlns="http://www.mozilla.org/xbl" xmlns:html="http://www.w3.org/1999/xhtml">
document.getElementById("subscription-overlay").style.display="none";
document.body.style.overflow = "scroll";
@dougrathbone
dougrathbone / gist:5193097
Created March 19, 2013 02:00
MsBuild through the c# api
var pc = new ProjectCollection();
var buildProperties = new Dictionary<string, string>
{
{"Configuration", "Release"},
{"Platform", "Any CPU"},
{"OutputPath", _outputPath},
{"EnableNuGetPackageRestore", "true"}
};
var buildParameters = new BuildParameters(pc);