This custom integration for Home Assistant enables enhanced control over Sony SDCP projectors. It uses pySDCP just as the existing core integration does, but it's a significant improvement, offering a wider range of features and commands. Users can control their Sony projectors through Home Assistant, utilizing commands for power management, input selection, aspect ratio adjustment, and picture positioning.
- Power On/Off the projector
- Switch inputs (HDMI1, HDMI2)
- Adjust the aspect ratio (Normal, V Stretch, Zoom 1.85, Zoom 2.35, Stretch, Squeeze)
- Change the picture position (1.85, 2.35, Custom 1, Custom 2, Custom 3)
To install this custom integration via HACS, you'll first need to add it as a custom repository:
- Open HACS in Home Assistant.
- Navigate to 'Integrations'.
- In the top right corner, click on the three dots and select 'Custom repositories'.
- Enter the URL of this GitHub repository, choose 'Integration' in the 'Category' dropdown, and click 'Add'.
- The Sony SDCP Projector Integration should now appear in the list of integrations available for installation in HACS.
- Find and select "Sony SDCP Projector Integration", then click 'Install'.
- Restart Home Assistant.
- Download the integration from the GitHub repository.
- Copy the
custom_components/sony_sdcp_projector
folder into theconfig/custom_components
directory of your Home Assistant. - Restart Home Assistant.
Configure the integration through the Home Assistant UI:
- Navigate to Configuration > Integrations.
- Click "Add Integration".
- Search for "Sony SDCP Projector" and follow the prompts to set it up.
Control your Sony SDCP projector via the Home Assistant UI or automation scripts.
To send commands to the projector, use the remote.send_command
service with the appropriate data. Example:
service: remote.send_command
data:
command: power_on
target:
entity_id: remote.sony_sdcp_projector
Replace power_on
with any of the following commands as needed:
power_off
input_hdmi1
input_hdmi2
aspect_ratio_normal
aspect_ratio_v_stretch
aspect_ratio_zoom_1_85
aspect_ratio_zoom_2_35
aspect_ratio_stretch
aspect_ratio_squeeze
picture_position_1_85
picture_position_2_35
picture_position_custom_1
picture_position_custom_2
picture_position_custom_3
For issues or queries, please file an issue on the GitHub repository.
Contributions are welcome. Feel free to fork the repository and submit pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.
Note: This integration is not officially affiliated with or endorsed by Sony.