Skip to content

Instantly share code, notes, and snippets.

@Wheemer
Wheemer / fan-state-sync.yaml
Last active June 9, 2024 05:18 — forked from fireboy1919/light-state-sync.yaml
Synchronize States Between Two Fans
blueprint:
name: Synchronize percentage states
description: Synchronize the on/off state of 2 entities
domain: automation
input:
entity_1:
name: First entity
selector:
entity: {}
entity_2:
@fireboy1919
fireboy1919 / light-state-sync.yaml
Last active August 11, 2024 16:12
Synchronize States Between Two Lights
blueprint:
name: Synchronize brightness states
description: Synchronize the on/off state of 2 entities
domain: automation
input:
entity_1:
name: First entity
selector:
entity: {}
entity_2:
@lunix33
lunix33 / emby_install.js
Last active February 9, 2024 13:15
Installation and update script for emby
#!/usr/bin/env node
// Requires
const { execSync } = require('child_process'),
{ get } = require('https'),
{ writeFile, unlink } = require('fs').promises,
{ resolve } = require('path');
// Constants
const EMBY_GITHUB_URL = `https://api.github.com/repos/MediaBrowser/Emby.Releases/releases`,