boneIO 0.5.0.dev6__tar.gz → 0.5.0.dev7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/PKG-INFO +1 -1
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/sensor/modbus/__init__.py +7 -2
- boneIO-0.5.0.dev7/boneio/version.py +2 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/pyproject.toml +1 -1
- boneIO-0.5.0.dev6/boneio/version.py +0 -2
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/LICENSE +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/README.md +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/__init__.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/bonecli.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/const.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/cover.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/example_config/__init__.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/example_config/adc.yaml +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/example_config/config.yaml +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/example_config/cover.yaml +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/example_config/input.yaml +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/example_config/output24x16A.yaml +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/example_config/output32x5A.yaml +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/fonts/danube__.ttf +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/__init__.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/async_updater.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/config.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/events.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/exceptions.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/filter.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/gpio.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/ha_discovery.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/loader.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/logger.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/mqtt.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/oled.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/onewire/W1ThermSensor.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/onewire/__init__.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/onewire/ds2482.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/onewire/onewire.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/queue.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/state_manager.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/stats.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/timeperiod.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/util.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/helper/yaml_util.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/input/__init__.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/input/gpio.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/manager.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/modbus.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/mqtt_client.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/oled.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/relay/__init__.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/relay/basic.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/relay/gpio.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/relay/mcp.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/runner.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/schema/actions.yaml +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/schema/actions_sensor.yaml +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/schema/actions_switch.yaml +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/schema/filters.yaml +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/schema/filters_adc.yaml +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/schema/schema.yaml +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/schema/update_interval.yaml +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/sensor/__init__.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/sensor/adc.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/sensor/gpio.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/sensor/modbus/sdm120.json +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/sensor/modbus/sdm630.json +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/sensor/modbus/sofar.json +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/sensor/temp/__init__.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/sensor/temp/dallas.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/sensor/temp/lm75.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/boneio/sensor/temp/mcp9808.py +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/tests/32_5_config.yaml +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/tests/bandit.yaml +0 -0
- {boneIO-0.5.0.dev6 → boneIO-0.5.0.dev7}/tests/relay_32_5.py +0 -0
|
@@ -123,7 +123,9 @@ class ModbusSensor(BasicMqtt, AsyncUpdater):
|
|
|
123
123
|
self, id: str, sdm_name: str, sensor_id: str, **kwargs
|
|
124
124
|
) -> None:
|
|
125
125
|
"""Send HA autodiscovery information for each Modbus sensor."""
|
|
126
|
-
_LOGGER.debug(
|
|
126
|
+
_LOGGER.debug(
|
|
127
|
+
"Sending HA discovery for modbus sensor %s %s.", sdm_name, sensor_id
|
|
128
|
+
)
|
|
127
129
|
topic = (
|
|
128
130
|
f"{self._config_helper.ha_discovery_prefix}/{SENSOR}/{self._config_helper.topic_prefix}{id}"
|
|
129
131
|
f"/{id}{sensor_id.replace('_', '').replace(' ', '').lower()}/config"
|
|
@@ -164,6 +166,9 @@ class ModbusSensor(BasicMqtt, AsyncUpdater):
|
|
|
164
166
|
**kwargs,
|
|
165
167
|
)
|
|
166
168
|
return datetime.now()
|
|
169
|
+
_LOGGER.error(
|
|
170
|
+
"Discovery for %s not sent. First register not available.", self._id
|
|
171
|
+
)
|
|
167
172
|
return False
|
|
168
173
|
|
|
169
174
|
async def check_availability(self) -> None:
|
|
@@ -182,7 +187,7 @@ class ModbusSensor(BasicMqtt, AsyncUpdater):
|
|
|
182
187
|
address=first_register_base[REGISTERS][0][ADDRESS],
|
|
183
188
|
method=register_method,
|
|
184
189
|
)
|
|
185
|
-
if register:
|
|
190
|
+
if register is not None:
|
|
186
191
|
self._discovery_sent = self._send_discovery_for_all_registers(
|
|
187
192
|
register
|
|
188
193
|
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|