Skip to content

Instantly share code, notes, and snippets.

[
{
"id": "ed7b45a2.6633b8",
"type": "server-state-changed",
"z": "65c6e443.16a6fc",
"name": "Garage",
"server": "b6162a50.c4af78",
"version": 1,
"exposeToHomeAssistant": false,
"haConfig": [
@frosenlind
frosenlind / gist:c3bf7c98fe8a1dbb7245ccef5a8db60b
Created December 11, 2020 20:05
Node-Red, subflow, trigger custom_event
[
{
"id": "8d17ee2d.e3013",
"type": "subflow",
"name": "Trigger custom_event NEW",
"info": "> This subflow is from www.frosenlind.se\n\nAll input to msg.payload is piped to msg.throughput\n\nFires an event called custom_event\n\n## Output\nEvent type: msg.paayload.event = custom_event\n\nmsg.payload.data.event_id\n\nmsg.payload.data.sub_id\n\nmsg.payload.data = your data from data input field",
"category": "",
"in": [
{
"x": 160,
@frosenlind
frosenlind / gist:3303caa92583dad2ce6573ce6db8353e
Created November 21, 2020 18:37
Node-Red - Create.scene
[
{
"id": "847f30d9.ff174",
"type": "api-call-service",
"z": "65c6e443.16a6fc",
"name": "Save state for outside lights",
"server": "b6162a50.c4af78",
"version": 1,
"debugenabled": false,
"service_domain": "scene",
@frosenlind
frosenlind / gist:68a54637182527bdfce16c511e260287
Created November 17, 2020 12:36
Node-Red - Reset house_away_mode to home
[
{
"id": "ffc1f6a2.afba08",
"type": "inject",
"z": "65c6e443.16a6fc",
"name": "",
"props": [],
"repeat": "",
"crontab": "00 04 * * *",
"once": false,
@frosenlind
frosenlind / gist:97536b33866a13753b9f871af03a49c3
Created November 6, 2020 18:55
Node-Red Simple Home/Away/Sleep sequence
[
{
"id": "c242b7ad.2bbf08",
"type": "poll-state",
"z": "3b4d5e06.abdd82",
"name": "Are you home?",
"server": "b6162a50.c4af78",
"version": 1,
"exposeToHomeAssistant": false,
"haConfig": [
@frosenlind
frosenlind / config.php
Created January 23, 2016 19:38 — forked from JunaidQadirB/config.php
Enable Class loading with Namespaces in CodeIgniter
/*
* Append this to the end of your application/config.php
* @see http://stackoverflow.com/questions/3700626/namespace-in-php-codeigniter-framework#21858556
*/
spl_autoload_extensions('.php'); // Only Autoload PHP Files
spl_autoload_register(function($classname) {
if (strpos($classname, '\\') !== false) {