A device in Home Assistant represents a physical device in your home but can also represent a web service, like one that provides weather information. Devices are logical grouping for entities. Spook provides you with a few services to manage devices.
ServicesΒΆ
The following device management services are added to your Home Assistant instance:
Disable a deviceΒΆ
This service allows you to disable a device on the fly.
Service properties | |
---|---|
Service | Disable a device π» |
Service name | homeassistant.disable_device |
Service targets | No |
Service response | No response |
Spook's influence | Newly added service. |
Developer tools | Try this service |
Service call data | |||
---|---|---|---|
Attribute | Type | Required | Default / Example |
device_id | string | list of strings | Yes | dc23e666e6100f184e642a0ac345d3eb |
Finding a device ID
Not sure what the device_id
of an your device is? There are a few ways to find it:
Use this service in the developer tools, in the UI select the device you want to add and select the Go to YAML mode button. This will show you the device ID in the YAML code.
Alternatively, you can visit the device page in the UI and look at the URL. The device ID is the last part of the URL, and will look something like this: dc23e666e6100f184e642a0ac345d3eb
.
Example service call in YAML
1 2 3
service: homeassistant.disable_device data: device_id: "dc23e666e6100f184e642a0ac345d3eb"
Or multiple devices at once:
1 2 3 4 5
service: homeassistant.disable_device data: device_id: - "dc23e666e6100f184e642a0ac345d3eb" - "df98a97c9341a0f184e642a0ac345d3b"
Enable a deviceΒΆ
This service allows you to enable a device on the fly.
Service properties | |
---|---|
Service | Enable a device π» |
Service name | homeassistant.enable_device |
Service targets | No |
Service response | No response |
Spook's influence | Newly added service. |
Developer tools | Try this service |
Service call data | |||
---|---|---|---|
Attribute | Type | Required | Default / Example |
device_id | string | list of strings | Yes | dc23e666e6100f184e642a0ac345d3eb |
Finding a device ID
Not sure what the device_id
of an your device is? There are a few ways to find it:
Use this service in the developer tools, in the UI select the device you want to add and select the Go to YAML mode button. This will show you the device ID in the YAML code.
Alternatively, you can visit the device page in the UI and look at the URL. The device ID is the last part of the URL, and will look something like this: dc23e666e6100f184e642a0ac345d3eb
.
Example service call in YAML
1 2 3
service: homeassistant.enable_device data: device_id: "dc23e666e6100f184e642a0ac345d3eb"
Or multiple devices at once:
1 2 3 4 5
service: homeassistant.enable_device data: device_id: - "dc23e666e6100f184e642a0ac345d3eb" - "df98a97c9341a0f184e642a0ac345d3b"
Blueprints & tutorialsΒΆ
There are currently no known blueprints or tutorials for the enhancements Spook provides for these features. If you created one or stumbled upon one, please let us know in our discussion forums.
Features requests, ideas, and supportΒΆ
If you have an idea on how to further enhance this, for example, by adding a new service, entity, or repairs detection; feel free to let us know in our discussion forums.
Are you stuck using these new features? Or maybe youβve run into a bug? Please check the page on where to go for help.