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 get heat Controller adjusted level value in HC3


Question

Posted (edited)

Hello,

 

I use Heat Controller in my Bathroom and I want to get the adjusted value in my scene in HC3.

In HC2 I use the following line for it :

local thermostat = tonumber(fibaro:getValue(28, 'value'));

In HC2 work perfect. I get the value and I can compare with the thermometer value.

 

In HC3 I try with the similar method like:

local thermostat = fibaro.getValue(28, 'value');

or

local thermostat = tonumber(fibaro.getValue(28, 'value'));

 

In both case in HC3 I recevied the error message:

(load):17: attempt to concatenate a nil value (local 'thermostat')

 

Can you help me what is wrong and how can I get the adjusted value from the heat controller ?

 

Best Regards

 

Edited by szakos2094
modify

6 answers to this question

Recommended Posts

  • 0
Posted

so!

as you can see this is all valeus what you can read via fibaro.getValue()

 

 

"properties":{
      "parameters":[
         {
            "id":2,
            "lastReportedValue":1,
            "lastSetValue":1,
            "size":4,
            "value":1
         },
         {
            "id":3,
            "lastReportedValue":1,
            "lastSetValue":1,
            "size":4,
            "value":1
         },
         {
            "id":1,
            "lastReportedValue":240,
            "lastSetValue":240,
            "size":4,
            "value":240
         }
      ],
      "pollingTimeSec":0,
      "zwaveCompany":"Fibargroup",
      "zwaveInfo":"3,4,61",
      "zwaveVersion":"4.7",
      "RFProtectionState":0,
      "RFProtectionSupport":0,
      "alarmLevel":0,
      "alarmType":0,
      "batteryLevel":83,
      "batteryLowNotification":true,
      "blackBox":{
         "fileName":"",
         "state":"Empty",
         "timestamp":0
      },
      "categories":[
         "climate"
      ],
      "climateZoneHash":"",
      "configured":true,
      "dead":false,
      "deadReason":"",
      "defInterval":0,
      "defaultPartyTime":240,
      "deviceControlType":0,
      "deviceIcon":129,
      "emailNotificationID":0,
      "emailNotificationType":0,
      "endPointId":1,
      "heatRequired":false,
      "heatingThermostatSetpoint":22.0,
      "heatingThermostatSetpointCapabilitiesMax":30.0,
      "heatingThermostatSetpointCapabilitiesMin":10.0,
      "heatingThermostatSetpointFuture":22.0,
      "heatingThermostatSetpointStep":{
         "C":0.5,
         "F":1.0
      },

 

  • 0
Posted
3 minutes ago, szakos2094 said:

Hello,

 

I use Heat Controller in my Bathroom and I want to get the adjusted value in my scene in HC3.

In HC2 I use the following line for it :

local thermostat = tonumber(fibaro:getValue(28, 'value'));

In HC2 work perfect. I get the value and I can compare with the thermometer value.

 

In HC3 I try with the similar method like:

local thermostat = fibaro.getValue(28, 'value');

or

local thermostat = tonumber(fibaro.getValue(28, 'value'));

 

In both case in HC3 I recevied the error message:

(load):17: attempt to concatenate a nil value (local 'thermostat')

 

Can you help me what is wrong and how can I get the adjusted value from the heat controller ?

 

Best Regards

 

 The solution was quite simple.

 

1) settings

2) devices

3) +

4) popup -> Other device

5) QA

6)

Please login or register to see this image.

/monthly_2020_09/image.png.c8397842d7bfb272894dccb7e07c1c66.png" />

7) Edit

8 ) reading header

-- * thermostatMode - current mode of the thermostat
-- * coolingThermostatSetpoint - set point for cooling 
-- * heatingThermostatSetpoint - set point for heating

 

so

image.png.648afea4ffc8ed78319aef4a33ee1aae.png

 

 

image.png.973b8a2e909f1ca03f885f2601527aea.png

 

Please login or register to see this code.

 

 

 

 

 

  • 0
  • Inquirer
  • Posted (edited)
    25 minutes ago, 10der said:

     The solution was quite simple.

     

    1) settings

    2) devices

    3) +

    4) popup -> Other device

    5) QA

    6)

    Please login or register to see this link.

    7) Edit

    8 ) reading header

    -- * thermostatMode - current mode of the thermostat
    -- * coolingThermostatSetpoint - set point for cooling 
    -- * heatingThermostatSetpoint - set point for heating

     

    so

    Please login or register to see this link.

     

     

    Please login or register to see this link.

     

    Please login or register to see this code.

     

    Thank you for the feedback,

    Please login or register to see this image.

    Quote

     

     

     

     

     

    Just a question ? Why I can't read directly the FIBARO heat controller adjusted value in this device ?

     

     

    Please login or register to see this attachment.

    Edited by szakos2094
    • 0
    Posted
    7 minutes ago, szakos2094 said:

    Just a question ? Why I can't read directly the FIBARO heat controller adjusted value in this device ?

    well.

    lets go from the scratch

     

    do you know Id of your device?

     

    lets go

     

    http://192.168.1.36/api/devices/123

     

    where192.168.1.36 - IP adress HC

    123 - deviice (on your pic) 

     

    please pur response (json) here

     

    • 0
  • Inquirer
  • Posted
    24 minutes ago, 10der said:

    well.

    lets go from the scratch

     

    do you know Id of your device?

     

    lets go

     

    http://192.168.1.36/api/devices/123

     

    where192.168.1.36 - IP adress HC

    123 - deviice (on your pic) 

     

    please pur response (json) here

     

     

    Please login or register to see this code.

    • 0
  • Inquirer
  • Posted
    12 hours ago, 10der said:

    so!

    as you can see this is all valeus what you can read via fibaro.getValue()

     

     

    "properties":{
          "parameters":[
             {
                "id":2,
                "lastReportedValue":1,
                "lastSetValue":1,
                "size":4,
                "value":1
             },
             {
                "id":3,
                "lastReportedValue":1,
                "lastSetValue":1,
                "size":4,
                "value":1
             },
             {
                "id":1,
                "lastReportedValue":240,
                "lastSetValue":240,
                "size":4,
                "value":240
             }
          ],
          "pollingTimeSec":0,
          "zwaveCompany":"Fibargroup",
          "zwaveInfo":"3,4,61",
          "zwaveVersion":"4.7",
          "RFProtectionState":0,
          "RFProtectionSupport":0,
          "alarmLevel":0,
          "alarmType":0,
          "batteryLevel":83,
          "batteryLowNotification":true,
          "blackBox":{
             "fileName":"",
             "state":"Empty",
             "timestamp":0
          },
          "categories":[
             "climate"
          ],
          "climateZoneHash":"",
          "configured":true,
          "dead":false,
          "deadReason":"",
          "defInterval":0,
          "defaultPartyTime":240,
          "deviceControlType":0,
          "deviceIcon":129,
          "emailNotificationID":0,
          "emailNotificationType":0,
          "endPointId":1,
          "heatRequired":false,
          "heatingThermostatSetpoint":22.0,
          "heatingThermostatSetpointCapabilitiesMax":30.0,
          "heatingThermostatSetpointCapabilitiesMin":10.0,
          "heatingThermostatSetpointFuture":22.0,
          "heatingThermostatSetpointStep":{
             "C":0.5,
             "F":1.0
          },

     

    Many thanks, it is works with -->  fibaro.getValue(469, "heatingThermostatSetpoint")

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