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

Growatt Thor 11A/S Failed with response: Rejected after reload of integration #1452

Open
altserg opened this issue Dec 30, 2024 · 2 comments

Comments

@altserg
Copy link

altserg commented Dec 30, 2024

Describe the bug
I'm using Growatt Thos 11 A/S charger with firmware THOR_11AS-V5.2.4-20230307-NOVO. HASS Version: 2024.12.5, OCPP version: 0.7.0

I have noticed following problems with OCPP integration:

  1. After the HASS restart or reload of OCPP integration there is OCPP "Failed with response: Rejected" warning in the HASS log. The warning floods the log file every second or so. There is no notification in HASS WEB interface. Further everything seem to work fine. There are 2 ways to get rid of the warning: physically power off/on the charger or press the reset button in the integration. If understand the sources correctly, the warning is probably in trigger_status_notification() function of ocppv16.py
  • When Reset button is pressed after HASS reboot/OPP restart, there is "Stop transaction received for unknown transaction" error

To Reproduce

  1. Configure the OCPP integration and Growatt charger according to the documentation
  2. Disable the OCPP integration in HASS
  3. Enable the OCPP integration in HASS
  4. Review the HASS log with OCPP warning

Expected behavior

  1. No warning occurs after HASS reboot/OCPP restart
@altserg
Copy link
Author

altserg commented Jan 2, 2025

I think that I have found the problem. OCPP lib log file is below. The charger reply to NumberOfConnectors variable is -1 . It's interpreted as 16 million, so the integration starts to query every connector, the charger rejects everything above 1. The charger reply after reset is 1 connector.

