Stránka 1 z 1
homeassistant - goodwe a mereni po fazich
Napsal: stř dub 26, 2023 9:49 pm
od tomasi02
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?
Re: homeassistant - goodwe a mereni po fazich
Napsal: stř dub 26, 2023 10:03 pm
od danidani
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
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
Napsal: stř dub 26, 2023 11:41 pm
od tomasi02
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
Re: homeassistant - goodwe a mereni po fazich
Napsal: čtv dub 27, 2023 12:13 am
od danidani
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
Napsal: pát dub 28, 2023 8:40 pm
od tomasi02
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
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
Re: homeassistant - goodwe a mereni po fazich
Napsal: úte kvě 02, 2023 8:17 am
od danidani
Nejmenují se ty senzory u tebe jinak?
Kód: Vybrat vše
sensor.meter_active_power_l1
sensor.meter_active_power_l2
sensor.meter_active_power_l3
Tohle ti funguje?
2023-05-02_8-15-32.png
Re: homeassistant - goodwe a mereni po fazich
Napsal: čtv říj 05, 2023 3:44 pm
od lipown
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?
Re: homeassistant - goodwe a mereni po fazich
Napsal: čtv říj 05, 2023 4:25 pm
od danidani
Ano, je to tak.
Re: homeassistant - goodwe a mereni po fazich
Napsal: ned kvě 19, 2024 6:51 pm
od HuskyB12
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
Re: homeassistant - goodwe a mereni po fazich
Napsal: ned kvě 19, 2024 8:04 pm
od danidani
HuskyB12 píše: ↑ned kvě 19, 2024 6:51 pm
jaké senzory mám zvolit pro energetický panel (soláry, baterie i rozvodná síť)¨
2024-05-19_20-02-30.png
Re: homeassistant - goodwe a mereni po fazich
Napsal: ned kvě 19, 2024 8:05 pm
od danidani
Re: homeassistant - goodwe a mereni po fazich
Napsal: pon kvě 20, 2024 6:38 pm
od HuskyB12
Chvalme pána, teda danidani, díky moc, už to ukazuje dobře.
Re: homeassistant - goodwe a mereni po fazich
Napsal: ned lis 10, 2024 11:00 pm
od 91.novak@seznam.cz
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