Commit 91478af
Fix critical bugs in Night-Humidity-Priority and EnvironmentGuard integration
Bug Fixes:
1. Night-Humidity-Priority now ALWAYS active in VPD modes
- Previously only active when vpdDeviceDampening=False
- Now integrated into process_actions_with_dampening() path
- Ensures consistent energy-efficient behavior across all configurations
2. EnvironmentGuard now ALWAYS active in VPD modes
- Previously only active in fallback path (vpdDeviceDampening=False)
- Critical safety fix: prevents cold/dry air intake without protection
- Applied AFTER Night-Humidity-Priority and Device Dampening
3. Physikalisch-aware Air-Exchange suppression
- Air-Exchange now suppressed when it works against humidity goal
- RH high + Temp low: Dehumidifier only (Air-Exchange would cool)
- RH low + Temp high: Cooler only (Air-Exchange would dry)
- Extreme temp deviation (≥5°C): Allows all actions
Changes:
- OGBDampeningActions.process_actions_with_dampening(): Added night humidity priority
- OGBActionManager.checkLimitsAndPublicateWithDampening(): Added EnvironmentGuard
- ClosedActions: Added air-mixing suppression for night humidity priority
- Tests: Added comprehensive coverage for new behavior
- Docs: Updated with integration notes and bug fix details
Test Results: All 117 tests passing1 parent 6f9e5ca commit 91478af
7 files changed
Lines changed: 582 additions & 40 deletions
File tree
- custom_components/opengrowbox/OGBController
- actions
- managers
- docs
- core_concepts
- tests/logic/actions
Lines changed: 82 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
612 | 612 | | |
613 | 613 | | |
614 | 614 | | |
| 615 | + | |
615 | 616 | | |
| 617 | + | |
616 | 618 | | |
617 | 619 | | |
618 | 620 | | |
| |||
621 | 623 | | |
622 | 624 | | |
623 | 625 | | |
| 626 | + | |
624 | 627 | | |
625 | | - | |
626 | | - | |
627 | | - | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
628 | 635 | | |
629 | 636 | | |
630 | 637 | | |
631 | | - | |
632 | | - | |
633 | | - | |
| 638 | + | |
634 | 639 | | |
635 | | - | |
| 640 | + | |
636 | 641 | | |
637 | 642 | | |
638 | 643 | | |
| |||
642 | 647 | | |
643 | 648 | | |
644 | 649 | | |
| 650 | + | |
645 | 651 | | |
646 | | - | |
647 | | - | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
648 | 662 | | |
649 | 663 | | |
650 | 664 | | |
| |||
959 | 973 | | |
960 | 974 | | |
961 | 975 | | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
962 | 1035 | | |
963 | 1036 | | |
964 | 1037 | | |
| |||
Lines changed: 62 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
154 | 162 | | |
155 | 163 | | |
156 | 164 | | |
| |||
217 | 225 | | |
218 | 226 | | |
219 | 227 | | |
220 | | - | |
221 | | - | |
| 228 | + | |
| 229 | + | |
222 | 230 | | |
223 | 231 | | |
224 | 232 | | |
| |||
346 | 354 | | |
347 | 355 | | |
348 | 356 | | |
349 | | - | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
350 | 364 | | |
351 | 365 | | |
352 | 366 | | |
353 | | - | |
| 367 | + | |
| 368 | + | |
354 | 369 | | |
355 | 370 | | |
356 | | - | |
| 371 | + | |
357 | 372 | | |
358 | | - | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
359 | 405 | | |
360 | 406 | | |
361 | 407 | | |
362 | | - | |
| 408 | + | |
363 | 409 | | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
364 | 417 | | |
365 | 418 | | |
366 | 419 | | |
367 | 420 | | |
368 | | - | |
369 | | - | |
| 421 | + | |
| 422 | + | |
370 | 423 | | |
371 | 424 | | |
372 | 425 | | |
| |||
Lines changed: 58 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
700 | 700 | | |
701 | 701 | | |
702 | 702 | | |
703 | | - | |
| 703 | + | |
| 704 | + | |
704 | 705 | | |
705 | | - | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
706 | 738 | | |
707 | 739 | | |
708 | 740 | | |
709 | 741 | | |
710 | | - | |
| 742 | + | |
711 | 743 | | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
712 | 751 | | |
713 | 752 | | |
714 | 753 | | |
715 | 754 | | |
716 | | - | |
717 | | - | |
| 755 | + | |
| 756 | + | |
718 | 757 | | |
719 | 758 | | |
720 | 759 | | |
| |||
1413 | 1452 | | |
1414 | 1453 | | |
1415 | 1454 | | |
| 1455 | + | |
| 1456 | + | |
1416 | 1457 | | |
1417 | | - | |
| 1458 | + | |
| 1459 | + | |
1418 | 1460 | | |
1419 | 1461 | | |
1420 | 1462 | | |
1421 | | - | |
| 1463 | + | |
1422 | 1464 | | |
1423 | 1465 | | |
1424 | | - | |
| 1466 | + | |
1425 | 1467 | | |
1426 | 1468 | | |
1427 | 1469 | | |
1428 | 1470 | | |
1429 | | - | |
| 1471 | + | |
1430 | 1472 | | |
1431 | | - | |
| 1473 | + | |
1432 | 1474 | | |
1433 | 1475 | | |
1434 | 1476 | | |
1435 | 1477 | | |
1436 | 1478 | | |
1437 | | - | |
1438 | | - | |
1439 | | - | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
1440 | 1485 | | |
1441 | 1486 | | |
1442 | 1487 | | |
| |||
0 commit comments