Skip to content
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

Add mywallbox Adapter to latest #1899

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

SKB-CGN
Copy link
Contributor

@SKB-CGN SKB-CGN commented Aug 15, 2022

Adapter for Cloud based Wallboxes like Pulsar or Pulsar Plus

@Apollon77
Copy link
Collaborator

Hi, thank you for your adapter.

Is the adapter for Pulsar Wallboxes only? Then "Wallbox" as name is too generic in my eyes ... or do you pan to add more other such? Could you please rename it to pulsar-wallbox or such?

@Apollon77 Apollon77 added the Adapter-Review needed A developer from the ioBroker Team will review the adapter, will provide comments or require changes label Aug 15, 2022
@SKB-CGN
Copy link
Contributor Author

SKB-CGN commented Aug 15, 2022

Hi, thank you for your adapter.

Is the adapter for Pulsar Wallboxes only? Then "Wallbox" as name is too generic in my eyes ... or do you pan to add more other such? Could you please rename it to pulsar-wallbox or such?

The Company is named "Wallbox" therefore i choosed this name.

@Apollon77
Copy link
Collaborator

wow ... puuhh ... a company name which matches a "in the meantime commodoty name of a device type" :-( I will discuss it in core team...
But I hope you also understand my point of view?

@SKB-CGN
Copy link
Contributor Author

SKB-CGN commented Aug 15, 2022

Sure, understand it. Never mind. They even own www.wallbox.com as their domain.
So its most common name for product and company ;)

Could you do the checks needed for the adapter in the meantime? Thanks beforehand!

@SKB-CGN
Copy link
Contributor Author

SKB-CGN commented Aug 17, 2022

Hi,
do we have some news here?

@Apollon77
Copy link
Collaborator

Apollon77 commented Aug 17, 2022

Yes, we discussed yesterday. WOuld it be an issue torename tzo "my-wallbox" so we match the name of that cloud servcie you connect to?

Additionally please state in the readme exactly that it is for Wallboxes from company "wallbox" or such ... right now also the Readme could be easiely read "works for all wallboxes". The same for io-package title/tileLang and desc fields please.

This is a special case, but we want to avoid user confusion.

Additionally please adjust the links in the repo file to use raw.githubusercontent.com like the others ... github.com is not a CDN service ...

Thnak you very much for your understanding and support on this

Changed name to My-Wallbox as requested
@SKB-CGN
Copy link
Contributor Author

SKB-CGN commented Aug 17, 2022

Hi,
would you please check the things again.

I have updated the name to My-Wallbox and changed (hopefully) all necessary dependencies and files.

Thank you!

@Apollon77
Copy link
Collaborator

I will do the adapter review in the next days ...

@SKB-CGN
Copy link
Contributor Author

SKB-CGN commented Aug 17, 2022

Great, but now i have the problem, that the adapter is not working anymore ... i do not know, whats going on.

@Apollon77
Copy link
Collaborator

Hm ... data on github looks fine ... what error you get?

Changed Name to MyWallbox
@SKB-CGN
Copy link
Contributor Author

SKB-CGN commented Aug 17, 2022

The adapter is not doing anything. No commands running, no Interval is working. Nothing.

Even not able to change to debug to see some output.

@Apollon77
Copy link
Collaborator

Code wise looks good ... also github actionsstart tghe adapter ... how you test locally?

@SKB-CGN
Copy link
Contributor Author

SKB-CGN commented Aug 17, 2022

i created the adapter with adapter creator and everytime i change the code, i do iobroker upload mywallbox

@Apollon77
Copy link
Collaborator

but you also reinstalled the adapter after that namechange completely?

@SKB-CGN
Copy link
Contributor Author

SKB-CGN commented Aug 17, 2022

Holy bible. I missed an error-handling. Will fix that shortly.

@SKB-CGN
Copy link
Contributor Author

SKB-CGN commented Aug 17, 2022

Now its working again. Thanks for waiting.

@SKB-CGN
Copy link
Contributor Author

SKB-CGN commented Aug 31, 2022

@Apollon77 Do we have some news here? :)

@Apollon77
Copy link
Collaborator

Yes, after vacation, wasn't able to do it before

@GermanBluefox GermanBluefox added auto-checked This PR was automatically checked for obvious criterias must be fixed The Adapter request got review/automatic feedback that is required to be fixed before another review labels Sep 6, 2022
@ioBroker ioBroker deleted a comment from Apollon77 Sep 6, 2022
@SKB-CGN
Copy link
Contributor Author

SKB-CGN commented Sep 16, 2022

Can someone please tell me, how "ioBroker.my-wallbox" can be removed here? I needed to change the name and the check always goes through my-wallbox either instead of only using mywallbox.

Thank you!

@Apollon77
Copy link
Collaborator

All good ... the checker only checks the initial repo file change ... so clean would be new PR ... but in this case "known", so all fine

@SKB-CGN
Copy link
Contributor Author

SKB-CGN commented Sep 16, 2022

Ok and all things are good now?

@Apollon77
Copy link
Collaborator

Hi,
here my review comments:

Thank you for checking and adjusting,

Ingo

@github-actions github-actions bot added the *📬 a new comment has been added label Feb 8, 2024
@github-actions github-actions bot deleted a comment from GermanBluefox Feb 8, 2024
@github-actions github-actions bot deleted a comment from mcm1957 Feb 8, 2024
Copy link

github-actions bot commented Feb 8, 2024

Automated adapter checker

blob

Downloads
NPM

👍 No errors found

ioBroker.my-wallbox

Downloads
NPM

  • ❗ [E020] Name of adapter in package.json must be lowercase and be equal to "iobroker.my-wallbox". Now is "iobroker.mywallbox"
  • ❗ [E103] "common.name" in io-package.json must be equal to "my-wallbox'". Now is mywallbox
  • ❗ [E201] Bluefox was not found in the collaborators on NPM!. Please execute in adapter directory: npm owner add bluefox iobroker.my-wallbox
  • ❗ [E605] No actual year found in copyright. Please add "Copyright (c) 2024 SKB-CGN info@skb-web.de" at the end of README.md
  • ❗ [E701] No actual year found in LICENSE. Please add "Copyright (c) 2024 SKB-CGN info@skb-web.de" at the start of LICENSE
  • 👀 [W171] "common.title" is deprecated in io-package.json
  • 👀 [W105] "common.titleLang" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • 👀 [W109] "common.desc" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • 👀 [W156] Adapter should support admin 5 UI (jsonConfig) if you do not use a React based UI
  • 👀 [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • 👀 [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • 👀 [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • 👀 [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • 👀 [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • 👀 [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • 👀 [W202] Version of package.json (1.0.0) doesn't match latest version on NPM ({"_id":"iobroker.my-wallbox","name":"iobroker.my-wallbox","time":{"created":"2022-08-17T08:16:34.223Z","0.0.17":"2022-08-17T08:16:34.533Z","modified":"2022-08-17T09:32:02.229Z","unpublished":{"time":"2022-08-17T09:32:02.229Z","versions":["0.0.17"]}}})
  • 👀 [W400] Cannot find "my-wallbox" in latest repository

ioBroker.mywallbox

Downloads Number of Installations (latest)
NPM

  • ❗ [E605] No actual year found in copyright. Please add "Copyright (c) 2024 SKB-CGN info@skb-web.de" at the end of README.md
  • ❗ [E701] No actual year found in LICENSE. Please add "Copyright (c) 2024 SKB-CGN info@skb-web.de" at the start of LICENSE
  • 👀 [W171] "common.title" is deprecated in io-package.json
  • 👀 [W105] "common.titleLang" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • 👀 [W109] "common.desc" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • 👀 [W156] Adapter should support admin 5 UI (jsonConfig) if you do not use a React based UI
  • 👀 [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • 👀 [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • 👀 [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • 👀 [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • 👀 [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • 👀 [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • 👀 [W400] Cannot find "mywallbox" in latest repository

Add comment "RE-CHECK!" to start check anew

@SKB-CGN
Copy link
Contributor Author

SKB-CGN commented Feb 8, 2024

Hi,
i think the Adapter is ready to be added to the repo.

Please let me know!

@mcm1957 mcm1957 added (RE-)REVIEW pending (mcm1957) Changes requested by review have been applied, re-review could be done. and removed must be fixed The Adapter request got review/automatic feedback that is required to be fixed before another review stale PR seems has no activity, will be closed after some time labels Feb 8, 2024
@mcm1957 mcm1957 removed the 15.2.2024 label Feb 22, 2024
@mcm1957
Copy link
Collaborator

mcm1957 commented Mar 3, 2024

RE-CHECK!

@github-actions github-actions bot added the must be fixed The Adapter request got review/automatic feedback that is required to be fixed before another review label Mar 3, 2024
@github-actions github-actions bot deleted a comment from SKB-CGN Mar 3, 2024
Copy link

github-actions bot commented Mar 3, 2024

Automated adapter checker

blob

Downloads - Test and Release
NPM

👍 No errors found

ioBroker.my-wallbox

Downloads - Test and Release
NPM

  • ❗ [E020] Name of adapter in package.json must be lowercase and be equal to "iobroker.my-wallbox". Now is "iobroker.mywallbox"
  • ❗ [E103] "common.name" in io-package.json must be equal to "my-wallbox'". Now is mywallbox
  • ❗ [E201] Bluefox was not found in the collaborators on NPM!. Please execute in adapter directory: npm owner add bluefox iobroker.my-wallbox
  • 👀 [W171] "common.title" is deprecated in io-package.json
  • 👀 [W105] "common.titleLang" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • 👀 [W109] "common.desc" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • 👀 [W156] Adapter should support admin 5 UI (jsonConfig) if you do not use a React based UI
  • 👀 [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • 👀 [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • 👀 [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • 👀 [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • 👀 [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • 👀 [W202] Version of package.json (1.1.0) doesn't match latest version on NPM ({"_id":"iobroker.my-wallbox","name":"iobroker.my-wallbox","time":{"created":"2022-08-17T08:16:34.223Z","0.0.17":"2022-08-17T08:16:34.533Z","modified":"2022-08-17T09:32:02.229Z","unpublished":{"time":"2022-08-17T09:32:02.229Z","versions":["0.0.17"]}}})
  • 👀 [W400] Cannot find "my-wallbox" in latest repository

ioBroker.mywallbox

Downloads Number of Installations (latest) - Test and Release
NPM

👍 No errors found

  • 👀 [W171] "common.title" is deprecated in io-package.json
  • 👀 [W105] "common.titleLang" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • 👀 [W109] "common.desc" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • 👀 [W156] Adapter should support admin 5 UI (jsonConfig) if you do not use a React based UI
  • 👀 [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • 👀 [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • 👀 [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • 👀 [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • 👀 [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
  • 👀 [W400] Cannot find "mywallbox" in latest repository

Add comment "RE-CHECK!" to start check anew

@mcm1957
Copy link
Collaborator

mcm1957 commented Mar 4, 2024

Sorry to respond late. I must confess that I missed this PR (as it so old and the last one still ative in the backlog)
SORRY.

In addition some more Issues have been detected or are still open

  • dependencies are incomplete

    You ear eusing axios, but axios is not include in adapter dependencies; use 'npm i axios' to add axios to the list of dependencies. Do not forget to commit package-loc.json too. This will require a ne release to as package.json is includes into npm packge.

https://github.com/SKB-CGN/ioBroker.mywallbox/blob/4014eef08357f294a66b2ba88840858ae2fecb91/main.js#L12C32-L13C1
https://github.com/SKB-CGN/ioBroker.mywallbox/blob/4014eef08357f294a66b2ba88840858ae2fecb91/package.json#L23

  • consider automatic deploy (suggestion only - NON blocking!)

    I suggest to consider enabling automatic deploy to npm for new releases:
    https://github.com/SKB-CGN/ioBroker.mywallbox/blob/4014eef08357f294a66b2ba88840858ae2fecb91/.github/workflows/test-and-release.yml#L58
    But note, that this is only asuggestion and is not blocking !

  • reevaluate state roles - still seems to be open

    Only the values specified here (https://github.com/ioBroker/ioBroker.docs/blob/master/docs/en/dev/stateroles.md) may be used as state roles. Do not invent new names as this might disturb the functionalyity of other adapters or vis.

    In addition the roles MUST match the read/write functionality. As an example a role value.* requires that the state is a readable state. Input states (write only) should have roles like level.*. Please read the description carefully. States with role 'button' should (must) have attribute 'common.read=false' set. A button ( "Taster" in german only triggers when you press but else has no state), so it should also be not readable. This is also like HomeMatic does it. A switch has clear states true or false and so can be read. (see i.e. https://github.com/SKB-CGN/ioBroker.mywallbox/blob/04d181677262da0a963fb2486beec7e53ec0e361/main.js#L942)

    Roles are important for the type detector to work. So avoid general roles (like state or text) whenever a specific role exissts.

    Most states are created with role state while more specific roles exsists for sure, i.e.

  • several files at ./lib are copied from iobroker.repositories

    Please delete the files not belonging to your adapter

  • possibly unused variables

    Looks adapterItervals.controlCharger and changeChargerData are not used except when trying to canel them. Please remove them if I did not miss something

The following remarks by Apollon77 are still not solved too:

  • please sort in the entry in this PR alphabetically

Please let me/us know if you encounter any problem and which timefram you expect to fix the mentionend issues.

reminder 15.3.2024

@mcm1957 mcm1957 removed (RE-)REVIEW pending (mcm1957) Changes requested by review have been applied, re-review could be done. *📬 a new comment has been added labels Mar 4, 2024
@SKB-CGN
Copy link
Contributor Author

SKB-CGN commented Mar 12, 2024

Hi,
can we shortly pause this topic?
I will be on vacation the next weeks and after that, i will try, to fix all the things.
Please pause till middle of april.

Thank you!

@github-actions github-actions bot added the *📬 a new comment has been added label Mar 12, 2024
@mcm1957
Copy link
Collaborator

mcm1957 commented Mar 12, 2024

OK
No problem
Have some nice vacation.

reminder 1.6.2024

@github-actions github-actions bot added 1.5.2024 remind after 1.5.2024 and removed 15.3.2024 labels Mar 12, 2024
@mcm1957 mcm1957 added ON HOLD PR is set ON HOLD due to pending question or major issues. and removed *📬 a new comment has been added labels Mar 12, 2024
@github-actions github-actions bot added 1.6.2024 remind after 1.6.2024 and removed 1.5.2024 remind after 1.5.2024 labels May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.6.2024 remind after 1.6.2024 auto-checked This PR was automatically checked for obvious criterias must be fixed The Adapter request got review/automatic feedback that is required to be fixed before another review ON HOLD PR is set ON HOLD due to pending question or major issues.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants