Classes | |
| class | NetioApiView |
| class | NetioSwitch |
Functions | |
| def | dispose (event) |
| None | setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback add_entities, DiscoveryInfoType|None discovery_info=None) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
| string | ATTR_START_DATE = "start_date" |
| string | ATTR_TOTAL_CONSUMPTION_KWH = "total_energy_kwh" |
| string | CONF_OUTLETS = "outlets" |
| int | DEFAULT_PORT = 1234 |
| string | DEFAULT_USERNAME = "admin" |
| Device = namedtuple("Device", ["netio", "entities"]) | |
| MIN_TIME_BETWEEN_SCANS = timedelta(seconds=10) | |
| PLATFORM_SCHEMA | |
| list | REQ_CONF = [CONF_HOST, CONF_OUTLETS] |
| string | URL_API_NETIO_EP = "/api/netio/{host}" |
The Netio switch component.
| def homeassistant.components.netio.switch.dispose | ( | event | ) |
| None homeassistant.components.netio.switch.setup_platform | ( | HomeAssistant | hass, |
| ConfigType | config, | ||
| AddEntitiesCallback | add_entities, | ||
| DiscoveryInfoType | None | discovery_info = None |
||
| ) |
|
private |
| string homeassistant.components.netio.switch.ATTR_START_DATE = "start_date" |
| string homeassistant.components.netio.switch.ATTR_TOTAL_CONSUMPTION_KWH = "total_energy_kwh" |
| string homeassistant.components.netio.switch.CONF_OUTLETS = "outlets" |
| int homeassistant.components.netio.switch.DEFAULT_PORT = 1234 |
| string homeassistant.components.netio.switch.DEFAULT_USERNAME = "admin" |
| homeassistant.components.netio.switch.Device = namedtuple("Device", ["netio", "entities"]) |
| homeassistant.components.netio.switch.MIN_TIME_BETWEEN_SCANS = timedelta(seconds=10) |
| homeassistant.components.netio.switch.PLATFORM_SCHEMA |
| list homeassistant.components.netio.switch.REQ_CONF = [CONF_HOST, CONF_OUTLETS] |