Namespaces | |
| binary_sensor | |
| sensor | |
| switch | |
Classes | |
| class | NumatoAPI |
Functions | |
| def | adc_port_number (num) |
| def | float_range (rng) |
| def | int_range (rng) |
| bool | setup (HomeAssistant hass, ConfigType config) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
| ADC_SCHEMA | |
| string | CONF_DEVICE_ID = "id" |
| string | CONF_DEVICES = "devices" |
| string | CONF_DISCOVER = "discover" |
| string | CONF_DST_RANGE = "destination_range" |
| string | CONF_DST_UNIT = "unit" |
| string | CONF_INVERT_LOGIC = "invert_logic" |
| string | CONF_PORTS = "ports" |
| string | CONF_SRC_RANGE = "source_range" |
| CONFIG_SCHEMA | |
| string | DATA_API = "api" |
| string | DATA_PORTS_IN_USE = "ports_in_use" |
| list | DEFAULT_DEV = [f"/dev/ttyACM{i}" for i in range(10)] |
| list | DEFAULT_DST_RANGE = [0.0, 100.0] |
| bool | DEFAULT_INVERT_LOGIC = False |
| list | DEFAULT_SRC_RANGE = [0, 1024] |
| DEVICE_SCHEMA | |
| string | DOMAIN = "numato" |
| IO_PORTS_SCHEMA | |
| PORT_RANGE = range(1, 8) | |
| PORTS_SCHEMA = vol.Schema({cv.positive_int: cv.string}) | |
Support for controlling GPIO pins of a Numato Labs USB GPIO expander.
| def homeassistant.components.numato.adc_port_number | ( | num | ) |
Validate input number to be in the range of ADC enabled ports.
Definition at line 74 of file __init__.py.
| def homeassistant.components.numato.float_range | ( | rng | ) |
Validate the input array to describe a range by two floats.
Definition at line 59 of file __init__.py.
| def homeassistant.components.numato.int_range | ( | rng | ) |
Validate the input array to describe a range by two integers.
Definition at line 48 of file __init__.py.
| bool homeassistant.components.numato.setup | ( | HomeAssistant | hass, |
| ConfigType | config | ||
| ) |
Initialize the numato integration. Discovers available Numato devices and loads the binary_sensor, sensor and switch platforms. Returns False on error during device discovery (e.g. duplicate ID), otherwise returns True. No exceptions should occur, since the platforms are initialized on a best effort basis, which means, errors are handled locally.
Definition at line 125 of file __init__.py.
|
private |
Definition at line 25 of file __init__.py.
| homeassistant.components.numato.ADC_SCHEMA |
Definition at line 85 of file __init__.py.
| string homeassistant.components.numato.CONF_DEVICE_ID = "id" |
Definition at line 32 of file __init__.py.
| string homeassistant.components.numato.CONF_DEVICES = "devices" |
Definition at line 31 of file __init__.py.
| string homeassistant.components.numato.CONF_DISCOVER = "discover" |
Definition at line 30 of file __init__.py.
| string homeassistant.components.numato.CONF_DST_RANGE = "destination_range" |
Definition at line 35 of file __init__.py.
| string homeassistant.components.numato.CONF_DST_UNIT = "unit" |
Definition at line 36 of file __init__.py.
| string homeassistant.components.numato.CONF_INVERT_LOGIC = "invert_logic" |
Definition at line 29 of file __init__.py.
| string homeassistant.components.numato.CONF_PORTS = "ports" |
Definition at line 33 of file __init__.py.
| string homeassistant.components.numato.CONF_SRC_RANGE = "source_range" |
Definition at line 34 of file __init__.py.
| homeassistant.components.numato.CONFIG_SCHEMA |
Definition at line 112 of file __init__.py.
| string homeassistant.components.numato.DATA_API = "api" |
Definition at line 45 of file __init__.py.
| string homeassistant.components.numato.DATA_PORTS_IN_USE = "ports_in_use" |
Definition at line 44 of file __init__.py.
| list homeassistant.components.numato.DEFAULT_DEV = [f"/dev/ttyACM{i}" for i in range(10)] |
Definition at line 40 of file __init__.py.
| list homeassistant.components.numato.DEFAULT_DST_RANGE = [0.0, 100.0] |
Definition at line 39 of file __init__.py.
| bool homeassistant.components.numato.DEFAULT_INVERT_LOGIC = False |
Definition at line 37 of file __init__.py.
| list homeassistant.components.numato.DEFAULT_SRC_RANGE = [0, 1024] |
Definition at line 38 of file __init__.py.
| homeassistant.components.numato.DEVICE_SCHEMA |
Definition at line 103 of file __init__.py.
| string homeassistant.components.numato.DOMAIN = "numato" |
Definition at line 27 of file __init__.py.
| homeassistant.components.numato.IO_PORTS_SCHEMA |
Definition at line 96 of file __init__.py.
| homeassistant.components.numato.PORT_RANGE = range(1, 8) |
Definition at line 42 of file __init__.py.
| homeassistant.components.numato.PORTS_SCHEMA = vol.Schema({cv.positive_int: cv.string}) |
Definition at line 94 of file __init__.py.