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

Posted

Hi, I need some help with a simple syntax for the eventrunner. I did set up this long time ago and it has been working flawless ever since.

 

The scenario is following. I have a Fibaro Dimmer. Option 28 i set to 1 and I would like to toggle a binary switch when S1 is pressed once. According to the manual this should be SceneID:16 on a momentary switch. The device is named : LYS_CTRL (using hometable).

 

I created this rule:

rule("SOVEROM1.LYS_CTRL:value == '16' => SOVEROM1.SENSOR:toggle")          -- Toggle sensor on 1x push

 

This is the error

[18.10.2024] [18:42:25] [ERROR] [QUICKAPP415]: [Rule:15:SOVEROM1.LYS_CTRL:value == '16' => SOVEROM1.SENSOR:toggle] Rule: No devices found for :value, must be defined when rule is defined
SOVEROM1.LYS_CTRL:value == '16' => SOVEROM1.SENSOR:toggle

 

 

Any help with the syntax would be appreciated :).

Posted (edited)

Please ask questions about EventRunner in the "EventRunner 5" forum thread.

Anyway, it complains that

SOVEROM1.LYS_CTRL

is not defined in your home table (its value is nil). Have you checked the spelling?

Edited by jgab
  • Topic Author
  • Posted

    Ok, thx. I'll post my next question about Eventrunner in correct forum. Thank you for replying. I'm using something wrong statements in the rule.

     

    Rule used:

    rule("SOVEROM1.LYS_CTRL:value == '16' => SOVEROM1.SENSOR:toggle")          -- Toggle sensor on 1x push

     

    This is the message I get:

     

    [19.10.2024] [01:14:52] [TRACE] [QUICKAPP415]: [Rule:16:2]>> FALSE #device{id=444,val.. -> SOVEROM1.LYS_CTRL:scene == '16' => {SO..
     

    This is a working code I'm trying to replace:

    Please login or register to see this attachment.

     

    Posted
    6 hours ago, nea said:

    Ok, thx. I'll post my next question about Eventrunner in correct forum. Thank you for replying. I'm using something wrong statements in the rule.

     

    Rule used:

    rule("SOVEROM1.LYS_CTRL:value == '16' => SOVEROM1.SENSOR:toggle")          -- Toggle sensor on 1x push

     

    But you should use :scene

    Like,

    Please login or register to see this code.

    and use integer 16 to compare against, not string '16'.

     

     

    • Like 1
  • Topic Author
  • Posted

    Thank you, worked flawless :)!

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