mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
[2/3] vacuum mqtt-discovery (#19478)
* add discoverability to mqtt-vacuum
This commit is contained in:
committed by
emontnemery
parent
dee229152f
commit
ccbc231d3a
@@ -25,7 +25,7 @@ TOPIC_MATCHER = re.compile(
|
||||
SUPPORTED_COMPONENTS = [
|
||||
'binary_sensor', 'camera', 'cover', 'fan',
|
||||
'light', 'sensor', 'switch', 'lock', 'climate',
|
||||
'alarm_control_panel']
|
||||
'alarm_control_panel', 'vacuum']
|
||||
|
||||
CONFIG_ENTRY_COMPONENTS = [
|
||||
'binary_sensor',
|
||||
@@ -38,6 +38,7 @@ CONFIG_ENTRY_COMPONENTS = [
|
||||
'climate',
|
||||
'alarm_control_panel',
|
||||
'fan',
|
||||
'vacuum',
|
||||
]
|
||||
|
||||
DEPRECATED_PLATFORM_TO_SCHEMA = {
|
||||
@@ -69,12 +70,25 @@ ABBREVIATIONS = {
|
||||
'bri_stat_t': 'brightness_state_topic',
|
||||
'bri_val_tpl': 'brightness_value_template',
|
||||
'clr_temp_cmd_tpl': 'color_temp_command_template',
|
||||
'bat_lev_t': 'battery_level_topic',
|
||||
'bat_lev_tpl': 'battery_level_template',
|
||||
'chrg_t': 'charging_topic',
|
||||
'chrg_tpl': 'charging_template',
|
||||
'clr_temp_cmd_t': 'color_temp_command_topic',
|
||||
'clr_temp_stat_t': 'color_temp_state_topic',
|
||||
'clr_temp_val_tpl': 'color_temp_value_template',
|
||||
'cln_t': 'cleaning_topic',
|
||||
'cln_tpl': 'cleaning_template',
|
||||
'cmd_t': 'command_topic',
|
||||
'curr_temp_t': 'current_temperature_topic',
|
||||
'dev_cla': 'device_class',
|
||||
'dock_t': 'docked_topic',
|
||||
'dock_tpl': 'docked_template',
|
||||
'err_t': 'error_topic',
|
||||
'err_tpl': 'error_template',
|
||||
'fanspd_t': 'fan_speed_topic',
|
||||
'fanspd_tpl': 'fan_speed_template',
|
||||
'fanspd_lst': 'fan_speed_list',
|
||||
'fx_cmd_t': 'effect_command_topic',
|
||||
'fx_list': 'effect_list',
|
||||
'fx_stat_t': 'effect_state_topic',
|
||||
@@ -124,6 +138,7 @@ ABBREVIATIONS = {
|
||||
'rgb_cmd_t': 'rgb_command_topic',
|
||||
'rgb_stat_t': 'rgb_state_topic',
|
||||
'rgb_val_tpl': 'rgb_value_template',
|
||||
'send_cmd_t': 'send_command_topic',
|
||||
'send_if_off': 'send_if_off',
|
||||
'set_pos_tpl': 'set_position_template',
|
||||
'set_pos_t': 'set_position_topic',
|
||||
@@ -137,6 +152,7 @@ ABBREVIATIONS = {
|
||||
'stat_open': 'state_open',
|
||||
'stat_t': 'state_topic',
|
||||
'stat_val_tpl': 'state_value_template',
|
||||
'sup_feat': 'supported_features',
|
||||
'swing_mode_cmd_t': 'swing_mode_command_topic',
|
||||
'swing_mode_stat_tpl': 'swing_mode_state_template',
|
||||
'swing_mode_stat_t': 'swing_mode_state_topic',
|
||||
|
||||
Reference in New Issue
Block a user