Easy HAN / Tasmota
Configuração inicial do WiFi
Ou abrir ip no browser
Configuração: MQTT
Em princípio estará tudo a funcionar
Notas
Ziv e alguns Landis, mudar no script para mN2
- Consoles > Console:
Script 0
- Restart
- Consoles > Script Edit
Ou abrir ip no browser
Em princípio estará tudo a funcionar
Ziv e alguns Landis, mudar no script para mN2
Script 0
a funcionar … thanks…
Bom Dia
Existe alguma razão para isto não me funcionar com o último firmware e script num Landis+Gyr trifasico.
Tenho zero leituras já mudei o mode e o gpio para 14 .
Se voltar a por o script que esta no tutorial consigo voltar a ter leituras.
O mode (mN2) só funciona com o gpio 1 e 3.
De resto só comparando os scripts
Um grande Obrigado Já está a bombar
Alguém tem integrações para ligar o easyhan ao Energy to homeassistant e para fazer o calculo dos preços da energia.
Eu já fiz um simulação com o shelly EM e pinças mas gostava de ver outros exemplos para saber se estou a fazer bem as contas.
Obrigado
Diogo
O topico é edpbox1.
Se meteres painéis esse contador vai contar a exportação como importação…
Obrigado @nikito7 , eu comprei dois easy han, e está tudo a funcionar mas tenho algumas dúvidas na interpretação dos parametros para saber quando estou a dar energia à rede.
O campo Solar 0.0W e 0.0 kWh está sempre vazio é normal? Como é que sei que estou a dar à rede?
O o que quer dizer o IB1 Export?
Imagem no homeassistant:
No fundo o que eu quero é configurar como deve ser o Energy dashboard com Grid, Solar panel e excedentes para a rede.
Muito obrigado
Diogo
Sim. Implicava outro Easy HAN ligado ao inversor.
É o EB1 Export (kWh)
Ou o Active Power Export (W)
Isto só lê o contador.
Não lê o inversor. Nem adivinha a produção solar.
Tens de mudar o script. Esse contador é trifásico, suponho.
Sim o contador é trifásico e o modelo é o SAGEMCOM CX2000-9 qual é o script que tenho que mudar?
Este é o script que estou a usar:
>D 48
ver=10230
PF="Factor"
AP="Potência"
TE="Energia"
date=""
time=""
clk=""
old=""
wfc=""
wfp=0
cnt=0
wtd=0
hh=0
mm=0
ss=0
m:ipwrm=0 50
m:epwrm=0 50
ipwr=0
epwr=0
strm="cnt0"
fheap=0
;
ws=""
node=""
key=""
p:ikw=0
p:ekw=0
fr=0
res=0
;
lp1y=0
lp1m=0
lp1d=0
lp1hh=0
lp1mm=0
lp3i=0
lp6e=0
lps=""
lpf=""
;
p:ikwo=0
p:ekwo=0
tmp=0
chs=""
chf=""
imp=0
exp=0
;
pv1w=0
p:pv1k=0
p:pv1ko=0
sol=0
>BS
tper=20
smlj=0
=>SerialLog 0
=>Sensor53 r
>E
wfc=WifiConfig#?
wfp=WifiPower
>T
ipwr=?#Power
epwr=?#APE
ikw=?#TEI
ekw=?#TEE
lp1y=?#LP1_Y
lp1m=?#LP1_M
lp1d=?#LP1_D
lp1hh=?#LP1_HH
lp1mm=?#LP1_MM
lp3i=?#LP3_IMP
lp6e=?#LP6_EXP
>S
hh=sml[1]
mm=sml[2]
ss=sml[3]
time=st(tstamp T 2)
date=st(tstamp T 1)
fheap=heap/1024
if cnt==25
then
=>UfsRun discovery1.txt
=>WifiConfig
=>WifiPower
smlj=1
tper=15
endif
if cnt==40
then
=>UfsRun discovery2.txt
endif
if cnt<99
then
cnt+=1
print cnt=%0cnt%
endif
if chg[ss]>0
and cnt>30
then
print han %2.0hh%:%2.0mm%:%2.0ss%
ipwrm=ipwr
epwrm=epwr
; freeds
; freeds
endif
strd="cnt"+s(hh)
if chg[hh]>0
and cnt>50
then
;
if hh==0
then
=>UfsDelete2 2d.csv
=>UfsRename2 1d.csv,2d.csv
=>UfsRename2 0d.csv,1d.csv
;
tmp=lp1y-1
=>UfsDelete2 LP-%4.0tmp%-%2.0lp1m%.csv
;
endif
;
if ikwo==0
or ikw==0
then
ikwo=ikw
endif
;
if ekwo==0
or ekw==0
then
ekwo=ekw
endif
;
if pv1ko==0
or pv1k==0
then
pv1ko=pv1k
endif
;
imp=ikw-ikwo
exp=ekw-ekwo
sol=pv1k-pv1ko
;
chs=s(2.0hh)+"h"+","+s(imp)+","+s(exp)+","+s(sol)+"\n"
chf="0d.csv"
fr=fo(chf 2)
res=fz(fr)
if res==0
then
res=fw(date+",Import,Export,Solar\n" fr)
fc(fr)
fr=fo(chf 2)
endif
res=fw(chs fr)
fc(fr)
;
ikwo=ikw
ekwo=ekw
pv1ko=pv1k
svars
;
endif
lpf="LP-"+s(4.0lp1y)+"-"+s(2.0lp1m)+".csv"
if chg[lp1mm]>0
and cnt>50
then
lps=s(4.0lp1y)+"-"+s(2.0lp1m)+"-"+s(2.0lp1d)+"T"+s(2.0lp1hh)+":"+s(2.0lp1mm)+","+s(0lp3i)+","+s(0lp6e)+"\n"
;
fr=fo(lpf 2)
;
res=fz(fr)
if res==0
then
res=fw("Date,Import Inc,Export Inc\n" fr)
fc(fr)
fr=fo(lpf 2)
endif
;
res=fw(lps fr)
fc(fr)
;
endif
; extras
; extras
>W
@<b>NTP </b> %date% %time% <b> Heap </b> %1fheap%
@<b>Vars </b> cnt=%0cnt% tper=%0tper% smlj=%0smlj% ver=%0ver%
@<b>Vars </b> wtd=%0wtd% clk=%0clk% old=%0old%
@<b>Wifi </b> %wfc% <b> Power </b> %0wfp% <b> Topic </b> %topic%
@<br>
<br>
Solar{m}%1pv1w% W
Solar{m}%1pv1k% kWh
<br>
<a href="/ufs/%lpf%">%lpf%</a>{m}<a href="/ufs/charts.html">Charts</a>
<br>
$<div id="chart1" style="width:95%%;height:250px;padding:0px;"></div><br><br>
$gc(lt ipwrm epwrm "wr" "Import" "Export" strm)
$var options = {
$chartArea:{left:50,width:'80%%'},
$width:'100%%',legend:'none',
$title:'Potência ( Watts ) ( 10min )',
$};
$gc(e)
; EB1 mono
>M 1
+1,3,mN1,1,9600,EB1,1,15,r010400010001,r0104006C0002,r010400160002,r010400260003,r010400790003,r0104007F0002,r0104000B0004,r01440601,r010400830004
; r01440601 Imp+Exp
; r01440301 Imp
; 01
1,01040Cx4xxuu@i0:1,Clock ,h,CH,0
1,01040Cx4xxxxuu@i0:1,Clock ,m,CM,0
1,01040Cx4xxxxxxuu@i0:1,Clock ,s,CS,0
1,=h<br>
; 6C
1,010404UUuu@i1:10,Voltage L1 ,V,Voltage,1
1,010404xxxxUUuu@i1:10,Current L1 ,A,Current,1
1,=h<br>
; 16
1,010408UUuuUUuu@i2:1000,%TE% Total Import ,kWh,TEI,2
1,010408x4UUuuUUuu@i2:1000,%TE% Total Export ,kWh,TEE,2
1,=h<br>
; 26
1,01040CUUuuUUuu@i3:1000,%TE% T1 Vazio ,kWh,TET1,2
1,01040Cx4UUuuUUuu@i3:1000,%TE% T2 Ponta ,kWh,TET2,2
1,01040Cx8UUuuUUuu@i3:1000,%TE% T3 Cheias ,kWh,TET3,2
1,=h<br>
; 79
1,01040aUUuuUUuu@i4:1,%AP% Import ,W,Power,16
1,01040ax4UUuuUUuu@i4:1,%AP% Export ,W,Active Power Export,16
1,01040ax8UUuu@i4:1000,%PF% ,φ,Factor,3
; 7F
1,01040aUUuu@i5:10,Frequency ,Hz,Frequency,1
1,=h<br>
; 0B
1,01040euu@i6:1,Tarifa ,,Tariff,0
1,01040exxUUuuUUuu@i6:1000,T1,kVA,CT1,2
; 83
1,01040eUUuuUUuu@i8:1,LP Entries,,LP_E,0
1,01040ex4uu@i8:1,ICP Status,,ICP_S,0
1,01040ex4xxUUuuUUuu@i8:1,ICP Q,,ICP_Q,0
1,01040ex8xxUUuuUUuu@i8:1,ICP K,%%,ICP_K,0
; lp
1,=h<br>
; 01441d Imp+Exp
; 014411 Imp
1,01441dUUuu@i7:1,Year,,LP1_Y,0
1,01441dxxxxuu@i7:1,Month,,LP1_M,0
1,01441dxxxxxxuu@i7:1,Day,,LP1_D,0
1,01441dx4xxuu@i7:1,Hour,h,LP1_HH,0
1,01441dx4xxxxuu@i7:1,Minute,m,LP1_MM,0
; summer
; amr
1,01441dx8x4xxUUuuUUuu@i7:1,Import Inc,Wh,LP3_IMP,0
; lp4
; lp5
1,01441dx8x8x8xxUUuuUUuu@i7:1,Export Inc,Wh,LP6_EXP,0
#
; eof
[https://github.com/nikito7/easyhan/blob/dev/edpbox/eb3-script.js]
Tópico: edpbox3
E apagar os discovery*.txt no Consoles > Manage File System
Ha yaml:
[https://github.com/nikito7/easyhan/blob/dev/edpbox/eb3-ha.yaml]
Outra duvida que tenho nos meus dados, como é possível o Export 424W e numa das fases L3 estar a consumir 78W? Eu não percebo muito de eletrónica e eletricidade em geral. Mas isso pode acontecer com os paineis solares e trifásico?
O export ser superior ao import numa das fazes, pode ter a ver com a faze onde está a ser injectada a produção solar.
Ou o inversor solar também é trifásico e injecta por igual nas 3 fazes?
injecta por igual nas 3 fases
Isto
O inversor também é trifásico
O total export também está desfasado 1.5 segundos.
Acho que não tem bug.
Neste caso ainda não tinha actualizado
Então para ter os dados correcto é melhor fazer a soma do L1+L2+L3 export em vez de usar o Potência Export total? Obrigado
Ambos são correctos. Apenas segundos/tempos diferentes
É preciso entender que isto não pede os valores todos de uma vez.
+1,3,mN1,1,9600,EB3,1,10,r010400010001,r0104006C0007,r010400730007,r0104007A0006,r010400260003,r010400160006,r0104000B0004,r01440601,r010400830004
; 01
1,01040Cx4xxuu@i0:1,Clock,h,CH,0
1,01040Cx4xxxxuu@i0:1,Clock,m,CM,0
1,01040Cx4xxxxxxuu@i0:1,Clock,s,CS,0
1,=h<br>
; 6C
1,01040EUUuu@i1:10,Voltage L1,V,VL1,1
1,01040Ex4UUuu@i1:10,Voltage L2,V,VL2,1
1,01040Ex8UUuu@i1:10,Voltage L3,V,VL3,1
1,=h<br>
1,01040Ex8x4UUuu@i1:10,Current Total,A,Current,1
1,01040ExxxxUUuu@i1:10,Current L1,A,CL1,1
1,01040Ex4xxxxUUuu@i1:10,Current L2,A,CL2,1
1,01040Ex8xxxxUUuu@i1:10,Current L3,A,CL3,1
1,=h<br>
; 73
1,01041cx8x8x8UUuuUUuu@i2:1,%AP% Import,W,Power,0
1,01041cUUuuUUuu@i2:1,%AP% L1,W,API1,0
1,01041cx8UUuuUUuu@i2:1,%AP% L2,W,API2,0
1,01041cx8x8UUuuUUuu@i2:1,%AP% L3,W,API3,0
1,01041cx4UUuuUUuu@i2:1,%AP% L1 Export,W,APE1,0
1,01041cx8x4UUuuUUuu@i2:1,%AP% L2 Export,W,APE2,0
1,01041cx8x8x4UUuuUUuu@i2:1,%AP% L3 Export,W,APE3,0
1,=h<br>
; 7A
1,01040eUUuuUUuu@i3:1,%AP% Export,W,APE,0
1,01040ex4UUuu@i3:1000,%PF%,φ,Factor,3
1,01040ex4xxxxUUuu@i3:1000,%PF% L1,φ,PF1,3
1,01040ex8UUuu@i3:1000,%PF% L2,φ,PF2,3
1,01040ex8xxxxUUuu@i3:1000,%PF% L3,φ,PF3,3
1,01040ex8x4UUuu@i3:10,Frequency,Hz,Frequency,1
1,=h<br>
; 26
1,01040CUUuuUUuu@i4:1000,%TE% T1 Vazio,kWh,TET1,2
1,01040Cx4UUuuUUuu@i4:1000,%TE% T2 Ponta,kWh,TET2,2
1,01040Cx8UUuuUUuu@i4:1000,%TE% T3 Cheias,kWh,TET3,2
1,=h<br>
; 16
1,010418UUuuUUuu@i5:1000,%TE% Total Import,kWh,TEI,2
1,010418x4UUuuUUuu@i5:1000,%TE% Total Export,kWh,TEE,2
1,=h<br>
; 0B
1,01040euu@i6:1,Tarifa,,Tariff,0
1,01040exxUUuuUUuu@i6:1000,T1,kVA,CT1,2
; 83
1,01040eUUuuUUuu@i8:1,LP Entries,,LP_E,0
1,01040ex4uu@i8:1,ICP Status,,ICP_S,0
1,01040ex4xxUUuuUUuu@i8:1,ICP Q,,ICP_Q,0
1,01040ex8xxUUuuUUuu@i8:1,ICP K,%%,ICP_K,0
1,=h<br>
; lp
1,01441dUUuu@i7:1,Year,,LP1_Y,0
1,01441dxxxxuu@i7:1,Month,,LP1_M,0
1,01441dxxxxxxuu@i7:1,Day,,LP1_D,0
1,01441dx4xxuu@i7:1,Hour,h,LP1_HH,0
1,01441dx4xxxxuu@i7:1,Minute,m,LP1_MM,0
; dst
; amr
1,01441dx8x4xxUUuuUUuu@i7:1,Import Inc,Wh,LP3_IMP,0
; lp4
; lp5
1,01441dx8x8x8xxUUuuUUuu@i7:1,Export Inc,Wh,LP6_EXP,0
#
Havia uma limitação no tasmota de 7 registers.
Se quiseres isso quase instantâneo, podes remover tudo o que não interessa.
Mas não é simples.
Copyright © 2017-2021. Todos os direitos reservados
CPHA.pt - info@cpha.pt