Migrate hassio services to support translations (#96386)
Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>pull/96480/head
parent
ce5246a8cd
commit
22b23b2c34
|
@ -1,193 +1,123 @@
|
|||
addon_start:
|
||||
name: Start add-on
|
||||
description: Start add-on.
|
||||
fields:
|
||||
addon:
|
||||
name: Add-on
|
||||
required: true
|
||||
description: The add-on slug.
|
||||
example: core_ssh
|
||||
selector:
|
||||
addon:
|
||||
|
||||
addon_restart:
|
||||
name: Restart add-on.
|
||||
description: Restart add-on.
|
||||
fields:
|
||||
addon:
|
||||
name: Add-on
|
||||
required: true
|
||||
description: The add-on slug.
|
||||
example: core_ssh
|
||||
selector:
|
||||
addon:
|
||||
|
||||
addon_stdin:
|
||||
name: Write data to add-on stdin.
|
||||
description: Write data to add-on stdin.
|
||||
fields:
|
||||
addon:
|
||||
name: Add-on
|
||||
required: true
|
||||
description: The add-on slug.
|
||||
example: core_ssh
|
||||
selector:
|
||||
addon:
|
||||
|
||||
addon_stop:
|
||||
name: Stop add-on.
|
||||
description: Stop add-on.
|
||||
fields:
|
||||
addon:
|
||||
name: Add-on
|
||||
required: true
|
||||
description: The add-on slug.
|
||||
example: core_ssh
|
||||
selector:
|
||||
addon:
|
||||
|
||||
addon_update:
|
||||
name: Update add-on.
|
||||
description: Update add-on. This service should be used with caution since add-on updates can contain breaking changes. It is highly recommended that you review release notes/change logs before updating an add-on.
|
||||
fields:
|
||||
addon:
|
||||
name: Add-on
|
||||
required: true
|
||||
description: The add-on slug.
|
||||
example: core_ssh
|
||||
selector:
|
||||
addon:
|
||||
|
||||
host_reboot:
|
||||
name: Reboot the host system.
|
||||
description: Reboot the host system.
|
||||
|
||||
host_shutdown:
|
||||
name: Poweroff the host system.
|
||||
description: Poweroff the host system.
|
||||
|
||||
backup_full:
|
||||
name: Create a full backup.
|
||||
description: Create a full backup.
|
||||
fields:
|
||||
name:
|
||||
name: Name
|
||||
description: Optional (default = current date and time).
|
||||
example: "Backup 1"
|
||||
selector:
|
||||
text:
|
||||
password:
|
||||
name: Password
|
||||
description: Optional password.
|
||||
example: "password"
|
||||
selector:
|
||||
text:
|
||||
compressed:
|
||||
name: Compressed
|
||||
description: Use compressed archives
|
||||
default: true
|
||||
selector:
|
||||
boolean:
|
||||
location:
|
||||
name: Location
|
||||
description: Name of a backup network storage to put backup (or /backup)
|
||||
example: my_backup_mount
|
||||
selector:
|
||||
backup_location:
|
||||
|
||||
backup_partial:
|
||||
name: Create a partial backup.
|
||||
description: Create a partial backup.
|
||||
fields:
|
||||
homeassistant:
|
||||
name: Home Assistant settings
|
||||
description: Backup Home Assistant settings
|
||||
selector:
|
||||
boolean:
|
||||
addons:
|
||||
name: Add-ons
|
||||
description: Optional list of add-on slugs.
|
||||
example: ["core_ssh", "core_samba", "core_mosquitto"]
|
||||
selector:
|
||||
object:
|
||||
folders:
|
||||
name: Folders
|
||||
description: Optional list of directories.
|
||||
example: ["homeassistant", "share"]
|
||||
selector:
|
||||
object:
|
||||
name:
|
||||
name: Name
|
||||
description: Optional (default = current date and time).
|
||||
example: "Partial backup 1"
|
||||
selector:
|
||||
text:
|
||||
password:
|
||||
name: Password
|
||||
description: Optional password.
|
||||
example: "password"
|
||||
selector:
|
||||
text:
|
||||
compressed:
|
||||
name: Compressed
|
||||
description: Use compressed archives
|
||||
default: true
|
||||
selector:
|
||||
boolean:
|
||||
location:
|
||||
name: Location
|
||||
description: Name of a backup network storage to put backup (or /backup)
|
||||
example: my_backup_mount
|
||||
selector:
|
||||
backup_location:
|
||||
|
||||
restore_full:
|
||||
name: Restore from full backup.
|
||||
description: Restore from full backup.
|
||||
fields:
|
||||
slug:
|
||||
name: Slug
|
||||
required: true
|
||||
description: Slug of backup to restore from.
|
||||
selector:
|
||||
text:
|
||||
password:
|
||||
name: Password
|
||||
description: Optional password.
|
||||
example: "password"
|
||||
selector:
|
||||
text:
|
||||
|
||||
restore_partial:
|
||||
name: Restore from partial backup.
|
||||
description: Restore from partial backup.
|
||||
fields:
|
||||
slug:
|
||||
name: Slug
|
||||
required: true
|
||||
description: Slug of backup to restore from.
|
||||
selector:
|
||||
text:
|
||||
homeassistant:
|
||||
name: Home Assistant settings
|
||||
description: Restore Home Assistant
|
||||
selector:
|
||||
boolean:
|
||||
folders:
|
||||
name: Folders
|
||||
description: Optional list of directories.
|
||||
example: ["homeassistant", "share"]
|
||||
selector:
|
||||
object:
|
||||
addons:
|
||||
name: Add-ons
|
||||
description: Optional list of add-on slugs.
|
||||
example: ["core_ssh", "core_samba", "core_mosquitto"]
|
||||
selector:
|
||||
object:
|
||||
password:
|
||||
name: Password
|
||||
description: Optional password.
|
||||
example: "password"
|
||||
selector:
|
||||
text:
|
||||
|
|
|
@ -184,18 +184,194 @@
|
|||
},
|
||||
"entity": {
|
||||
"binary_sensor": {
|
||||
"state": { "name": "Running" }
|
||||
"state": {
|
||||
"name": "Running"
|
||||
}
|
||||
},
|
||||
"sensor": {
|
||||
"agent_version": { "name": "OS Agent version" },
|
||||
"apparmor_version": { "name": "Apparmor version" },
|
||||
"cpu_percent": { "name": "CPU percent" },
|
||||
"disk_free": { "name": "Disk free" },
|
||||
"disk_total": { "name": "Disk total" },
|
||||
"disk_used": { "name": "Disk used" },
|
||||
"memory_percent": { "name": "Memory percent" },
|
||||
"version": { "name": "Version" },
|
||||
"version_latest": { "name": "Newest version" }
|
||||
"agent_version": {
|
||||
"name": "OS Agent version"
|
||||
},
|
||||
"apparmor_version": {
|
||||
"name": "Apparmor version"
|
||||
},
|
||||
"cpu_percent": {
|
||||
"name": "CPU percent"
|
||||
},
|
||||
"disk_free": {
|
||||
"name": "Disk free"
|
||||
},
|
||||
"disk_total": {
|
||||
"name": "Disk total"
|
||||
},
|
||||
"disk_used": {
|
||||
"name": "Disk used"
|
||||
},
|
||||
"memory_percent": {
|
||||
"name": "Memory percent"
|
||||
},
|
||||
"version": {
|
||||
"name": "Version"
|
||||
},
|
||||
"version_latest": {
|
||||
"name": "Newest version"
|
||||
}
|
||||
}
|
||||
},
|
||||
"services": {
|
||||
"addon_start": {
|
||||
"name": "Start add-on",
|
||||
"description": "Starts an add-on.",
|
||||
"fields": {
|
||||
"addon": {
|
||||
"name": "Add-on",
|
||||
"description": "The add-on slug."
|
||||
}
|
||||
}
|
||||
},
|
||||
"addon_restart": {
|
||||
"name": "Restart add-on.",
|
||||
"description": "Restarts an add-on.",
|
||||
"fields": {
|
||||
"addon": {
|
||||
"name": "[%key:component::hassio::services::addon_start::fields::addon::name%]",
|
||||
"description": "[%key:component::hassio::services::addon_start::fields::addon::description%]"
|
||||
}
|
||||
}
|
||||
},
|
||||
"addon_stdin": {
|
||||
"name": "Write data to add-on stdin.",
|
||||
"description": "Writes data to add-on stdin.",
|
||||
"fields": {
|
||||
"addon": {
|
||||
"name": "[%key:component::hassio::services::addon_start::fields::addon::name%]",
|
||||
"description": "[%key:component::hassio::services::addon_start::fields::addon::description%]"
|
||||
}
|
||||
}
|
||||
},
|
||||
"addon_stop": {
|
||||
"name": "Stop add-on.",
|
||||
"description": "Stops an add-on.",
|
||||
"fields": {
|
||||
"addon": {
|
||||
"name": "[%key:component::hassio::services::addon_start::fields::addon::name%]",
|
||||
"description": "[%key:component::hassio::services::addon_start::fields::addon::description%]"
|
||||
}
|
||||
}
|
||||
},
|
||||
"addon_update": {
|
||||
"name": "Update add-on.",
|
||||
"description": "Updates an add-on. This service should be used with caution since add-on updates can contain breaking changes. It is highly recommended that you review release notes/change logs before updating an add-on.",
|
||||
"fields": {
|
||||
"addon": {
|
||||
"name": "[%key:component::hassio::services::addon_start::fields::addon::name%]",
|
||||
"description": "[%key:component::hassio::services::addon_start::fields::addon::description%]"
|
||||
}
|
||||
}
|
||||
},
|
||||
"host_reboot": {
|
||||
"name": "Reboot the host system.",
|
||||
"description": "Reboots the host system."
|
||||
},
|
||||
"host_shutdown": {
|
||||
"name": "Power off the host system.",
|
||||
"description": "Powers off the host system."
|
||||
},
|
||||
"backup_full": {
|
||||
"name": "Create a full backup.",
|
||||
"description": "Creates a full backup.",
|
||||
"fields": {
|
||||
"name": {
|
||||
"name": "Name",
|
||||
"description": "Optional (default = current date and time)."
|
||||
},
|
||||
"password": {
|
||||
"name": "Password",
|
||||
"description": "Password to protect the backup with."
|
||||
},
|
||||
"compressed": {
|
||||
"name": "Compressed",
|
||||
"description": "Compresses the backup files."
|
||||
},
|
||||
"location": {
|
||||
"name": "Location",
|
||||
"description": "Name of a backup network storage to host backups."
|
||||
}
|
||||
}
|
||||
},
|
||||
"backup_partial": {
|
||||
"name": "Create a partial backup.",
|
||||
"description": "Creates a partial backup.",
|
||||
"fields": {
|
||||
"homeassistant": {
|
||||
"name": "Home Assistant settings",
|
||||
"description": "Includes Home Assistant settings in the backup."
|
||||
},
|
||||
"addons": {
|
||||
"name": "Add-ons",
|
||||
"description": "List of add-ons to include in the backup. Use the name slug of the add-on."
|
||||
},
|
||||
"folders": {
|
||||
"name": "Folders",
|
||||
"description": "List of directories to include in the backup."
|
||||
},
|
||||
"name": {
|
||||
"name": "[%key:component::hassio::services::backup_full::fields::name::name%]",
|
||||
"description": "[%key:component::hassio::services::backup_full::fields::name::description%]"
|
||||
},
|
||||
"password": {
|
||||
"name": "[%key:component::hassio::services::backup_full::fields::password::name%]",
|
||||
"description": "[%key:component::hassio::services::backup_full::fields::password::description%]"
|
||||
},
|
||||
"compressed": {
|
||||
"name": "[%key:component::hassio::services::backup_full::fields::compressed::name%]",
|
||||
"description": "[%key:component::hassio::services::backup_full::fields::compressed::description%]"
|
||||
},
|
||||
"location": {
|
||||
"name": "[%key:component::hassio::services::backup_full::fields::location::name%]",
|
||||
"description": "[%key:component::hassio::services::backup_full::fields::location::description%]"
|
||||
}
|
||||
}
|
||||
},
|
||||
"restore_full": {
|
||||
"name": "Restore from full backup.",
|
||||
"description": "Restores from full backup.",
|
||||
"fields": {
|
||||
"slug": {
|
||||
"name": "Slug",
|
||||
"description": "Slug of backup to restore from."
|
||||
},
|
||||
"password": {
|
||||
"name": "[%key:component::hassio::services::backup_full::fields::password::name%]",
|
||||
"description": "Optional password."
|
||||
}
|
||||
}
|
||||
},
|
||||
"restore_partial": {
|
||||
"name": "Restore from partial backup.",
|
||||
"description": "Restores from a partial backup.",
|
||||
"fields": {
|
||||
"slug": {
|
||||
"name": "[%key:component::hassio::services::restore_full::fields::slug::name%]",
|
||||
"description": "[%key:component::hassio::services::restore_full::fields::slug::description%]"
|
||||
},
|
||||
"homeassistant": {
|
||||
"name": "[%key:component::hassio::services::backup_partial::fields::homeassistant::name%]",
|
||||
"description": "Restores Home Assistant."
|
||||
},
|
||||
"folders": {
|
||||
"name": "[%key:component::hassio::services::backup_partial::fields::folders::name%]",
|
||||
"description": "[%key:component::hassio::services::backup_partial::fields::folders::description%]"
|
||||
},
|
||||
"addons": {
|
||||
"name": "[%key:component::hassio::services::backup_partial::fields::addons::name%]",
|
||||
"description": "[%key:component::hassio::services::backup_partial::fields::addons::description%]"
|
||||
},
|
||||
"password": {
|
||||
"name": "[%key:component::hassio::services::backup_full::fields::password::name%]",
|
||||
"description": "[%key:component::hassio::services::restore_full::fields::password::description%]"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue