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

Jan Good morning,

What is system wise better to do in HC3 with ER4

- keep using remote  in all scenes or change it in GV

- trigger to use in 2 out of 10 scenes GV or remote

- def trigger for more as one scene keep or GV

Thanks for valuable advice,

//Sjakie

Link to comment
Share on other sites

Hello Jan,
After Factory restore and started fresh several scenes give me this error:

Please login or register to see this attachment.

the 1937 line  is>>> if not....

      main(quickApp) -- call main
      end)
    if not stat then error("Main() ERROR:"..res) end

Please advice,

//Sjakie

 

 

Link to comment
Share on other sites

Jan, what happends I dont know to get this error.

THe HC3 was Factory reset rooms, HUE and 20 scenes ER in.

I reverted HC3 to the first local backup, all the rooms, HUE, and partly scenes where in.

Now I added rules nothing to do with arming  some devices and the error didt came back? I dont hope it will come back.

Curious how HC3 will function.

//Sjakie

Link to comment
Share on other sites

  • Topic Author
  • 3 hours ago, Earybeongbeong7 said:

    Hi j

    ER4

    Are there any examples of using Dimmer or double switch S1, S2?

     

    Yes, they work as any other device. Dimmers can react to and set value. Double switch is just 2 deviceIDs -and I believe that sceneActivation works with them too.

    Please login or register to see this code.

     

    9 hours ago, Sjakie said:

    Jan, what happends I dont know to get this error.

    THe HC3 was Factory reset rooms, HUE and 20 scenes ER in.

    I reverted HC3 to the first local backup, all the rooms, HUE, and partly scenes where in.

    Now I added rules nothing to do with arming  some devices and the error didt came back? I dont hope it will come back.

    Curious how HC3 will function.

    //Sjakie

    I have seen this error too, but it's really hard to reproduce. I believe that there is some api call I do that sometimes returns something strange...

    I have a new version that I will push at the end of the week with some fixes that hopefully will remove the possibility for the error.

    • Like 1
    Link to comment
    Share on other sites

    1 hour ago, jgab said:

    Yes, they work as any other device. Dimmers can react to and set value. Double switch is just 2 deviceIDs -and I believe that sceneActivation works with them too.

    Please login or register to see this code.

     

    I have seen this error too, but it's really hard to reproduce. I believe that there is some api call I do that sometimes returns something strange...

    I have a new version that I will push at the end of the week with some fixes that hopefully will remove the possibility for the error.

     

    Thank you for your reply.

    I asked a question because it didn't work when I used the Scene command in Dimmer.

    example

    Rule ("Dimmer: Scene == S2. Click => Living Lamp: On")

    Sorry. For roller shutters, what percentage of the open/close can be specified in addition to the open/close?

    Can you write value = 20 like Dimmer?

    Link to comment
    Share on other sites

  • Topic Author
  • 1 minute ago, Earybeongbeong7 said:

     

    Thank you for your reply.

    I asked a question because it didn't work when I used the Scene command in Dimmer.

    example

    Rule ("Dimmer: Scene == S2. Click => Living Lamp: On")

    Sorry. For roller shutters, what percentage of the open/close can be specified in addition to the open/close?

    Can you write value = 20 like Dimmer?

     

    Yes, roller shutters should take a percentage value. I don't have a roller shutter myself.( @Sjakie ? )

    As for your example, you have to be careful as commands are case sensitive - but maybe it's your editor that acts up?

    Please login or register to see this code.

    and Dimmer and LivingLamp needs to be set to valid deviceIDs.

    It can either be Lua global variables or defined locally to rules

    Ex.

    Please login or register to see this code.

    The S1 and S2 table that you test against are defined in ER4 as

    Please login or register to see this code.

     

    For the sceneActivationEvent you should see a log message type "Incoming trigger ..... sceneActivationEvent.... " when ER4 detects the event.

    Link to comment
    Share on other sites

    48 minutes ago, jgab said:

     

    Yes, roller shutters should take a percentage value. I don't have a roller shutter myself.( @Sjakie ? )

    As for your example, you have to be careful as commands are case sensitive - but maybe it's your editor that acts up?

    Please login or register to see this code.

    and Dimmer and LivingLamp needs to be set to valid deviceIDs.

    It can either be Lua global variables or defined locally to rules

    Ex.

    Please login or register to see this code.

    The S1 and S2 table that you test against are defined in ER4 as

    Please login or register to see this code.

     

    For the sceneActivationEvent you should see a log message type "Incoming trigger ..... sceneActivationEvent.... " when ER4 detects the event.

    Thanks for your specific explanation.

     

    Let's check Dimmer's scene application through experiment.

     

    May I ask you additional questions?

     

    How can I check the commands that other equipment (Swipe) can perform?

     

    And in the current ER4 latest version, Incoming trigger does not appear in the debug screen.

     

    How do I make it appear?

    Link to comment
    Share on other sites

  • Topic Author
  • Don't you get any trigger logs for events? or just for the sceneActivation?

     

    I don't have a Swipe device so I don't know what type of events it generates.

    I do suspect that it generates centralSceneEvents.

    Try this rule

    Rule("swipeID:central => log('Swipe event:%s',env.event)")

    It will log all centralScene events that is generated by the Swipe when you interact with it.

    Link to comment
    Share on other sites

    6 minutes ago, jgab said:

    Don't you get any trigger logs for events? or just for the sceneActivation?

     

    I don't have a Swipe device so I don't know what type of events it generates.

    I do suspect that it generates centralSceneEvents.

    Try this rule

    Rule("swipeID:central => log('Swipe event:%s',env.event)")

    It will log all centralScene events that is generated by the Swipe when you interact with it.

     

    It is the same as the currently attached photo.

    Clicking all the buttons in the preview does not respond, and there is no content in the debugger.

    But the automation is working.

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    Link to comment
    Share on other sites

  • Topic Author
  • Ok, I will do an overhaul of the debugFlags and how they are handled. There may have been some bugs introduced.

    I'll be back.

    Link to comment
    Share on other sites

    Jan,

    My roller shutter goes fully open or fully close.

    What command to give for lets say 50%

    Be award my devices are still in HC2.

    //Sjakie

    Link to comment
    Share on other sites

    Jan,

    If I use this in HC3 it will give error:

    function watchProperty(deviceIDs,property,threshold,interval)
        local values={}
        Event.schedule(interval,function()
            for _,id in ipairs(deviceIDs) do
              if id==nil then Log(LOG.ERROR,"Nil in deviceID list"); break;  end
              local val = values[id] or 100000
              local newVal = tonumber(fibaro:getValue(id,property))
              if newVal==nil then Log(LOG.ERROR,"deviceID %s don't have property %s",id,property) end
              if newVal and math.abs(newVal-val) >= threshold then
                values[id]=newVal
                Event.post({type='property', deviceID=id, propertyName=property, value=newVal})
              end
            end
          end)
      end

     

          watchProperty({ HT.keuken.afZuigKap, HT.keuken.wcdVaatWasser},"power",5,"+/00:00:45")

    line 169 >>Event.schedule....

    Please login or register to see this attachment.

     

    //Sjakie

    Link to comment
    Share on other sites

    Jan,

    How to use Telebot in ER4?

    Or do we get something else for messaging?

    Please advice,

    //Sjakie

    Link to comment
    Share on other sites

    2 hours ago, jgab said:

    Ok, I will do an overhaul of the debugFlags and how they are handled. There may have been some bugs introduced.

    I'll be back.

     

    Thank you very much!

     

    Also, the dimmer's scene does not work.  There is no error message and the answer is silent.

     

    I tried operating it with the device's id, and also tried with S1 and S2, but it didn't work.

     

    Dimmer: 13

    LivingLamp01: 15

     

    rule(“Dimmer:scene== S1.double => LivingLamp01:on”)

     

    It doesn’t work. 

    Link to comment
    Share on other sites

    4 minutes ago, Earybeongbeong7 said:

     

    Thank you very much!

     

    Also, the dimmer's scene does not work.  There is no error message and the answer is silent.

     

    I tried operating it with the device's id, and also tried with S1 and S2, but it didn't work.

     

    Dimmer: 13

    LivingLamp01: 15

     

    rule(“Dimmer:scene== S1.double => LivingLamp01:on”)

     

    It doesn’t work. 

     

    rule(“Dimmrer:scene== 24 => LivingLamp01:on”)

     

    Also, it doesn’t work.

    Link to comment
    Share on other sites

    Hello Jan,

    Is it me??

    Rule $WCD=='Aan'

    Please login or register to see this attachment.

    But further No action

    This rule should be executed:

    rule("$WCD=='Aan' => keuken.wcdVliegenVerdelger:on; keuken.wcdWaterKoker:on; keuken.wcdVaatWasser:on;  keuken.wcdAfzuigKap:on;  log('wallplugs position - on')")

    I let manually change the GV 3 times and and the rule $WCD== Aan is executed now.

    Ids this gonna happen often?

    What to do, Please advice,

    //Sjakie

    Link to comment
    Share on other sites

  • Topic Author
  • 49 minutes ago, Sjakie said:

    Hello Jan,

    Is it me??

    Rule $WCD=='Aan'

    Please login or register to see this attachment.

    But further No action

    This rule should be executed:

    rule("$WCD=='Aan' => keuken.wcdVliegenVerdelger:on; keuken.wcdWaterKoker:on; keuken.wcdVaatWasser:on;  keuken.wcdAfzuigKap:on;  log('wallplugs position - on')")

    I let manually change the GV 3 times and and the rule $WCD== Aan is executed now.

    Ids this gonna happen often?

    What to do, Please advice,

    //Sjakie

    Sorry, I don't understand what goes wrong.

    In your log you have the rule "$WCD=='Aan' => log('wallplugs position - on')"

    that do trigger and write the log message.

    In your text you say that

    Please login or register to see this code.

    doesn't execute. That's a different rule with some more actions. Is the rule triggering but the actions not executed?

     

    When doesn't it execute? You say it executed when manually changed.  Do you have another rule that sets WCD ?

    If you turn on log of incoming triggers you should see the GV WCD changing value. 

     

    16 hours ago, Earybeongbeong7 said:

     

    rule(“Dimmrer:scene== 24 => LivingLamp01:on”)

     

    Also, it doesn’t work.

     

    It can be your dimmer that doesn't generate a sceneActivationEvent. Do you know that it does? On the HC2 there were some parameters that needed to be set. On the HC3 I know that some people have had issues

     

     

    Link to comment
    Share on other sites

  • Topic Author
  • 19 hours ago, Sjakie said:

    Jan,

    My roller shutter goes fully open or fully close.

    What command to give for lets say 50%

    Be award my devices are still in HC2.

    //Sjakie

    Sorry, I have no experience of roller shutters. I just expected that the value property decided the percentage of open...

    19 hours ago, Sjakie said:

    Jan,

    How to use Telebot in ER4?

    Or do we get something else for messaging?

    Please advice,

    //Sjakie

    Telebot will be a separate QA. I'm not finished with it yet.

    Link to comment
    Share on other sites

    Jan,

     

    In your log you have the rule "$WCD=='Aan' => log('wallplugs position - on')" >>>>>>GV shows in General>>Variable>>WCD  Aan

    that do trigger and write the log message.>>> No  it does NOT trigger see debug after it  shows GV WCD == Aan no further action!

    GV WCD == Aan  Should execute the rule below it did not show as true or false and no execution.

    So I changed the value manually WCD >>Aan and Uit (On and Off) 3 times and then it is showed as trigger and executed the rule.

    Should I go back to the command "remote" or is th eusage of GV better in HC3?

    Please login or register to see this code.

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