Skip to content

Commit

Permalink
Update rabbit-hutch.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
crjeder authored Oct 17, 2024
1 parent 5069f8f commit 707d9ed
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions rabbit-hutch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ globals:
number:
- platform: template
id: nr_inhabitants
initial_value: nr_rabits
# min_value: -1.0
initial_value: 4
min_value: 0.0
# max_value: !lambda |-
# return id(nr_rabbits).state + 1.0;
step: 1.0
Expand All @@ -63,10 +63,10 @@ number:
then:
- logger.log: value changed
- if:
condition: !lambda |-
return (x > float(id.nr_rabits.state) || x < 0);
then:
- state_machine.transition: ERROR
condition: !lambda |-
return (x > float(id.nr_rabits.state) || x < 0);
then:
- state_machine.transition: ERROR

state_machine:
- name: Rabit hutch as state machine
Expand Down

0 comments on commit 707d9ed

Please sign in to comment.