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


Recommended Posts

Good morning Jan,

 

What is wrong?

Please login or register to see this image.

/monthly_2019_12/image.png.0e76c08fea0cd3c4440a3611f1508a1d.png" />

Not yet Sunrise but debug shows

Rule30 and 31 is true and its executed

image.png.30324f1d53b8fff030ea7e6fe7f30fef.png

Please advice,

//Sjakie

 

Link to comment
Share on other sites

Morning Jonny,

Mine is older I didt find why always my light was going out if I save my scene. This morning I saw what the reason was.

(I have a few more things happening and cant find why but we will continue)

//Sjakie

Link to comment
Share on other sites

  • Topic Author
  • On 12/2/2019 at 6:53 AM, Sjakie said:

    Good morning Jan,

     

    What is wrong?

    Please login or register to see this link.

    Not yet Sunrise but debug shows

    Rule30 and 31 is true and its executed

    Please login or register to see this link.

    Please advice,

    //Sjakie

     

     

    Do you have a .start() added at the end of the rule?

    Can you show me the whole rule definition that starts with @sunrise+00:15 => ...

    Link to comment
    Share on other sites

    Jan,

     

    Thanks you are the best.

    Sorry, .start() removed.

    //Sjakie

    Link to comment
    Share on other sites

    @jgab, need your help here...

    trying to get the right code for morning message, but i only get it to say "$Temperature" and "$Weather" instead of picking up the actual text from variable.

    How can i solve this?

     

    Please login or register to see this code.

     

    Link to comment
    Share on other sites

  • Topic Author
  • 13 hours ago, jompa68 said:

    @jgab, need your help here...

    trying to get the right code for morning message, but i only get it to say "$Temperature" and "$Weather" instead of picking up the actual text from variable.

    How can i solve this?

     

    Please login or register to see this code.

     

     

    This should work. I calculate the strung separately but you could do it directly in what=fmt(...)

    The format directives in 'morning' is %s now but you could use %.2d etc if you need to format the values with decimals etc.

    Please login or register to see this code.

     

    Link to comment
    Share on other sites

    What is wrong with this setup?

     

    Please login or register to see this code.

    SOLVED!

    This is how i solved it.

     

    Please login or register to see this code.

     

    Edited by jompa68
    Link to comment
    Share on other sites

  • Topic Author
  • 3 hours ago, jompa68 said:

    What is wrong with this setup?

     

    Please login or register to see this code.

    SOLVED!

    This is how i solved it.

     

    Please login or register to see this code.

     

     

    Yes, the signature for Telegram.msg is 

    Please login or register to see this code.

    It just takes a text and not a formatting string and arguments like 'fmt' or 'string.format'.

    If you find yourself doing formatting a lot when calling Telegram.msg you can make your own version

    Please login or register to see this code.

     

    • Like 1
    Link to comment
    Share on other sites

    Hello Jan,

     

    I dont get this badkamer.spotbadk3 = 12335 (data from HT{badkamer= spotbadk3=12335,)

    Please login or register to see this image.

    /monthly_2019_12/image.png.31c279bf4d341572cd727d0fa9c40069.png" />

    12335 doest excist?

    image.png.627a6d9987977611eeb51909974294ca.png

    In HUE app spotbadk3

    Where do I miss what?

    Please advice,

    //Sjakie

     

    Link to comment
    Share on other sites

  • Topic Author
  • On 12/9/2019 at 6:10 PM, Sjakie said:

    Hello Jan,

     

    I dont get this badkamer.spotbadk3 = 12335 (data from HT{badkamer= spotbadk3=12335,)

    Please login or register to see this link.

    12335 doest excist?

    Please login or register to see this link.

    In HUE app spotbadk3

    Where do I miss what?

    Please advice,

    //Sjakie

     

     

    It looks like 12335 is not defined. You have not done Hue.define("name of hue device",12335). 

    That why it complains "No such devideID:12335".

     

    Link to comment
    Share on other sites

    Morning Jan,

    You are right!

    Overlooked the HUE define contained an error in the number.

    Thanks,

    //Sjakie

    Link to comment
    Share on other sites

    Jan I am struggling with two annoying things I hope you can help me?

     

    is this to translate in ER?

    If yes can you translate?


     ( tonumber(api.get('/weather')['Temperature']) < tonumber(18) )


     

    Rule.eval([[trueFor(24:00, & ..........) =>

    $Stookseizoen=='Ja'

    ]])
     

    Thanks in advance,

    //Sjakie

    Link to comment
    Share on other sites

  • Topic Author
  • 11 hours ago, Sjakie said:

    Jan I am struggling with two annoying things I hope you can help me?

     

    is this to translate in ER?

    If yes can you translate?


     ( tonumber(api.get('/weather')['Temperature']) < tonumber(18) )


     

    Rule.eval([[trueFor(24:00, & ..........) =>

    $Stookseizoen=='Ja'

    ]])
     

    Thanks in advance,

    //Sjakie

    Please login or register to see this code.

    Defining 'Temperature' to a 'trigger variable' will trigger rules that have 'Temperature' left of '=>' every time 'Temperature' change value.

    I think it would be possible to define a weather event too but this will work.

    I guess that you want to update $Stookseizoen when it's over 18 also ?

    Link to comment
    Share on other sites

    Jan,

    Thank you very much!!!

    Yes to update over 18 degrees.

    Now it can be set automatic instead of using a VD to set manually if heater is on or off.

    I guess to do some settings adaption but thats for summer to review.

    Link to comment
    Share on other sites

    Good morning,

    Jonny I like your idea off the morningmsg!

     

    I do something wrong because I dont get the data right in the GV.

    I add in your OWM scene:

          fibaro:setGlobal("HumidityOutside",d.humidity);
          fibaro:setGlobal("TempOutside",d.temp);
          fibaro:setGlobal("Weather",d.weather);

    I created at the top part in the GV the 3 global variables

       HumidityOutside, TempOutside and Weather

    If I go to the GV screen there are no values in???

    What I am doing wrong??

    Please advice

    //Sjakie

     

     

    Link to comment
    Share on other sites

    1 hour ago, Sjakie said:

    Good morning,

    Jonny I like your idea off the morningmsg!

     

    I do something wrong because I dont get the data right in the GV.

    I add in your OWM scene:

          fibaro:setGlobal("HumidityOutside",d.humidity);
          fibaro:setGlobal("TempOutside",d.temp);
          fibaro:setGlobal("Weather",d.weather);

    I created at the top part in the GV the 3 global variables

       HumidityOutside, TempOutside and Weather

    If I go to the GV screen there are no values in???

    What I am doing wrong??

    Please advice

    //Sjakie

     

     

    @Sjakie

    this is the function i have in OWM scene. Compare that with yours.

    Please login or register to see this code.

     

    @jgab my OWM scene stops for some reason and i dont now why. Can i use ER to check if it is running and if not restart the scene?

    Link to comment
    Share on other sites

    Thanks @jompa68

    Ok copied it in OWM

    Created the 3 GV's

    As you can see the value=0???

    Pleae advice,

    //Sjakie

    Please login or register to see this image.

    /monthly_2019_12/image.png.4856e7f06e3f7b617b673d293e903518.png" />

    Link to comment
    Share on other sites

    6 minutes ago, Sjakie said:

    Thanks @jompa68

    Ok copied it in OWM

    Created the 3 GV's

    As you can see the value=0???

    Pleae advice,

    //Sjakie

     

    what interval have you set OWM scene to fetch the data? I have mine set to 10min, so it will take 10 min before it write the values to variable.

    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
    Reply to this topic...

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