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
MichelVuik 0
Hello,
i want to read temperatures from my heating system Mohlenhoff Alpha2.
The heating system delivers XML and i allready read some data.
But the data i want from 7 zones are all named the same (<T_ACTUAL>20.5</T_ACTUAL>).
At this moment i can only read zone 7 (the last one)
Hope someone can give me a startup how to look for data from <HEATAREA_NAME> til </T_TARGET_BASE> and retreive the values between them.
Or a working script
So far this works and i receive in Debug: Online.
--[[
%% properties
%% events
%% globals
--]]
-- Virtual device id
vDevId = 86
local vDevId = fibaro:getSelfId();
--fibaro:debug(vDevId);
-- url van Thermostaat
Mohlenhoff = Net.FHttp("192.168.1.32");
-- ophalen JSON info
response, status, errorCode = Mohlenhoff:GET("/static.xml");
fibaro:debug(response);
fibaro:debug(status);
fibaro:debug(errorCode);
-- Thermostaat info ophalen
local a1 = string.match(response, "^.+<M2MSTATE>(.+)</M2MSTATE>.+$");
fibaro:debug("Status: " .. a1);
Please login or register to see this attachment.
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.