TO BE REMOVED: If you need help, as a developer, to use this custom component tempalte, please look at the User Guide in the Cookiecutter documentation
This component will set up the following platforms.
| Platform | Description |
|---|---|
binary_sensor |
Show something True or False. |
sensor |
Show info from Multi Zone Receiver API. |
- Using the tool of choice open the directory (folder) for your HA configuration (where you find
configuration.yaml). - If you do not have a
custom_componentsdirectory (folder) there, you need to create it. - In the
custom_componentsdirectory (folder) create a new folder calledmulti_zone_receiver. - Download all the files from the
custom_components/multi_zone_receiver/directory (folder) in this repository. - Place the files you downloaded in the new directory (folder) you created.
- Restart Home Assistant
- In the HA UI go to "Configuration" -> "Integrations" click "+" and search for "Multi Zone Receiver"
Using your HA configuration directory (folder) as a starting point you should now also have this:
custom_components/multi_zone_receiver/translations/en.json
custom_components/multi_zone_receiver/translations/fr.json
custom_components/multi_zone_receiver/translations/nb.json
custom_components/multi_zone_receiver/translations/sensor.en.json
custom_components/multi_zone_receiver/translations/sensor.fr.json
custom_components/multi_zone_receiver/translations/sensor.nb.json
custom_components/multi_zone_receiver/translations/sensor.nb.json
custom_components/multi_zone_receiver/__init__.py
custom_components/multi_zone_receiver/api.py
custom_components/multi_zone_receiver/binary_sensor.py
custom_components/multi_zone_receiver/config_flow.py
custom_components/multi_zone_receiver/const.py
custom_components/multi_zone_receiver/manifest.json
custom_components/multi_zone_receiver/sensor.py
custom_components/multi_zone_receiver/switch.py
If you want to contribute to this please read the Contribution guidelines
This project was generated from @oncleben31's Home Assistant Custom Component Cookiecutter template.
Code template was mainly taken from @Ludeeus's integration_blueprint template
- Custom integration requirements
- denon avr component
- https://developers.home-assistant.io/blog/2024/04/30/store-runtime-data-inside-config-entry/
- https://developers.home-assistant.io/blog/2024/08/05/coordinator_async_setup/
- https://developers.home-assistant.io/blog/2024/05/01/improved-hass-data-typing
- https://github.com/home-assistant/core/blob/dev/homeassistant/components/ecowitt/entity.py
- https://developers.home-assistant.io/docs/asyncio_thread_safety/
- This covers adding and removing and callbacks
- https://developers.home-assistant.io/docs/development_validation
- https://developers.home-assistant.io/docs/core/platform/significant_change/
- I want to use this to stabilize volume changes and keep them response on the client end
- https://github.com/home-assistant/core/blob/931c8f9e66193348fdcf92f93e7803d79b077f2f/homeassistant/components/group/config_flow.py#L22
- For selecting entities
- https://developers.home-assistant.io/docs/core/entity/#entity-naming
- Entity naming (this needs a redo)
- PR to add images for this custom integration
home-assistant | 2024-09-12 13:55:15.081 DEBUG (MainThread) [custom_components.multi_zone_receiver] New state from 'media_player.denon_avr_x4300h_main_zone_living_room': '<state media_player.denon_avr_x4300h_main_zone_living_room=on; source_list=['APPLE TV', 'AUX1', 'Bluetooth', 'JohnCast', 'Media Player', 'NUC', 'Online Music', 'PS4', 'Phono', 'TV Audio', 'Tuner', 'VINYL', 'WII U'], sound_mode_list=['MUSIC', 'MOVIE', 'GAME', 'AUTO', 'STANDARD', 'VIRTUAL', 'MATRIX', 'ROCK ARENA', 'JAZZ CLUB', 'VIDEO GAME', 'MONO MOVIE', 'DIRECT', 'PURE DIRECT', 'DOLBY DIGITAL', 'DTS SURROUND', 'AURO3D', 'AURO2DSURR', 'MCH STEREO', 'STEREO', 'ALL ZONE STEREO'], volume_level=0.45, is_volume_muted=False, media_content_type=channel, media_title=VINYL, source=VINYL, sound_mode=STEREO, sound_mode_raw=STEREO, dynamic_eq=True, device_class=receiver, friendly_name=Denon AVR-X4300H Main Zone Living Room, supported_features=69004 @ 2024-09-12T13:55:15.078347-07:00>'
home-assistant | 2024-09-12 13:55:20.175 DEBUG (MainThread) [custom_components.multi_zone_receiver] New state from 'media_player.denon_avr_x4300h_zone_3_kitchen': '<state media_player.denon_avr_x4300h_zone_3_kitchen=on; source_list=['APPLE TV', 'AUX1', 'Bluetooth', 'JohnCast', 'Media Player', 'NUC', 'Online Music', 'PS4', 'Phono', 'SOURCE', 'TV Audio', 'Tuner', 'VINYL', 'WII U'], sound_mode_list=['MUSIC', 'MOVIE', 'GAME', 'AUTO', 'STANDARD', 'VIRTUAL', 'MATRIX', 'ROCK ARENA', 'JAZZ CLUB', 'VIDEO GAME', 'MONO MOVIE', 'DIRECT', 'PURE DIRECT', 'DOLBY DIGITAL', 'DTS SURROUND', 'AURO3D', 'AURO2DSURR', 'MCH STEREO', 'STEREO', 'ALL ZONE STEREO'], volume_level=0.47, is_volume_muted=False, media_content_type=channel, media_title=CD, source=CD, device_class=receiver, friendly_name=Denon AVR-X4300H Zone 3 Kitchen, supported_features=69004 @ 2024-09-12T13:55:20.174114-07:00>'
home-assistant | 2024-09-12 13:55:20.807 DEBUG (MainThread) [custom_components.multi_zone_receiver] New state from 'media_player.denon_avr_x4300h_zone_2_dining_room': '<state media_player.denon_avr_x4300h_zone_2_dining_room=off; source_list=['APPLE TV', 'AUX1', 'Bluetooth', 'JohnCast', 'Media Player', 'NUC', 'Online Music', 'PS4', 'Phono', 'SOURCE', 'TV Audio', 'Tuner', 'VINYL', 'WII U'], sound_mode_list=['MUSIC', 'MOVIE', 'GAME', 'AUTO', 'STANDARD', 'VIRTUAL', 'MATRIX', 'ROCK ARENA', 'JAZZ CLUB', 'VIDEO GAME', 'MONO MOVIE', 'DIRECT', 'PURE DIRECT', 'DOLBY DIGITAL', 'DTS SURROUND', 'AURO3D', 'AURO2DSURR', 'MCH STEREO', 'STEREO', 'ALL ZONE STEREO'], device_class=receiver, friendly_name=Denon AVR-X4300H Zone 2 Dining Room, supported_features=69004 @ 2024-09-12T13:55:11.342777-07:00>'
home-assistant | 2024-09-12 13:55:22.345 DEBUG (MainThread) [custom_components.multi_zone_receiver] New state from 'media_player.denon_avr_x4300h_zone_2_dining_room': '<state media_player.denon_avr_x4300h_zone_2_dining_room=on; source_list=['APPLE TV', 'AUX1', 'Bluetooth', 'JohnCast', 'Media Player', 'NUC', 'Online Music', 'PS4', 'Phono', 'SOURCE', 'TV Audio', 'Tuner', 'VINYL', 'WII U'], sound_mode_list=['MUSIC', 'MOVIE', 'GAME', 'AUTO', 'STANDARD', 'VIRTUAL', 'MATRIX', 'ROCK ARENA', 'JAZZ CLUB', 'VIDEO GAME', 'MONO MOVIE', 'DIRECT', 'PURE DIRECT', 'DOLBY DIGITAL', 'DTS SURROUND', 'AURO3D', 'AURO2DSURR', 'MCH STEREO', 'STEREO', 'ALL ZONE STEREO'], volume_level=0.52, is_volume_muted=False, media_content_type=channel, media_title=CD, source=CD, device_class=receiver, friendly_name=Denon AVR-X4300H Zone 2 Dining Room, supported_features=69004 @ 2024-09-12T13:55:22.344393-07:00>'