diff --git a/src/endpoints/handlers/bett.py b/src/endpoints/handlers/bett.py index 05732aa..2437376 100644 --- a/src/endpoints/handlers/bett.py +++ b/src/endpoints/handlers/bett.py @@ -25,11 +25,13 @@ current_scale_countdown: int = 0 average_person_weight: float = 75 +sexy_mode_detection: bool = False # Turn lights "sexy" if two people are in bed + is_warning_active: int = -1 leg_capacity_limit_patterns = [ # {"limit": 80, "pattern": 110, "duration": 250}, # {"limit": 90, "pattern": 110, "duration": 100}, - {"limit": 100, "pattern": 10, "duration": 50}, + # {"limit": 100, "pattern": 10, "duration": 50}, ] @@ -122,10 +124,11 @@ def check_for_change(): current_scale_countdown = 0 # Make room sexy - if number_of_people >= 2 and weight_increased: - hue.in_room_activate_scene("Max Zimmer", "Sexy") - elif number_of_people == 1 and not weight_increased: - hue.in_room_activate_scene("Max Zimmer", "Tageslicht") + if sexy_mode_detection: + if number_of_people >= 2 and weight_increased: + hue.in_room_activate_scene("Max Zimmer", "Sexy") + elif number_of_people == 1 and not weight_increased: + hue.in_room_activate_scene("Max Zimmer", "Tageslicht") def add_line_to_bed_history(line: str) -> None: