From 9de1fe7718d8598bd6e22cbf4edea495e452b42d Mon Sep 17 00:00:00 2001 From: msinn Date: Sat, 31 Aug 2024 12:40:05 +0200 Subject: [PATCH] onewire: Changed some Log levels from info to dbghigh --- onewire/__init__.py | 14 +++++++------- onewire/plugin.yaml | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/onewire/__init__.py b/onewire/__init__.py index 8d1a493fb..9065fc0d7 100755 --- a/onewire/__init__.py +++ b/onewire/__init__.py @@ -43,7 +43,7 @@ class OneWire(SmartPlugin): the update functions for the items """ - PLUGIN_VERSION = '1.9.4' + PLUGIN_VERSION = '1.9.5' _flip = {0: '1', False: '1', 1: '0', True: '0', '0': True, '1': False} @@ -448,7 +448,7 @@ def _sensor_cycle(self): def _discovery_process_bus(self, path): bus = path.split("/")[-2] - self.logger.info(f"- Processing of data for bus {bus} started") + self.logger.dbghigh(f"Discovery: Processing of data for bus {bus} started") if bus not in self._buses: self._buses[bus] = [] self._webif_buses[bus] = {} @@ -461,7 +461,7 @@ def _discovery_process_bus(self, path): self.logger.info(f"_discovery_process_bus: Problem reading {bus}, error: {e}") return - self.logger.info(f"- On bus {bus} found sensors: {sensors}") + self.logger.info(f"Discovery: On bus {bus} {len(sensors)} sensors found: {sensors}") for sensor in sensors: # skip subdirectories alarm, interface and simultaneous @@ -547,7 +547,7 @@ def _discovery_process_bus(self, path): else: self.logger.debug(f"_discovery_process_bus: Sensor {sensor} was already found in bus {bus}") - self.logger.info(f"- Processing of data for bus {bus} finished") + self.logger.dbghigh(f"Discovery: Processing of data for bus {bus} finished") return def _discovery(self): @@ -558,14 +558,14 @@ def _discovery(self): If the next call takes places it will be checked if there is something changed in top level directory. The rest of the discovery will be skipped if now changes are found. """ - self.logger.info("discovery started") + self.logger.dbghigh("Discovery started") self._intruders = [] # reset intrusion detection try: listing = self.owbase.dir('/') except Exception as e: self.logger.error(f"_discovery: listing '/' failed with error '{e}'") return - self.logger.info(f"_discovery: got listing for '/' = '{listing}' self.alive: {self.alive}") + self.logger.dbghigh(f"Discovery: Got listing for '/' = '{listing}' self.alive: {self.alive}") if type(listing) != list: self.logger.warning(f"_discovery: listing '{listing}' is not a list.") return @@ -588,7 +588,7 @@ def _discovery(self): else: # for did not end prematurely with break or something else self._discovered = True - self.logger.info("discovery finished") + self.logger.dbghigh("Discovery finished") # get a list of all directory entries from owserver # self.devices = self.tree() diff --git a/onewire/plugin.yaml b/onewire/plugin.yaml index b880b7521..a7a839b7d 100755 --- a/onewire/plugin.yaml +++ b/onewire/plugin.yaml @@ -11,7 +11,7 @@ plugin: keywords: 1wire onewire dallas ibutton sensor temperature humidity documentation: '' support: https://knx-user-forum.de/forum/supportforen/smarthome-py/1493319-support-thread-zum-onewire-plugin - version: 1.9.4 # Plugin version + version: 1.9.5 # Plugin version sh_minversion: '1.9.3.5' # minimum shNG version to use this plugin multi_instance: True restartable: True