2023-09-06 18:20:27 +03:00
|
|
|
from homeassistant.components.button import DOMAIN as BUTTON_DOMAIN
|
|
|
|
from homeassistant.components.media_player import DOMAIN as MEDIA_PLAYER_DOMAIN
|
|
|
|
from homeassistant.components.select import DOMAIN as SELECT_DOMAIN
|
|
|
|
from homeassistant.components.switch import DOMAIN as SWITCH_DOMAIN
|
|
|
|
|
|
|
|
DOMAIN = "samsung_soundbar"
|
|
|
|
CONF_CLOUD_INTEGRATION = "cloud_integration"
|
|
|
|
CONF_ENTRY_API_KEY = "api_key"
|
|
|
|
CONF_ENTRY_DEVICE_ID = "device_id"
|
|
|
|
CONF_ENTRY_DEVICE_NAME = "device_name"
|
|
|
|
CONF_ENTRY_MAX_VOLUME = "device_volume"
|
Feature: Add more fine grained configuration steps (#28)
> ⚠️ Please read the following carefully:
> This release is a bit special. As "something" on Samsung's side changed,
> it is currently not possible to retrieve the status of "custom capabilities", eg.
> woofer, soundmode, eq, and others. Therefore I decided to give the option to
> disable the entities of these features as the value of these entities is not trustworthy.
> Instead I implemented all of these and more (thanks to @whitebearded) as service calls.
> Have fun using them!
### Added
- Configuration flow options for enable / disable
- "advanced audio" features (NightMode, Bassmode, VoiceEnhancer)
- "woofer" feature
- "soundmode" feature
- "eq" feature
- added `media_player` support for next and previous track
- Service calls for:
- "advanced audio" features (NightMode, Bassmode, VoiceEnhancer)
- "woofer" feature
- "soundmode" feature
- "speaker_level"
- "rear_speaker_mode"
- "space_fit_sound"
- "active_voice_amplifier"
### Changed
- Fixed state, also displaying "playing" and "paused" values
---------
Co-authored-by: Samuel Spagl <samuel.spagl@kobil.com>
2024-06-09 18:13:38 +03:00
|
|
|
|
|
|
|
CONF_ENTRY_SETTINGS_ADVANCED_AUDIO_SWITCHES = "settings_advanced_audio"
|
|
|
|
CONF_ENTRY_SETTINGS_EQ_SELECTOR = "settings_eq"
|
|
|
|
CONF_ENTRY_SETTINGS_SOUNDMODE_SELECTOR = "settings_soundmode"
|
|
|
|
CONF_ENTRY_SETTINGS_WOOFER_NUMBER = "settings_woofer"
|
|
|
|
|
2023-09-06 18:20:27 +03:00
|
|
|
DEFAULT_NAME = DOMAIN
|
|
|
|
|
|
|
|
BUTTON = BUTTON_DOMAIN
|
|
|
|
SWITCH = SWITCH_DOMAIN
|
|
|
|
MEDIA_PLAYER = MEDIA_PLAYER_DOMAIN
|
|
|
|
SELECT = SELECT_DOMAIN
|
|
|
|
SUPPORTED_DOMAINS = ["media_player", "switch"]
|
|
|
|
|
|
|
|
|
|
|
|
PLATFORMS = [SWITCH, MEDIA_PLAYER, SELECT, BUTTON]
|