How to access rest-api of a photovoltaic system (documented)?

This is not an error. It means that as there is no unique id, you can only configure it in yaml, not via the UI.

If you want to be able to add some UI capabilities, you have to assign a unique id yourself in the configuration of your sensor. Have a look at the RESTful sensors, there is a unique_id tag you can add.

Thanks, I will have a look :slight_smile:

Now it works for me with the following code. @HycDev : thanks for your help!

#Hycube configuration

sensor:
  - platform: command_line
    name: Hycube Token
    scan_interval: 36000
    command: >-
	 curl --request GET 'http://your_ip/auth/' --header 'Authorization: QmFzaWMgaHljdWJlOmh5Y3ViZQ=='
  - platform: rest
    scan_interval: 5
    headers:
      Authorization : "{{ states('sensor.hycube_token') }}"
      Accept: application/vnd.github.v3+json
      Content-Type: application/json
      User-Agent: Home Assistant REST sensor
    resource: http://your_ip/get_values/
    value_template: Bla
    name: Hycube Data
    json_attributes:
          - Battery_C
          - Battery_I
          - Battery_P
          - Battery_V
          - Grid_f
          - Grid_P
          - Grid_V
          - Home_P
          - Inv 1_I
          - Inv 1_P
          - Inv 1_V
          - Solar 1_P
          - Solar 1_I
          - Solar 1_V
          - solar 2_P
          - solar 2_I
          - solar 2_V
          - solar_total_P
  - platform: template
    sensors:
      battery_capacity:
        value_template: "{{ state_attr('sensor.hycube_data', 'Battery_C') }}"
        device_class: battery

Hello everyone,
Since updating home assiatnt to version 12.1, my values ​​from the Hycube system are no longer available in home assitant. If I reset the installation to V11, everything is available again as usual. As described above, I inserted the code into my YAML configuration, which worked without any problems until I updated to V12. Any ideas? I am thankful for every help

Same here… :frowning:

I tried to access via browser:
http://my_hycube_ip/auth/QmFzaWMgaHljdWJlOmh5Y3ViZQ==
and a user login/password prompt appeared!!!
Seems to me, the auth key does no longer work!?
@HycDev How to solve this issue?

Hello dear HYCUBE API user,
The HYCUBE API and authentication mechanism remain unchanged. If the API works with version 11 but not with version 12, it means that the YAML file must be updated with the new syntax or the new authentication mechanism from Home Assistant. In order to assist you further, I need the error message from Home Assistant, the HTTP status code, etc.