Skip to content

Instantly share code, notes, and snippets.

# Add the folowing helpers in Home Assistant:
# Name | Entity ID | Type
# ----------------------------------------------------------------------------------------------------------------
# wordclock_status | input_boolean.wordclock_status | input_boolean
# Wordclock IP | input_text.wordclock_ip | input_text (Min:0 Max:100,Text) Enter the IP-Adress of your Wordclock
# wordclock_ambi_b | input_number.wordclock_ambi_b | input_number (Min:0 Max:255, Step:1)
# wordclock_ambi_g | input_number.wordclock_ambi_g | input_number (Min:0 Max:255, Step:1)
# wordclock_ambi_r | input_number.wordclock_ambi_r | input_number (Min:0 Max:255, Step:1)
# wordclock_ambi_brightness | input_number.wordclock_ambi_brightness | input_number (Min:1 Max:255, Step:1)
# wordclock_display_b | input_number.wordclock_display_b | i
@01-Scripts
01-Scripts / temp_sensor_calibration.yaml
Last active December 19, 2025 11:12
Update climate entities offset with a different sensor value
blueprint:
name: Update Entity Offset with Switch
description: Update the offset attribute of an entity based on another sensor's
state every 15min.
domain: automation
input:
sensor_to_monitor:
name: Sensor to Monitor
description: The sensor whose state will be used to update the "offset" attribute
selector:
@01-Scripts
01-Scripts / shelly_blu_button1.yaml
Last active November 2, 2024 20:13
Shelly BLU Button1 Button Control (Press shortly once, twice, or three times, or press and hold for about 2 sec to emit a signal)
blueprint:
name: Shelly BLU Button1 Button Control (Press shortly once, twice, or three times, or press and hold for about 2 sec to emit a signal)
description: Automate actions using Shelly BLU Button1 with different press types.
domain: automation
input:
button_device:
name: Shelly BLU Button1
description: Select the Shelly BLU Button1 device.
selector:
device:
blueprint:
name: Shelly BLU RC-4 Button Control (Short, Long, and Double Press)
description: Automate actions using Shelly BLU RC-4's 4 buttons with different press types.
domain: automation
input:
button_device:
name: Shelly BLU RC-4
description: Select the Shelly BLU RC-4 remote.
selector:
device:
@01-Scripts
01-Scripts / contact.php
Last active May 26, 2020 19:16
Einfache Kontakt-Formular-Funktion in PHP, die auf jeder Seite eingesetzt werden kann. Mit Captcha und Datei-Upload!
<?PHP session_start(); ?>
<!-- Einfaches Kontaktformular -->
<?php
include_once("kontaktformular.php");
echo kontaktformular(array("email1@adress.de","email2@adress.de"),"Kontaktformular","form1");
?>
<!-- Kontaktformular mit Datei-Upload -->
<!-- Another contact-form -->
@01-Scripts
01-Scripts / functions.php
Last active May 3, 2020 14:18
Welcome file
<?PHP
function HelloWorld() {
echo "Hello World";
}
HelloWorld();
?>
@01-Scripts
01-Scripts / teaser.php
Last active August 8, 2018 13:58
Artikelteaser für 01-Artikelsystem V3 http://www.01-scripts.de/01article.php
<?PHP
/*
01-Artikelsystem V3 - Copyright 2006-2018 by Michael Lorer - 01-Scripts.de
Lizenz: Creative-Commons: Namensnennung-Keine kommerzielle Nutzung-Weitergabe unter gleichen Bedingungen 3.0 Deutschland
Weitere Lizenzinformationen unter: http://www.01-scripts.de/lizenz.php
Modul: 01article
Dateiinfo: Teaser-Ausgabe
*/
@01-Scripts
01-Scripts / demo.php
Last active August 8, 2018 09:57
PHP-Funktion um Bilder aus einer 01Gallery V2-Bildergalerie an anderer Stelle auszugeben http://www.01-scripts.de
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<?PHP
//Beispiel-Datei zur Nutzung von echo_galpics.php
include_once("echo_galpics.php");
@01-Scripts
01-Scripts / fa-icon-external-link.css
Created June 28, 2012 10:24 — forked from chsh/fa-icon-external-link.css
Show icon after external link using Font Awesome
@01-Scripts
01-Scripts / 01gallery.php
Last active July 13, 2016 20:32
Bildtitel unter dem Thumbnails anzeigen zulassen.
// Vorher (Zeile 471):
echo "<li".$class."><a ".$href." title=\"".$lightbox_title." - ".$echo_text."\">"._01gallery_getThumb($galverz,stripslashes($pics['filename']),"_tb")."</a></li>\n";
// Nachher
echo "<li".$class."><a ".$href." title=\"".$lightbox_title."\">"._01gallery_getThumb($galverz,stripslashes($pics['filename']),"_tb")."</a></li>\n";