diff --git a/homeassistant/components/input_boolean/services.yaml b/homeassistant/components/input_boolean/services.yaml index d294d61fd4d..9de0368ba35 100644 --- a/homeassistant/components/input_boolean/services.yaml +++ b/homeassistant/components/input_boolean/services.yaml @@ -1,24 +1,16 @@ toggle: - name: Toggle - description: Toggle an input boolean target: entity: domain: input_boolean turn_off: - name: Turn off - description: Turn off an input boolean target: entity: domain: input_boolean turn_on: - name: Turn on - description: Turn on an input boolean target: entity: domain: input_boolean reload: - name: Reload - description: Reload the input_boolean configuration diff --git a/homeassistant/components/input_boolean/strings.json b/homeassistant/components/input_boolean/strings.json index d8e1e133f55..9288de04f2c 100644 --- a/homeassistant/components/input_boolean/strings.json +++ b/homeassistant/components/input_boolean/strings.json @@ -17,5 +17,23 @@ } } } + }, + "services": { + "toggle": { + "name": "Toggle", + "description": "Toggles the helper on/off." + }, + "turn_off": { + "name": "Turn off", + "description": "Turns off the helper." + }, + "turn_on": { + "name": "Turn on", + "description": "Turns on the helper." + }, + "reload": { + "name": "Reload", + "description": "Reloads helpers from the YAML-configuration." + } } } diff --git a/homeassistant/components/input_button/services.yaml b/homeassistant/components/input_button/services.yaml index 899ead91cb5..7c57fcff272 100644 --- a/homeassistant/components/input_button/services.yaml +++ b/homeassistant/components/input_button/services.yaml @@ -1,6 +1,4 @@ press: - name: Press - description: Press the input button entity. target: entity: domain: input_button diff --git a/homeassistant/components/input_button/strings.json b/homeassistant/components/input_button/strings.json index cfd616fd5e7..b51d04926f5 100644 --- a/homeassistant/components/input_button/strings.json +++ b/homeassistant/components/input_button/strings.json @@ -13,5 +13,11 @@ } } } + }, + "services": { + "press": { + "name": "Press", + "description": "Mimics the physical button press on the device." + } } } diff --git a/homeassistant/components/input_datetime/services.yaml b/homeassistant/components/input_datetime/services.yaml index 51b1d6b00c1..386f0096a5f 100644 --- a/homeassistant/components/input_datetime/services.yaml +++ b/homeassistant/components/input_datetime/services.yaml @@ -1,33 +1,21 @@ set_datetime: - name: Set - description: This can be used to dynamically set the date and/or time. target: entity: domain: input_datetime fields: date: - name: Date - description: The target date the entity should be set to. example: '"2019-04-20"' selector: text: time: - name: Time - description: The target time the entity should be set to. example: '"05:04:20"' selector: time: datetime: - name: Date & Time - description: The target date & time the entity should be set to. example: '"2019-04-20 05:04:20"' selector: text: timestamp: - name: Timestamp - description: - The target date & time the entity should be set to as expressed by a - UNIX timestamp. selector: number: min: 0 @@ -35,5 +23,3 @@ set_datetime: mode: box reload: - name: Reload - description: Reload the input_datetime configuration. diff --git a/homeassistant/components/input_datetime/strings.json b/homeassistant/components/input_datetime/strings.json index 0c3a4b0b0d2..f657508a4c4 100644 --- a/homeassistant/components/input_datetime/strings.json +++ b/homeassistant/components/input_datetime/strings.json @@ -34,5 +34,33 @@ } } } + }, + "services": { + "set_datetime": { + "name": "Set", + "description": "Sets the date and/or time.", + "fields": { + "date": { + "name": "Date", + "description": "The target date." + }, + "time": { + "name": "Time", + "description": "The target time." + }, + "datetime": { + "name": "Date & time", + "description": "The target date & time." + }, + "timestamp": { + "name": "Timestamp", + "description": "The target date & time, expressed by a UNIX timestamp." + } + } + }, + "reload": { + "name": "Reload", + "description": "Reloads helpers from the YAML-configuration." + } } } diff --git a/homeassistant/components/input_number/services.yaml b/homeassistant/components/input_number/services.yaml index 41164a7ccf5..e5de48a1262 100644 --- a/homeassistant/components/input_number/services.yaml +++ b/homeassistant/components/input_number/services.yaml @@ -1,27 +1,19 @@ decrement: - name: Decrement - description: Decrement the value of an input number entity by its stepping. target: entity: domain: input_number increment: - name: Increment - description: Increment the value of an input number entity by its stepping. target: entity: domain: input_number set_value: - name: Set - description: Set the value of an input number entity. target: entity: domain: input_number fields: value: - name: Value - description: The target value the entity should be set to. required: true selector: number: @@ -31,5 +23,3 @@ set_value: mode: box reload: - name: Reload - description: Reload the input_number configuration. diff --git a/homeassistant/components/input_number/strings.json b/homeassistant/components/input_number/strings.json index 11ed2f8bf10..020544c5d4e 100644 --- a/homeassistant/components/input_number/strings.json +++ b/homeassistant/components/input_number/strings.json @@ -33,5 +33,29 @@ } } } + }, + "services": { + "decrement": { + "name": "Decrement", + "description": "Decrements the current value by 1 step." + }, + "increment": { + "name": "Increment", + "description": "Increments the value by 1 step." + }, + "set_value": { + "name": "Set", + "description": "Sets the value.", + "fields": { + "value": { + "name": "Value", + "description": "The target value." + } + } + }, + "reload": { + "name": "Reload", + "description": "Reloads helpers from the YAML-configuration." + } } } diff --git a/homeassistant/components/input_select/services.yaml b/homeassistant/components/input_select/services.yaml index 8b8828eaa92..92279e58a54 100644 --- a/homeassistant/components/input_select/services.yaml +++ b/homeassistant/components/input_select/services.yaml @@ -1,75 +1,53 @@ select_next: - name: Next - description: Select the next options of an input select entity. target: entity: domain: input_select fields: cycle: - name: Cycle - description: If the option should cycle from the last to the first. default: true selector: boolean: select_option: - name: Select - description: Select an option of an input select entity. target: entity: domain: input_select fields: option: - name: Option - description: Option to be selected. required: true example: '"Item A"' selector: text: select_previous: - name: Previous - description: Select the previous options of an input select entity. target: entity: domain: input_select fields: cycle: - name: Cycle - description: If the option should cycle from the first to the last. default: true selector: boolean: select_first: - name: First - description: Select the first option of an input select entity. target: entity: domain: input_select select_last: - name: Last - description: Select the last option of an input select entity. target: entity: domain: input_select set_options: - name: Set options - description: Set the options of an input select entity. target: entity: domain: input_select fields: options: - name: Options - description: Options for the input select entity. required: true example: '["Item A", "Item B", "Item C"]' selector: object: reload: - name: Reload - description: Reload the input_select configuration. diff --git a/homeassistant/components/input_select/strings.json b/homeassistant/components/input_select/strings.json index f0dead7a1dd..68970933346 100644 --- a/homeassistant/components/input_select/strings.json +++ b/homeassistant/components/input_select/strings.json @@ -16,5 +16,59 @@ } } } + }, + "services": { + "select_next": { + "name": "Next", + "description": "Select the next option.", + "fields": { + "cycle": { + "name": "Cycle", + "description": "If the option should cycle from the last to the first option on the list." + } + } + }, + "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": "[%key:component::input_select::services::select_next::fields::cycle::name%]", + "description": "[%key:component::input_select::services::select_next::fields::cycle::description%]" + } + } + }, + "select_first": { + "name": "First", + "description": "Selects the first option." + }, + "select_last": { + "name": "Last", + "description": "Selects the last option." + }, + "set_options": { + "name": "Set options", + "description": "Sets the options.", + "fields": { + "options": { + "name": "Options", + "description": "List of options." + } + } + }, + "reload": { + "name": "Reload", + "description": "Reloads helpers from the YAML-configuration." + } } } diff --git a/homeassistant/components/input_text/services.yaml b/homeassistant/components/input_text/services.yaml index cf19e15d7ae..6cb5c1352c6 100644 --- a/homeassistant/components/input_text/services.yaml +++ b/homeassistant/components/input_text/services.yaml @@ -1,18 +1,12 @@ set_value: - name: Set - description: Set the value of an input text entity. target: entity: domain: input_text fields: value: - name: Value - description: The target value the entity should be set to. required: true example: This is an example text selector: text: reload: - name: Reload - description: Reload the input_text configuration. diff --git a/homeassistant/components/input_text/strings.json b/homeassistant/components/input_text/strings.json index d713c395b67..a4dc6d929f5 100644 --- a/homeassistant/components/input_text/strings.json +++ b/homeassistant/components/input_text/strings.json @@ -29,5 +29,21 @@ } } } + }, + "services": { + "set_value": { + "name": "Set", + "description": "Sets the value.", + "fields": { + "value": { + "name": "Value", + "description": "The target value." + } + } + }, + "reload": { + "name": "Reload", + "description": "Reloads helpers from the YAML-configuration." + } } }