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

[evcc] Fix capacity and vehicleName channels, Add current Vehicle/HeatingDevice per Loadpoint #16428

Merged
merged 5 commits into from
Mar 8, 2024

Conversation

MikeTheTux
Copy link
Contributor

@MikeTheTux MikeTheTux commented Feb 19, 2024

  1. Fixed channels vehicle/capacity (bugfix)
    • Capacity channel is under vehicle and no longer under loadpoint since evcc 0.123.1
  2. Fixed channel vehicle/vehicleName (bugfix)
    • Update was done using a wrong channelUID
  3. Added channels for current Vehicle/HeatingDevice per Loadpoint (enhancement)
    • The new ChannelGroup provides direct access to the vehicle/heating device connected to the loadpoint without the indirection using the vehicleName
    • Example:
      • Access vehicle title in a rule before this PR:
        • const vehicleTitle = items.getItem("evcc" + items.evccLoadpoint0_VehicleName.state + "_VehicleTitle").state;
      • Now:
        • const vehicleTitle = items.evccLoadpoint0CurrentVehicle_VehicleTitle.state;
        • Users with a big fleet of vehicles will benefit allot. Because they must no longer add each single vehicle as items.

implemented currentVehicle / currentHeating per loadpoint (enhancement)
fixed update of channeld vehicleTitle (bugfix)

Signed-off-by: Michael Weger <weger.michael@gmx.net>
@MikeTheTux
Copy link
Contributor Author

MikeTheTux commented Feb 19, 2024

In addition I found a channelGroupTypeRegistry as well as channelGroupTypeRegistry. It should be possible to generate dynamic channelGroupTypes. Did not yet spot a good example ...

@lsiepel lsiepel added the bug An unexpected problem or unintended behavior of an add-on label Feb 19, 2024
@MikeTheTux
Copy link
Contributor Author

In addition I found a channelGroupTypeRegistry as well as channelGroupTypeRegistry. It should be possible to generate dynamic channelGroupTypes. Did not yet spot a good example ...

Examples are available in #14954

As this PR includes 2 bug-fixes, I would propose to get this PR merged as soon as possible and #14954 can be implemented as enhancement in another PR.

@lsiepel
Copy link
Contributor

lsiepel commented Feb 24, 2024

As a channel is moved, i would expect that a thing upgrade instruction or update notice is needed.

@MikeTheTux
Copy link
Contributor Author

As a channel is moved, i would expect that a thing upgrade instruction or update notice is needed.

This should already be covered by openhab/openhab-distro#1634

Signed-off-by: Michael Weger <weger.michael@gmx.net>
…ical name clash)

Signed-off-by: Michael Weger <weger.michael@gmx.net>
Signed-off-by: Michael Weger <weger.michael@gmx.net>
Signed-off-by: Michael Weger <weger.michael@gmx.net>
@MikeTheTux
Copy link
Contributor Author

It would be great if we could complete the review and bring this one into openHAB 4.2. would combine two breaking changes into a single release ...

Copy link
Contributor

@lsiepel lsiepel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lsiepel lsiepel merged commit b423933 into openhab:main Mar 8, 2024
3 checks passed
@lsiepel lsiepel added this to the 4.2 milestone Mar 8, 2024
@lsiepel lsiepel changed the title [evcc] fixed channels vehicle/capacity and vehicle/vehicleName, added channels for current Vehicle/HeatingDevice per Loadpoint [evcc] Fix capacity and vehicleName channels, Add current Vehicle/HeatingDevice per Loadpoint Mar 8, 2024
austvik pushed a commit to austvik/openhab-addons that referenced this pull request Mar 27, 2024
… channels for current Vehicle/HeatingDevice per Loadpoint (openhab#16428)

* removed loadpoint/vehicleCapacity, added vehicle/capacity (bugfix)
implemented currentVehicle / currentHeating per loadpoint (enhancement)
fixed update of channeld vehicleTitle (bugfix)

Signed-off-by: Michael Weger <weger.michael@gmx.net>
Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
florian-h05 pushed a commit to florian-h05/openhab-addons that referenced this pull request May 30, 2024
… channels for current Vehicle/HeatingDevice per Loadpoint (openhab#16428)

* removed loadpoint/vehicleCapacity, added vehicle/capacity (bugfix)
implemented currentVehicle / currentHeating per loadpoint (enhancement)
fixed update of channeld vehicleTitle (bugfix)

Signed-off-by: Michael Weger <weger.michael@gmx.net>
(cherry picked from commit b423933)
@openhab-bot
Copy link
Collaborator

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

https://community.openhab.org/t/evcc-binding-electric-vehicle-charging-control-backport-4-1-0-4-2-0/135209/1

joni1993 pushed a commit to joni1993/openhab-addons that referenced this pull request Oct 15, 2024
… channels for current Vehicle/HeatingDevice per Loadpoint (openhab#16428)

* removed loadpoint/vehicleCapacity, added vehicle/capacity (bugfix)
implemented currentVehicle / currentHeating per loadpoint (enhancement)
fixed update of channeld vehicleTitle (bugfix)

Signed-off-by: Michael Weger <weger.michael@gmx.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on (potentially) not backward compatible
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants