-
Notifications
You must be signed in to change notification settings - Fork 397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Shelly 3EM #2519
Implement Shelly 3EM #2519
Conversation
@michaelgrill Please check usage of HTTP-Bridge |
@sfeilmeier the other Error on Test was because of AbbreviationAsWordInName - the name is 3EM - i would be glad if we could keep this as it is as this is the original name - what do you think? |
Calculate the Energy values from ActivePower.
Added this. for Checkstyle this.setValuesForPhase(i + 1, voltage, current, power);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
General usage of HttpBridge is fine. Had some other things i noticed and also format your code 🙂 (CTRL + SHIFT + F in Eclipse)
io.openems.edge.io.shelly/src/io/openems/edge/io/shelly/shellyplus3em/IoShellyPlus3EMImpl.java
Outdated
Show resolved
Hide resolved
io.openems.edge.io.shelly/src/io/openems/edge/io/shelly/shellyplus3em/IoShellyPlus3EMImpl.java
Outdated
Show resolved
Hide resolved
io.openems.edge.io.shelly/src/io/openems/edge/io/shelly/shellyplus3em/IoShellyPlus3EMImpl.java
Outdated
Show resolved
Hide resolved
io.openems.edge.io.shelly/src/io/openems/edge/io/shelly/shellyplus3em/IoShellyPlus3EMImpl.java
Outdated
Show resolved
Hide resolved
io.openems.edge.io.shelly/src/io/openems/edge/io/shelly/shellyplus3em/IoShellyPlus3EMImpl.java
Outdated
Show resolved
Hide resolved
It's very often like this unfortunately. It's possible to ignore the Checkstyle error (using |
@sfeilmeier @michaelgrill should all be done and ready |
io.openems.edge.io.shelly/src/io/openems/edge/io/shelly/shellyplus3em/IoShellyPlus3emImpl.java
Outdated
Show resolved
Hide resolved
Done ! @michaelgrill :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
usage in general looks fine only some side notes and did formatting change again? 🤔
after the merge of #2539 we should be able to merge this one as well
io.openems.edge.io.shelly/src/io/openems/edge/io/shelly/shellyplus3em/IoShellyPlus3emImpl.java
Outdated
Show resolved
Hide resolved
io.openems.edge.io.shelly/src/io/openems/edge/io/shelly/shellyplus3em/IoShellyPlus3emImpl.java
Outdated
Show resolved
Hide resolved
@michaelgrill should be done now ! :) ready to check and review again :) If your new HttpBridge is merged it would be great if this also would be merged ? :) |
as the HttpBridge works now maybe up ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. 👍 ty
(i was waiting for #2539 (review) to be merged)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please find my comments. I applied all suggested changes. Can you please validate that everything still works?
io.openems.edge.io.shelly/src/io/openems/edge/io/shelly/shellyplus3em/Config.java
Outdated
Show resolved
Hide resolved
io.openems.edge.io.shelly/src/io/openems/edge/io/shelly/shellyplus3em/IoShellyPlus3em.java
Outdated
Show resolved
Hide resolved
io.openems.edge.io.shelly/src/io/openems/edge/io/shelly/shellyplus3em/IoShellyPlus3emImpl.java
Outdated
Show resolved
Hide resolved
io.openems.edge.io.shelly/src/io/openems/edge/io/shelly/shellyplus3em/IoShellyPlus3emImpl.java
Outdated
Show resolved
Hide resolved
io.openems.edge.io.shelly/src/io/openems/edge/io/shelly/shellyplus3em/IoShellyPlus3emImpl.java
Outdated
Show resolved
Hide resolved
io.openems.edge.io.shelly/src/io/openems/edge/io/shelly/shellyplus3em/IoShellyPlus3emImpl.java
Outdated
Show resolved
Hide resolved
I will test this and report if it works :) @sfeilmeier |
Thanks. Waiting for your final "Go!" to merge this. |
Needed to fix the *1000 for current and voltage. I also added some functionalities to verify the conditions of the E-Meters in the IoShelly3Em.java :)
@sfeilmeier should be completed now ! I just added some functionalities - maybe just have a little look after it: this.channel(IoShelly3Em.ChannelId.EMETER1_EXCEPTION).setNextValue(!isValid); also added: this.channel(IoShelly3Em.ChannelId.RELAY_OVERPOWER_EXCEPTION).setNextValue(overpower); to see if the Relais is overpowered :) |
io.openems.edge.io.shelly/src/io/openems/edge/io/shelly/shelly3em/IoShelly3EmImpl.java
Outdated
Show resolved
Hide resolved
io.openems.edge.io.shelly/src/io/openems/edge/io/shelly/shelly3em/IoShelly3EmImpl.java
Outdated
Show resolved
Hide resolved
fixed and working :D @sfeilmeier |
Link to Shelly Product
This is a 3-phase Meter, which can be used as a Grid Meter for example.