Implemented sexy mode flag

This commit is contained in:
Maximilian Giller 2024-06-07 23:32:56 +02:00
parent 41073fce50
commit 679a6c2e25

View file

@ -25,11 +25,13 @@ current_scale_countdown: int = 0
average_person_weight: float = 75 average_person_weight: float = 75
sexy_mode_detection: bool = False # Turn lights "sexy" if two people are in bed
is_warning_active: int = -1 is_warning_active: int = -1
leg_capacity_limit_patterns = [ leg_capacity_limit_patterns = [
# {"limit": 80, "pattern": 110, "duration": 250}, # {"limit": 80, "pattern": 110, "duration": 250},
# {"limit": 90, "pattern": 110, "duration": 100}, # {"limit": 90, "pattern": 110, "duration": 100},
{"limit": 100, "pattern": 10, "duration": 50}, # {"limit": 100, "pattern": 10, "duration": 50},
] ]
@ -122,6 +124,7 @@ def check_for_change():
current_scale_countdown = 0 current_scale_countdown = 0
# Make room sexy # Make room sexy
if sexy_mode_detection:
if number_of_people >= 2 and weight_increased: if number_of_people >= 2 and weight_increased:
hue.in_room_activate_scene("Max Zimmer", "Sexy") hue.in_room_activate_scene("Max Zimmer", "Sexy")
elif number_of_people == 1 and not weight_increased: elif number_of_people == 1 and not weight_increased: