Add presence management

Fix many bugs on states actualisation
Add extra attributes with all internal states
This commit is contained in:
Jean-Marc Collin
2023-01-08 12:29:50 +01:00
parent 5fb148d445
commit 89984b3dfc
8 changed files with 465 additions and 118 deletions
@@ -20,9 +20,11 @@ class PropAlgorithm:
):
"""Initialisation of the Proportional Algorithm"""
_LOGGER.debug(
"Creation new PropAlgorithm function_type: %s, bias: %f, cycle_min:%d",
"Creation new PropAlgorithm function_type: %s, bias: %s, tpi_coefc: %s, tpi_coeft: %s, cycle_min:%d",
function_type,
bias,
tpi_coefc,
tpi_coeft,
cycle_min,
)
# TODO test function_type, bias, cycle_min