Skip to content

Improvements for the multi-phase/line for devices: #48

@xservers-si

Description

@xservers-si

Improvements to the UX for the multi-phase/line functionality for devices:

Layout:

Image

.
There are requests for support for as many devices as possible on any HACS power graph card almost everywhere on the Home Assistant forum.
This proposal:

The proposal:

  • Accommodate a card with a maximum of three (1,2 or 3) lines of devices.
  • Current YAML syntax:
    • Additional settings would be inserted between the device and entity levels: 'line' or 'phase'.
    • It may be something equivalent.
    • The YAML definition would be:
- device:
    - phase:             # <- indicate first line
      name: L1           # <- name for circle
      max_power: 7500    # <- max power in watts for arc calculation(s)
      colour: #AABBCC    # <- circle / text / icon color
      show_total: true   # <- show total or one device more
      enable_device_power_lines: false
      - entity:          # <- device definition
         (existing entity definition)
  • Configuration toggles on each phase for:

    • Total on the 'Phase' level (if not selected, show one more device);
    • Enable device power lines' at the phase level (as it is now).
  • Arcs for PV/battery power at the phase level, provided that the "max_power" in W per phase is defined.

  • Vertical sum lines (blue, green and violet on example image) always shown.

  • Home already supports the total at its level.

  • Consideration:

    • If the device is connected in a three-phase delta configuration (three phases with 440 V connections between phases in Europe):
    • There should be three device definitions -> one for each phase.
    • Three associated entities for power are required for each phase.
    • If the total power for a delta-connected device is required:
      • This should be displayed as secondary information on each device phase.
      • This is a user configuration-level decision.
      • It is not limited by card design.
    • The problem is solved by design.
  • My assumption is based on a three-phase system, but:

    • It may be sufficient to simply increase the number of devices shown, either with or without a group (phase) sum.
    • Group devices into three groups, with or without a group (phase) sum.
    • Use the three-phase system as mentioned, with or without a group (phase) sum.
    • Do anything else.

The example shows an artificial three-phase system.

  • Three-phase system named L1, L2 and L3 (in Europe).
  • With sum for each phase.
  • No 'Device power lines'.
  • The T.C. (heat pump) is connected to a three-phase system with a total power sum on phase L2 only.
  • Arcs are presented as a percentage of the power from the PV/battery system.
  • All other devices are connected to single phase.

If anything in this description is unclear, please ask.

P.S..
Yes, it is a tough requirement.
To maximise the success of any system, respect its users.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions