diff --git a/power_mqtt1.py b/power_mqtt1.py index b373d2b..718c50e 100755 --- a/power_mqtt1.py +++ b/power_mqtt1.py @@ -147,7 +147,8 @@ class ZentralAus(ButtonInput): return False def button_pressed(self, ms: int): - self.set_state(self.STATE_MAX) + for relay in self.relays: + relay.update_state(relay.STATE_MIN) def get_ha_components(self, prefix): return