From 89a7dad586d9d5b943386b64f891d7eb55aca0aa Mon Sep 17 00:00:00 2001 From: TheYOSH Date: Sat, 5 Oct 2024 12:54:51 +0200 Subject: [PATCH] Make DIY mode work for dimmer --- hardware/relay/sonoff_relay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hardware/relay/sonoff_relay.py b/hardware/relay/sonoff_relay.py index 3101053f0..4fb47e47e 100644 --- a/hardware/relay/sonoff_relay.py +++ b/hardware/relay/sonoff_relay.py @@ -170,7 +170,7 @@ def _set_hardware_value(self, state): # request switch on and specified brightness # switch must be on, mode 0, brightness between brightmin and brightmax data = terrariumUtils.get_remote_data( - f"{self.device}/switch", + f"{self.device}/dimmable", json=True, post={ "deviceid": "",