Skip to content

Separate switch for each available channel#1

Open
wilbiev wants to merge 1 commit into
mainfrom
separate-channel-switches-9336932283382751352
Open

Separate switch for each available channel#1
wilbiev wants to merge 1 commit into
mainfrom
separate-channel-switches-9336932283382751352

Conversation

@wilbiev
Copy link
Copy Markdown
Owner

@wilbiev wilbiev commented Apr 7, 2026

This change refactors the switch platform to provide independent control for each charging channel available on an EVC-net charging station. Previously, a single switch was shared, using a separate selector to determine which channel it controlled.

The update includes:

  • Enhancing the Data Update Coordinator to track status information for all channels simultaneously.
  • Updating the entity creation logic to spawn a unique switch for each detected channel.
  • Ensuring each switch operates independently based on its specific channel's status and provides feedback accordingly.
  • A minor fix to a linting issue in the API client.

PR created automatically by Jules for task 9336932283382751352 started by @wilbiev

…nel.

- Update EvcSpotData to store statuses for all available channels.
- Modify EvcNetCoordinator to populate channel-specific status data.
- Refactor switch platform to create independent switch entities for each channel.
- Fix minor linting issue in api.py.

Co-authored-by: wilbiev <155230953+wilbiev@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant