I am trying to integrate my Solar V system into my energy and don’t seem to have something right.
I have looked through many many existing pages but I think I am doing something wrong but I don’t really understand what.
HA on OdroidN2+, Latest version.
configuration.yaml;
# Loads default set of integrations. Do not remove.
default_config:
# Text to speech
tts:
- platform: google_translate
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
#template:
# - sensor:
# - name: test_energy
# state: "{{ states('sensor.solax_total') }}"
# unit_of_measurement: 'kWh'
# state_class: measurement
# device_class: energy
# attributes:
# last_reset: '1970-01-01T00:00:00+00:00'
#SOLAX CLOUD
sensor:
- platform: rest
resource: https://www.solaxcloud.com/proxyApp/proxy/api/getRealtimeInfo.do?tokenId=ID&sn=SN
value_template: "{{ ( value_json.result.yieldtotal | round(0) ) }}"
name: "Solax total"
unit_of_measurement: "kWh"
state_class: measurement
device_class: energy
- platform: rest
resource: https://www.solaxcloud.com/proxyApp/proxy/api/getRealtimeInfo.do?tokenId=ID&sn=SN
value_template: "{{ ( value_json.result.acpower | round(0) ) }}"
name: "Solax now"
unit_of_measurement: "W"
state_class: total_increasing
- platform: rest
resource: https://www.solaxcloud.com/proxyApp/proxy/api/getRealtimeInfo.do?tokenId=ID&sn=SN
value_template: "{{ value_json.result.yieldtoday }}"
name: "Solax today"
unit_of_measurement: "kWh"
state_class: total_increasing
- platform: rest
resource: https://www.solaxcloud.com/proxyApp/proxy/api/getRealtimeInfo.do?tokenId=ID&sn=SN
value_template: "{{ value_json.result.uploadTime }}"
name: "Solax upload time"
- platform: rest
resource: https://www.solaxcloud.com/proxyApp/proxy/api/getRealtimeInfo.do?tokenId=ID&sn=SN
value_template: "{{ value_json.result.soc}}"
name: "Solax Battery"
unit_of_measurement: "%"
device_class: energy
state_class: total_increasing
- platform: rest
resource: https://www.solaxcloud.com/proxyApp/proxy/api/getRealtimeInfo.do?tokenId=ID&sn=SN
value_template: "{{ value_json.result.feedinpower }}"
name: "Solax FeedIn"
unit_of_measurement: "W"
state_class: total_increasing
device_class: power
- platform: rest
resource: https://www.solaxcloud.com/proxyApp/proxy/api/getRealtimeInfo.do?tokenId=ID&sn=SN
value_template: "{{ value_json.result.feedinenergy }}"
name: "Solax Export Total"
unit_of_measurement: "kWh"
state_class: total_increasing
device_class: energy
- platform: rest
resource: https://www.solaxcloud.com/proxyApp/proxy/api/getRealtimeInfo.do?tokenId=ID&sn=SN
value_template: "{{ value_json.result.consumeenergy }}"
name: "Solax Import"
unit_of_measurement: "kWh"
state_class: total_increasing
device_class: energy
- platform: rest
resource: https://www.solaxcloud.com/proxyApp/proxy/api/getRealtimeInfo.do?tokenId=ID&sn=SN
value_template: >
{% if value_json.result.inverterStatus == '100' %}Wait
{% elif value_json.result.inverterStatus == '101' %}Check
{% elif value_json.result.inverterStatus == '102' %}Normal
{% elif value_json.result.inverterStatus == '103' %}Fault
{% elif value_json.result.inverterStatus == '104' %}Permanent Fault
{% elif value_json.result.inverterStatus == '105' %}Update
{% elif value_json.result.inverterStatus == '106' %}EPS Check
{% elif value_json.result.inverterStatus == '107' %}EPS
{% elif value_json.result.inverterStatus == '108' %}Self-test
{% elif value_json.result.inverterStatus == '109' %}Idle
{% elif value_json.result.inverterStatus == '110' %}Standby
{% elif value_json.result.inverterStatus == '111' %}Pv Wake Up Bat
{% elif value_json.result.inverterStatus == '112' %}Gen Check
{% elif value_json.result.inverterStatus == '113' %}Gen Run
{% else %}I dont know{% endif %}
name: "Solax status"
I can see the information in the history, (Which looks accurate across the available fields).
Within the Energy section, I can see the sensor.solax_consume, sensor.solax_feed_total, sensor.solax_export_total and sensor.solax_import but they show a entity not defined.
I can’t see the battery though it appears in history (so is collecting the info).
I am not a software person but I am trying to apologies if this is really simple.