henne49 / dbus-opendtu

Integrate opendtu and ahoy into Victron Energies Venus OS as a pv inverter
MIT License
118 stars 33 forks source link

Question: Integration of APSystems EZ1-M #128

Closed twachti closed 11 months ago

twachti commented 11 months ago

I am trying to integrate an APSystems EZ1-M at the template section and i have to set a different port (8050). Is it possible to add the port an the end of the host address? (host=x.x.x.x:8050)

Device you are using Steps to reproduce the behavior:

  1. Which Venus OS are you using? 3.12
  2. Which Victron Device? Raspberry Pi 3B+
  3. Which DTU? none
  4. Which Template Device? APSystems EZ1-M

The data output of EZ1-M looks like this:

http://192.168.x.x:8050/getOutputData

{ "data": { "p1": 16, "e1": 0.04427, "te1": 73.22394, "p2": 32, "e2": 0.0842, "te2": 95.60328 }, "message": "SUCCESS", "deviceId": "E07000000000" }

henne49 commented 11 months ago

I guess you tested and it didn‘t work?


Von: twachti @.> Gesendet: Saturday, December 2, 2023 1:06:33 PM An: henne49/dbus-opendtu @.> Cc: Subscribed @.***> Betreff: [henne49/dbus-opendtu] Question: Integration of APSystems EZ1-M (Issue #128)

I am trying to integrate an APSystems EZ1-M at the template section and i have to set a different port (8050). ist i possible to add the port an the end of the host address? (host=x.x.x.x:8050)

Device you are using Steps to reproduce the behavior:

  1. Which Venus OS are you using? 3.12
  2. Which Victron Device? Raspberry Pi 3B+
  3. Which DTU? none
  4. Which Template Device? APSystems EZ1-M

The data output of EZ1-M looks like this:

http://192.168.x.x:8050/getOutputData

{ "data": { "p1": 16, "e1": 0.04427, "te1": 73.22394, "p2": 32, "e2": 0.0842, "te2": 95.60328 }, "message": "SUCCESS", "deviceId": "E07000000000" }

— Reply to this email directly, view it on GitHubhttps://github.com/henne49/dbus-opendtu/issues/128, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABDSINTM2ZOD5AKZZTBJP3TYHMKUTAVCNFSM6AAAAABAD6Y5IKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAZDEMBRGQ4DIOI. You are receiving this because you are subscribed to this thread.Message ID: @.***>

twachti commented 11 months ago

I tried to implement the EZ1-M via template, but i think my skills are the problem.

the config file: ` [DEFAULT]

Time in minutes how often a status is added to the log-file current.log with log-level INFO

SignOfLifeLog= 1

Number ob Template Inverter to query

NumberOfTemplates=0

Which DTU to be used ahoy, opendtu, template

DTU=template

send YieldDay instead of YieldTotal

useYieldDay=0

For ESP8266 reduce polling intervall to reduce load

ESP8266PollingIntervall=1000

Possible Options for Log Level: CRITICAL, ERROR, WARNING, INFO, DEBUG, NOTSET

To keep current.log small use ERROR

Logging=DEBUG

if ts_last_success is older than this number of seconds, it is not used.

Set this to < 0 to disable this check.

MaxAgeTsLastSuccess=600

if this is not 0, then no values are actually sent via dbus to vrm/venus.

DryRun=0

IP of Device to query

Host=192.168.x.x:8050

HTTPTimeout=1.2

Username/Password leave empty if no authentication is required

Username = Password =

Only needed for OpenDTU and ahoy

AcPosition 0=AC input 1; 1=AC output; 2=AC output 2

1st inverter

################## TEMPLATES #####################

Rearrange and customite Templates as necessary

AcPosition 0=AC input 1; 1=AC output; 2=AC output 2

[TEMPLATE0]

Tasmota Example

Username/Password leave empty if no authentication is required

Username = Password = DigestAuth = False Host= 192.168.x.x:8050 CUST_SN = E00000000 CUST_API_PATH= getOutputData CUST_POLLING = 1000 CUST_Total= data/te1 CUST_Total_Mult = 1 CUST_Power= data/p1 CUST_Power_Mult = 1 CUST_Voltage= none CUST_Current= none Phase=L2 DeviceInstance=47 AcPosition=0 Name= APSystemsEZ1-M_PV1 Servicename=com.victronenergy.grid

[TEMPLATE1]

Username/Password leave empty if no authentication is required

Username = Password = DigestAuth = False Host= 192.168.x.x:8050 CUST_SN = E00000000 CUST_API_PATH= getOutputData CUST_POLLING = 1000 CUST_Total= data/te2 CUST_Total_Mult = 1 CUST_Power= data/p2 CUST_Power_Mult = 1 CUST_Voltage= none CUST_Current= none Phase=L2 DeviceInstance=48 AcPosition=0 Name= APSystemsEZ1-M_PV2 Servicename=com.victronenergy.genset `

The current.log only shows 2023-12-02 14:21:15,122 root DEBUG is_data_up2date: inverter #0: age_seconds=21350128, max_age_ts=600 2023-12-02 14:21:15,126 root DEBUG is_data_up2date: inverter #0: age_seconds=10, max_age_ts=600 2023-12-02 14:21:15,127 root DEBUG tests have passed 2023-12-02 14:21:15,129 root INFO Start 2023-12-02 14:21:15,138 root INFO Connected to dbus, and switching over to gobject.MainLoop() (= event based)

twachti commented 11 months ago

I will try to connect a Shelly Plus 1pm instead of EZ1-M to learn and debug und give the EZ1 another try if the Shelly is working...

henne49 commented 11 months ago

you have to set NumberOfTemplates=1 and please next time upload the config.ini as file github is mixing the comment with markup formating

twachti commented 11 months ago

My mistake was that I didn't set NumbersOfTemplates. Thanks a lot!

APSystemsEZ1-M_PV2
henne49 commented 11 months ago

Well, nice, that it works now