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

AC switch dont work on Delta 2 #194

Open
rogerbl opened this issue Jan 7, 2025 · 11 comments
Open

AC switch dont work on Delta 2 #194

rogerbl opened this issue Jan 7, 2025 · 11 comments
Labels
bug Something isn't working

Comments

@rogerbl
Copy link

rogerbl commented Jan 7, 2025

The AC switch is not possible to control via Mqtt on my Delta 2. It just bounce back to close.
If pd.acAutoOutConfig is set to true, the switch change to On, but its not possible to turn it off.
On my River 2(works with River 2 Max setting) the AC switch works via Mqtt, and with my River 2 Max also. So would it be an idea for you to split this into River 2 and River 2 Max drivers?
Keep on with the good work! I got adapter ver. 1.0.5


When I upgraded to ver 1.1.1 the River 2 Max and the River 2 units won't answer anymore. :-(
And the AC control still doesn't work.

@foxthefox
Copy link
Owner

The change between 1.0.5 and 1.1.0/1.1.1 was mainly related to SHP2 and DPU. For Delta2 was only the change of measurement type from power to energy. Both should not have an effact on the data transmission to the MQTT-Server.

If you want you can also try to downgrade, via the 3dots
Bildschirmfoto 2025-01-07 um 18 01 34

and click ob the + and selecting the 1.0.5 version
Bildschirmfoto 2025-01-07 um 18 01 48

I can easily make a separate implementation of the River2, based on the River2Max.
Here it would be good to have the set of datapoints.
Therfore you can go to the config page of the adapter, enable the msgUpdate, msgSetGet and msgCmd plus additionally the debug enable in the device row.

When adapter is in debug mode (via header of adapter config page)
Bildschirmfoto 2025-01-07 um 18 12 32
the log will contain the transferred messages in JSON format.
That I would need to implement the driver.

The same setting would be needed to look for the Dalta2 AC switch command.
Here the Delta2 shouldbe enabled in the device row and the in the APP you should switch the AC switch.
These cmd JSON telegrams I would also need to crosscheck with the existing code.

@rogerbl
Copy link
Author

rogerbl commented Jan 7, 2025 via email

@rogerbl
Copy link
Author

rogerbl commented Jan 7, 2025 via email

@foxthefox
Copy link
Owner

Thanks, I will check it.

@rogerbl
Copy link
Author

rogerbl commented Jan 8, 2025

with the 1.1.2 version things got better with the River 2 and The River 2 Max.
these commands dont work though:
river 2 max dcoutstate -probably not supported
river 2 dcoutstate -probably not supported
delta 2 cfgAcEnabled
delta 2 acAutoOutConfig stopped working after 1.1.2 upgrade

But it looks promising! :-)

@rogerbl
Copy link
Author

rogerbl commented Jan 8, 2025 via email

@rogerbl
Copy link
Author

rogerbl commented Jan 8, 2025

I looked up the API of River 2 MAX.
Seems like it supports USB power control after all.
To set it use this :
{
"id": 123,
"sn": "R351ZFB4HF6L0030",
"version": "1.0",
"moduleType": 1,
"operateType": "dcOutCfg",
"params": {
"enabled": 1
}
}


In the API for the Delta 2 AC control switch it says:
{
"id": 123456789,
"version": "1.0",
"sn": "R331ZEB4ZEAL0528",
"moduleType": 5,
"operateType": "acOutCfg",
"params": {
"enabled": 0,
"xboost": 0,
"out_voltage": 30,
"out_freq": 1
}
}

Hope this helps!
Here is the link to the API:
https://developer-eu.ecoflow.com/us/document/delta2

@rogerbl
Copy link
Author

rogerbl commented Jan 11, 2025

with ver 1.1.3 its possible to turn on the AC on the Delta 2, but it won't turn off.
But I think ur on the right track! Keep on with the good work! :-)

@foxthefox
Copy link
Owner

We have to verify that we are looking at the correct datapoint.
Are you operating on pd.acAutoOutConfig or on inv.cfgAcEnabled?
pd.acAutoOutConfig can not be written, but the inv.cfgAcEnabled is configured as switch.

Can you try to operate on inv.cfgAcEnabled and check whats the behaviour?

@rogerbl
Copy link
Author

rogerbl commented Jan 15, 2025

I updated to ver 1.2.0
On the River 2 and River 2 Max it works ok.

On the Delta 2 there are some issues:
Its no inv.cfgAcEnabled on the Delta 2. No inv section at all.
There is no change when I set mppt.cfgAcEnabled to true or false.

When I set pd.acAutoOutConfig to true AC is enabled.
When I set pd.acAutoOutConfig to false nothing happens. It must be shut down manually on the app.

@foxthefox foxthefox added the bug Something isn't working label Jan 21, 2025
@foxthefox
Copy link
Owner

foxthefox commented Jan 30, 2025

I have checked my setup and the snippet from the API.

It seems that acOutCfg belongs to module 5 = mppt. Within mppt I have the cfgAcEnabled as a switch, which toggles acOutCfg.


Edit: I just saw you mentioning, that it does not do anything at mppt.cfgAcEnabled. I am checking further.

The pd.acAutoOutConfig is not turning the switch on/off it is more this "Set AC always on (acAutoOutConfig: 0: disabled; 1: enabled;minAcOutSoc: minimum SoC for turning on "AC always on" )"


Edit2:
cfgAcEnabled is only switching when the actual state of charge is higher than minDsgSoc. That could be a reason why it is not switching.

Can you check it with enough charge in battery?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants