core/homeassistant/components/hassio/services.yaml

114 lines
2.5 KiB
YAML
Raw Normal View History

addon_start:
2021-02-24 16:02:48 +00:00
name: Start add-on
description: Start add-on.
fields:
addon:
2021-02-24 16:02:48 +00:00
name: Add-on
required: true
description: The add-on slug.
example: core_ssh
2021-02-24 16:02:48 +00:00
selector:
addon:
addon_restart:
2021-02-24 16:02:48 +00:00
name: Restart add-on.
description: Restart add-on.
fields:
addon:
2021-02-24 16:02:48 +00:00
name: Add-on
required: true
description: The add-on slug.
example: core_ssh
2021-02-24 16:02:48 +00:00
selector:
addon:
addon_stdin:
2021-02-24 16:02:48 +00:00
name: Write data to add-on stdin.
description: Write data to add-on stdin.
fields:
addon:
2021-02-24 16:02:48 +00:00
name: Add-on
required: true
description: The add-on slug.
example: core_ssh
2021-02-24 16:02:48 +00:00
selector:
addon:
addon_stop:
2021-02-24 16:02:48 +00:00
name: Stop add-on.
description: Stop add-on.
fields:
addon:
2021-02-24 16:02:48 +00:00
name: Add-on
required: true
description: The add-on slug.
example: core_ssh
2021-02-24 16:02:48 +00:00
selector:
addon:
Add hassio addon_update service and hassio config entry with addon and OS devices and entities (#46342) * add addon_update service, use config flow to set up config entry, create disabled sensors * move most of entity logic to common entity class, improve device info, get rid of config_flow user step * fix setup logic * additional refactor * fix refactored logic * fix config flow tests * add test for addon_update service and get_addons_info * add entry setup and unload test and fix update coordinator * handle if entry setup calls unload * return nothing for coordinator if entry is being reloaded because coordinator will get recreated anyway * remove entry when HA instance is no longer hassio and add corresponding test * handle adding and removing device registry entries * better config entry reload logic * fix comment * bugfix * fix flake error * switch pass to return * use repository attribute for model and fallback to url * use custom 'system' source since hassio source is misleading * Update homeassistant/components/hassio/entity.py Co-authored-by: Franck Nijhof <frenck@frenck.nl> * update remove addons function name * Update homeassistant/components/hassio/__init__.py Co-authored-by: Franck Nijhof <frenck@frenck.nl> * fix import * pop coordinator after unload * additional fixes * always pass in sensor name when creating entity * prefix one more function with async and fix tests * use supervisor info for addons since list is already filtered on what's installed * remove unused service * update sensor names * remove added handler function * use walrus * add OS device and sensors * fix * re-add addon_update service schema * add more test coverage and exclude entities from tests * check if instance is using hass OS in order to create OS entities Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-03-01 08:41:04 +00:00
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:
2021-02-24 16:02:48 +00:00
name: Reboot the host system.
description: Reboot the host system.
host_shutdown:
2021-02-24 16:02:48 +00:00
name: Poweroff the host system.
description: Poweroff the host system.
snapshot_full:
2021-02-24 16:02:48 +00:00
name: Create a full snapshot.
description: Create a full snapshot.
fields:
name:
2021-02-24 16:02:48 +00:00
name: Name
description: Optional or it will be the current date and time.
example: "Snapshot 1"
2021-02-24 16:02:48 +00:00
selector:
text:
password:
2021-02-24 16:02:48 +00:00
name: Password
description: Optional password.
example: "password"
2021-02-24 16:02:48 +00:00
selector:
text:
snapshot_partial:
2021-02-24 16:02:48 +00:00
name: Create a partial snapshot.
description: Create a partial snapshot.
fields:
addons:
2021-02-24 16:02:48 +00:00
name: Add-ons
description: Optional list of addon slugs.
example: ["core_ssh", "core_samba", "core_mosquitto"]
2021-02-24 16:02:48 +00:00
selector:
object:
folders:
2021-02-24 16:02:48 +00:00
name: Folders
description: Optional list of directories.
example: ["homeassistant", "share"]
2021-02-24 16:02:48 +00:00
selector:
object:
name:
2021-02-24 16:02:48 +00:00
name: Name
description: Optional or it will be the current date and time.
example: "Partial Snapshot 1"
2021-02-24 16:02:48 +00:00
selector:
text:
password:
2021-02-24 16:02:48 +00:00
name: Password
description: Optional password.
example: "password"
2021-02-24 16:02:48 +00:00
selector:
text: