Documenting the OCPP Integration #376
Replies: 7 comments 41 replies
-
Hi Grant, sorry to break your automations! I probably should have documented this more clearly in the release notes, my apologies. It seems there is a need to document the integration in more detail, for instance in the project's wiki. According to the OCPP standard there really is more than a single status: one for the main controller of the charger, and one for each connector. Yes, that means there can even be more than two! Previously there was only a single status entity, resulting in a continuously toggling between several status values for some systems. To solve that issue I decided to map everything on just two status entities. One for the main status (connector_id=0) and one for the connector statuses (connector_id>0). The state value of the connector status entity reflects connector 1, other connectors are stored in the extra attributes. There's a similar issue with the power / energy / current / voltage values: there can be different ones, depending on the connector and the transaction. I'm still trying to figure out how to present this in the UI in a simple way, without creating a plethora of entities. Any suggestions from you side? |
Beta Was this translation helpful? Give feedback.
-
OK guys, I'm ready to start writing the Wiki whenever you give me the green light. Are we agreed on the above list of sensors + entities as being the best way forward? If not, then let's refine it a bit more until we reach agreement. After looking for suitable examples of Wikis hosted on Github, I've chosen this one as a good starting point (just the structure not any of the content)... https://github.com/Netflix/Hystrix/wiki One of the first sections I want to write, deals with pitfalls best avoided during installation. Basically, things I wish I'd known before installing this integration for the first time. To help me along the way, I need your comments on this issue... When you add the OCPP integration, you have the option to change the name of all associated entities from the default. Originally I chose Wallbox so all my entities were prefixed accordingly. More entities were added later but these appeared with a prefix of charger instead of Wallbox. I couldn't find any way to go back and rename the new ones with a prefix of Wallbox so I ended up removing the OCPP integration and adding it back again, this time leaving the name set to the default of charger so I don't have the same problem in future. If there is any easy way to rename entities which are added later, I should document this in the Wiki, otherwise I should warn users about the difficulty they will experience if they change the device name from the default. |
Beta Was this translation helpful? Give feedback.
-
Please note there are two places where a name/identity for a charger can be entered. The charger name in the configuration panel and the charger identity (entered when configuring the url). We currently use the config name for creating the entities, but use the charger identity for the connection. There is code in place for supporting multiple chargers, but that has not been tested and I don't think it works. |
Beta Was this translation helpful? Give feedback.
-
@lbbrhzn - When you're ready, please create a blank Wiki page in .MD format with your OCPP logo at the top. I'll fork and start work from there. Thanks! |
Beta Was this translation helpful? Give feedback.
-
@lbbrhzn - Thanks for creating the blank Wiki page with logo for me. Now I have my first page ready to be merged with your repo but I can't seem to make a Pull Request to action this. It keeps saying that...
Probably me not understanding how PRs work, but I just wonder, do they only work with code and not documentation? Here is my Wiki page... https://github.com/GrantKeymer/ocpp/wiki |
Beta Was this translation helpful? Give feedback.
-
Many thanks for the updated documentation, great job! |
Beta Was this translation helpful? Give feedback.
-
hi @GrantKeymer , please note that you should not fork the wiki, but the code repository. |
Beta Was this translation helpful? Give feedback.
-
I've noticed since the recent changes to a separate sensor.charger.status.connector that the original one sensor.charger_status always says 'Available' no matter what. It had me fooled for a while because everything relying on the state of that sensor was broken. My fancy dashboard didn't work and even the automation written by @lbbrhzn didn't work 😕
Then I saw the pull request where the new sensor was mentioned and it seems to work fine.
Should the original sensor be removed to avoid confusion?
Beta Was this translation helpful? Give feedback.
All reactions