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

scene triggered by a not listed trigger


Question

Posted

Long ago I created a scene (id=205), automatically triggered by
--[[
%% globals
Sens1HWert
--]]

Some time later I set it to manual trigger, scene did nothing, I did not delete it.
(Sens1HWert is still used by another scene.)

 

Some days ago I re-activated this scene 205 with a completely different LUA program
with first lines
--[[
%% properties
5 power
--]]
Now this scene was triggered by device with ID=5, BUT by global Sens1HWert TOO !!

 

So I changed the LUA program to ONLY 2 lines

srcTr= fibaro:getSourceTrigger()
print(json.encode(srcTr))

 

Now every time Sens1HWert changes, debug window shows a new line
[DEBUG] 16:37:23: {"type":"global","name":"Sens1HWert","varName":"Sens1HWert"}
or
[DEBUG] 16:38:26: {"type":"global","varName":"Sens1HWert","name":"Sens1HWert"}
or
[DEBUG] 16:39:28: {"varName":"Sens1HWert","name":"Sens1HWert","type":"global"}
or...

 

Have I really to delete this scene?
Or can anyone stop this strange triggering?

 

A happy christmas time to everybody!

 

3 answers to this question

Recommended Posts

  • 0
Posted

Could you please post the entire code of your scene?

  • 0
  • Inquirer
  • Posted (edited)

    ONLY 2 lines:

    srcTr= fibaro:getSourceTrigger()
    print(json.encode(srcTr))

     

    NO first lines

    --[[

    %% ...

    --]]

     

    it is still the scene with id=205,

    which - long time ago - was triggered by global Sens1HWert (still in use by other scenes)

    Edited by muc
    • 0
  • Inquirer
  • Posted

    "solution": restart HC2

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