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!



Smart Home Forum by FIBARO Team

HC2 sometimes ignores variable


Recommended Posts


I have a HC2 with the latest firmware. For over a year I had this problem with my system. The system sometimes ignores variables. For example: I have a scene changing brightness of the lights depending on Night, Day, Morning etc. But if variable is set to “Park ON” then the scene shouldn’t activate. Everything works fine when I restart the system, but after a few days, sometimes after a few hours the system starts to ignore the variable again. When I restart the system everything works fine again.. Does anybody else have the same problem? 





%% properties
%% weather
%% events
%% globals

local startSource = fibaro:getSourceTrigger();
if (
 ( fibaro:getGlobalValue("TimeOfDay") == "Day"  and  fibaro:getGlobalValue("HomeStatus") == "Home"  and  fibaro:getGlobalValue("SleepState") == "Awake"  and  fibaro:getGlobalValue("Park") == "OFF"  or  tonumber(fibaro:getGlobalValue("HomeButton")) == tonumber("255")  and  fibaro:getGlobalValue("TimeOfDay") == "Day"  or  tonumber(fibaro:getGlobalValue("DSC_P1_ArmedStatus")) == tonumber("4")  and  fibaro:getGlobalValue("TimeOfDay") == "Day" )
startSource["type"] == "other"
    fibaro:setGlobal("HomeNotis", "ON");
    fibaro:call(132, "open");
    fibaro:call(12, "setValue", "100");
    fibaro:call(40, "setValue", "100");
    fibaro:call(80, "setValue", "84");
    fibaro:call(62, "setValue", "100");
    fibaro:call(96, "setValue", "80");
    fibaro:call(91, "setValue", "25");
    fibaro:setGlobal("HomeButton", "0");
    fibaro:call(300, "setValue", "70");
    fibaro:call(96, "setValue", "80");
    fibaro:call(282, "turnOn");
    fibaro:call(24, "turnOn");
    fibaro:call(10, "turnOn");
    fibaro:call(87, "turnOn");
    fibaro:call(286, "turnOn");
    fibaro:call(22, "turnOff");
    fibaro:call(295, "setValue", "10");
    fibaro:setGlobal("SleepState", "Awake");
    fibaro:setGlobal("AlarmClockDays1", "9999");
    fibaro:setGlobal("AlarmClockDays2", "9999");
    fibaro:setGlobal("Park", "OFF");
    fibaro:setGlobal("BlindsStatus", "Open ");
    fibaro:setGlobal("HomeStatus", "Home");
    fibaro:call(402, "turnOff");
    fibaro:call(313, "setValue", "35");


Edited by JoeChew
Link to comment
Share on other sites

not sure what a bug on the Fibaro side.

just read all values in "vars" 

print vaues

if var1 and var2 and var3...


and check logs when you find what somtimes occured.


Link to comment
Share on other sites

  • Topic Author
  • Fibaro ignores all variables. I made new ones, tried different scenes. I also deleted triggers, but scene is triggered even though triggers are deleted. 

    After a reboot Fibaro reacts normal to variable rules in the scenes. I guess it's a bug in the system. Can anybody from Fibaro comment on this? 

    Link to comment
    Share on other sites

    24 minutes ago, JoeChew said:

    but scene is triggered even though triggers are deleted. 

    as far as I remeber this bug has a 2y voyage. 


    Link to comment
    Share on other sites

    Join the conversation

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

    Reply to this topic...

    ×   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...