-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
New laadpaal sensors #140
Comments
Please enable debug logging and provide some logs. Then I should be able to find the correct value and add the sensors |
Here's some logging. I believe it's all in here: 2024-09-14 15:27:13.896 DEBUG (MainThread) [custom_components.zonneplan_one.api] ZonneplanAPI response body: {'data': {'contracts': [{'uuid': 'xxxxx-xxxx-xxxx-xxxx-xxxx ', 'label': 'Charge laadpaal', 'type': 'charge_point_installation', 'start_date': '2023-01-04T23:00:00.000000Z', 'end_date': None, 'meta': {'serial_number': 'X', 'identifier': 'X', 'first_measured_at': '2023-10-20T08:00:01.000000Z', 'last_measured_at': '2024-09-14T13:25:00.000000Z', 'show_in_contract_screen': True, 'session_charging_cost_total': 3116086, 'session_flex_result': None, 'session_charged_energy': 2046, 'session_average_cost_in_cents': 1523013, 'charging_cost_total': 3116086, 'flex_result': None, 'charged_energy': 2046, 'average_cost_in_cents': 1523013}, 'state': {'connectivity_state': True, 'state': 'Charging', 'power_actual': 10467, 'energy_delivered_session': 2046, 'can_charge': True, 'can_schedule': True, 'charging_manually': False, 'charging_automatically': False, 'plug_and_charge': False, 'overload_protection_active': False, 'dynamic_charging_enabled': True, 'dynamic_charging_flex_enabled': True, 'dynamic_charging_flex_suppressed': False, 'dynamic_load_balancing_health': 'HEALTHY', 'charge_schedules': [], 'dynamic_charging_user_constraints': {'desired_distance_in_kilometers': 65, 'desired_end_time': '2024-09-15T10:00:00.000000Z'}, 'charge_point_session': {'start_time': '2024-09-14T13:11:11.000000Z', 'charged_distance_in_kilometers': 10, 'active_vehicle_uuid': 'xxxxx-xxxx-xxxx-xxxx-xxxx'}, 'last_known_vehicle_uuid': 'eb28ea85-xxxx-xxx-xxx-xxxx', 'start_mode': 'AlwaysFlex'}, 'charge_schedules': []}], 'powerplay': None, 'vehicles': [{'uuid': 'xxxx-xxxx-xxxx-xxx-xxx', 'label': 'Peugeot e-208', 'logo_url': 'https://assets.zonneplan.nl/vehicles/logos/xxxxx-xxxxx-676-777-bae3d528baac.svg', 'consumption_wh_per_km': 200, 'charge_standard_power_in_w': 11000, 'battery_capacity_useable_wh': 50000}]}} |
Added the sensors: - Charge point session cost (eur) - Charge point cost total (eur) - Charge point session average costs (eur/kWh) - Charge point start mode - Charge point dynamic load desired distance (km) - Charge point dynamic load desired end time (datetime) - Charge point session start time (datetime) - Charge point session charged distance (km) - Charge point dynamic charging enabled (true/false) - Charge point dynamic charging flex enabled (true/false) - Charge point dynamic charging flex suppressed (true/false)
@Arnoudd I added some extra sensors, can you check the main version (beta) and verify if the values are correctly shown.
|
Is the const.py the only file I needed to update? Traceback (most recent call last): The weird thing is that initially all the added values loaded fine but them somethong broke. Maybe a value change from Zonneplan? |
For this last change yes, but easiest to install is to enable beta in hacs and select the main version
Need to check. Maybe the sensor value isn't published when not charging. Can you charge some log data ? |
Had another try but same result. After installation the integration starts fine thow some values don't properly load.
Don't see much more than this. If this isn't enough I'll do some more searching. |
Can you enable debug logging again? I'm interested in the same log as you provided earlier.
|
I think I found it: |
Added the sensors: - Charge point session cost (eur) - Charge point cost total (eur) - Charge point session average costs (eur/kWh) - Charge point start mode - Charge point dynamic load desired distance (km) - Charge point dynamic load desired end time (datetime) - Charge point session start time (datetime) - Charge point session charged distance (km) - Charge point dynamic charging enabled (true/false) - Charge point dynamic charging flex enabled (true/false) - Charge point dynamic charging flex suppressed (true/false)
@Arnoudd I added a check to prevent this error when |
Yes, now it's working! Thanks for the addition! I did take a look at the debug logging again and noticed these thow. Not all of them are related to the fix but thought you might wanna know.
Thanks again for your work! :) |
The first 3 warnings should be resolved now if you use the latest const.py file. The 4th warning is from a different component |
You're right. Looks good to me now. 👍 |
Since the introduction of powerplay for the laadpaal there could be some new sensors added. Like the desired added km's, desired km's, the time it should be ready, the powerplay earnings and so on.
This is how it looks on screen

Is there a chance these could be added? I could send some logging if needed.
The text was updated successfully, but these errors were encountered: