Skip to content

Instantly share code, notes, and snippets.

View rhl2401's full-sized avatar

Rasmus Lauridsen rhl2401

  • Naviair
  • Denmark
View GitHub Profile
blueprint:
name: Smart Thermostat off/heat (LUMI/Aqara)
description: 'Forked from: https://community.home-assistant.io/t/smart-thermostat-2-0-blueprint/478348
and made compatible with thermostats supporting the states "off" and "heat" instead of "off" and "auto" in the
original blueprint.'
domain: automation
source_url: https://gist.github.com/rhl2401/f15d67263a949bbd5d6e374a3815a60d
input:
window_sensor:
name: Window / Door Sensor Group
@rhl2401
rhl2401 / ftp_download.php
Last active July 29, 2018 15:11 — forked from staatzstreich/ftp_download.php
Download a directory from an FTP Server
<?php
// ftp_sync - copy directory and file structure
// main function witch is called recursivly
function ftp_sync($dir, $conn_id) {
if ($dir !== '.') {
if (ftp_chdir($conn_id, $dir) === FALSE) {
echo 'Change dir failed: ' . $dir . PHP_EOL;
return;
}
if (!(is_dir($dir))) {