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

VE.Bus: AC Input 1 and 2 issues on Quattro when input 1 configuration is set to "Not available" #1805

Open
vejpasop opened this issue Dec 17, 2024 · 2 comments
Assignees
Labels
Milestone

Comments

@vejpasop
Copy link

vejpasop commented Dec 17, 2024

Affected systems Venus OS V3.52 with Quattro(s)

AC input source and power display goes wrong in overview screen when AC input 1 is configured as "Not Available"
GUI V1 works ok.

image

1)

Displayed state with **AC input 1 not connected and AC input 2 connected **
(This should show grid power since AC input 2 is connected to AC)
image

2)

Initial state: AC input 1 is configured as "Generator" and AC input 2 is configured as "Grid". AC input 1 is not connected and AC input 2 is connected.
image

Now change the AC input configuration to set AC input 1 configured as "Not Available"
image

This result in:
image

vebus_interface dbus recording

The below attached dbus recording contains the following events

  1. (Initial state) AC in 1 connected, AC in 2 not connected, Input configuration: AC in 1 "Generator", AC in 2 "Grid"
  2. Switch AC inputs -> AC in 1 not connected -> AC in 2 connected
  3. Change input configuration -> AC in 1 "Not Available", AC in 2 "Grid"
  4. Switch AC inputs -> AC in 1 connected, AC in 2 not connected

vebus_input_config_change.csv

@blammit blammit self-assigned this Jan 8, 2025
@blammit
Copy link
Contributor

blammit commented Jan 15, 2025

Investigated this further. Basically, the AC-in configuration is like this:

system /Settings/SystemSetup/AcInput1 = 0 (Not available)
system /Settings/SystemSetup/AcInput2 = 1 (Grid)
vebus /Ac/ActiveIn/ActiveInput = 1 (connected to AC-in 2, i.e. the Grid)

These values show AC-in 1 is not connected, and AC-in 2 is connected. At the same time, the system values show that /Ac/In/0 is connected, while /Ac/In/1 is not connected:

system /Ac/In/0/Connected = 1
system /Ac/In/0/ServiceName = vebus
system /Ac/In/1/Connected = -
system /Ac/In/1/ServiceName = -

This is because /Ac/In/0 refers to "the first available AC input on the system". It does not mean AC-in 1. So the bug is that gui-v2 assumes /Ac/In/0 refers to AC-in 1, even though it does not.

@blammit
Copy link
Contributor

blammit commented Jan 15, 2025

Discussed this further and this appears to be a less common case, as typically AC-in 1 is used when there is only one AC input.

@blammit blammit added this to the Version 1.1.0 milestone Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants