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!



Smart Home Forum by FIBARO Team

  • 0

API conection to my new heat pump

Pavel Bohac


Hi Guys,


i know that here are the most experts on fibaro and me as a newbie so i pleas for help :) I bought HC3 month ago and still learning basics. I have few scenes and some Zwave devices, thats for me OK and i can deal with this, but at my house is new Neore Heat Pump and it has his own "server" with API (see attachment pleas).


I want know how i get values as a second option in ideal case how to change this values


tvenek - venkovní teplota; °C (r )
ActFlow - aktuální průtok vody; m³/h (r )
ActHeaPow - aktuální tepelný výkon; kW (r )
HeatSumCnt - dodaná tepelná energie od resetu; kWh (r )
bivalctr - běh bivalentu; bool (r )
pow1st - požadovaný výkon; % (r )

InTtopv - teplota výstupní vody; °C (r )

Even - chyba nebo nepřipojené venkovní čidlo; bool (r )
Eobj - chyba nebo nepřipojené čidlo objektu; bool (r )
Etuv - chyba nebo nepřipojené čidlo tuv; bool (r )
WatPress - tlak v topném systému; Bar (r )
OutTReqWat - požadovaná teplota výstupní vody; °C (r )
EkvReq2 - požadovaná teplota výstupní vody 2 okruhu vypoč. ekv .křivkou včetně korekce; °C (r)
TreqWatPre - vypočtená teplota ekv. křivkou; °C (r )
SlntOn - Aktivní Silent mode; bool (r )

OuPWM1 - požadovaný výkon TČ; % (r )


and show it in module or device in fibaro. I try some but no funcion :(


If someone have time to help me, it will be great.

Please login or register to see this attachment.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0
  • Inquirer
  • So, with great help from Youda we have great QA fot NEORE HeatPump :

    local Host   = "LOCALIPADRESS"
    local Port   = "80"
    local tcpTimeout = 2000
    local srvUser = "USER"
    local srvPwd = "PASS"
    function urlencode(str)
      if (str) then
        str = string.gsub (str, "\n", "\r\n")
        str = string.gsub (str, "([^%w %-%_%.%~])", function (c) return string.format ("%%%02X", string.byte(c)) end)
        str = string.gsub (str, " ", "+")
      return str    
    function base64(data)
        local b='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
        return ((data:gsub('.', function(x) 
                local r,b='',x:byte() for i=8,1,-1 do r=r..(b%2^i-b%2^(i-1)>0 and '1' or '0') end
                return r;
              end)..'0000'?gsub('%d%d%d?%d?%d?%d?', function(x)
              if (#x < 6) then return '' end
              local c=0
              for i=1,6 do c=c+(x:sub(i,i)=='1' and 2^(6-i) or 0) end
              return b:sub(c+1,c+1)
        end)..({ '', '==', '=' })[#data%3+1])
    function QuickApp:TC_Read()
    local bauth = 'Basic '..base64(srvUser..":"..srvPwd)
    local url = "http://" .. Host .. ":" .. Port .. "/TecoAPI/getobject?tvenek&ActFlow&ActHeaPow&pow1st&InTtopv&WatPress&HeatSumCnt&OutTReqWat&OuPWM1"
    net.HTTPClient():request(url, {
          method = 'GET',
          headers = {
              ["Authorization"] = bauth
          timeout = tcpTimeout,
        success = function(response) 
                local jsonTable = json.decode(response.data);
                print('tvenek: ' ..jsonTable.tvenek);
                print('ActFlow: ' ..jsonTable.ActFlow);
                print('ActHeaPow: ' ..jsonTable.ActHeaPow);
                print('pow1st: ' ..jsonTable.pow1st);
                print('InTtopv: ' ..jsonTable.InTtopv);
                print('WatPress: ' ..jsonTable.WatPress);
                print('HeatSumCnt: ' ..jsonTable.HeatSumCnt);
                print('OutTReqWat: ' ..jsonTable.OutTReqWat);
                print('OuPWM1: ' ..jsonTable.OuPWM1);
                fibaro.setGlobalVariable("TC_tvenek", tostring(jsonTable.tvenek));
                fibaro.setGlobalVariable("TC_ActHeaPow", tostring(jsonTable.ActHeaPow));
                fibaro.setGlobalVariable("TC_ActFlow", tostring(jsonTable.ActFlow));
                fibaro.setGlobalVariable("TC_pow1st", tostring(jsonTable.pow1st));
                fibaro.setGlobalVariable("TC_InTtopv", tostring(jsonTable.InTtopv));
                fibaro.setGlobalVariable("TC_WatPress", tostring(jsonTable.WatPress));
                fibaro.setGlobalVariable("TC_HeatSumCnt", tostring(jsonTable.HeatSumCnt));
                fibaro.setGlobalVariable("TC_OutTReqWat", tostring(jsonTable.OutTReqWat));
                fibaro.setGlobalVariable("TC_OuPWM1", tostring(jsonTable.OuPWM1));                  
                self:updateView ("label", "text", "Venkovní teplota: "..tostring(string.format("%.1f",jsonTable.tvenek)).." °C");
                self:updateView ("label2", "text", "Aktuální průtok vody: "..tostring(string.format("%.1f",jsonTable.ActFlow)).." m3/h");
                self:updateView ("label3", "text", "Aktuální výkon čerpadla: "..tostring(string.format("%.1f",jsonTable.ActHeaPow)).." Kw");
                self:updateView ("label4", "text", "Požadovaný výkon čerpadla: "..tostring(string.format("%.1f",jsonTable.pow1st)).." %");
                self:updateView ("label5", "text", "Teplota výstupní vody: "..tostring(string.format("%.1f",jsonTable.InTtopv)).." °C");
                self:updateView ("label6", "text", "Tlak v topném systému "..tostring(string.format("%.1f",jsonTable.WatPress)).." Bar");
                self:updateView ("label7", "text", "Dodaná energie :"..tostring(string.format("%.1f",jsonTable.HeatSumCnt)).." kWh");
                self:updateView ("label8", "text", "Požadovaná teplota výstupní vody: "..tostring(string.format("%.1f",jsonTable.OutTReqWat)).." °C");
                self:updateView ("label9", "text", "Oběhové čerpadlo: "..tostring(string.format("%.0f",jsonTable.OuPWM1)).." %");
        error = function(message)
              print("error:", message)
    fibaro.setTimeout(1000*60*1, function() 
    function QuickApp:onInit()
    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.

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