Skip to content

Instantly share code, notes, and snippets.

View Morveus's full-sized avatar
💩

David Balland Morveus

💩
View GitHub Profile
@Morveus
Morveus / gist:298b04dfb93ebd34fbd842bc17cccceb
Created December 15, 2025 10:08
zwavejs - setting "enabled" to all Fibaro Walli switches' scene settings
// --- CONFIGURATION ---
// IDs of our switches (ex: 4, 15, 22)
const targetNodeIds = [7,8,9,10,11];
// We need to set both parameters 40 and 41 (detecing presses)
const params = [40, 41];
// Bitmasks to enable (1, 2, 4, 8 = 1x press, 2x presses, 3x presses, hold and release)
const bitmasks = [1, 2, 4, 8];
const newValue = 1; // 1 = Enable
Set-ExecutionPolicy Bypass -Scope Process
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
# Download image
$url = "https://cdn.discordapp.com/attachments/816750486988390440/1116031775534235678/LeCentreFond.jpg"
$output = "C:\LeCentre\wallpaper.jpg"
# Create directory if it does not exist
if (!(Test-Path -Path "C:\LeCentre")) {
New-Item -ItemType Directory -Path "C:\LeCentre"