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

How to send a temperature value by email


Question

Guest Dexter
Posted

Hi all,

 

I've got a LUA scene that should be triggered each morning at 6.

 

I've got issues to get a value transmitted as part of the message.

 

I've got following code in Action:

 

local temp1 = fibaro.getValue(75"value")
fibaro.alert("email", {20}, "Outside Temperature is:", temp1)
 

6 answers to this question

Recommended Posts

  • 0
Posted

Hi @Dexter

 

maybe try this

 

Please login or register to see this code.

 

  • 0
Guest Dexter
  • Inquirer
  • Posted

    Another question - How can I format something in the E-Mail Message? For example Temperature in bold and if I want to send more than one value, how can I implement line breaks?

    • 0
    Posted

    Not much to format now, maybe in the near future, see:

     

     

     

     

    • 0
    Posted

    Hi

     

    Fibaro HC 2 with 4.620

     

    I would like to send trough email  global variable value (it is the lowest temp for a day), and I have tested the following lua code, but working only if send predefinied text - like test two,

    the four one gave me an error like "[DEBUG] 20:00:17: 2022-03-20 20:00:17.392076 [ fatal] Unknown exception: /opt/fibaro/scenes/208.lua:15: attempt to call field 'alert' (a nil value)"

    Can you help me?

     

     

    Please login or register to see this code.

     

    • 0
    Posted (edited)

    I used the code as shared by SmartHomeEddy on 14 March in HC3 but it did not work.

     

    The code below worked. Can someone explain why the command fibaro.alert is not working?

     

    fibaro.call(55"sendPush" , "Outside Temperature is: " ..temp)
    Edited by Alex V
    • -1
    Guest Dexter
  • Inquirer
  • Posted

    Many thanks :)

    It works

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