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 history/log


Question

Posted

Is there a way to see when different scenes have been run? Like the events-page for devices.

15 answers to this question

Recommended Posts

  • 1
Posted

http://192.168.1.36/api/virtualDevices/560/debugMessages

 

192.168.1.36 - HC2 IP address

  • Like 1
  • 0
  • Inquirer
  • Posted
    52 minutes ago, 10der said:

    http://192.168.1.36/api/virtualDevices/560/debugMessages

     

    192.168.1.36 - HC2 IP address

     

    Is there a way to do this whilst being away from home?

    (

    Please login or register to see this link.

    )

    • 0
    Posted (edited)

    you could write a script which is activated by the scene and debugs the scene that is being ran. Something like:

     

    Please login or register to see this code.

     

    Edited by eureka
    • 0
    Posted (edited)
    34 minutes ago, Spindel said:

    Is there a way to do this whilst being away from home?

    IMHO no,

    @eureka he wants to control VD not scene

     

    ha! I am wrong! You OK

     

    sorry!

    Edited by 10der
    • Like 1
    • 0
  • Inquirer
  • Posted
    5 minutes ago, eureka said:

    you could write a script which is activated by the scene and debugs the scene that is being ran.

     

    That´s above my skills, I think.

     

    Also, wouldn´t I have to do this in all scenes separately and also convert all block scenes to include it? I want to have an overview of all scenes. When they start etc. 

    • 0
    Posted
    2 minutes ago, Spindel said:

     

    That´s above my skills, I think.

     

    Also, wouldn´t I have to do this in all scenes separately and also convert all block scenes to include it? I want to have an overview of all scenes. When they start etc. 

     

    you could just add the sceneID of your blockscenes to the sceneActivation part. So you would only have 1 scene with all the info on when something started.

     

     

    • 0
  • Inquirer
  • Posted
    On 9/28/2018 at 11:38 AM, eureka said:

     

    you could just add the sceneID of your blockscenes to the sceneActivation part. So you would only have 1 scene with all the info on when something started.

     

     

     

    If I modify your script to include all my scenes, can I use wildcards? 

     

    For example:

    Please login or register to see this code.

    And

    Please login or register to see this code.

     

    Also

     

    Where and how can I see the result, lets say after a few days? 

    • 0
    Posted
    17 hours ago, Spindel said:

     

    If I modify your script to include all my scenes, can I use wildcards? 

     

    For example:

    Please login or register to see this code.

    And

    Please login or register to see this code.

     

    Also

     

    Where and how can I see the result, lets say after a few days? 

     

    Don't think that works. everything between %% needs to be  'hardcopied'

     

    so you need to add every seen that you want to monitor in there.

     

    The getSourceTrigger will then show which of the scenes was used to trigger the code. It will show in the debug window below

    • 0
  • Inquirer
  • Posted
    19 hours ago, eureka said:

     

    Don't think that works. everything between %% needs to be  'hardcopied'

     

     

    Ok, like this?

     

    Please login or register to see this code.

    • 0
    Posted

    yes, that would work:

     

    this would also work:

     

    Please login or register to see this code.

     

    • 0
  • Inquirer
  • Posted
    On 10/5/2018 at 8:21 PM, eureka said:

    yes, that would work:

     

    this would also work:

     

    Please login or register to see this code.

     

     

     

    Are you sure it´s supposed to be "deviceID"?

     

     

    [DEBUG] 09:25:08: [1;31m2018-10-08 09:25:08.660203 [ fatal] Unknown exception: /opt/fibaro/scenes/129.lua:74: attempt to concatenate field 'deviceID' (a nil value)

     

    Please login or register to see this image.

    /monthly_2018_10/image.png.f5db686ce537a2f382ebd258eb8893f1.png" alt="image.png.f5db686ce537a2f382ebd258eb8893f1.png" />

    • 0
    Posted

    can you put the following code in:

     

    Please login or register to see this code.

    and see what it spits out? 

     

    deviceID might indeed be the issue as its a scenario trigger, don't know if it is sceneID instead of deviceID. You can try that as well?

    • 0
  • Inquirer
  • Posted
    11 minutes ago, eureka said:

    can you put the following code in:

     

    Please login or register to see this code.

    and see what it spits out? 

     

    deviceID might indeed be the issue as its a scenario trigger, don't know if it is sceneID instead of deviceID. You can try that as well?

     

    Please login or register to see this image.

    /monthly_2018_10/image.png.26cb578246e0cb16990f5a7dbba08464.png" alt="image.png.26cb578246e0cb16990f5a7dbba08464.png" />

     

    sceneID or deviceID gives the same result, this is when I manually start the script so perhaps that´s the issue in my pictures.

    However, I think it also fails to run when any of the triggers/scenes are run, I can at least not see any activity in the debug window below after I´ve started some scenes manually.

    • 0
    Posted

    you should indeed not manually start, deviceid will be empty then..

     

    you should trigger one of the scripts that you follow and then see what the output is.

    • 0
  • Inquirer
  • Posted

    Then output is nothing. It´s just black, no errors or other text.

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