2025-01-02 17:40:50.559 INFO (MainThread) [ocpp] CHM00003232208F3: send [3,"169",{}] 2025-01-02 17:40:51.295 INFO (MainThread) [ocpp] CHM00003232208F3: send [3,"170",{"currentTime":"2025-01-02T16:40:51Z"}] 2025-01-02 17:40:52.312 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"da6ded81-286d-4e7c-a14e-467d4883ed02","GetConfiguration",{"key":["SupportedFeatureProfiles"]}] 2025-01-02 17:40:52.551 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"da6ded81-286d-4e7c-a14e-467d4883ed02",{"configurationKey":[{"key":"SupportedFeatureProfiles","value":"Core, FirmwareManagement, LocalAuthListManagement, Reservation, SmartCharging, RemoteTrigger","readonly":true}],"unknownKey":[]}] 2025-01-02 17:40:52.565 WARNING (MainThread) [custom_components.ocpp] Force Smart Charging feature profile 2025-01-02 17:40:52.566 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"6bc05fee-18d5-4d88-9541-6390b4eec5e1","GetConfiguration",{"key":["NumberOfConnectors"]}] 2025-01-02 17:40:52.747 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"6bc05fee-18d5-4d88-9541-6390b4eec5e1",{"configurationKey":[{"key":"NumberOfConnectors","value":"1634030126","readonly":true}],"unknownKey":[]}] 2025-01-02 17:40:52.749 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"0a1807cf-a0a1-402f-b758-34754db09847","GetConfiguration",{"key":["HeartbeatInterval"]}] 2025-01-02 17:40:53.021 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"1fdd76fc-ad2a-4bc8-a464-463b8114b59e","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Current.Export"}] 2025-01-02 17:40:53.229 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"1fdd76fc-ad2a-4bc8-a464-463b8114b59e",{"status":"Accepted"}] 2025-01-02 17:40:53.239 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"9084ffda-8577-4c11-9faa-9290b84ad862","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Current.Import"}] 2025-01-02 17:40:53.377 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"9084ffda-8577-4c11-9faa-9290b84ad862",{"status":"Accepted"}] 2025-01-02 17:40:53.378 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"9730b1e3-269a-408e-b2e7-8170b08b6db1","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Current.Offered"}] 2025-01-02 17:40:53.589 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"9730b1e3-269a-408e-b2e7-8170b08b6db1",{"status":"Accepted"}] 2025-01-02 17:40:53.590 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"3f4383fb-6b39-4b69-8caf-5ac8590e8805","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Energy.Active.Export.Interval"}] 2025-01-02 17:40:53.783 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"3f4383fb-6b39-4b69-8caf-5ac8590e8805",{"status":"Accepted"}] 2025-01-02 17:40:53.784 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"519bf0dc-6a18-4287-a63a-feed1779a952","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Energy.Active.Export.Register"}] 2025-01-02 17:40:53.985 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"519bf0dc-6a18-4287-a63a-feed1779a952",{"status":"Accepted"}] 2025-01-02 17:40:53.986 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"5ec40b95-2947-4119-ae9b-88f8d18fb367","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Energy.Active.Import.Interval"}] 2025-01-02 17:40:54.185 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"5ec40b95-2947-4119-ae9b-88f8d18fb367",{"status":"Accepted"}] 2025-01-02 17:40:54.186 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"50032a5b-8187-45ff-92ce-2ed482cb6aa4","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Energy.Active.Import.Register"}] 2025-01-02 17:40:54.385 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"50032a5b-8187-45ff-92ce-2ed482cb6aa4",{"status":"Accepted"}] 2025-01-02 17:40:54.386 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"79dd07b4-ff77-4e54-b1e3-df32ce90fbf7","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Energy.Reactive.Export.Interval"}] 2025-01-02 17:40:54.587 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"79dd07b4-ff77-4e54-b1e3-df32ce90fbf7",{"status":"Accepted"}] 2025-01-02 17:40:54.588 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"99e0568d-a5f1-451d-a8c7-990446724b03","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Energy.Reactive.Export.Register"}] 2025-01-02 17:40:54.792 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"99e0568d-a5f1-451d-a8c7-990446724b03",{"status":"Accepted"}] 2025-01-02 17:40:54.793 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"0a4b641a-c609-4aea-a6fb-c721589eaef8","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Energy.Reactive.Import.Interval"}] 2025-01-02 17:40:54.996 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"0a4b641a-c609-4aea-a6fb-c721589eaef8",{"status":"Accepted"}] 2025-01-02 17:40:54.997 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"dacbd93f-9cc4-43c1-af08-f9a964d01859","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Energy.Reactive.Import.Register"}] 2025-01-02 17:40:55.200 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"dacbd93f-9cc4-43c1-af08-f9a964d01859",{"status":"Accepted"}] 2025-01-02 17:40:55.201 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"9ed32fec-bd11-4248-b4fe-7df37efd77d2","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Frequency"}] 2025-01-02 17:40:55.408 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"9ed32fec-bd11-4248-b4fe-7df37efd77d2",{"status":"Accepted"}] 2025-01-02 17:40:55.409 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"bcf1615c-bd3f-4031-9992-cd238e03a817","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Power.Active.Export"}] 2025-01-02 17:40:55.605 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"bcf1615c-bd3f-4031-9992-cd238e03a817",{"status":"Accepted"}] 2025-01-02 17:40:55.606 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"06b44ff7-8e49-467a-820e-9d61fa54cd31","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Power.Active.Import"}] 2025-01-02 17:40:55.814 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"06b44ff7-8e49-467a-820e-9d61fa54cd31",{"status":"Accepted"}] 2025-01-02 17:40:55.815 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"e4aba943-e3cf-4aa7-9795-bc5b3e92bd85","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Power.Factor"}] 2025-01-02 17:40:56.032 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"e4aba943-e3cf-4aa7-9795-bc5b3e92bd85",{"status":"Accepted"}] 2025-01-02 17:40:56.033 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"7076c4cd-9960-42d5-bd62-1f77040108c4","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Power.Offered"}] 2025-01-02 17:40:56.241 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"7076c4cd-9960-42d5-bd62-1f77040108c4",{"status":"Accepted"}] 2025-01-02 17:40:56.242 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"dc42ae90-e1b7-4656-935b-082735067f14","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Power.Reactive.Export"}] 2025-01-02 17:40:56.442 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"dc42ae90-e1b7-4656-935b-082735067f14",{"status":"Accepted"}] 2025-01-02 17:40:56.443 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"1c124b8d-e511-4c26-bed4-51c04290af19","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Power.Reactive.Import"}] 2025-01-02 17:40:56.642 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"1c124b8d-e511-4c26-bed4-51c04290af19",{"status":"Accepted"}] 2025-01-02 17:40:56.643 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"b2881d7e-01db-4f94-84a0-57ffd8cc43f9","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"RPM"}] 2025-01-02 17:40:56.847 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"b2881d7e-01db-4f94-84a0-57ffd8cc43f9",{"status":"Accepted"}] 2025-01-02 17:40:56.848 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"2d19a784-0c9a-49e5-ae7e-4d3c29c35b35","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"SoC"}] 2025-01-02 17:40:57.053 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"2d19a784-0c9a-49e5-ae7e-4d3c29c35b35",{"status":"Accepted"}] 2025-01-02 17:40:57.054 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"07ff9c84-14f3-4c3c-8c8f-87f35e5a213a","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Temperature"}] 2025-01-02 17:40:57.272 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"07ff9c84-14f3-4c3c-8c8f-87f35e5a213a",{"status":"Accepted"}] 2025-01-02 17:40:57.275 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"7444333c-a34f-4b3f-b3e8-cc6f68ee9517","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Voltage"}] 2025-01-02 17:40:57.469 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"7444333c-a34f-4b3f-b3e8-cc6f68ee9517",{"status":"Accepted"}] 2025-01-02 17:40:57.471 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"5489c844-4d25-4d7c-a1eb-a7481c794cfc","GetConfiguration",{"key":["MeterValuesSampledData"]}] 2025-01-02 17:40:57.667 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"5489c844-4d25-4d7c-a1eb-a7481c794cfc",{"configurationKey":[{"key":"MeterValuesSampledData","value":"Voltage","readonly":false}],"unknownKey":[]}] 2025-01-02 17:40:57.668 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"21396f8d-6c5a-4537-9521-bff473c92653","GetConfiguration",{"key":["MeterValuesSampledData"]}] 2025-01-02 17:40:57.872 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"21396f8d-6c5a-4537-9521-bff473c92653",{"configurationKey":[{"key":"MeterValuesSampledData","value":"Voltage","readonly":false}],"unknownKey":[]}] 2025-01-02 17:40:57.875 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"67c745b1-5ef3-4a75-88d9-078e7942fb05","ChangeConfiguration",{"key":"MeterValuesSampledData","value":"Current.Export,Current.Import,Current.Offered,Energy.Active.Export.Interval,Energy.Active.Export.Register,Energy.Active.Import.Interval,Energy.Active.Import.Register,Energy.Reactive.Export.Interval,Energy.Reactive.Export.Register,Energy.Reactive.Import.Interval,Energy.Reactive.Import.Register,Frequency,Power.Active.Export,Power.Active.Import,Power.Factor,Power.Offered,Power.Reactive.Export,Power.Reactive.Import,RPM,SoC,Temperature,Voltage"}] 2025-01-02 17:40:58.206 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"67c745b1-5ef3-4a75-88d9-078e7942fb05",{"status":"Accepted"}] 2025-01-02 17:40:58.207 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"3145e02a-016e-42e5-bd20-998f42c9a3b4","GetConfiguration",{"key":["MeterValueSampleInterval"]}] 2025-01-02 17:40:58.285 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"3145e02a-016e-42e5-bd20-998f42c9a3b4",{"configurationKey":[{"key":"MeterValueSampleInterval","value":"1850027116","readonly":false}],"unknownKey":[]}] 2025-01-02 17:40:58.286 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"2c9ec8db-0b89-4bee-8fac-0e3fd3560224","ChangeConfiguration",{"key":"MeterValueSampleInterval","value":"10"}] 2025-01-02 17:40:58.500 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"2c9ec8db-0b89-4bee-8fac-0e3fd3560224",{"status":"Accepted"}] 2025-01-02 17:40:58.501 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"0b969a36-4607-497e-a984-ee58f64df68e","GetConfiguration",{"key":["ClockAlignedDataInterval"]}] 2025-01-02 17:40:58.698 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"0b969a36-4607-497e-a984-ee58f64df68e",{"configurationKey":[{"key":"ClockAlignedDataInterval","value":"900","readonly":false}],"unknownKey":[]}] 2025-01-02 17:40:58.711 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"dcc16ce3-f3a9-49df-9cea-d6a38b1d6cfb","ChangeAvailability",{"connectorId":0,"type":"Operative"}] 2025-01-02 17:40:58.897 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"dcc16ce3-f3a9-49df-9cea-d6a38b1d6cfb",{"status":"Accepted"}] 2025-01-02 17:40:58.913 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"72ba1824-8868-494b-9dbd-652d1b6cea17","TriggerMessage",{"requestedMessage":"BootNotification"}] 2025-01-02 17:40:59.111 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"72ba1824-8868-494b-9dbd-652d1b6cea17",{"status":"Accepted"}] 2025-01-02 17:40:59.120 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"8bde7639-1214-4b9f-99da-e79880805dd7","TriggerMessage",{"requestedMessage":"StatusNotification","connectorId":0}] 2025-01-02 17:40:59.136 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [2,"171","BootNotification",{"chargePointVendor":"Growatt","chargePointModel":"THOR_11AS","chargePointSerialNumber":"CHM00003232208F3","firmwareVersion":"THOR_11AS-V5.2.4-20230307-NOVO"}] 2025-01-02 17:40:59.159 INFO (MainThread) [ocpp] CHM00003232208F3: send [3,"171",{"currentTime":"2025-01-02T16:40:59Z","interval":3600,"status":"Accepted"}] 2025-01-02 17:40:59.325 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"8bde7639-1214-4b9f-99da-e79880805dd7",{"status":"Accepted"}] 2025-01-02 17:40:59.326 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"dd313cf7-2a7c-4e61-9aae-18120e3660de","TriggerMessage",{"requestedMessage":"StatusNotification","connectorId":1}] 2025-01-02 17:40:59.386 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [2,"172","StatusNotification",{"connectorId":1,"errorCode":"NoError","info":"","status":"Available"}] 2025-01-02 17:40:59.392 INFO (MainThread) [ocpp] CHM00003232208F3: send [3,"172",{}] 2025-01-02 17:40:59.517 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"dd313cf7-2a7c-4e61-9aae-18120e3660de",{"status":"Accepted"}] 2025-01-02 17:40:59.518 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"21311ec3-d836-4f94-a297-ea9442a001f8","TriggerMessage",{"requestedMessage":"StatusNotification","connectorId":2}] 2025-01-02 17:40:59.559 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [2,"173","StatusNotification",{"connectorId":1,"errorCode":"NoError","info":"","status":"Available"}] 2025-01-02 17:40:59.565 INFO (MainThread) [ocpp] CHM00003232208F3: send [3,"173",{}] 2025-01-02 17:40:59.724 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"21311ec3-d836-4f94-a297-ea9442a001f8",{"status":"Rejected"}] 2025-01-02 17:40:59.725 WARNING (MainThread) [custom_components.ocpp] Status Notify Failed with response: Rejected 2025-01-02 17:40:59.725 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"d5357dea-8d94-43ff-9439-6a86cdd48106","TriggerMessage",{"requestedMessage":"StatusNotification","connectorId":3}] 2025-01-02 17:40:59.922 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"d5357dea-8d94-43ff-9439-6a86cdd48106",{"status":"Rejected"}] 2025-01-02 17:40:59.923 WARNING (MainThread) [custom_components.ocpp] Status Notify Failed with response: Rejected 2025-01-02 17:40:59.923 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"d664fd46-a5f6-4801-9302-c4dd1a3ade51","TriggerMessage",{"requestedMessage":"StatusNotification","connectorId":4}] 2025-01-02 17:41:00.125 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"d664fd46-a5f6-4801-9302-c4dd1a3ade51",{"status":"Rejected"}] 2025-01-02 17:41:00.126 WARNING (MainThread) [custom_components.ocpp] Status Notify Failed with response: Rejected 2025-01-02 17:41:00.126 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"2eb4f23d-b9e1-4517-91ec-02029e628cbb","TriggerMessage",{"requestedMessage":"StatusNotification","connectorId":5}] 2025-01-02 17:41:00.328 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"2eb4f23d-b9e1-4517-91ec-02029e628cbb",{"status":"Rejected"}] 2025-01-02 17:41:00.329 WARNING (MainThread) [custom_components.ocpp] Status Notify Failed with response: Rejected 2025-01-02 17:41:00.329 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"fcd0b15c-249d-445c-ba65-3940b8b0aea7","TriggerMessage",{"requestedMessage":"StatusNotification","connectorId":6}] 2025-01-02 17:41:00.531 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"fcd0b15c-249d-445c-ba65-3940b8b0aea7",{"status":"Rejected"}] 2025-01-02 17:41:00.531 WARNING (MainThread) [custom_components.ocpp] Status Notify Failed with response: Rejected 2025-01-02 17:41:00.532 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"7042f729-3665-41c1-b185-b18095ae35b9","TriggerMessage",{"requestedMessage":"StatusNotification","connectorId":7}] 2025-01-02 17:41:00.734 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"7042f729-3665-41c1-b185-b18095ae35b9",{"status":"Rejected"}] 2025-01-02 17:41:00.735 WARNING (MainThread) [custom_components.ocpp] Status Notify Failed with response: Rejected 2025-01-02 17:41:00.735 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"3eeac3fe-9ed1-41c4-afa5-638e5758603e","Reset",{"type":"Hard"}] 2025-01-02 17:41:00.915 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"3eeac3fe-9ed1-41c4-afa5-638e5758603e",{"status":"Accepted"}] 2025-01-02 17:41:00.923 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"6cc2bde7-b7f0-4462-9ae8-b0c8a4bb87a3","TriggerMessage",{"requestedMessage":"StatusNotification","connectorId":8}] 2025-01-02 17:41:01.139 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"6cc2bde7-b7f0-4462-9ae8-b0c8a4bb87a3",{"status":"Rejected"}] 2025-01-02 17:41:01.139 WARNING (MainThread) [custom_components.ocpp] Status Notify Failed with response: Rejected 2025-01-02 17:41:01.140 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"32a02228-bb59-47d8-a05c-f23913fcef9b","TriggerMessage",{"requestedMessage":"StatusNotification","connectorId":9}] 2025-01-02 17:41:01.342 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"32a02228-bb59-47d8-a05c-f23913fcef9b",{"status":"Rejected"}] 2025-01-02 17:41:01.343 WARNING (MainThread) [custom_components.ocpp] Status Notify Failed with response: Rejected 2025-01-02 17:41:01.344 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"03eb6f46-c838-440d-b95a-d33c3900bb76","TriggerMessage",{"requestedMessage":"StatusNotification","connectorId":10}] 2025-01-02 17:41:01.546 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"03eb6f46-c838-440d-b95a-d33c3900bb76",{"status":"Rejected"}] 2025-01-02 17:41:01.547 WARNING (MainThread) [custom_components.ocpp] Status Notify Failed with response: Rejected 2025-01-02 17:41:01.548 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"f70876c1-0363-4341-ab81-04734b429dd2","TriggerMessage",{"requestedMessage":"StatusNotification","connectorId":11}] 2025-01-02 17:41:01.759 INFO (MainThread) [ocpp] CHM00003232208F3: receive message [3,"f70876c1-0363-4341-ab81-04734b429dd2",{"status":"Rejected"}] 2025-01-02 17:41:01.761 WARNING (MainThread) [custom_components.ocpp] Status Notify Failed with response: Rejected 2025-01-02 17:41:01.762 INFO (MainThread) [ocpp] CHM00003232208F3: send [2,"0f313250-9530-4a37-85bd-60bb533260d2","TriggerMessage",{"requestedMessage":"StatusNotification","connectorId":12}]

