diff --git a/moonraker/plugins/power.py b/moonraker/plugins/power.py index 1351e9e..4720a89 100644 --- a/moonraker/plugins/power.py +++ b/moonraker/plugins/power.py @@ -383,7 +383,7 @@ class Tasmota: async def refresh_status(self): try: res = await self._send_tasmota_command("info") - state = res[f"Power{self.output_id}"].lower() + state = res[f"POWER{self.output_id}"].lower() except Exception: self.state = "error" msg = f"Error Refeshing Device Status: {self.name}" @@ -394,7 +394,7 @@ class Tasmota: async def set_power(self, state): try: res = await self._send_tasmota_command(state) - state = res[f"Power{self.output_id}"].lower() + state = res[f"POWER{self.output_id}"].lower() except Exception: self.state = "error" msg = f"Error Setting Device Status: {self.name} to {state}"