* Xiaomi Aqara Config Flow * Xiaomi Aqara Config Flow * Xiaomi Aqara Config Flow * Xiaomi Aqara Config Flow * Xiaomi Aqara Config Flow First tested and working version * Remove depricated discovery * Add Xiaomi Aqara Config Flow * Add Xiaomi Aqara tests * Update .coveragerc * Update requirements_test_all.txt * fix spelling mistake * fix select scheme * fix wrong conflict resolve * add IP to zeroconf discovery title * black styling * add getmac requirement Co-authored-by: Maciej Bieniek <bieniu@users.noreply.github.com> * add getmac * add getmac * Clean up * Update homeassistant/components/xiaomi_aqara/__init__.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Update homeassistant/components/xiaomi_aqara/__init__.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Update homeassistant/components/xiaomi_aqara/__init__.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Update homeassistant/components/xiaomi_aqara/__init__.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Update homeassistant/components/xiaomi_aqara/__init__.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * resolve data storage * move format_mac down * Remove discovery_retry from config flow * remove unused strings * fix styling * fix black styling * fix tests * remove mac connection This is needed to prevent a conflict with the Xiaomi Miio integration that I discovered during testing. * fix flake8 * remove getmac depandance * check for inavlid_interface + test * Validate gateway key * add invalid key tests * Fix spelling * Only set up sensors if no key Co-authored-by: Maciej Bieniek <bieniu@users.noreply.github.com> Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
41 lines
1.7 KiB
JSON
41 lines
1.7 KiB
JSON
{
|
|
"config": {
|
|
"flow_title": "Xiaomi Aqara Gateway: {name}",
|
|
"step": {
|
|
"user": {
|
|
"title": "Xiaomi Aqara Gateway",
|
|
"description": "Connect to your Xiaomi Aqara Gateway",
|
|
"data": {
|
|
"interface": "The network interface to use"
|
|
}
|
|
},
|
|
"settings": {
|
|
"title": "Xiaomi Aqara Gateway, optional settings",
|
|
"description": "The key (password) can be retrieved using this tutorial: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)#Adding_the_Xiaomi_Gateway_to_Domoticz. If the key is not provided only sensors will be accessible",
|
|
"data": {
|
|
"key": "The key of your gateway",
|
|
"name": "Name of the Gateway"
|
|
}
|
|
},
|
|
"select": {
|
|
"title": "Select the Xiaomi Aqara Gateway that you wish to connect",
|
|
"description": "Run the setup again if you want to connect aditional gateways",
|
|
"data": {
|
|
"select_ip": "Gateway IP"
|
|
}
|
|
}
|
|
},
|
|
"error": {
|
|
"discovery_error": "Failed to discover a Xiaomi Aqara Gateway, try using the IP of the device running HomeAssistant as interface",
|
|
"not_found_error": "Zeroconf discovered Gateway could not be located to get the necessary information, try using the IP of the device running HomeAssistant as interface",
|
|
"invalid_interface": "Invalid network interface",
|
|
"invalid_key": "Invalid gateway key"
|
|
},
|
|
"abort": {
|
|
"already_configured": "[%key:common::config_flow::abort::already_configured_device%]",
|
|
"already_in_progress": "Config flow for this gateway is already in progress",
|
|
"not_xiaomi_aqara": "Not a Xiaomi Aqara Gateway, discovered device did not match known gateways"
|
|
}
|
|
}
|
|
}
|