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

Lights wont turn on


Julegeita

Question

Hi!

I have been using HC2 for 2 years now. 

 

I have 3 scenes, in which i use when i leave the house or come home.

 

1. Nobody home - Turns off all lights, and turns the heating down on multiple devices. WORKS

2. Gone Away - The same as nr 1 but more extensive heat management. WORKS

 

3. Came Home - This has the problem. I use this to turn on the heat again, and to turn off some general lighting. The heating works like it should, no problem, everything get the SetTemperature that it should.

               The problem is the lighting. You can see them turn on in the Interface for a second, then they all fall to off again. If i run the scene multiple times, it may eventually turn them on.

 

I have tried the following:

 

 - Changed the triggers to and from a device's state, to a variable. No change, and why should it? The scene never fails to trigger, just to work properly.

 - Changed the scene from using my premade "general lights" scene and instead, configuring all the lights by themselves.

 

Even if i Trigger my general lights scene with the come home scene, or have them all configured in the come home scene individually, i get the same result. I can see them turn on in interface, the falls off again.

 

 

I have built the scene with blocks, but changed it to lua for easy reading. Scene 104 at the end is just my General lighting scene, which works just fine outside this scene.

 

 

--[[
%% properties
84 value
%% weather
%% events
%% globals
--]]

local startSource = fibaro:getSourceTrigger();
if (
 ( tonumber(fibaro:getValue(84, "value")) > 0  or  tonumber(fibaro:getValue(84, "value")) == 0 )
or
startSource["type"] == "other"
)
then
    fibaro:call(339, "setThermostatSetpoint", "1", "23");
    fibaro:call(348, "setThermostatSetpoint", "1", "25");
    fibaro:call(324, "setThermostatSetpoint", "1", "20");
    fibaro:call(71, "setThermostatSetpoint", "1", "20");
    fibaro:call(79, "setThermostatSetpoint", "1", "24");
    fibaro:setGlobal("HjemmeBorte", "Hjemme");
    fibaro:startScene(104);
end

 

Anybody seen this? :)

Best regards

 

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0
  • Inquirer
  • 84 is just the ID of a random dimmer device. It is just there because you need a trigger.

     

         The condition is actually: If 84 = ON or If 84 = OFF, then RUN scene........

     

    That works as a trigger anyways, it is a MANUAL scene.

    Link to comment
    Share on other sites

    • 0

    then
        fibaro:call(339, "setThermostatSetpoint", "1", "23");
        fibaro:call(348, "setThermostatSetpoint", "1", "25");
        fibaro:call(324, "setThermostatSetpoint", "1", "20");
        fibaro:call(71, "setThermostatSetpoint", "1", "20");
        fibaro:call(79, "setThermostatSetpoint", "1", "24");
        fibaro:setGlobal("HjemmeBorte", "Hjemme");

    fibaro:sleep(2000);  -- add a sleep period between the above actions, had with my scenes the same, to much info to push to devices
        fibaro:startScene(104);
    end

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • 1 hour ago, samuel said:

    then
        fibaro:call(339, "setThermostatSetpoint", "1", "23");
        fibaro:call(348, "setThermostatSetpoint", "1", "25");
        fibaro:call(324, "setThermostatSetpoint", "1", "20");
        fibaro:call(71, "setThermostatSetpoint", "1", "20");
        fibaro:call(79, "setThermostatSetpoint", "1", "24");
        fibaro:setGlobal("HjemmeBorte", "Hjemme");

    fibaro:sleep(2000);  -- add a sleep period between the above actions, had with my scenes the same, to much info to push to devices
        fibaro:startScene(104);
    end

     

    Hi!

    Thanks, this worked!

     

    I had to put a sleep between EVERY one of the lines. 

    I tried leaving 2 thermostats simultaneously at the very end, but when the scene came that far, it all crashed down again.

     

    I think it is sad, that you have to do it this way, lots of people who doesn't know how to do anything in LUA, but still expects their product to work flawlessly.

    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.

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