Module Expr Str Import alias Import alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias Assign NameStore ListLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Str Str Str Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If UnaryOpNot Call NameLoad Dict NameLoad NameLoad Dict NameLoad ListLoad Str NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore BoolOpOr BoolOpAnd NameLoad Num Num Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad ImportFrom alias alias TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad handlers ExceptHandler type TupleLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr name NameStore body Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Return NameLoad Expr Call NameLoad GeneratorExp Call NameLoad NameLoad comprehension NameStore Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr CompareIn AttributeLoad NameLoad attr NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad BinOpMult Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Num Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Assign SubscriptStore NameLoad Index Str Call NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Num Num Assign SubscriptStore NameLoad Index Str Call NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Num Num Return NameLoad decorator_list NameLoad decorator_list
N/A N/A 
Support for Ubiquiti mFi switches.

For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/switch.mfi/
 N/A logging N/A requests homeassistant.components.switch DOMAIN SwitchDevice homeassistant.const CONF_PASSWORD CONF_USERNAME homeassistant.helpers validate_config N/A REQUIREMENTS N/A mficlient==0.3.0 N/A _LOGGER N/A N/A logging getLogger __name__ N/A SWITCH_MODELS N/A Outlet Output 5v Output 12v Output 24v N/A CONF_TLS use_tls N/A CONF_VERIFY_TLS verify_tls setup_platform N/A N/A hass config add_devices discovery_info N/A None N/A N/A Setup mFi sensors. N/A N/A N/A validate_config N/A DOMAIN config N/A DOMAIN N/A host CONF_USERNAME CONF_PASSWORD _LOGGER N/A N/A N/A N/A _LOGGER error A host, username, and password are required N/A False N/A host N/A N/A config get host N/A username N/A N/A config get username N/A password N/A N/A config get password N/A use_tls N/A bool N/A N/A config get CONF_TLS True N/A verify_tls N/A bool N/A N/A config get CONF_VERIFY_TLS True N/A default_port N/A N/A use_tls 6443 6080 N/A port N/A int N/A N/A config get port default_port mficlient.client FailedToLogin MFiClient N/A N/A N/A client N/A MFiClient host username password port port use_tls use_tls verify verify_tls N/A N/A N/A N/A FailedToLogin N/A N/A requests exceptions ConnectionError N/A ex N/A N/A N/A N/A _LOGGER error Unable to connect to mFi: %s N/A str ex N/A False N/A N/A add_devices N/A N/A MfiSwitch port N/A device N/A N/A client get_devices N/A port N/A N/A N/A device ports values N/A N/A port model SWITCH_MODELS N/A MfiSwitch N/A SwitchDevice N/A N/A Representation of an mFi switch-able device. __init__ N/A N/A self port N/A N/A N/A Initialize the mFi device. N/A N/A self _port port N/A N/A self _target_state None N/A should_poll N/A N/A self N/A N/A N/A Polling is needed. N/A True N/A property unique_id N/A N/A self N/A N/A N/A Return the unique ID of the device. N/A N/A N/A self _port ident N/A property name N/A N/A self N/A N/A N/A Return the name of the device. N/A N/A N/A self _port label N/A property is_on N/A N/A self N/A N/A N/A Return true if the device is on. N/A N/A N/A self _port output N/A property update N/A N/A self N/A N/A N/A Get the latest state and update the state. N/A N/A N/A N/A self _port refresh N/A N/A N/A self _target_state None N/A N/A N/A N/A N/A self _port data N/A output N/A float N/A self _target_state N/A N/A self _target_state None N/A turn_on N/A N/A self N/A N/A N/A Turn the switch on. N/A N/A N/A N/A self _port control True N/A N/A self _target_state True N/A turn_off N/A N/A self N/A N/A N/A Turn the switch off. N/A N/A N/A N/A self _port control False N/A N/A self _target_state False N/A current_power_mwh N/A N/A self N/A N/A N/A Return the current power usage in mWh. N/A N/A int N/A N/A N/A N/A N/A self _port data get active_pwr 0 1000 N/A property device_state_attributes N/A N/A self N/A N/A N/A Return the state attributes fof the device. N/A attr N/A N/A N/A attr N/A volts N/A round N/A N/A N/A N/A self _port data get v_rms 0 1 N/A N/A attr N/A amps N/A round N/A N/A N/A N/A self _port data get i_rms 0 1 N/A attr N/A property N/A