Skip to content

Commit

Permalink
Update Timer services so that YAML configuration is not required (#114)
Browse files Browse the repository at this point in the history
* Update Timer services so that YAML configuration is not required

* Update services.yaml to fix linting error

* Update services.yaml to fix second linting issue
  • Loading branch information
codyc1515 authored Jan 10, 2024
1 parent 5258546 commit d67e4f5
Showing 1 changed file with 13 additions and 8 deletions.
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

0 comments on commit d67e4f5

Please sign in to comment.