From d7919502482b33b78393acef1e791712bc205344 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20JUMELLE?= Date: Sat, 22 Jul 2023 22:34:41 +0200 Subject: [PATCH] Update API json.htm --- plugin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin.py b/plugin.py index f420b91..532e725 100755 --- a/plugin.py +++ b/plugin.py @@ -3,7 +3,7 @@ # Author: fjumelle # """ - +

Signal Level


Create devices to trace the signal level of other devices.
@@ -72,7 +72,7 @@ class BasePlugin: Domoticz.Heartbeat(self.pooling) #List of devices to scan - res = DomoticzAPI("type=devices&used=true") + res = DomoticzAPI("type=command¶m=getdevices&used=true") self.devices = self.getDevicesSignalLevel(res) Domoticz.Debug("Scanned devices: {}".format(self.devices)) @@ -88,7 +88,7 @@ class BasePlugin: def onHeartbeat(self): if self.pooling_current_step == self.pooling_steps: - res = DomoticzAPI("type=devices&used=true") + res = DomoticzAPI("type=command¶m=getdevices&used=true") for idx, device in enumerate(self.devices): value = self.getSignalLevel(res, device) idx = idx + 1