Skip to content

Cannot update TOU settings #9

@bartbutenaers

Description

@bartbutenaers

Hi @johanzander,

Sorry to disturb you, but cannot update my TOU settings unfortunately. Tried all kinds of things, but my lack of in-depth HA knowledge doesn't allow me to get it working.

I will you some context about my setup, so hopefully you can give me some tips that I can try. And hopefully it can help others in the future to troubleshoot their problems...

  1. My hybrid inverter is type 3PH MOD 10KTL3-XH BE(BP).

  2. I have two devices in HA:

    Image
    • Not sure why I have a device named Total. I assume in the next steps that I should target the BCQ2F5L013 device, because that seems to be the serial number of my inverter.
    • Not sure what the "Add hub" buttons means. Does this mean "Add account" perhaps to add a second Growatt account? If see that @joostlek has proposed to a new feature to add custom labels, which would be VERY helpful for HA noobs like myself...
  3. To get the current TOU segments works like a charm:

    Image

    From this I 'assume' that my integration uses the official Growatt API (using a token), instead of the classic API (using username/password). Although I am not sure because last days I have already been blocked twice for 24 hours, because I called their API too often for my experiments. I had onderstood that this should only occur with the classic API, but not sure? Is there any way (preferrable in the UI) where I can see which API I am using, because I don't know anymore whether I have setup the integration with token or credentials...

  4. But when I try to set the first TOU segment for the same device, that fails:

    Image

    This is the request in yaml format:

    action: growatt_server.update_time_segment
    data:
       enabled: false
       segment_id: 1
       batt_mode: battery_first
       start_time: "00:00:00"
       end_time: "07:00:00"
       device_id: 6a0fa63a760f883853fd6c2430ef4047
    
  5. In the logs (Settings -> System -> Logs) I only see those 2 messages:

    Logger: homeassistant.components.websocket_api.http.connection
    Source: components/websocket_api/connection.py:315
    integration: Home Assistant WebSocket API (documentation, issues)
    First occurred: January 8, 2026 at 22:14:01 (5 occurrences)
    Last logged: 11:49:00
    
    [546841886560] Error handling message: API error updating time segment: Error during writing time segment 1 (home_assistant_error) Bart from 127.0.0.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36)
    [547067088704] Error handling message: API error updating time segment: Error during writing time segment 1 (home_assistant_error) Bart from 127.0.0.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36)
    [547604974784] Error handling message: API error updating time segment: Error during writing time segment 1 (home_assistant_error) Bart from 127.0.0.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36)
    [546842914112] Error handling message: API error updating time segment: Error during writing time segment 1 (home_assistant_error) Bart from 127.0.0.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36)
    [547254841280] Error handling message: API error updating time segment: Error during writing time segment 1 (home_assistant_error) Bart from 127.0.0.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36)
    
    Logger: homeassistant.helpers.script.websocket_api_script
    Source: helpers/script.py:2070
    First occurred: January 8, 2026 at 22:14:01 (5 occurrences)
    Last logged: 11:49:00
    
    websocket_api script: Error executing script. Error for call_service at pos 1: API error updating time segment: Error during writing time segment 1
    

    Which don't really provide much information about the root cause of the problem.

  6. In my Growatt Shine Phone app, there is nothing available in the logbook of my inverter:

    Image

    I assume that means that the request fails in HA or the Growatt cloud platform, and never reaches my inverter.

  7. When I enable debug logging in my Growatt integration:

    Image

    I don't see any extra information in my log, when I retry to update the TOU segment. Perhaps I should look somewhere else, or restart/reload something to activate that debug logging?

Thanks for your (free) time already!!
Bart

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions