Skip to content

Commit

Permalink
feat: Add examples to services.yaml
Browse files Browse the repository at this point in the history
Co-authored-by: jcgoette <[email protected]>
Co-authored-by: Justin Goette <[email protected]>
  • Loading branch information
3 people committed Jun 20, 2022
1 parent 2293a6c commit 25d0eb3
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions custom_components/babybuddy/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ add_bmi:
bmi:
name: BMI
description: BMI value
example: 5.0
required: true
selector:
number:
Expand All @@ -20,11 +21,13 @@ add_bmi:
date:
name: BMI date
description: BMI date in YYYY-MM-DD format
example: "2022-06-20"
selector:
text:
notes:
name: BMI notes
description: BMI notes
example: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur et blandit elit. Duis in varius eros. Morbi eleifend, nulla a.
selector:
text:
multiline: true
Expand All @@ -36,18 +39,21 @@ add_child:
first_name:
name: First Name
description: Child's first name
example: Little
required: true
selector:
text:
last_name:
name: Last Name
description: Child's last name
example: Girl
required: true
selector:
text:
birth_date:
name: Birth Date
description: Child's birth date in YYYY-MM-DD format
example: "2022-06-20"
required: true
selector:
text:
Expand All @@ -64,11 +70,13 @@ add_diaper_change:
time:
name: Change time
description: Change time
example: 15:00:00
selector:
time:
type:
name: Diaper type
description: Type of diaper change
example: Wet
selector:
select:
options:
Expand All @@ -78,6 +86,7 @@ add_diaper_change:
color:
name: Diaper color
description: Diaper color
example: Black
selector:
select:
options:
Expand All @@ -88,6 +97,7 @@ add_diaper_change:
amount:
name: Diaper change amount
description: Diaper change amount
example: 5
selector:
number:
min: 1
Expand All @@ -96,6 +106,7 @@ add_diaper_change:
notes:
name: Change notes
description: Change notes
example: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur et blandit elit. Duis in varius eros. Morbi eleifend, nulla a.
selector:
text:
multiline: true
Expand All @@ -111,21 +122,25 @@ add_feeding:
timer:
name: Use timer
description: Use active timer to assign child/start/end
example: false
selector:
boolean:
start:
name: Feeding start time
description: Feeding start time
example: 15:00:00
selector:
time:
end:
name: Feeding end time
description: Feeding end time
example: 15:10:00
selector:
time:
type:
name: Feeding type
description: Feeding type
example: Breast milk
required: true
selector:
select:
Expand All @@ -137,6 +152,7 @@ add_feeding:
method:
name: Feeding method
description: Feeding method
example: Bottle
required: true
selector:
select:
Expand All @@ -150,6 +166,7 @@ add_feeding:
amount:
name: Feeding amount
description: Feeding amount in number format
example: 1
selector:
number:
min: 1
Expand All @@ -158,6 +175,7 @@ add_feeding:
notes:
name: Feeding notes
description: Feeding notes
example: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur et blandit elit. Duis in varius eros. Morbi eleifend, nulla a.
selector:
text:
multiline: true
Expand All @@ -174,6 +192,7 @@ add_head_circumference:
head_circumference:
name: Head Circumference
description: Head circumference value
example: 5.0
required: true
selector:
number:
Expand All @@ -184,11 +203,13 @@ add_head_circumference:
date:
name: Head circumference date
description: Head circumference date in YYYY-MM-DD format
example: "2022-06-20"
selector:
text:
notes:
name: Head circumference notes
description: Head circumference notes
example: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur et blandit elit. Duis in varius eros. Morbi eleifend, nulla a.
selector:
text:
multiline: true
Expand All @@ -205,6 +226,7 @@ add_height:
height:
name: Height
description: Height value
example: 5.0
required: true
selector:
number:
Expand All @@ -215,11 +237,13 @@ add_height:
date:
name: Height date
description: Height date in YYYY-MM-DD format
example: "2022-06-20"
selector:
text:
notes:
name: Height notes
description: Height notes
example: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur et blandit elit. Duis in varius eros. Morbi eleifend, nulla a.
selector:
text:
multiline: true
Expand All @@ -236,13 +260,15 @@ add_note:
note:
name: Note
description: Note text
example: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur et blandit elit. Duis in varius eros. Morbi eleifend, nulla a.
required: true
selector:
text:
multiline: true
time:
name: Note time
description: Note time
example: 15:00:00
selector:
time:

Expand All @@ -258,6 +284,7 @@ add_pumping:
amount:
name: Pumping amount
description: Pumping amount
example: 1
selector:
number:
min: 1
Expand All @@ -266,11 +293,13 @@ add_pumping:
time:
name: Pumping time
description: Pumping time
example: 15:00:00
selector:
time:
notes:
name: Pumping notes
description: Pumping notes
example: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur et blandit elit. Duis in varius eros. Morbi eleifend, nulla a.
selector:
text:
multiline: true
Expand All @@ -286,21 +315,25 @@ add_sleep:
timer:
name: Use timer
description: Use active timer to assign child/start/end
example: false
selector:
boolean:
start:
name: Sleep start time
description: Sleep start time
example: 15:00:00
selector:
time:
end:
name: Sleep end time
description: Sleep end time
example: 15:10:00
selector:
time:
notes:
name: Sleep notes
description: Sleep notes
example: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur et blandit elit. Duis in varius eros. Morbi eleifend, nulla a.
selector:
text:
multiline: true
Expand All @@ -317,6 +350,7 @@ add_temperature:
temperature:
name: Temperature
description: Temperature
example: 37.0
required: true
selector:
number:
Expand All @@ -327,11 +361,13 @@ add_temperature:
time:
name: Temperature time
description: Temperature time
example: 15:00:00
selector:
time:
notes:
name: Temperature notes
description: Temperature notes
example: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur et blandit elit. Duis in varius eros. Morbi eleifend, nulla a.
selector:
text:
multiline: true
Expand All @@ -347,21 +383,25 @@ add_tummy_time:
timer:
name: Use timer
description: Use active timer to assign child/start/end
example: false
selector:
boolean:
start:
name: Tummy Time start time
description: Tummy Time start time
example: 15:00:00
selector:
time:
end:
name: Tummy Time end time
description: Tummy Time end time
example: 15:10:00
selector:
time:
milestone:
name: Tummy Time milestone
description: Tummy Time milestone
example: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur et blandit elit. Duis in varius eros. Morbi eleifend, nulla a.
selector:
text:
multiline: true
Expand All @@ -378,6 +418,7 @@ add_weight:
weight:
name: Weight
description: Weight value
example: 5.0
required: true
selector:
number:
Expand All @@ -388,11 +429,13 @@ add_weight:
date:
name: Weight date
description: Weight date in YYYY-MM-DD format
example: "2022-06-20"
selector:
text:
notes:
name: Weight notes
description: Weight notes
example: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur et blandit elit. Duis in varius eros. Morbi eleifend, nulla a.
selector:
text:
multiline: true
Expand All @@ -416,10 +459,12 @@ start_timer:
start:
name: Timer start time
description: Leave blank for a quick start
example: 15:00:00
selector:
time:
name:
name: Timer name
description: Specify optional timer name
example: Timer name
selector:
text:

0 comments on commit 25d0eb3

Please sign in to comment.