device.type
:gateway
- Models: Mi Smart Home Gateway 2 and 3
- Model identifiers:
lumi.gateway.v2
,lumi.gateway.v3
Support for the Mi Smart Home Gateway that provides access to a set of smaller devices such as switches, motion detection and temperature and humidity sensors.
Note To fully support the gateway this library will automatically enable the Local Developer API of the gateway. If it is already enabled the existing key is used but if not a new key is generated and set for the API.
Emitted when a device is available for access via the gateway. The payload is the device instance.
Emitted when a device is no longer available for access via the gateway.
List the current devices that are available.