Fan
The fan integration is how Home Assistant controls ceiling fans, bathroom fans and air purifiers.
Home Assistant can turn a fan on or off, but not for a while. Spook adds that, with a time that survives a restart.
Actions
Spook adds two actions for fans. You find them wherever you add an action, marked with a 👻.
Turn on for
Turns fans on for a while, and turns them back off when the time is up. Spook stores when each one is due back, so a restart of Home Assistant in between does not stop that.
It is Turn on for, with the same rules, for fans only. Named outright, anything that is not a fan is refused with an error. Picked up through an area, a device, a floor, a label or a group, it is passed over.
How to use it
- Open the automation or script that should do this, and select Add action.
- Search for turn on for, and select Fan: Turn on for 👻.
- Under Targets, choose the fans, or a whole area.
- Set Duration to how long they should stay on, like
00:15:00for fifteen minutes. - Select Save.
Just want to see it work? Try this action opens it in your Home Assistant, ready to run once.
| Action properties | |
|---|---|
| Action | Fan: Turn on for 👻 |
| Action name | fan.turn_on_for |
| Action targets | Yes, fan entities |
| Action response | No response |
| Spook's influence | Newly added action |
| Tools | Try this action |
| Action data parameters | |||
|---|---|---|---|
| Attribute | Type | Required | Default / Example |
duration | string | Yes | 00:15:00 |
The bathroom fan, for fifteen minutes:
action: fan.turn_on_for
target:
entity_id: fan.bathroom
data:
duration: "00:15:00"
- The rules of Turn on for apply: only something plainly
onoroffis held. Something already on is left alone, and turning it off yourself ends the hold. - A fan that cannot be turned both on and off is refused when named, and passed over in an area. There would be no way back.
- Spook turns a fan on with
fan.turn_onand nothing else, so its speed is up to the fan.
Turn off for
Turns fans off for a while, and turns them back on when the time is up. Spook stores when each one is due back, so a restart of Home Assistant in between does not stop that.
It is Turn off for, with the same rules, for fans only. Named outright, anything that is not a fan is refused with an error. Picked up through an area, a device, a floor, a label or a group, it is passed over.
How to use it
- Open the automation or script that should do this, and select Add action.
- Search for turn off for, and select Fan: Turn off for 👻.
- Under Targets, choose the fans, or a whole area.
- Set Duration to how long they should stay off, like
00:30:00for half an hour. - Select Save.
Just want to see it work? Try this action opens it in your Home Assistant, ready to run once.
| Action properties | |
|---|---|
| Action | Fan: Turn off for 👻 |
| Action name | fan.turn_off_for |
| Action targets | Yes, fan entities |
| Action response | No response |
| Spook's influence | Newly added action |
| Tools | Try this action |
| Action data parameters | |||
|---|---|---|---|
| Attribute | Type | Required | Default / Example |
duration | string | Yes | 00:30:00 |
The bedroom fan, off for half an hour:
action: fan.turn_off_for
target:
entity_id: fan.bedroom
data:
duration:
minutes: 30
- The rules of Turn off for apply: only something plainly
onoroffis held. Something already off is left alone, and turning it on yourself ends the hold. - A fan that cannot be turned both on and off is refused when named, and passed over in an area. There would be no way back.
- Spook turns a fan back on with
fan.turn_onand nothing else, so its speed is up to the fan.
Missing something here?
An action, an entity or a repair this integration should have? Say so. Stuck, or found a bug? There is help.
Themes
Spook brings its own themes to Home Assistant, in light and dark, including high contrast, colour blind, dimmed, midnight, classic, neon and seasonal ones. Install Spook, pick one in your profile, done. No YAML.
Remote
Spook adds actions that turn a remote in Home Assistant on or off for a while, and back when the time is up, also across a restart.
