homeassistant - goodwe a mereni po fazich
homeassistant - goodwe a mereni po fazich
Ahoj,
mate nekdo hotovy mereni ve fazich v home assistantu, abych nevymyslel kolo?
tj. na bazi sensors: Meter Active Power L1, L2, L3?
muzete se podelit o reseni?
ideu mam takovou, ze vytvorim 6 helperu pro scitani...Nebo nejaky lepsi zpusob?
mate nekdo hotovy mereni ve fazich v home assistantu, abych nevymyslel kolo?
tj. na bazi sensors: Meter Active Power L1, L2, L3?
muzete se podelit o reseni?
ideu mam takovou, ze vytvorim 6 helperu pro scitani...Nebo nejaky lepsi zpusob?
-
- Příspěvky: 335
- Registrován: úte led 18, 2022 10:17 pm
- Bydliště: Cerhovice
- Výkon panelů v FVE [Wp]: 11400
- Kapacita baterie [kWh]: 10
Re: homeassistant - goodwe a mereni po fazich
A zajímá tě to opravdu po fázích, nebo ti jde jen o oddělení odběr z DS vs. dodávka do DS?
edit: použil bych to takto
edit: použil bych to takto
Kód: Vybrat vše
- platform: template
sensors:
power_buy:
friendly_name: "Power Buy"
device_class: power
unit_of_measurement: 'W'
value_template: >-
{% set l1 = states('sensor.meter_active_power_l1')|float(default = 0) %}
{% set l2 = states('sensor.meter_active_power_l2')|float(default = 0) %}
{% set l3 = states('sensor.meter_active_power_l3')|float(default = 0) %}
{{ '%i'|format( iif(l1 < 0, 0, l1) + iif(l2 < 0, 0, l2) + iif(l3 < 0, 0, l3) ) }}
power_sell:
friendly_name: "Power Sell"
device_class: power
unit_of_measurement: 'W'
value_template: >-
{% set l1 = states('sensor.meter_active_power_l1')|float(default = 0) %}
{% set l2 = states('sensor.meter_active_power_l2')|float(default = 0) %}
{% set l3 = states('sensor.meter_active_power_l3')|float(default = 0) %}
{{ '%i'|format( -1 * (iif(l1 > 0, 0, l1) + iif(l2 > 0, 0, l2) + iif(l3 > 0, 0, l3)) ) }}
Re: homeassistant - goodwe a mereni po fazich
to scitani po fazich se mi hodi do "custom:power-flow-card-plus"
ale spatne jsem napsal dotaz.
jeste jsem chtel sumu za den z techto hodnot .. tj. v kWh.. (import/export kWh za den)
edit
sumu jsem tedy vytvoiril pres ty helpery
total_buy
sensor.total_buy
Integration - Riemann sum integral sensor
total_sell
sensor.total_sell
Integration - Riemann sum integral sensor
ale spatne jsem napsal dotaz.
jeste jsem chtel sumu za den z techto hodnot .. tj. v kWh.. (import/export kWh za den)
edit
sumu jsem tedy vytvoiril pres ty helpery
total_buy
sensor.total_buy
Integration - Riemann sum integral sensor
total_sell
sensor.total_sell
Integration - Riemann sum integral sensor
- Přílohy
-
- power_sell.png (15.66 KiB) Zobrazeno 6042 x
-
- Příspěvky: 335
- Registrován: úte led 18, 2022 10:17 pm
- Bydliště: Cerhovice
- Výkon panelů v FVE [Wp]: 11400
- Kapacita baterie [kWh]: 10
Re: homeassistant - goodwe a mereni po fazich
Kód: Vybrat vše
# Sensor for Riemann sum of buy energy consumption (W -> Wh)
- platform: integration
name: total_energy_buy
source: sensor.power_buy
unit_prefix: k
round: 1
method: left
# Sensor for Riemann sum of sell energy consumption (W -> Wh)
- platform: integration
name: total_energy_sell
source: sensor.power_sell
unit_prefix: k
round: 1
method: left
energy_buy_daily:
source: sensor.total_energy_buy
cycle: daily
energy_buy_monthly:
source: sensor.total_energy_buy
cycle: monthly
energy_buy_yearly:
source: sensor.total_energy_buy
cycle: yearly
energy_sell_daily:
source: sensor.total_energy_sell
cycle: daily
energy_sell_monthly:
source: sensor.total_energy_sell
cycle: monthly
energy_sell_yearly:
source: sensor.total_energy_sell
cycle: yearly
Re: homeassistant - goodwe a mereni po fazich
tak nevim, delam neco spatne.....
co tam mam blbe?
Invalid config for [sensor.template]: [source] is an invalid option for [sensor.template]. Check: sensor.template->sensors->energy_buy_daily->source. (See ?, line ?).
/config/configuration.yaml
co tam mam blbe?
Invalid config for [sensor.template]: [source] is an invalid option for [sensor.template]. Check: sensor.template->sensors->energy_buy_daily->source. (See ?, line ?).
/config/configuration.yaml
Kód: Vybrat vše
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
# Text to speech
#tts:
# - platform: google_translate
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
# Example configuration entry
sensor:
- platform: integration
name: total_energy_buy
source: sensor.power_buy
unit_prefix: k
round: 1
method: left
- platform: integration
name: total_energy_sell
source: sensor.power_sell
unit_prefix: k
round: 1
method: left
- platform: template
sensors:
power_buy:
friendly_name: "Power Buy"
device_class: power
unit_of_measurement: 'W'
value_template: >-
{% set l1 = states('sensor.meter_active_power_l1')|float(default = 0) %}
{% set l2 = states('sensor.meter_active_power_l2')|float(default = 0) %}
{% set l3 = states('sensor.meter_active_power_l3')|float(default = 0) %}
{{ '%i'|format( iif(l1 < 0, 0, l1) + iif(l2 < 0, 0, l2) + iif(l3 < 0, 0, l3) ) }}
power_sell:
friendly_name: "Power Sell"
device_class: power
unit_of_measurement: 'W'
value_template: >-
{% set l1 = states('sensor.meter_active_power_l1')|float(default = 0) %}
{% set l2 = states('sensor.meter_active_power_l2')|float(default = 0) %}
{% set l3 = states('sensor.meter_active_power_l3')|float(default = 0) %}
{{ '%i'|format( -1 * (iif(l1 > 0, 0, l1) + iif(l2 > 0, 0, l2) + iif(l3 > 0, 0, l3)) ) }}
energy_buy_daily:
source: sensor.total_energy_buy
cycle: daily
energy_buy_monthly:
source: sensor.total_energy_buy
cycle: monthly
energy_buy_yearly:
source: sensor.total_energy_buy
cycle: yearly
energy_sell_daily:
source: sensor.total_energy_sell
cycle: daily
energy_sell_monthly:
source: sensor.total_energy_sell
cycle: monthly
energy_sell_yearly:
source: sensor.total_energy_sell
cycle: yearly
-
- Příspěvky: 335
- Registrován: úte led 18, 2022 10:17 pm
- Bydliště: Cerhovice
- Výkon panelů v FVE [Wp]: 11400
- Kapacita baterie [kWh]: 10
Re: homeassistant - goodwe a mereni po fazich
Nejmenují se ty senzory u tebe jinak?
Tohle ti funguje?
Kód: Vybrat vše
sensor.meter_active_power_l1
sensor.meter_active_power_l2
sensor.meter_active_power_l3
Re: homeassistant - goodwe a mereni po fazich
Jestli to dobře chápu tak tento součet by měl ukazovat cca skutečný odběr nebo výkup tzn. být blíže k hodnotám elektroměru než sensor total energy import/export přímo ze střídače kvůli "problému" s asymetrií? Je to tak prosím?
-
- Příspěvky: 335
- Registrován: úte led 18, 2022 10:17 pm
- Bydliště: Cerhovice
- Výkon panelů v FVE [Wp]: 11400
- Kapacita baterie [kWh]: 10
Re: homeassistant - goodwe a mereni po fazich
Ano, je to tak.
Re: homeassistant - goodwe a mereni po fazich
Ahoj,
omlouvám se za začátečnický dotaz, kam a jak mám kód vložit ? Návod pro blba prosím. Zkoušel jsem ho v šablonách a evidentně funguje (sell i buy).
A aby toho nebylo málo, jaké senzory mám zvolit pro energetický panel (soláry, baterie i rozvodná síť) když chci vidět aktuální stav FVE? Pořád zkouším různé senzory, ale stále mi to ukazuje nesmysly. Rád bych se dostal na lepší a čerstvější data, než mi poskytuje SEMS portál.
Díky
omlouvám se za začátečnický dotaz, kam a jak mám kód vložit ? Návod pro blba prosím. Zkoušel jsem ho v šablonách a evidentně funguje (sell i buy).
A aby toho nebylo málo, jaké senzory mám zvolit pro energetický panel (soláry, baterie i rozvodná síť) když chci vidět aktuální stav FVE? Pořád zkouším různé senzory, ale stále mi to ukazuje nesmysly. Rád bych se dostal na lepší a čerstvější data, než mi poskytuje SEMS portál.
Díky
Goodwe 10KN-ET Plus+; Sunergy 450, Pylontech Force H2; Home assistant Green
Re: homeassistant - goodwe a mereni po fazich
Chvalme pána, teda danidani, díky moc, už to ukazuje dobře.
Goodwe 10KN-ET Plus+; Sunergy 450, Pylontech Force H2; Home assistant Green
-
- Příspěvky: 1
- Registrován: ned lis 10, 2024 10:51 pm
Re: homeassistant - goodwe a mereni po fazich
Zdravim, snažím se přidat do HA měření po fázích. Kod se mi tam načte, ale když udělám kontrolu
tak mi to píše tyto chyby. nevíte co s tím ?
Varování nastavení
Invalid config for 'template' from integration 'sensor' at configuration.yaml, line 61: required key 'value_template' not provided
Invalid config for 'template' from integration 'sensor' at configuration.yaml, line 62: 'source' is an invalid option for 'sensor.template', check: sensors->energy_buy_daily->source
Invalid config for 'template' from integration 'sensor' at configuration.yaml, line 63: 'cycle' is an invalid option for 'sensor.template', check: sensors->energy_buy_daily->cycle
Invalid config for 'template' from integration 'sensor' at configuration.yaml, line 64: required key 'value_template' not provided
Invalid config for 'template' from integration 'sensor' at configuration.yaml, line 65: 'source' is an invalid option for 'sensor.template', check: sensors->energy_buy_monthly->source
Invalid config for 'template' from integration 'sensor' at configuration.yaml, line 66: 'cycle' is an invalid option for 'sensor.template', check: sensors->energy_buy_monthly->cycle
Invalid config for 'template' from integration 'sensor' at configuration.yaml, line 67: required key 'value_template' not provided
Invalid config for 'template' from integration 'sensor' at configuration.yaml, line 68: 'source' is an invalid option for 'sensor.template', check: sensors->energy_buy_yearly->source
Invalid config for 'template' from integration 'sensor' at configuration.yaml, line 69: 'cycle' is an invalid option for 'sensor.template', check: sensors->energy_buy_yearly->cycle
Invalid config for 'template' from integration 'sensor' at configuration.yaml, line 70: required key 'value_template' not provided
Invalid config for 'template' from integration 'sensor' at configuration.yaml, line 71: 'source' is an invalid option for 'sensor.template', check: sensors->energy_sell_daily->source
Invalid config for 'template' from integration 'sensor' at configuration.yaml, line 72: 'cycle' is an invalid option for 'sensor.template', check: sensors->energy_sell_daily->cycle
Invalid config for 'template' from integration 'sensor' at configuration.yaml, line 73: required key 'value_template' not provided
Invalid config for 'template' from integration 'sensor' at configuration.yaml, line 74: 'source' is an invalid option for 'sensor.template', check: sensors->energy_sell_monthly->source
Invalid config for 'template' from integration 'sensor' at configuration.yaml, line 75: 'cycle' is an invalid option for 'sensor.template', check: sensors->energy_sell_monthly->cycle
Invalid config for 'template' from integration 'sensor' at configuration.yaml, line 76: required key 'value_template' not provided
Invalid config for 'template' from integration 'sensor' at configuration.yaml, line 77: 'source' is an invalid option for 'sensor.template', check: sensors->energy_sell_yearly->source
Invalid config for 'template' from integration 'sensor' at configuration.yaml, line 78: 'cycle' is an invalid option for 'sensor.template', check: sensors->energy_sell_yearly->cycle
tak mi to píše tyto chyby. nevíte co s tím ?
Varování nastavení
Invalid config for 'template' from integration 'sensor' at configuration.yaml, line 61: required key 'value_template' not provided
Invalid config for 'template' from integration 'sensor' at configuration.yaml, line 62: 'source' is an invalid option for 'sensor.template', check: sensors->energy_buy_daily->source
Invalid config for 'template' from integration 'sensor' at configuration.yaml, line 63: 'cycle' is an invalid option for 'sensor.template', check: sensors->energy_buy_daily->cycle
Invalid config for 'template' from integration 'sensor' at configuration.yaml, line 64: required key 'value_template' not provided
Invalid config for 'template' from integration 'sensor' at configuration.yaml, line 65: 'source' is an invalid option for 'sensor.template', check: sensors->energy_buy_monthly->source
Invalid config for 'template' from integration 'sensor' at configuration.yaml, line 66: 'cycle' is an invalid option for 'sensor.template', check: sensors->energy_buy_monthly->cycle
Invalid config for 'template' from integration 'sensor' at configuration.yaml, line 67: required key 'value_template' not provided
Invalid config for 'template' from integration 'sensor' at configuration.yaml, line 68: 'source' is an invalid option for 'sensor.template', check: sensors->energy_buy_yearly->source
Invalid config for 'template' from integration 'sensor' at configuration.yaml, line 69: 'cycle' is an invalid option for 'sensor.template', check: sensors->energy_buy_yearly->cycle
Invalid config for 'template' from integration 'sensor' at configuration.yaml, line 70: required key 'value_template' not provided
Invalid config for 'template' from integration 'sensor' at configuration.yaml, line 71: 'source' is an invalid option for 'sensor.template', check: sensors->energy_sell_daily->source
Invalid config for 'template' from integration 'sensor' at configuration.yaml, line 72: 'cycle' is an invalid option for 'sensor.template', check: sensors->energy_sell_daily->cycle
Invalid config for 'template' from integration 'sensor' at configuration.yaml, line 73: required key 'value_template' not provided
Invalid config for 'template' from integration 'sensor' at configuration.yaml, line 74: 'source' is an invalid option for 'sensor.template', check: sensors->energy_sell_monthly->source
Invalid config for 'template' from integration 'sensor' at configuration.yaml, line 75: 'cycle' is an invalid option for 'sensor.template', check: sensors->energy_sell_monthly->cycle
Invalid config for 'template' from integration 'sensor' at configuration.yaml, line 76: required key 'value_template' not provided
Invalid config for 'template' from integration 'sensor' at configuration.yaml, line 77: 'source' is an invalid option for 'sensor.template', check: sensors->energy_sell_yearly->source
Invalid config for 'template' from integration 'sensor' at configuration.yaml, line 78: 'cycle' is an invalid option for 'sensor.template', check: sensors->energy_sell_yearly->cycle