Jump to content

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


  • 0

Number of instances of scene has been reduced due to exceeding limit.


Question

Posted

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);

 

 

 

Recommended Posts

  • 0
Posted

Looks like a block-scene converted to LUA.

 

If the motion sensor '365' keeps having/reporting activities within the 1800000 seconds, it will definitely exceed number of instances. Each motion breached = 1 instance and when that motion turn safe = 1 instance.

Please login or register to see this code.

  • 0
Posted

Thanks for you replay,  any recommendation how to overcome this issue ?

  • 0
Posted

I am no coder, so I don't know if it is possible and if it is I sure can't do it:

 

If the scene is running, can't de motion sensor store a variable every time it's triggered and monitor it with a timer. Only when it hasn't been breached for the set time, the var lets the scene continue?

Would save me from all the notifications of the lights off scene's in my kids rooms..

  • 0
Posted

Hi Jimicr,  sorry for my slow respond, after 10 time the scene is stop.

 

I changed the response of motion detector, see how it will work.

 

Thx

 
  • 0
Posted

 

Hi Jimicr,  sorry for my slow respond, after 10 time the scene is stop.

 

I changed the response of motion detector, see how it will work.

 

Thx

 

 

Thanks for your reply, just wondering, if the scene trigger is not the motion sensor but a var that triggers te counter? Will every breached/ safe still be counted as an instance?

 

P.s. have a good weekend!

  • 0
Posted

It is motion sensor, i belive the any movement counted as an Incident

  • 0
Posted

Okay thanks for clearing that.

 

All motions are recorded in the eventpanel, maybe Fibaro can change the way motion is handled in scenes? I meen using the data from the panel so the scenes don't run into limits.

  • 0
Posted

Something to look for

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...