Skip to content

Instantly share code, notes, and snippets.

@CavaleriDK
CavaleriDK / gist:a0ff68d7d62da0f713c73d88aafa899d
Created August 23, 2025 21:09
Schneider Electric FLS/AIRLINK/4 4-Button Switch
blueprint:
name: Schneider Electric FLS/AIRLINK/4 4-Button Switch
description: |
Control entities with a Schneider Electric FLS/AIRLINK/4 4-button switch.
AKA: LK FUGA Wiser batteritryk 4 slutte.
Each button supports:
- Single press
- Long press (hold and release)
@CavaleriDK
CavaleriDK / fls_airlink_4.py
Created August 23, 2025 21:07
Quirk for Schneider Electric FLS/AIRLINK/4 4-button switch
<!doctype html>
<html lang = "">
<head>
<meta charset = "utf-8">
<title>
Norton Helper v7
</title>
<style>
function onInitialLoad(sourceFile) {
const parser = new DOMParser();
const initHTML = '<div id="your-files" style="background-color:#ff0000;width:500px;height:500px;"></div>';
const newDoc = parser.parseFromString(initHTML, "text/html");
document.replaceChild(newDoc.documentElement, document.documentElement);
const target = document.getElementById("your-files");
target.addEventListener("dragover", function(event) {
event.preventDefault();