Skip to content

Commit

Permalink
Add requirements and example config
Browse files Browse the repository at this point in the history
  • Loading branch information
linucks committed Aug 14, 2024
1 parent 72b8516 commit 071e71c
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion mqtt_io/modules/sensor/dfr0300.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
"""
DFRobot Gravity DFR0300 Electrical Conductivity Sensor
Example config (including optional temperature sensor):
sensor_modules:
- name: aht20_temp
module: aht20
- name: dfr0300
module: dfr0300
sensor_inputs:
- name: temperature
module: aht20_temp
type: temperature
interval: 10
digits: 4
- name: ec
module: dfr0300
pin: 0
tempsensor: temperature
interval: 10
digits: 4
"""

import abc
Expand All @@ -17,7 +41,7 @@

_LOG = logging.getLogger(__name__)


REQUIREMENTS = ("smbus",)
CONFIG_SCHEMA: CerberusSchemaType = {
"i2c_bus_num": {"type": "integer", "required": False, "empty": False, "default": 1},
"chip_addr": {
Expand Down

0 comments on commit 071e71c

Please sign in to comment.