@altserg
Copy link
Author

altserg commented Jan 3, 2025

Proposed solution to change the async def trigger_status_notification(self) function and force correct # of connectors in case of configuration failure. Refer to lines 279-282 below

`
266 async def trigger_status_notification(self):
267 """Trigger status notifications for all connectors."""
268 return_value = True
269 nof_connectors = int(self._metrics[cdet.connectors.value].value)
270 for id in range(0, nof_connectors + 1):
271 _LOGGER.debug(f"trigger status notification for connector={id}")
272 req = call.TriggerMessage(
273 requested_message=MessageTrigger.status_notification,
274 connector_id=int(id),
275 )
276 resp = await self.call(req)
277 if resp.status != TriggerMessageStatus.accepted:
278 _LOGGER.warning("Status Notify Connector ID %d Failed with response: %s", id, resp.status)
279 _LOGGER.warning("Forcing number of connectors to %d", id - 1)
280 self._metrics[cdet.connectors.value].value = max( 1, id - 1 )
281 return_value = ( id > 1 ) #False
282 break
283 return return_value

`

@altserg altserg changed the title Growatt Thor 11A/S Failed with response: Rejected after reload of integration, Enery Session sensor = 0 Growatt Thor 11A/S Failed with response: Rejected after reload of integration Jan 4, 2025
altserg added a commit to altserg/ocpp that referenced this issue Jan 9, 2025
altserg added a commit to altserg/ocpp that referenced this issue Jan 9, 2025
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

No branches or pull requests

1 participant