openhab-addons icon indicating copy to clipboard operation
openhab-addons copied to clipboard

[iotawatt] Initial contribution

Open PRosenb opened this issue 11 months ago • 1 comments

This PR adds a new binding for IoTaWatt, an open source power measuring device. The first version aims to get feedback from the community and provide initial, basic functionality to measure power consumption.

Limitations of this version:

  • No authentication support
  • Support of IoTaWatt's Input channels with select values

Short discussion about the topic: Forum thread IoTaWatt

Any kinds of feedback is welcome, thank you.

Snapshot Download

PRosenb avatar Mar 06 '24 09:03 PRosenb

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/iotawatt/153849/3

openhab-bot avatar Mar 13 '24 05:03 openhab-bot

Many thanks @lsiepel for reviewing my PR by the way.

2. thing-types. I see several power/energy rel;ated channels that have diffent quantitytypes declared compare to others bindings that have the same channels. Please double check.

When I implemented the types, I was also not sure which ones to use. I had a look at the Shelly binding because I use it and it has quite a lot of types. Which one did you compare it to? What do you feel should it be changed to? I hope we can get them right.

PRosenb avatar May 19 '24 13:05 PRosenb

@lsiepel I have issues with %unit% and mentioned it on your comment, but unfortunately is it hidden now. Do you have a clue why it's not working, at least on my set up?

PRosenb avatar May 22 '24 21:05 PRosenb

@lsiepel I have issues with %unit% and mentioned it on your comment, but unfortunately is it hidden now. Do you have a clue why it's not working, at least on my set up?

Hmm maybe try %% as unit. i have to search, but percentages have a different handling since a while. You can also check some otherbinding setting a percentage value.

lsiepel avatar May 24 '24 19:05 lsiepel

Thanks for your hints @lsiepel and @jlaur. It was not an issue of the channel-type definition but only of the item definition in the readme where the dimension was missing. Now it works like a charm.

PRosenb avatar May 25 '24 11:05 PRosenb

Thanks for your contribution. LGTM. Let me know once you think this binding is tested enough to merge.

Many thanks for your review and good inputs @lsiepel. I tested it on a test setup but haven't yet installed an IoTaWatt on my switchboard because I need an electrician for that. I will have it installed in the coming weeks, set it up to monitor the whole house and integrate it into my rules. Should I find bugs at that stage I'll submit bug fixes.

PRosenb avatar May 28 '24 11:05 PRosenb

Now, you could add your binding's logo to the openHAB website. ` See https://www.openhab.org/docs/developer/addons/#add-your-add-on-s-logo-to-the-openhab-website

Please also see the updated documentation here - SVG is now preferred: https://next.openhab.org/docs/developer/addons/#add-your-add-on-s-logo-to-the-openhab-website-and-the-ui

lsiepel avatar May 28 '24 19:05 lsiepel

Thanks for the hint @lsiepel, I added it here https://github.com/openhab/openhab-docs/pull/2309

PRosenb avatar Jun 13 '24 12:06 PRosenb