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

Posted

Good morning,

I would like to ask how to obtain current temperature reading in the certain climate zone - o.e. bathroom, kitchen. But - is it possible when not referencing to the particular device acting as thermometer assigned to the zone? Thermometer device can be changed and I still want to read correctly.

Most natural way seems:

api.get("/panels/climate")

but can't see the current temperature reading among many other data.

Posted

This might do it:

    var = api.get("/panels/climate/"..ID_climate_panel.."").properties.currentTemperatureHeating  --- heating
    print("var",json.encode(var))
    var = api.get("/panels/climate/"..ID_climate_panel.."").properties.currentTemperatureCooling  ---cooling
    print("var",json.encode(var))



Please login or register to see this image.

/monthly_2025_01/image.png.db75a59ee63f346430725f3b48353297.png" />

  • Thanks 1
  • Topic Author
  • Posted

    I think it's not what I want. I need to read current real temperature in the zone from the assigned to zone thermometer.

    Please login or register to see this attachment.

  • Topic Author
  • Posted

    Or, maybe better, how to obtain id of the thermometer associated with certain climate zone?

    Posted
    5 hours ago, Łukasz997 said:

    Or, maybe better, how to obtain id of the thermometer associated with certain climate zone?

     

    Like this :)  (this is with 2 sensor you se the "avg" calculation) :D 

     

        var = api.get("/panels/climate/"..ID_climate_panel.."").properties.temperatureSensors 
        print("var",json.encode(var))
        var = api.get("/panels/climate/"..ID_climate_panel.."").properties.currentTemperature 
        print("var",json.encode(var))

     

     

    from swagger:

    image.png.29c19c3804346b7e18aa5483b7885d95.png

     

    console print:

    image.png.689be22fd1dc77c86485ecfa74446afd.png

     

     

     

     

    • Thanks 1
  • Topic Author
  • Posted

    Well, I don't check and do a comment. Apologise!

    • Like 1

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