# DELETED - OLD/ARCHIVED \[APP\] Homewizard Energy (stable: v0.1.7 beta: v0.1.7)

**URL:** <https://community.homey.app/t/deleted-old-archived-app-homewizard-energy-stable-v0-1-7-beta-v0-1-7/34782>\
**Category:** Apps\
**Tags:** app, official, energy, devices\
**Created:** [September 18, 2020, 9:11am UTC](https://community.homey.app/t/deleted-old-archived-app-homewizard-energy-stable-v0-1-7-beta-v0-1-7/34782 "2020-09-18T09:11:29Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![Frank\_van\_de\_Schuur](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frank_van_de_schuur/32/35882_2.png) [@Frank\_van\_de\_Schuur](https://community.homey.app/u/Frank_van_de_Schuur)\
**Post date:** [September 21, 2020, 7:32pm UTC](https://community.homey.app/t/deleted-old-archived-app-homewizard-energy-stable-v0-1-7-beta-v0-1-7/34782/41 "2020-09-21T19:32:43Z")

</div>

Does it have the same name (Homewizard\_energy) or is it integrated into the Homewizard App (also made by you)  
I can’t find it under the same name, also not with the browser

---

<div class="post-metadata">

**Author:** ![Jeroen\_Tebbens](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jeroen_tebbens/32/62246_2.png) [@Jeroen\_Tebbens](https://community.homey.app/u/Jeroen_Tebbens)\
**Post date:** [September 21, 2020, 7:57pm UTC](https://community.homey.app/t/deleted-old-archived-app-homewizard-energy-stable-v0-1-7-beta-v0-1-7/34782/42 "2020-09-21T19:57:29Z")

</div>

It is not integrated, it is a whole new app “Homewizard Energy”.  
Check the link in the opening post. I keep that post updated with changes and added the Homey app store link.

---

<div class="post-metadata">

**Author:** ![Frank\_van\_de\_Schuur](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frank_van_de_schuur/32/35882_2.png) [@Frank\_van\_de\_Schuur](https://community.homey.app/u/Frank_van_de_Schuur)\
**Post date:** [September 22, 2020, 9:28am UTC](https://community.homey.app/t/deleted-old-archived-app-homewizard-energy-stable-v0-1-7-beta-v0-1-7/34782/43 "2020-09-22T09:28:06Z")

</div>

Got it. Thanks

---

<div class="post-metadata">

**Author:** ![DaVoezzz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/davoezzz/32/17665_2.png) [@DaVoezzz](https://community.homey.app/u/DaVoezzz)\
**Post date:** [September 22, 2020, 3:43pm UTC](https://community.homey.app/t/deleted-old-archived-app-homewizard-energy-stable-v0-1-7-beta-v0-1-7/34782/44 "2020-09-22T15:43:51Z")

</div>

I’m getting the http: error. It is in the same subnet

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/6/c648abf7eac06558797e993b8bdf108d784b27d7.jpeg)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/0/f09acb87e4ddecbca669cdb77fb780a90f7a7d7d.jpeg)

---

<div class="post-metadata">

**Author:** ![Jeroen\_Tebbens](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jeroen_tebbens/32/62246_2.png) [@Jeroen\_Tebbens](https://community.homey.app/u/Jeroen_Tebbens)\
**Post date:** [September 22, 2020, 4:01pm UTC](https://community.homey.app/t/deleted-old-archived-app-homewizard-energy-stable-v0-1-7-beta-v0-1-7/34782/45 "2020-09-22T16:01:24Z")

</div>

Hm that is odd. No spaces behind the ipaddress when you enter it in the app?  
I see you have Ubiquiti do you allow wlan inter traffic (WiFi clients are allowed to see each other?  
Another test you can do is:

[http://192.168.2.159/api/v1/data](http://192.168.2.159/api/v1/data) in a browser (WiFi tablet or laptop browser) and see if the dongle respond with metrics

---

<div class="post-metadata">

**Author:** ![DaVoezzz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/davoezzz/32/17665_2.png) [@DaVoezzz](https://community.homey.app/u/DaVoezzz)\
**Post date:** [September 22, 2020, 4:10pm UTC](https://community.homey.app/t/deleted-old-archived-app-homewizard-energy-stable-v0-1-7-beta-v0-1-7/34782/46 "2020-09-22T16:10:19Z")

</div>

Hi Jeroen,

No spaces behind the ip.  
The inter lan is enabled. I use more WiFi connected devices with homey so that should not be the problem. When I go to [http://192.168.2.159/api/v1/data](http://192.168.2.159/api/v1/data) in my browser it says connection refused. But it is connected succesfully to the HomeWizard energy app that reads data from it.

---

<div class="post-metadata">

**Author:** ![Wesley\_Witjes](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wesley_witjes/32/16366_2.png) [@Wesley\_Witjes](https://community.homey.app/u/Wesley_Witjes)\
**Post date:** [September 22, 2020, 4:23pm UTC](https://community.homey.app/t/deleted-old-archived-app-homewizard-energy-stable-v0-1-7-beta-v0-1-7/34782/47 "2020-09-22T16:23:59Z")

</div>

Had the same till I set gebruik ledring on and then it worked don’t know why. But you can always try

---

<div class="post-metadata">

**Author:** ![DaVoezzz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/davoezzz/32/17665_2.png) [@DaVoezzz](https://community.homey.app/u/DaVoezzz)\
**Post date:** [September 22, 2020, 4:35pm UTC](https://community.homey.app/t/deleted-old-archived-app-homewizard-energy-stable-v0-1-7-beta-v0-1-7/34782/48 "2020-09-22T16:35:13Z")

</div>

I saw your answer in the above topic an tried several times but i get the same error😢

---

<div class="post-metadata">

**Author:** ![Jeroen\_Tebbens](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jeroen_tebbens/32/62246_2.png) [@Jeroen\_Tebbens](https://community.homey.app/u/Jeroen_Tebbens)\
**Post date:** [September 22, 2020, 4:37pm UTC](https://community.homey.app/t/deleted-old-archived-app-homewizard-energy-stable-v0-1-7-beta-v0-1-7/34782/49 "2020-09-22T16:37:52Z")

</div>

Could you sent me a private message with the /api/v1/data output to me? Checking if there is a difference in the output

---

<div class="post-metadata">

**Author:** ![DaVoezzz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/davoezzz/32/17665_2.png) [@DaVoezzz](https://community.homey.app/u/DaVoezzz)\
**Post date:** [September 22, 2020, 4:49pm UTC](https://community.homey.app/t/deleted-old-archived-app-homewizard-energy-stable-v0-1-7-beta-v0-1-7/34782/50 "2020-09-22T16:49:17Z")

</div>

There is no output. Only saying “connection refused” when i go to [http://192.168.2.159/api/v1/data](http://192.168.2.159/api/v1/data)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/4/84484b46d4681a352e6d10f7545371d6b510867f.jpeg)

But strange enough the HomeWizard Energy is able to read data from it so it is online😅

---

<div class="post-metadata">

**Author:** ![RW\_Schouten](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rw_schouten/32/16357_2.png) [@RW\_Schouten](https://community.homey.app/u/RW_Schouten)\
**Post date:** [September 22, 2020, 5:10pm UTC](https://community.homey.app/t/deleted-old-archived-app-homewizard-energy-stable-v0-1-7-beta-v0-1-7/34782/51 "2020-09-22T17:10:14Z")

</div>

Same situation here, I found a solution. My p1 meter was first only powered by the smart meter, now I have powered it by a USB in wall outlet. Hope it will solve ur issue too!

---

<div class="post-metadata">

**Author:** ![Jeroen\_Tebbens](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jeroen_tebbens/32/62246_2.png) [@Jeroen\_Tebbens](https://community.homey.app/u/Jeroen_Tebbens)\
**Post date:** [September 22, 2020, 5:18pm UTC](https://community.homey.app/t/deleted-old-archived-app-homewizard-energy-stable-v0-1-7-beta-v0-1-7/34782/52 "2020-09-22T17:18:57Z")

</div>

Sound like there is a (reverse)proxy in action. But can’t explain why that would affect local subnet traffic or do you force stuff via DHCP server with attributes?

---

<div class="post-metadata">

**Author:** ![Jeroen\_Tebbens](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jeroen_tebbens/32/62246_2.png) [@Jeroen\_Tebbens](https://community.homey.app/u/Jeroen_Tebbens)\
**Post date:** [September 22, 2020, 5:20pm UTC](https://community.homey.app/t/deleted-old-archived-app-homewizard-energy-stable-v0-1-7-beta-v0-1-7/34782/53 "2020-09-22T17:20:13Z")

</div>

Yeah good call, I had to power it as well due to splitter I had to use (yes old Energylink still alive)

---

<div class="post-metadata">

**Author:** ![DaVoezzz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/davoezzz/32/17665_2.png) [@DaVoezzz](https://community.homey.app/u/DaVoezzz)\
**Post date:** [September 22, 2020, 5:25pm UTC](https://community.homey.app/t/deleted-old-archived-app-homewizard-energy-stable-v0-1-7-beta-v0-1-7/34782/54 "2020-09-22T17:25:21Z")

</div>

I don’t force anything with my dhcp server. It is just a simple kpn experiabox v10 which is giving the addresses. Also not using any proxy’s at all here😢

@RW_Schouten mine is already powered by a USB adapter… I will give another cable/adapter a try!

---

<div class="post-metadata">

**Author:** ![Jeroen\_Tebbens](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jeroen_tebbens/32/62246_2.png) [@Jeroen\_Tebbens](https://community.homey.app/u/Jeroen_Tebbens)\
**Post date:** [September 22, 2020, 5:29pm UTC](https://community.homey.app/t/deleted-old-archived-app-homewizard-energy-stable-v0-1-7-beta-v0-1-7/34782/55 "2020-09-22T17:29:02Z")

</div>

This is the pairing code, checking if I get http status 200 OK then I check the payload if the smr\_version from the P1 port is not NULL (ie. It has a value). Only then I proceed. As you get a denied on the request it will fail on the first check.

var url = ‘http://’ + device.settings.homewizard\_ip + ‘/api/v1/data’;

```
        console.log('Calling '+ url);

        request(url, function (error, response, body) {
            if (response === null || response === undefined) {
                        socket.emit("error", "http error");
                        return;
            }
            if (!error && response.statusCode == 200) {
                var jsonObject = JSON.parse(body);
                console.log (jsonObject);
                if (jsonObject.smr_version != null) {
                    console.log('Call OK');

                    devices[device.data.id] = {
                        id: device.data.id,
                        name: device.name,
                        settings: device.settings,
                        capabilities: device.capabilities
                    };
                    homewizard.setDevices(devices);

                    callback( null, devices );
                    socket.emit("success", device);
                }
            }
        });
```

---

<div class="post-metadata">

**Author:** ![DaVoezzz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/davoezzz/32/17665_2.png) [@DaVoezzz](https://community.homey.app/u/DaVoezzz)\
**Post date:** [September 22, 2020, 5:44pm UTC](https://community.homey.app/t/deleted-old-archived-app-homewizard-energy-stable-v0-1-7-beta-v0-1-7/34782/56 "2020-09-22T17:44:19Z")

</div>

It is working fine for some reason now. I checked and the device updated itself from 1.38fw to 1.48 as i far as saw. Could saw it wrong but I think this is the reason that it is working now. Could it be that the 1.38fw was not working with the api? I took the p1 meter out of the box today and tried to connect it instantly. Maybe it took some time to get the update and get it working with the api.

As expected the response to the /api/v1data works fine now.

Maybe some interesting information to check!

---

<div class="post-metadata">

**Author:** ![Jeroen\_Tebbens](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jeroen_tebbens/32/62246_2.png) [@Jeroen\_Tebbens](https://community.homey.app/u/Jeroen_Tebbens)\
**Post date:** [September 22, 2020, 6:02pm UTC](https://community.homey.app/t/deleted-old-archived-app-homewizard-energy-stable-v0-1-7-beta-v0-1-7/34782/57 "2020-09-22T18:02:36Z")

</div>

Thanks for confirming. The firmware might definitely be the issue. Homewizard only just recently opened the API by firmware so yeah the older version was probably not supporting the API call. The firmware version is not part of the API response payload so cant check. But will make a note that firmware of the dongle must be 1.48.

---

<div class="post-metadata">

**Author:** ![Jeroen\_Tebbens](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jeroen_tebbens/32/62246_2.png) [@Jeroen\_Tebbens](https://community.homey.app/u/Jeroen_Tebbens)\
**Post date:** [September 22, 2020, 6:38pm UTC](https://community.homey.app/t/deleted-old-archived-app-homewizard-energy-stable-v0-1-7-beta-v0-1-7/34782/58 "2020-09-22T18:38:06Z")

</div>

I read on tweakers forum that eventually the kWh meter for solar panels will get an API as well but Homewizard doesnt know when yet. But will investigate when it will.

---

<div class="post-metadata">

**Author:** ![Henk\_Renting](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/henk_renting/32/87634_2.png) [@Henk\_Renting](https://community.homey.app/u/Henk_Renting)\
**Post date:** [September 24, 2020, 3:48pm UTC](https://community.homey.app/t/deleted-old-archived-app-homewizard-energy-stable-v0-1-7-beta-v0-1-7/34782/59 "2020-09-24T15:48:33Z")

</div>

That’s good news, thx @Jeroen_Tebbens!

Unfortunately, I may have found (if others have it too) found a small bug.

When the dongle is not connected I get an error and the app is stopped unexpectedly.

I am trying to find a working P1 splitter, so at the moment the HW dongle is not always connected… ☹

---

<div class="post-metadata">

**Author:** ![Jeroen\_Tebbens](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jeroen_tebbens/32/62246_2.png) [@Jeroen\_Tebbens](https://community.homey.app/u/Jeroen_Tebbens)\
**Post date:** [September 24, 2020, 4:03pm UTC](https://community.homey.app/t/deleted-old-archived-app-homewizard-energy-stable-v0-1-7-beta-v0-1-7/34782/60 "2020-09-24T16:03:27Z")

</div>

Not sure how to handle.

Kind regards / groet,  
Jeroen

[Previous page](https://community.homey.app/t/deleted-old-archived-app-homewizard-energy-stable-v0-1-7-beta-v0-1-7/34782.md?page=2)

[Next page](https://community.homey.app/t/deleted-old-archived-app-homewizard-energy-stable-v0-1-7-beta-v0-1-7/34782.md?page=4)
