Skip to content

Commit

Permalink
some new devices added
Browse files Browse the repository at this point in the history
  • Loading branch information
Илья Титов committed Dec 5, 2023
1 parent c67f7e2 commit d67468f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
17 changes: 17 additions & 0 deletions deploy/data/usr/share/homed-zigbee/other.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,23 @@
}
],

"SLS":
[
{
"description": "SLS Temperature and CO2 sensor",
"modelNames": ["AirQMon"],
"properties": ["ptvoTemperature"],
"exposes": ["temperature"],
"endpointId": 1
},
{
"modelNames": ["AirQMon"],
"properties": ["ptvoCO2"],
"exposes": ["co2"],
"endpointId": 2
}
],

"Sunricher":
[
{
Expand Down
2 changes: 1 addition & 1 deletion deploy/data/usr/share/homed-zigbee/tuya.json
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@
},
{
"description": "TUYA TS0001/TS0011 1-Channel Switch",
"modelNames": ["_TYZB01_4vgantdz", "_TYZB01_reyozfcg", "_TZ3000_hhiodade", "_TZ3000_l8fsgo6p", "_TZ3000_wrhhi5h2"],
"modelNames": ["_TYZB01_4vgantdz", "_TYZB01_reyozfcg", "_TYZB01_xfpdrwvc", "TZ3000_9hpxg80k", "_TZ3000_hhiodade", "_TZ3000_l8fsgo6p", "_TZ3000_wrhhi5h2"],
"properties": ["status", "tuyaIndicatorMode", "tuyaPowerOnStatus"],
"actions": ["status", "tuyaIndicatorMode", "tuyaPowerOnStatus"],
"bindings": ["status"],
Expand Down
2 changes: 1 addition & 1 deletion device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ void DeviceList::setupEndpoint(const Endpoint &endpoint, const QJsonObject &json
{
QString exposeName = it->toString(), itemName = it->toString().split('_').value(0), optionName = multiple ? QString("%1_%2").arg(itemName, QString::number(endpoint->id())) : itemName;
QMap <QString, QVariant> option = m_exposeOptions.value(itemName).toMap();
QList <QString> list = {"light", "switch", "lock", "cover", "thermostat"};
QList <QString> list = {"switch", "light", "cover", "lock", "thermostat"};
Expose expose;
int type;

Expand Down

0 comments on commit d67468f

Please sign in to comment.