From 1bdedd009f0550047870bf10cbf82a0c3a5c85df Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Thu, 24 Mar 2022 14:46:46 -0400 Subject: [PATCH] power: fix tasmota command encoding Signed-off-by: Eric Callahan --- moonraker/components/power.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moonraker/components/power.py b/moonraker/components/power.py index c0ecc95..eb9e21c 100644 --- a/moonraker/components/power.py +++ b/moonraker/components/power.py @@ -868,9 +868,9 @@ class Tasmota(HTTPDevice): password: Optional[str] = None ) -> Dict[str, Any]: if command in ["on", "off"]: - out_cmd = f"Power{self.output_id}%20{command}" + out_cmd = f"Power{self.output_id} {command}" if self.timer != "" and command == "off": - out_cmd = f"Backlog%20Delay%20{self.timer}0%3B%20{out_cmd}" + out_cmd = f"Backlog Delay {self.timer}0; {out_cmd}" elif command == "info": out_cmd = f"Power{self.output_id}" else: