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

Why will this scene not run when the HC2 starts ?


RohitNz

Question

I have a lua scene that I want when the HC2 starts up.  But it will not run.

 

--[[
%% properties
%% events
%% globals
--]]
local message = 'HC2 restarted'
-- Rohit
fibaro:call (4, "sendEmail", message, message)
-- Rajan
fibaro:call (304, "sendEmail", message, message)

 

 

The properties are as in the image.  Any idea why ?

 

Background - I have had continuous problems for 6 months now with all versions of firmware where the HC just does not run some scenes sometimes.  The debug shows that its not busy at all.  So I now have a scene that reboots it every morning at 4am.  It sends me an email telling me its about to reboot.  I would like one above to tell me that it has rebooted.

Please login or register to see this attachment.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Hi!

 

add autostart to a header

 

--[[
%% properties
%% events
%% globals

%% autostart
--]]

 

Please login or register to see this code.

 

Link to comment
Share on other sites

  • 0

Scene lanched on my hc2 on start time, only one time  (modified scene from domotique-fibaro.fr):

Please login or register to see this code.

 

Edited by drboss
Link to comment
Share on other sites

  • 0
  • Inquirer
  • Thanks guys,  I dont understand why I have to put it but it works.  And the @drboss.  That gives me further ideas to enhance it as this script - I was just testing the concept.  I wanted to do push but I decided not too as you have to send to a mobile (not the person) and that's going to change every 18 months as I get a new phone.  Or is my understanding wrong ?

    Link to comment
    Share on other sites

    • 0
    6 hours ago, RohitNz said:

    Thanks guys,  I dont understand why I have to put it but it works.  And the @drboss.  That gives me further ideas to enhance it as this script - I was just testing the concept.  I wanted to do push but I decided not too as you have to send to a mobile (not the person) and that's going to change every 18 months as I get a new phone.  Or is my understanding wrong ?

     

    Please login or register to see this code.

    let's SPAM :)

     

    doNotifyAll("Warning!", "HC2 was rebooted")

     

     

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Thanks, I couldn't do that because there are about 30 mobiles in the list. But maybe I can look at the data saved on each one to filter them out. For instance there are guest mobiles and alarm monitoring mobiles.

     

    I know how to get all the data from the api url.

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