Hallo,
Ich habe im Wohnzimmer eine WLED-SoundReaktive Installation bei der ich über Blockly eine Musik Licht Steuerung mit unterschiedlichen Presets und unterschiedlichen Laufzeiten der Presets realisieren wollte jedoch verweigert mir der ganze Javascript Adapter den Dienst mit aktiviertem Loop hier mal einen der getesteten Blocky Scripte.
setState("wled.0.f008d1d13ed0.bri"/*Brightness of the light*/, 255);
getState("wled.0.f008d1d13ed0.on", function (err, state) {
setStateDelayed("wled.0.f008d1d13ed0.on"/*On / Off*/, state ? !state.val : true, 1000, false);
});
setState("wled.0.f008d1d13ed0.ps"/*ID of currently set preset*/, 6);
while (getState("loxone.0.18ab8c0e-0051-4663-ffff403fb0c34b9e.active").val == true) {
setStateDelayed("wled.0.f008d1d13ed0.ps"/*ID of currently set preset*/, 5, true, 3000, false);
setStateDelayed("wled.0.f008d1d13ed0.ps"/*ID of currently set preset*/, 6, true, 12000, false);
setStateDelayed("wled.0.f008d1d13ed0.ps"/*ID of currently set preset*/, 7, true, 6000, false);
setStateDelayed("wled.0.f008d1d13ed0.ps"/*ID of currently set preset*/, 8, true, 12000, false);
setStateDelayed("wled.0.f008d1d13ed0.ps"/*ID of currently set preset*/, 9, true, 12000, false);
setStateDelayed("wled.0.f008d1d13ed0.ps"/*ID of currently set preset*/, 10, true, 3000, false);
}
//JTNDeG1sJTIweG1sbnMlM0QlMjJodHRwcyUzQSUyRiUyRmRldmVsb3BlcnMuZ29vZ2xlLmNvbSUyRmJsb2NrbHklMkZ4bWwlMjIlM0UlM0NibG9jayUyMHR5cGUlM0QlMjJjb250cm9sJTIyJTIwaWQlM0QlMjI5cjJPZ1h2JTJDJTI1ZyU2MHBTRUtlcXZ2NCUyMiUyMHglM0QlMjItMTUxMiUyMiUyMHklM0QlMjItMTE2MyUyMiUzRSUzQ211dGF0aW9uJTIweG1sbnMlM0QlMjJodHRwJTNBJTJGJTJGd3d3LnczLm9yZyUyRjE5OTklMkZ4aHRtbCUyMiUyMGRlbGF5X2lucHV0JTNEJTIyZmF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