Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Timer services so that YAML configuration is not required #114

Merged
merged 3 commits into from
Jan 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 13 additions & 8 deletions custom_components/dyson_local/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,18 @@ set_angle:

set_timer:
name: Set Timer
description: Set the sleep timer.
description: Sets, or clears, the timer of a fan (in minutes).
target:
entity:
domain: fan
fields:
entity_id:
name: Entity ID
description: Name(s) of the entities to set the sleep timer for
example: "fan.living_room"
timer:
name: Timer
description: The value in minutes to set the timer to, 0 to disable it
example: 30
name: Minutes
description: How many minutes the timer should run for. Set to 0 to disable timer.
selector:
number:
min: 0
max: 540
step: 1
unit_of_measurement: "minutes"
required: true
Loading