Homewizard P1

Can I connect Homewizard P1 to smartthings?

They have a published API, so it should be possible, but I don’t think anyone has done the work for an integration yet. It will require significant custom code, and it will probably require an additional server device as well.

So I think it’s doable (people on other home automation platforms have created integrations for both home assistant and homebridge), but I haven’t heard of anyone working on an integration for the new SmartThings architecture yet. :thinking:

1 Like

I made a driver a while back:

https://github.com/danieldk/homewizard-energy

Still need to clean it up and add proper installation instructions, but I’ve been using it for a couple of months.

3 Likes

Hello Daniel,
2 Dutch people who communicate in English, but that’s how everyone understands it😊.
the link with the script does not work.
I have 2 more questions

  1. At HomeWizzard you can have their own thermostat switch based on energy price, is this also possible in your script?
    2 I don’t know if it’s possible, and I’m a layman, but can you send this script to me?

I forgot to make the repo public, it should work now.

Currently the only functionality that is supported is reading out the electricity values of the smart meter. We don’t have gas (we bought a heat pump), so I can’t test the gas readings. They should be easy to add through (the names of the keys are in the Homewizard API docs).

1 Like

@danieldk Another dutch person here. I am a software developer just never worked with stuff for SmartThings but I really want to integrate this. I do have solar panels. Can you give me some tips on how I can contribute or would you have some time to run me through the basics so I can contribute?

I am afraid I’m not going to be of much help. I haven’t learned Lua or the SmartThings APIs. I just hacked this together one night by modifying some other code.

All I can say is: use the Homewizard API docs to find the keys for the stats that you want to add and add them to the source code.

1 Like

@danieldk When I click the channel link I get 403 forbidden.

If other people visit this page and want to know if this works. As of yesterday i downloaded the git files from @danieldk and manged to create a channel with the smartthings CLI and upload the package as is. Now the specific measurements per phase dont work when a phase has negative consumption (-x watts) because of solar panel production. But the total definetly does work so it is possible to trigger devices based on power production.

1 Like

Hi @danieldk , I get the message ā€œforbidden 403ā€, could it be that your channel is no longer public?

@Fabian_Wijne Can you share the link to your channel?

I don’t have a public channel I just downloaded the git repo and look for a guide to upload it.

I also get the same error mentioned above. But i am not so home in this it stuff…
I will give it a try.

Hoi Fabian,
Can you please explain to me in ā€œlay languageā€ what (steps) I need to do to get it running. all is abra cadabra for me… :frowning: but I’d like to get it connected too… :smiley: Thanks!

Hello Roy, you need to download the repo mentioned above and then search for a guide on how to upload your own drivers to your personal SmartThings hub. It’s a bit much to explain here but there are very detailed steps online.

I will try to search for it, in case you happen to have a link with good explantion, I would be very happy if you could share it.
Does it involve anything with Smarthings CLI? As this is not working for me… (force closes when i try to launch on my old windows10 machine.)

@Roy_K yeah I did use the CLI use these steps here Create a SmartThings Edge Driver for an IoT bulb | Samsung Developer

If you download the git repo you basically start from step 4 you don’t have to program anything but it will teach you how to create and upload your custom driver. Since you downloaded the repo you are finished with the development steps and just continue with the uploading part.

Now it’s good to ask chat gpt to explain to you what the command prompt commands do so you understand what is happening. If it doesn’t work out I can check if I can make my driver public or share it with you.

1 Like

Thank you! Finally I managed :slight_smile:

It took me some time to understand.
First I tried running Smartthings.exe…and that did not work, so I thought that Smartthings.exe did not run as I’d need to download Node.js.

Only later (via your link and clear explanation) I found out that I needed to work from cmd, entering code there; this was not so visible for me in the screenshots presented (I am clearly not an IT person, :see_no_evil: hahaha).
But with that, and your help it is now finally connected to SmartThings app, whoohoow!

Otoh, it is not yet presented in Energy; would that also be possible?
(maybe not, so far I am already happy :slight_smile:

1 Like

In my previous post i gave an update on what does work and what doesn’t but the total energy consumption of your house should be available just not the phase specific measurements.

@Roy_K if you see the device now in your SmartThings app you still need to edit it’s settings and set the IP address. Open the device in your app and select the 3 dots and go to settings. To find the IP adress of your home Wizard go to your router and check the list for connected devices. Also in home Wizard you might also need to enable local API not sure if that is on by default.

These steps are also available in @danieldk original git.

1 Like