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

configfile for datapoints #20

Merged
merged 8 commits into from
Jan 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions config/configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,65 @@ logger:
default: info
logs:
custom_components.powerocean: debug

template:
- sensor:
- name: "PowerOcean Solar All"
unique_id: "powerocean_solar_all"
unit_of_measurement: "W"
device_class: "power"
icon: mdi:home-lightning-bolt
state: >
{% set val = states('sensor.powerocean_mpptpv_pwrtotal')|float(0) %}
{{ val if val > 0 else 0 }}
availability: >
{{ has_value('sensor.powerocean_mpptpv_pwrtotal') }}
- name: "PowerOcean Solar String 01"
unique_id: "powerocean_solar_string_01"
unit_of_measurement: "W"
device_class: "power"
icon: mdi:home-lightning-bolt
state: >
{% set val = states('sensor.powerocean_mpptpv1_pwr')|float(0) %}
{{ val if val > 0 else 0 }}
availability: >
{{ has_value('sensor.powerocean_mpptpv1_pwr') }}
- name: "PowerOcean Solar String 02"
unique_id: "powerocean_solar_string_02"
unit_of_measurement: "W"
device_class: "power"
icon: mdi:home-lightning-bolt
state: >
{% set val = states('sensor.powerocean_mpptpv2_pwr')|float(0) %}
{{ val if val > 0 else 0 }}
availability: >
{{ has_value('sensor.powerocean_mpptpv2_pwr') }}

sensor:
# Integrale für PowerOcean
- platform: integration
source: sensor.powerocean_solar_all
name: "PowerOcean Solar All kWh"
unique_id: powerocean_solar_all_kWh
unit_prefix: k
unit_time: h
round: 2
method: left

- platform: integration
source: sensor.powerocean_solar_string_01
name: "PowerOcean Solar String 01 kWh"
unique_id: powerocean_solar_string_01_kWh
unit_prefix: k
unit_time: h
round: 2
method: left

- platform: integration
source: sensor.powerocean_solar_string_02
name: "PowerOcean Solar String 02 kWh"
unique_id: powerocean_solar_string_02_kWh
unit_prefix: k
unit_time: h
round: 2
method: left
45 changes: 45 additions & 0 deletions custom_components/powerocean/datapoints.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"data": [
"sysLoadPwr",
"sysGridPwr",
"mpptPwr",
"bpPwr",
"online",
"dcdcPwr",
"todayElectricityGeneration",
"monthElectricityGeneration",
"yearElectricityGeneration",
"totalElectricityGeneration",
"systemName",
"createTime"
],
"JTS1_ENERGY_STREAM_REPORT": [
"pv1Pwr",
"pvInvPwr",
"pv2Pwr"
],
"JTS1_EMS_CHANGE_REPORT": [
"bpTotalChgEnergy",
"bpTotalDsgEnergy",
"bpSoc",
"bpOnlineSum",
"emsCtrlLedBright"
],
"JTS1_BP_STA_REPORT": [
"bpPwr",
"bpSoc",
"bpSoh",
"bpVol",
"bpAmp",
"bpCycles",
"bpSysState",
"bpRemainWatth"
],
"JTS1_EMS_HEARTBEAT": [
"bpRemainWatth",
"emsBpAliveNum",
"emsBpPower",
"pcsActPwr",
"pcsMeterPower"
]
}
Loading
Loading