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 actions to manage devices.
ActionsΒΆ
The following device management actions are added to your Home Assistant instance:
Disable a deviceΒΆ
This action allows you to disable a device on the fly.
Action properties | |
---|---|
Action | Disable a device π» |
Action name | homeassistant.disable_device |
Action targets | No |
Action response | No response |
Spook's influence | Newly added action. |
Developer tools | Try this action |
Action data parameters | |||
---|---|---|---|
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 action 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
.
1 2 3
action: homeassistant.disable_device data: device_id: "dc23e666e6100f184e642a0ac345d3eb"
Or multiple devices at once:
1 2 3 4 5
action: homeassistant.disable_device data: device_id: - "dc23e666e6100f184e642a0ac345d3eb" - "df98a97c9341a0f184e642a0ac345d3b"
Enable a deviceΒΆ
This action allows you to enable a device on the fly.
Action properties | |
---|---|
Action | Enable a device π» |
Action name | homeassistant.enable_device |
Action targets | No |
Action response | No response |
Spook's influence | Newly added action. |
Developer tools | Try this action |
Action data parameters | |||
---|---|---|---|
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 action 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
.
1 2 3
action: homeassistant.enable_device data: device_id: "dc23e666e6100f184e642a0ac345d3eb"
Or multiple devices at once:
1 2 3 4 5
action: 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.