Skip to content

Instantly share code, notes, and snippets.

View nicolaiort's full-sized avatar

Nicolai "niggl" Ort nicolaiort

View GitHub Profile
@nicolaiort
nicolaiort / doorbell_notify_with_camera_screenshot.yaml
Created August 15, 2021 16:30
Home-Assistant Blueprint Doorbell - Send camera snapshot to app
blueprint:
name: Doorbell - Send camera snapshot to app
description: Send a camera snapshot to your app.
domain: automation
input:
doorbell:
name: Doorbell
description: This is the doorbell binary sensor
selector:
entity:
@nicolaiort
nicolaiort / commands.js
Created January 16, 2016 15:41 — forked from AppLamp-API/commands.js
API Byte commands for AppLamp.nl / Wifiledlamp.com Mi Light RGB / RGBW / Dual White Wifi LED bulbs and controllers
/**
Filename: commands.js
AppLamp.nl led light API: wifi box byte commands
© AppLamp.nl: you can share,modify and use this code (commercially) as long as you
keep the referer "AppLamp.nl led light API" in the file header.
RESPECT AT LEAST 50 MS BETWEEN EACH SEND COMMAND TO PREVENT PACKAGE LOSS
The functions in this file will return the appropriate hex commands as 3 byte array
to send to an UDP-socket towards WIFI BOX-IP:8899 (see wifibox.js)
@nicolaiort
nicolaiort / wifibox.js
Created January 16, 2016 15:41 — forked from AppLamp-API/wifibox.js
Connect to AppLamp / Mi Light Wifi Box over UDP and send HEX commands (UDP multicast supported: IP ending on .255)
/**
Filename: wifibox.js
//AppLamp.nl Wifi LED light API: wifi box UDP socket, command sender
© AppLamp.nl: you can share,modify and use this code (commercially) as long as you
keep the referer "AppLamp.nl led light API" in the file header.
Usage in Node JS:
//load this wifi box class
var WifiBoxModule = require('wifibox.js');