Welcome to Smart Home Forum by FIBARO
Dear Guest,
as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.
As a member you can:
- Start new topics and reply to others
- Follow topics and users to get email updates
- Get your own profile page and make new friends
- Send personal messages
- ... and learn a lot about our system!
Regards,
Smart Home Forum by FIBARO Team

Question
Mib 15
I get now since I have updated to 4.058 Beta this message:
To many instances | Scene: Licht BEW
Number of instances of scene has been reduced due to exceeding limit.
the scene does not work anymore.
--[[
%% properties
620 value
%% globals
--]]
-- VARIABLEN Konfiguration (Bewegungsmelder muss oben unter %% properties aufgeführt sein) löst die szene aus
-----------------------------------------------------------------------------------------------------------------------------------------
local scene = 200 -- ID dieser Szene EG Vorzimmer
local motion = 620 -- ID des Bewegungssensors
local licht = 622 -- ID Lichtsensor
local switch = 769 -- ID der Lampe
local nachtstart = 1600 --22:00 = 2200
local nachtende = 0100 -- 07:00 = 0700
local starttimer = 60 -- licht an zeit (+ zeit des bewegungssensors - par. 6)
local lichtwert = 1 -- grenze zum nachtmodus (nur ausführen, wenn licht größer als)
-----------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------
---------------------Script-----------------
fibaro:debug("start1")
if (fibaro:countScenes()>1) then
fibaro:debug("stop scene");
fibaro:abort();
end
-- SCHALTE LICHT EIN & AUS (wenn nicht nacht)
if (tonumber(fibaro:getValue(motion, "value")) > 0 ) and tonumber(fibaro:getValue(licht, "value")) > lichtwert and (tonumber(os.date("%H%M")) >= nachtstart or tonumber(os.date("%H%M")) <= nachtende) then -- hier fehlt noch "und schalter aus"
fibaro:debug("ausgelöst");
--led auf wert einstellen
fibaro:call(switch, "turnOn");
-- timer start und einstellen
timer = os.time();
while os.time() - timer < starttimer do
fibaro:sleep(1000);
-- Timer zurücksetzen, wenn neue Bewegung erkannt wird innherhalb der Verzögerungszeit
if (tonumber(fibaro:getValue(motion, "value"))) > 0 then
timer = os.time();
end
end
-- Schalte Licht aus, wenn Timer vollständig abgelaufen ist
fibaro:call(switch, "turnOff");
end
fibaro:debug("ende1");
fibaro:killScenes(scene);
Top Posters For This Question
15
8
5
5
Popular Days
Nov 21
11
Nov 24
11
Nov 20
9
Nov 19
7
Top Posters For This Question
petergebruers 15 posts
fi-bar-oh 8 posts
DoDoR 5 posts
alex88 5 posts
Popular Days
Nov 21 2015
11 posts
Nov 24 2015
11 posts
Nov 20 2015
9 posts
Nov 19 2015
7 posts
Popular Posts
petergebruers
Please try one of the examples above... I understand your question... but how can I explain it? The new HC2 limiter comes "first". Your scripts comes "second". So, when a script "wants to start", fo
petergebruers
Okaaaaaaaaaaaaaayyyyyyy! I understand... Go to the scene... On the "General" page you will find: "Max. running instances:" and the default is 1! You can set anything up to 10. I guess you can re
fi-bar-oh
its buggered up a few simple scenes i had running... is motion safe 300 secs then turn light off if motion breached then turn light on lol not much to ask!!!! fix this please you a
68 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.