* track all settings and add service to update a setting * sort setting types * reduce frequency of updates due to the increase in API calls per update * change dict call to a get in case audio settings aren't available unlikely to occur but less error prone * Update if statement to be more consistent * revert changes to track all settings and store in state machine * revert one more change * force setting_type and setting_name to lowercase to make it easier to understand how to make service call * make service calls even simpler by attempting to transform certain parameters as much as possible
16 lines
665 B
YAML
16 lines
665 B
YAML
update_setting:
|
|
description: Update the value of a setting on a particular Vizio media player device.
|
|
fields:
|
|
entity_id:
|
|
description: Name of an entity to send command.
|
|
example: "media_player.vizio_smartcast"
|
|
setting_type:
|
|
description: The type of setting to be changed. Available types are listed in the `setting_types` property.
|
|
example: "audio"
|
|
setting_name:
|
|
description: The name of the setting to be changed. Available settings for a given setting_type are listed in the `<setting_type>_settings` property.
|
|
example: "eq"
|
|
new_value:
|
|
description: The new value for the setting
|
|
example: "Music"
|