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


Question

Posted

Hi…

I am having issues with email stopping for a number of hours. Since last Saturday night around 9-10PM NZST emails stopped being sent until 5-6AM NZST. This has happened every night since. On Monday night I logged in at 10:30PM NZST and changed the email address from my office 365 email address to my work email and then back again and also rebooted the HC2. After the reboot and email change it came back to life.

I have this code running every 15 min to test email. It debug’s every 15 min, but didn’t send an email or produce an error.

Any ideas would be good… Also, is there a way to log debug statements externally? I am using email at the moment, but that produces a lot of email.

NB: ID 5 is my email address and HouseMonLastRun is a date/time stamp global variable.

I am using a HC2 running version 3.591 Beta.

Please login or register to see this code.

Thanks

Brett

9 answers to this question

Recommended Posts

  • 0
Posted

You could use while true do instead of while 1==1 do. When you fibaro:debug, it will create a log on the black box below your start stop and clear button.

  • 0
  • Inquirer
  • Posted
    You could use while true do instead of while 1==1 do. When you fibaro:debug, it will create a log on the black box below your start stop and clear button.

    Agreed, there are better ways of doing the loop, however this is only a temporary solution to find out why email stops working... The email not working problem is happening on all my scenes and VD's.

    The log underneath the the script doesn't show any errors about email. Its like it is sending it, but its just not arriving!

    Thanks

    Brett

    • 0
    Posted

    Try this

    Please login or register to see this code.

    You did not even close bracket your sendemail call. how do they send an email to you?

    • 0
  • Inquirer
  • Posted

    There seams to be a formatting issue with my post. It was my first post...

    Please login or register to see this code.

    The above is one line. It should have been posted as:

    Please login or register to see this code.

    The getGlobalValue has the close bracket on the sendemail call.

    Edit: I fixed the original post.

    • 0
    Posted

    Deadwood, It should work. Have you tick the active scene box?

    • 0
  • Inquirer
  • Posted
    Deadwood, It should work. Have you tick the active scene box?

    Yes its ticked. It works most of the time, just stops sending mail around 10PM till about 5AM when it starts again... It odd!

    Does anyone know of a way to trace it?

    • 0
    Posted

    Deadwood, Since you added a fibaro:debug statement you should be able see if the scene is running, put another fibaro:debug after the call to send email to imply that email send is done. Could it be your email settings? It seems like a restriction to send out emails during 10-5 each day.

    • 0
  • Inquirer
  • Posted

    One of my Virtual Devices appeared to be corrupted! The buttons/controls (the black VD control screen) was only showing about 2/3 of the buttons/labels.

    When I deleted the virtual device it did delete it as it was not on the screen anymore, however when I then switched something off that the VD (now deleted) controlled, it switched it back on and send an email (like it did when it wasn't deleted).

    I rebooted the HC2 and tested turning off my switch again and it stayed off this time and no email was sent.

    I imported the VD that I exported just before I deleted it and the same thing happened again. Only 2/3s of the controls were there and the odd behavior started again.

    After another delete of the VD, the same thing happened. It still managed to turn a switch back on when the VD was deleted. So I rebooted it and tested the switch again.

    This time, I imported an older backup of the VD, applied the latest code to it and it now seams to work. Odd!

    On the plus side, my emails now send when they should on my other scenes and VDs. I am not sure why this device caused so many issues with other unrelated scenes and devices but after fixing this VD, it now is back working again.

    Thanks

    Brett

    NB: If someone from Fibaro wants my corrupt VD, I would be happy to send it to them for analysis. I kept it...

    • 0
    Posted

    Deadwood, you can post it here but it will be difficult to analyse it, since we won't have access for rest of your system to check if it interferes with any scene etc.

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