changed t oon

This commit is contained in:
Jelle Jansen 2024-12-19 00:32:02 +01:00
parent cab9a330ac
commit 5567a7bcdd
2 changed files with 42 additions and 42 deletions

@ -166,7 +166,7 @@ action:
- choose:
- conditions:
- condition: template
value_template: "{{ state_attr(_bb_child_last_timer, 'active') }}"
value_template: "{{ state_attr(_bb_child_last_timer, 'on') }}"
sequence:
- service: babybuddy.add_feeding
data:

@ -165,47 +165,47 @@ action:
data: {}
target:
entity_id: !input diaper_counter
- conditions:
- condition: trigger
id: voeding-log
sequence:
- choose:
- conditions:
- condition: template
value_template: "{{ state_attr(_bb_child_last_timer, 'active') }}"
sequence:
- service: babybuddy.add_feeding
data:
timer: true
type: "{{ states('select.baby_buddy_feeding_type') }}"
method: "{{ states('select.baby_buddy_feeding_method') }}"
amount: "{{ states(_bb_amount) }}"
notes: "{{ states(_bb_notes) }}"
target:
entity_id: !input bb_timer
default:
- service: babybuddy.add_feeding
data:
type: "{{ states('select.baby_buddy_feeding_type') }}"
method: "{{ states('select.baby_buddy_feeding_method') }}"
amount: "{{ states(_bb_amount) }}"
notes: "{{ states(_bb_notes) }}"
target:
entity_id: !input bb_timer
- service: input_text.set_value
data:
value: ""
target:
entity_id: !input bb_notes
- service: input_number.set_value
data:
value: 1
target:
entity_id: !input bb_amount
- service: counter.increment
data: {}
target:
entity_id: !input feeding_counter
- conditions:
- condition: trigger
id: voeding-log
sequence:
- choose:
- conditions:
- condition: template
value_template: "{{ state_attr(_bb_child_last_timer, 'active') }}"
sequence:
- service: babybuddy.add_feeding
data:
timer: true
type: "{{ states('select.baby_buddy_feeding_type') }}"
method: "{{ states('select.baby_buddy_feeding_method') }}"
amount: "{{ states(_bb_amount) }}"
notes: "{{ states(_bb_notes) }}"
target:
entity_id: !input bb_timer
default:
- service: babybuddy.add_feeding
data:
type: "{{ states('select.baby_buddy_feeding_type') }}"
method: "{{ states('select.baby_buddy_feeding_method') }}"
amount: "{{ states(_bb_amount) }}"
notes: "{{ states(_bb_notes) }}"
target:
entity_id: !input bb_timer
- service: input_text.set_value
data:
value: ""
target:
entity_id: !input bb_notes
- service: input_number.set_value
data:
value: 1
target:
entity_id: !input bb_amount
- service: counter.increment
data: {}
target:
entity_id: !input feeding_counter
- conditions:
- condition: trigger
id: kolf-log