diff --git a/habapp_rules/sensors/sun.py b/habapp_rules/sensors/sun.py index 856dda1..db796e4 100644 --- a/habapp_rules/sensors/sun.py +++ b/habapp_rules/sensors/sun.py @@ -279,6 +279,8 @@ def __init__(self, config: habapp_rules.sensors.config.sun.WinterFilterConfig) - if config.items.presence_state is not None: config.items.presence_state.listen_event(self.cb_presence_state, HABApp.openhab.events.ItemStateChangedEventFilter()) + self._check_conditions_and_set_output() + def _check_conditions_and_set_output(self) -> None: """Check conditions and set output.