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


Recommended Posts

  • Topic Author
  • Posted

    Just to clarify - any button pressed on remote should change the light state (if off turn on and vice versa)

    What remote control you have?

    Posted

    yep.

    This is just th sipmler remote i have at home. 

    Posted (edited)

    sorry, i haven't read the second question: it's a popp wall controller

    Edited by gggizmo
  • Topic Author
  • Posted

    Please add follow line to your jM{} array

    Please login or register to see this code.

    Let me know if it works...

    BTW I suggest not to use device numbers in action lines. If from some reason your device ID has changed, it will be a hard working process to update the numbers in the lines.

    You can define alias names for the devices in jS2n{} table

    For example:

    jS2n={keyFob=911,light=494}

    Now your line will look like (alias names must be included within back apostrophes)

    Please login or register to see this code.

    If your device ID changed , you need to changed the ID in jS2n{} table and that's all.

    Also in the future if you'll decide to switch to HC3, you will need redefine IDs in jS2n{} table only, everything else will work.

    Posted

    yep, It's working. And yes i'm popolating js line with readable name. I'm just starting with aos and it's not totally clear to me the logic of conditional statement, concatenation.

    ex. {0, "`mingresso`|`pingresso`",{state="value=true",timeSlot="16:00~08:00",trueAct={{"`corridoio`","turnOn",""},{"`corridoio`","turnOff","40"}}} means that if mingresso or pingresso are breached lights turn on?

     

    But reading manual or lurking the forum | means "and", "or" state of two or more devices is {},{}., so i'm really confused

  • Topic Author
  • Posted

    Yes, if mingresso or pingresso breached (any one of them) then state="value=true" is TRUE and  trueAct{} array executed . in your case turnOn and turnOff after 40 seconds.

    This line will be broke down into two lines, please see the table in debug window.

    You can see in the table every command and when/how it will be executed 

    Posted

    Hi cag!

     

    I have a question for you. Can you help me?

    How can i add this state?: the temp sensor value > radiator thermostat, trueAct...

     

    Thanks!

  • Topic Author
  • Posted (edited)

    The format to use any property of any device as follow:

    @"devID">"propertyName"

    For example:

    Temp Sensor ID= 400,  temp. property name is value

    Radiator thermostat = 500,  thermostat property name is value

    state="@400>value>@500>value"

    Of course you can use alias names also

    state="@`tSensor`>value>@`radiator`>value"

     

    By the way if you need any calibration/compensation you can use formula too.

    state="@400>value+1>@500>value"

     

     

     

    Edited by cag014
    Posted

    Nice! Thank you!

    I have got an another question. I have got Fibaro FGT-001 thermostathead. How can i programing, if i want set up a scedule. Example, the head seting up 22 C degree, and i want this device set up 24 C degres for 15 mins, and after set up the original value.

    Posted

    sorry cag i can't get this lua scene working. I can't get state of hue light via hue plugin to switch on-off a lamp.

     

    --[[
    %% autostart
    %% properties
    %% weather
    %% events
    926 CentralSceneEvent 2 Pressed
    %% globals
    --]]

    local startSource = fibaro:getSourceTrigger();
    if (
     ( (startSource["type"] == "event" and startSource["event"]["type"] == "CentralSceneEvent") )
    or
    startSource["type"] == "other"
    )
    then
        local deviceValue1 = tonumber(fibaro:getValue(818, "on"));
        if (deviceValue1 > 0) then
            fibaro:call(818, "turnOff");
        else
        fibaro:call(818, "changeBrightness", 254);    
        fibaro:call(818, "turnOn");
        end
    end
     

  • Topic Author
  • Posted

    Please login or register to see this code.

    @gggizmo

    Try above..

    11 hours ago, SmartLifeSystems said:

    Nice! Thank you!

    I have got an another question. I have got Fibaro FGT-001 thermostathead. How can i programing, if i want set up a scedule. Example, the head seting up 22 C degree, and i want this device set up 24 C degres for 15 mins, and after set up the original value.

    Set 24 C for 15 minutes at any specific timeslot?

    I mean when to set for 15 minutes?

    Posted

    nope.../opt/fibaro/scenes/103.lua.447: attempt to index a nil value....

     

     

    i'm going crazy trying simply to turn off and on hue lights. 

    Posted
    42 minutes ago, cag014 said:

    Please login or register to see this code.

    @gggizmo

    Próbálja ki fent ..

    Állítsa be a 24 C-ot 15 percre bármilyen meghatározott időrésben?

    Úgy értem, mikor kell beállítani 15 percet?

    When the temp sensor < thermostat head.

  • Topic Author
  • Posted
    2 hours ago, gggizmo said:

    nope.../opt/fibaro/scenes/103.lua.447: attempt to index a nil value....

     

     

    i'm going crazy trying simply to turn off and on hue lights. 

     

    Please  post line 447

  • Topic Author
  • Posted

    @gggizmo

    Please try line below

    Please login or register to see this code.

    I don't have Hue lights, but have installed Hue plugin and I don't see changeBrightness action in device property!?

    Available actions are:

    Please login or register to see this spoiler.

     

    Posted
    3 hours ago, cag014 said:

    Please login or register to see this code.

    @gggizmo

    Try above..

    Set 24 C for 15 minutes at any specific timeslot?

    I mean when to set for 15 minutes?

     

    My plan is that: When the temp sens value less then the thermostat head, the boiler turn on, and the thermostat head set ex. 24 C for 15 min. After the thermostat head set the original value. My values only examples.

    Do you understand, what i want?

  • Topic Author
  • Posted
    16 minutes ago, SmartLifeSystems said:

     

    My plan is that: When the temp sens value less then the thermostat head, the boiler turn on, and the thermostat head set ex. 24 C for 15 min. After the thermostat head set the original value. My values only examples.

    Do you understand, what i want?

    Why 15 minutes? just keep boiler on till temp sense value equal or greater to thermostat head.

    Any how I'll post the solution.

    Posted
    12 minutes ago, cag014 said:

    Why 15 minutes? just keep boiler on till temp sense value equal or greater to thermostat head.

    Any how I'll post the solution.

    Because i want a little boost the hot water circulation. The radiators earlier warming up, and sooner get the set temperature.

    What do you think about this?

  • Topic Author
  • Posted

    I think It depends how cold it is and how fast you want to reach desire temperature.

    For example if temp sense drop several degrees below, is 15 minutes is enough for your needs?

     

    Posted
    18 minutes ago, cag014 said:

    I think It depends how cold it is and how fast you want to reach desire temperature.

    For example if temp sense drop several degrees below, is 15 minutes is enough for your needs?

     

    The 15 min is an example. But while the desire temperature not true, the 15 min  will restart.

    Or have you got a better idea this?

    Join the conversation

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

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