2021-06-18 09:51:55 +00:00
|
|
|
{
|
2021-06-18 17:01:32 +00:00
|
|
|
"title": "Select",
|
|
|
|
"device_automation": {
|
|
|
|
"trigger_type": {
|
|
|
|
"current_option_changed": "{entity_name} option changed"
|
2021-06-18 18:40:29 +00:00
|
|
|
},
|
|
|
|
"action_type": {
|
2023-02-03 14:43:17 +00:00
|
|
|
"select_first": "Change {entity_name} to first option",
|
|
|
|
"select_last": "Change {entity_name} to last option",
|
|
|
|
"select_next": "Change {entity_name} to next option",
|
|
|
|
"select_option": "Change {entity_name} option",
|
|
|
|
"select_previous": "Change {entity_name} to previous option"
|
2021-06-18 21:31:08 +00:00
|
|
|
},
|
|
|
|
"condition_type": {
|
|
|
|
"selected_option": "Current {entity_name} selected option"
|
2021-06-18 17:01:32 +00:00
|
|
|
}
|
2023-03-21 11:45:06 +00:00
|
|
|
},
|
|
|
|
"entity_component": {
|
|
|
|
"_": {
|
|
|
|
"name": "[%key:component::select::title%]",
|
|
|
|
"state_attributes": {
|
|
|
|
"options": {
|
|
|
|
"name": "Options"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-07-12 16:55:22 +00:00
|
|
|
},
|
|
|
|
"services": {
|
|
|
|
"select_first": {
|
|
|
|
"name": "First",
|
|
|
|
"description": "Selects the first option."
|
|
|
|
},
|
|
|
|
"select_last": {
|
|
|
|
"name": "Last",
|
|
|
|
"description": "Selects the last option."
|
|
|
|
},
|
|
|
|
"select_next": {
|
|
|
|
"name": "Next",
|
|
|
|
"description": "Selects the next option.",
|
|
|
|
"fields": {
|
|
|
|
"cycle": {
|
|
|
|
"name": "Cycle",
|
|
|
|
"description": "If the option should cycle from the last to the first."
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"select_option": {
|
|
|
|
"name": "Select",
|
|
|
|
"description": "Selects an option.",
|
|
|
|
"fields": {
|
|
|
|
"option": {
|
|
|
|
"name": "Option",
|
|
|
|
"description": "Option to be selected."
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"select_previous": {
|
|
|
|
"name": "Previous",
|
|
|
|
"description": "Selects the previous option.",
|
|
|
|
"fields": {
|
|
|
|
"cycle": {
|
|
|
|
"name": "Cycle",
|
|
|
|
"description": "If the option should cycle from the first to the last."
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-06-18 17:01:32 +00:00
|
|
|
}
|
2021-06-18 09:51:55 +00:00
|
|
|
}
|