Skip to content

Instantly share code, notes, and snippets.

View rhl2401's full-sized avatar

Rasmus Lauridsen rhl2401

  • Naviair
  • Denmark
View GitHub Profile
@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))) {
@rhl2401
rhl2401 / plex_light_dimmer.yaml
Last active September 27, 2024 21:24
Plex light dimmer
blueprint:
name: Plex light control
description: 'Dim your lights when playing something from Plex.
This blueprint works very well with Tautulli for Plex and is developed based on this add-on.
Your body must be
@rhl2401
rhl2401 / zigbee2mqtt_aqara_wireless_switch.yaml
Last active March 20, 2024 11:46
Aqara Wireless Switch (single, double, hold)
blueprint:
name: Aqara Wireless Switch (single, double, hold, release)
description: 'Control anything using Aqara Wireless Switch.
Customizable actions for each press.
This version of the blueprint is for buttons supporting single, double, hold and
release actions. '
domain: automation
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