Replace the id (light) in the channel with your own. Replace the id (waterpurifier) in the channel with your own. It will only reappear in your Inbox, if you connect it to the gateway again. That way you can make use of your device, even if it is not supported yet! Replace note: Autogenerated example. You have to capture as many of them as possible, so that the device is fully supported in the end.Every little help is welcome, be part of the community! The server(s) to which your devices are connected need to be entered as well. Replace the id (plug) in the channel with your own. Replace note: Autogenerated example. Replace the id (light) in the channel with your own. The devices are very affordable and you can get them from your favourite chinese marktes like AliExpress or GearBest. Once openhab has the token, you can link the vacuum back to the normal network with the MiHome app. Replace the id (waterpuri) in the channel with your own. Replace the id (light) in the channel with your own. Replace note: Autogenerated example. Replace the id (airpurifier) in the channel with your own. Replace the id (airfresh) in the channel with your own. Replace note: Autogenerated example. Manually add a miio:basic thing. This instructs the binding which channels to create, which properties and actions are associated with the channels etc. If the device does not discover your token, it needs to be retrieved from the Mi Home app.The easiest way to obtain tokens is to browse through log files of the Mi Home app version 5.4.49 for Android. I got after some time the Mi Smart Home Gateway v3 up and running. Verbinde dich mit deiner Konsole (per SSH) und gib folgendes ein (falls du den Raspberry Pi und den Xiaomi MiFlora Sensor in OpenHAB nutzen willst, sollte es bereits konfiguriert sein und als Betriebssystem zur Installation genutzt werden): The conf/misc/miio (e.g.
Then search in "RAW, com.xiaomi.home," for "USERID_mihome.sqlite" and look for the 32-digit-token or 96 digit encrypted token.Note. The sensors run on a coincell battery for over a year. Replace the id (light) in the channel with your own. Replace the id (light) in the channel with your own. Replace the id (fan) in the channel with your own. Replace the id (light) in the channel with your own. After downgrading use a file browser to navigate to directory SmartHome/logs/plug_DeviceManager, then open the most recent file and search for the token.
Replace note: Autogenerated example. Replace note: Autogenerated example. Replace the id (fan) in the channel with your own. Look at the openHAB forum, or the openHAB GitHub repository for the modelId of similar devices.Things using the basic handler (miio:basic things) are driven by json 'database' files. Replace the id (fan) in the channel with your own. However, for devices that are unsupported, you may override the value and try to use a model string from a similar device to experimentally use your device with the binding.or in case of unknown models include the model information e.g. Replace note: Autogenerated example. Normally the modelId is populated with the model of your device, however in this case, use the modelId of a similar device. For iPhone, use an un-encrypted iTunes-Backup and unpack it and use a sqlite tool to view the files in it: Then search in "RAW, com.xiaomi.home," for "USERID_mihome.sqlite" and look for the 32-digit-token or 96 digit encrypted token. Replace the id (light) in the channel with your own. The following examples are a demonstration, where a basic device thing for the gateway was manually added.These messages are in JSON format, which also gives you the ability to parse single values.You can write commands to devices which support it, usually all battery powered devices are not able to receive commands. It consists of devices communicating over a ZigBee network with a ZigBee - WiFi gateway.The devices are very affordable and you can get them from your favourite chinese marktes like After setup, you can disconnect the gateway from the internet to keep your sensor information private.Is your gateway already configured to connect to your WiFi? Replace note: Autogenerated example. So there is a good chance that in the future even more devices get added to the suite. The configuration for model is automatically retrieved from the device in normal operation. Replace the id (light) in the channel with your own.
Replace the id (fan) in the channel with your own.
Replace note: Autogenerated example. Replace the id (airpurifier) in the channel with your own. Replace note: Autogenerated example. Replace the id (plug) in the channel with your own.
Replace note: Autogenerated example. Replace note: Autogenerated example. The binding allows to try/test if your new device is working with database files of older devices as well.
Replace the id (airpurifier) in the channel with your own. Replace note: Autogenerated example. Accept only one of the 2 discovery results, the alternate one can further be ignored.The binding needs a token from the Xiaomi Mi Device in order to be able to control it. Replace note: Autogenerated example.
If not:Enable developer mode of your gateway (legacy app):In openHAB you should now be able to discover the Xiaomi GatewayFrom now on you don't really need the app anymore. Replace note: Autogenerated example. Replace the id (light) in the channel with your own. Replace note: Autogenerated example. The commands have to be issued as attributes of a JSON Object, e.g.