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

Hello,

 

Did someone know if its possible to get outside temperature in garden (Tuin) room?   I have installed YR weather.

 

Can i do it with a scene or is it not possible?

 

Thanks.

 

 

Please login or register to see this attachment.

Recommended Posts

  • 0
Posted (edited)

this should work in a Lua script:

 

 local temperature = fibaro.getValue(411,"Temperature") -- 411 should be device ID of weather provider 

 fibaro.debug("temperature: ",temperature)


 

 

 

Edited by SmartHomeEddy
  • 0
  • Inquirer
  • Posted

    Hello Eddy,

     

    Thanks for reaction.

    I'm new with Fibaro/Lua.  Can you help me further?  

    What's the trigger and action?

     

    Or is it's easier to make a QA?

     

    Thanks.

    • 0
    Posted (edited)

    @Fireman What do you want to do with the temperature? 

     

     

     

    Edited by SmartHomeEddy
    • 0
  • Inquirer
  • Posted

    Hello Eddy,

     

    Nothing special at the moment. It's useful to see the outside temperature in the fibaro app.

     

    Thanks.

    • 0
    Posted

    To see it in the Fibaro dashboard and Mobile app, a QuickApp is probably the best solution. The quickest solution is to install the Openwheather app 

     

    Please login or register to see this link.

     

    It already has child devices for temperature, humidity, etcetera

     

    • 0
  • Inquirer
  • Posted

    Hello Eddy,

     

    I have download openwheather app.

     

    I make an account on openweather mapp and get an API.

     

    I change variables (see attach).  When is start QA stays in please wait......

     

    When i copy APIKEY in internet browser i get temp,hum etc.

     

    What i'am doing wrong? 

     

    Thanks.

     

     

    Please login or register to see this attachment.

    • 0
    Posted

    The API key is only the part after appid= and ending at the &

     

    In other words, your api key starts with the 8 and ends with the 9

    • 0
    Posted

    here is met no weather provider

     

    also you may simple send weather forecast from this device:

     

    7AM

    Please login or register to see this code.

     

    Please login or register to see this code.

     

     

    Please login or register to see this attachment.

    Please login or register to see this image.

    /monthly_2020_09/image.png.fd2feec563a10a0bd5d5cf98a8d6453e.png" />

    • 0
  • Inquirer
  • Posted

    Hello Eddy,

     

    Tanks for reaction. Now works the API. 

     

    Other Quistion how i get the value (device 440) in QA Temp outside (see attach).

     

    Sorry i'am a rookie with lua/QA......

    Please login or register to see this attachment.

    Hello 10der,

     

    Thanks for reaction. 

     

    I try to get working with Eddy's app.

    • 0
    Posted

    In editing your room “Tuin”, you can assign a temperature (and humidity) sensor to your room.

     


    Please login or register to see this attachment.


     

    Select menu item 4

    Tap the room once

    Tap on  . . . 
    Select edit 

     

     

     

    • 0
  • Inquirer
  • Posted

    Hallo Eddy,

     

    I did it also by other rooms with real temperature devices. And works fine.

     

    But in "Tuin" there is nothing to select. Only QA ID458 Temp outside.  And there is no value(temperatur) from openweather QA.

     

     

    And i can't select temp ID440. Perhaps it is a multilevel sensor?

     

     

     

     

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    • 0
    Posted

    Oh oh, it is not a temperature sensor. Why?

     

    Yes, you can only select a temperture (and humidity) sensor. 

    • 0
  • Inquirer
  • Posted

     

    Oh oh, it is not a temperature sensor. Why? --> i don't know.  The weather app configure all "devices" as multilevel sensor.

     

    Yes, you can only select a temperture (and humidity) sensor. 

     

     

    Can you get value from multilevel sensor in temperture sensor by lua or something else?  

     

    Thanks.

     

     

     

    • 0
    Posted
    6 minutes ago, Fireman said:

     

    Oh oh, it is not a temperature sensor. Why? --> i don't know.  The weather app configure all "devices" as multilevel sensor.

     

    Yes, you can only select a temperture (and humidity) sensor. 

     

     

    Can you get value from multilevel sensor in temperture sensor by lua or something else?  

     

    Thanks.

     

     

     

        self:updateProperty("Temperature", temperature)
        self:updateProperty("Humidity", humidity)
        self:updateProperty("Wind", wind)
     
    so, you simple can:
     

    Please login or register to see this image.

    /monthly_2020_09/image.png.d40d9b7d69c03436baed7592aa26dee5.png" />
    • 0
  • Inquirer
  • Posted

    Sorry i'am rookie with Fibaro HC3/ Lua.

     

    Where should i type commands.

     

    Thanks.

    • 0
    Posted

    @10der Fireman wants the temperature value in the room “Tuin”

     

    So he needs a QuickApp with type com.fibaro.temperatureSensor, not the com.fibaro.multilevelSensor

    • 0
    Posted (edited)

    @Fireman You could edit the code in OpenWeather widget

     

    Please login or register to see this attachment.


     

    Change multilevel to temperature, delete the wrong temperature quickapp and a new one is created and will be ok

     

     

     

    Edited by SmartHomeEddy
    • 0
    Posted

    You could ask the author of the QuickApp to change the type of the Temperature Child device. 

     

    I left a issue on GitHub, but no reactie up til now. I don't know if the author is on this forum. You could react on the Marketplace. 

    • 0
    Posted

    @SmartHomeEddy if devuce is multilevelSensor

    so  local temperature = fibaro.getValue(411,"value") -

    will works

    • 0
    Posted

    He wants to select the device in a room, as main temperature sensor of that room. 

     

    On 9/25/2020 at 7:44 PM, Fireman said:

    And i can't select temp ID440. Perhaps it is a multilevel sensor?

     

    Please login or register to see this attachment.

     

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