Test - JacobsenKim/ha_huawei_solar_replicate GitHub Wiki

In /developer-tools/template one can see the value off all sensors.

huawei_solar_replicate_target

{{ states('sensor.inverter_input_power') }}
{{ states('sensor.inverter_input_power_2') }}
{{ states('sensor.inverter_active_power') }}
{{ states('sensor.power_meter_active_power') }}
{{ states('sensor.power_meter_consumption') }}
{{ states('sensor.battery_charge_discharge_power') }}
{{ states('sensor.battery_state_of_capacity') }}
{{ states('sensor.power_meter_exported') }}
{{ states('sensor.battery_day_charge') }}
{{ states('sensor.battery_day_discharge') }}
{{ states('sensor.inverter_daily_yield') }}

Make sure the target machine can reach source machine's API, and the API is accessible from target machine.

Test if we can read the sensor value. (All sensor is made of the return data from eatch sensor).

Edit to fit youre info (token, ip, sensor) and run from any terminal in youre network.

curl -X GET -H "Authorization: Bearer YOUR_LONG_LIVED_ACCESS_TOKEN" http://192.168.10.24:8123/api/states/sensor.inverter_input_power

Return:

{"entity_id":"sensor.inverter_input_power","state":"0","attributes":{"state_class":"measurement","unit_of_measurement":"W","device_class":"power","friendly_name":"Solceller Indgang"},"last_changed":"2024-02-07T16:12:26.790177+00:00","last_updated":"2024-02-07T16:12:26.790177+00:00","context":{"id":"01HP25F396212315GQYEFM123E","parent_id":null,"user_id":null}}

Beutify:

{
  "entity_id": "sensor.inverter_input_power",
  "state": "0",
  "attributes": {
    "state_class": "measurement",
    "unit_of_measurement": "W",
    "device_class": "power",
    "friendly_name": "Solceller Indgang"
  },
  "last_changed": "2024-02-07T16:12:26.790177+00:00",
  "last_updated": "2024-02-07T16:12:26.790177+00:00",
  "context": {
    "id": "01HP25F396212315GQYEFM123E",
    "parent_id": null,
    "user_id": null
  }
}