Skip to content

Hardcoded Stream Index Blocks Multiview Functionality #12

Description

@switch180

Problem

Stream indexes are hardcoded to 0 throughout the integration, preventing the use of multiview and picture-in-picture features. SDVoE devices support multiple stream indexes (0, 1, 2, etc.) for different purposes, but the integration currently only uses index 0.

Current State

Hardcoded Locations:

  1. const.py
DEFAULT_STREAM_INDEX = 0  # Hardcoded default
  1. select.py - Video source select entity
# All join/leave calls use index 0
await self.coordinator.api.async_join_subscription(
    transmitter_id=source_device_id,
    receiver_id=self._device_id,
    stream_type="HDMI",
    tx_index=0,  # HARDCODED
    rx_index=0,  # HARDCODED
)
  1. sensor.py - Source sensors search only for index 0
for subscription in subscriptions:
    if (subscription.get("stream_type") == "HDMI" and 
        subscription.get("stream_index") == 0):  # HARDCODED

Impact

Feature Blocking:

Proposed Solution

Make stream index configurable throughout the integration. Default to 0 for backward compatibility.

Priority

🟡 Medium

References

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