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
Guest Zooitje
I have a HomeWizard Energy P1 device connected to my electric meter.
This device has al local api that does not require authentication.
There are two api calls:
http://<ip-address>/api/v1/data
and
http://<ip-address>/api/v1/telegram
http://<ip-address>/api/v1/data gives u the following response:
Please login or register to see this code.
While http://<ip-address>/api/v1/telegram returns the native P1 response.
I created a scene wher I want to read the P1 device but with no luck.
My code looks like this:
function process(response)
local http = net.HTTPClient();
http:request("http://192.168.178.61/api/v1/data",
{ options = {method = "GET"},
success = process,
error = error });
if (response ~= nil) then
fibaro:debug(response.data);
When I run the scene, nothing happens. The response is nil.
If I change data into telegram, I do get a response with the correct data but it is NOT the data that I want.
Can anyone tell me why the response is nil when using: http://<ip-address>/api/v1/data
4 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.