Merge PR #373: ZigbeePhilipsHue: Add support for the Hue Smart button

master
Jenkins nymea 2021-02-26 10:27:50 +01:00
commit 3208bce81a
5 changed files with 403 additions and 62 deletions

View File

@ -24,6 +24,12 @@ The [Hue dimmer switch](https://www.philips-hue.com/en-us/p/hue-dimmer-switch/04
**Pairing instructions**: Open the ZigBee network for joining. Press the setup button for 5 seconds until the LED start blinking in different colors.
### Hue smart button
The [Hue Smart button](https://www.philips-hue.com/en-us/p/hue-smart-button/046677553715) is fully supported.
**Pairing instructions**: Open the ZigBee network for joining. Press the setup button behind the back cap for 5 seconds until the LED start blinking in different colors.
### Hue lights
Most of the lights and lamps from Philips Hue should be handled in a generic way by the `nymea-plugin-zigbee-generic-lights` plugin. There are 2 methods for bringing a Hue light / bulb into the nymea ZigBee network.

View File

@ -38,18 +38,23 @@
IntegrationPluginZigbeePhilipsHue::IntegrationPluginZigbeePhilipsHue()
{
m_ieeeAddressParamTypeIds[dimmerSwitchThingClassId] = dimmerSwitchThingIeeeAddressParamTypeId;
m_ieeeAddressParamTypeIds[smartButtonThingClassId] = smartButtonThingIeeeAddressParamTypeId;
m_ieeeAddressParamTypeIds[motionSensorThingClassId] = motionSensorThingIeeeAddressParamTypeId;
m_networkUuidParamTypeIds[dimmerSwitchThingClassId] = dimmerSwitchThingNetworkUuidParamTypeId;
m_networkUuidParamTypeIds[smartButtonThingClassId] = smartButtonThingNetworkUuidParamTypeId;
m_networkUuidParamTypeIds[motionSensorThingClassId] = motionSensorThingNetworkUuidParamTypeId;
m_connectedStateTypeIds[dimmerSwitchThingClassId] = dimmerSwitchConnectedStateTypeId;
m_connectedStateTypeIds[smartButtonThingClassId] = smartButtonConnectedStateTypeId;
m_connectedStateTypeIds[motionSensorThingClassId] = motionSensorConnectedStateTypeId;
m_signalStrengthStateTypeIds[dimmerSwitchThingClassId] = dimmerSwitchSignalStrengthStateTypeId;
m_signalStrengthStateTypeIds[smartButtonThingClassId] = smartButtonSignalStrengthStateTypeId;
m_signalStrengthStateTypeIds[motionSensorThingClassId] = motionSensorSignalStrengthStateTypeId;
m_versionStateTypeIds[dimmerSwitchThingClassId] = dimmerSwitchVersionStateTypeId;
m_versionStateTypeIds[smartButtonThingClassId] = smartButtonVersionStateTypeId;
m_versionStateTypeIds[motionSensorThingClassId] = motionSensorVersionStateTypeId;
}
@ -64,8 +69,6 @@ bool IntegrationPluginZigbeePhilipsHue::handleNode(ZigbeeNode *node, const QUuid
if (node->nodeDescriptor().manufacturerCode != Zigbee::Philips)
return false;
bool handled = false;
if (node->endpoints().count() == 2 && node->hasEndpoint(0x01) && node->hasEndpoint(0x02)) {
ZigbeeNodeEndpoint *endpointOne = node->getEndpoint(0x01);
ZigbeeNodeEndpoint *endpoinTwo = node->getEndpoint(0x02);
@ -76,7 +79,7 @@ bool IntegrationPluginZigbeePhilipsHue::handleNode(ZigbeeNode *node, const QUuid
endpoinTwo->profile() == Zigbee::ZigbeeProfileHomeAutomation &&
endpoinTwo->deviceId() == Zigbee::HomeAutomationDeviceSimpleSensor) {
qCDebug(dcZigbeePhilipsHue()) << "Handeling Hue dimmer switch" << node << endpointOne << endpoinTwo;
qCDebug(dcZigbeePhilipsHue()) << "Handling Hue dimmer switch" << node << endpointOne << endpoinTwo;
createThing(dimmerSwitchThingClassId, networkUuid, node);
initDimmerSwitch(node);
return true;
@ -88,14 +91,26 @@ bool IntegrationPluginZigbeePhilipsHue::handleNode(ZigbeeNode *node, const QUuid
endpoinTwo->profile() == Zigbee::ZigbeeProfileHomeAutomation &&
endpoinTwo->deviceId() == Zigbee::HomeAutomationDeviceOccupacySensor) {
qCDebug(dcZigbeePhilipsHue()) << "Handeling Hue outdoor sensor" << node << endpointOne << endpoinTwo;
qCDebug(dcZigbeePhilipsHue()) << "Handling Hue outdoor sensor" << node << endpointOne << endpoinTwo;
createThing(motionSensorThingClassId, networkUuid, node);
initMotionSensor(node);
return true;
}
}
return handled;
if (node->endpoints().count() == 1 && node->hasEndpoint(0x01)) {
ZigbeeNodeEndpoint *endpointOne = node->getEndpoint(0x01);
// Smart buttton
if (endpointOne->profile() == Zigbee::ZigbeeProfileHomeAutomation &&
endpointOne->deviceId() == Zigbee::HomeAutomationDeviceNonColourSceneController) {
qCDebug(dcZigbeePhilipsHue()) << "Handling Hue Smart button" << node << endpointOne;
createThing(smartButtonThingClassId, networkUuid, node);
initSmartButton(node);
return true;
}
}
return false;
}
void IntegrationPluginZigbeePhilipsHue::handleRemoveNode(ZigbeeNode *node, const QUuid &networkUuid)
@ -209,6 +224,71 @@ void IntegrationPluginZigbeePhilipsHue::setupThing(ThingSetupInfo *info)
}
}
if (thing->thingClassId() == smartButtonThingClassId) {
ZigbeeNodeEndpoint *endpointHa = node->getEndpoint(0x01);
// Set the version
thing->setStateValue(m_versionStateTypeIds.value(thing->thingClassId()), endpointHa->softwareBuildId());
// Connect to button presses
ZigbeeClusterOnOff *onOffCluster = endpointHa->outputCluster<ZigbeeClusterOnOff>(ZigbeeClusterLibrary::ClusterIdOnOff);
if (!onOffCluster) {
qCWarning(dcZigbeePhilipsHue()) << "Could not find on/off client cluster on" << thing << endpointHa;
} else {
// The smart button toggles between command(On) and commandOffWithEffect() for short presses...
connect(onOffCluster, &ZigbeeClusterOnOff::commandSent, thing, [=](ZigbeeClusterOnOff::Command command){
if (command == ZigbeeClusterOnOff::CommandOn) {
qCDebug(dcZigbeePhilipsHue()) << thing << "pressed";
emit emitEvent(Event(smartButtonPressedEventTypeId, thing->id()));
} else {
qCWarning(dcZigbeePhilipsHue()) << thing << "unhandled command received" << command;
}
});
connect(onOffCluster, &ZigbeeClusterOnOff::commandOffWithEffectSent, thing, [=](ZigbeeClusterOnOff::Effect effect, quint8 effectVariant){
qCDebug(dcZigbeePhilipsHue()) << thing << "pressed" << effect << effectVariant;
emit emitEvent(Event(smartButtonPressedEventTypeId, thing->id()));
});
// ...and toggless between level up/down for long presses
ZigbeeClusterLevelControl *levelCluster = endpointHa->outputCluster<ZigbeeClusterLevelControl>(ZigbeeClusterLibrary::ClusterIdLevelControl);
if (!levelCluster) {
qCWarning(dcZigbeePhilipsHue()) << "Could not find level client cluster on" << thing << endpointHa;
} else {
connect(levelCluster, &ZigbeeClusterLevelControl::commandStepSent, thing, [=](ZigbeeClusterLevelControl::FadeMode fadeMode, quint8 stepSize, quint16 transitionTime){
qCDebug(dcZigbeePhilipsHue()) << thing << "level button pressed" << fadeMode << stepSize << transitionTime;
switch (fadeMode) {
case ZigbeeClusterLevelControl::FadeModeUp:
qCDebug(dcZigbeePhilipsHue()) << thing << "DIM UP pressed";
emit emitEvent(Event(smartButtonLongPressedEventTypeId, thing->id()));
break;
case ZigbeeClusterLevelControl::FadeModeDown:
qCDebug(dcZigbeePhilipsHue()) << thing << "DIM DOWN pressed";
emit emitEvent(Event(smartButtonLongPressedEventTypeId, thing->id()));
break;
}
});
}
}
// Get battery level changes
ZigbeeClusterPowerConfiguration *powerCluster = endpointHa->inputCluster<ZigbeeClusterPowerConfiguration>(ZigbeeClusterLibrary::ClusterIdPowerConfiguration);
if (!powerCluster) {
qCWarning(dcZigbeePhilipsHue()) << "Could not find power configuration cluster on" << thing << endpointHa;
} else {
// Only set the initial state if the attribute already exists
if (powerCluster->hasAttribute(ZigbeeClusterPowerConfiguration::AttributeBatteryPercentageRemaining)) {
thing->setStateValue(dimmerSwitchBatteryLevelStateTypeId, powerCluster->batteryPercentage());
thing->setStateValue(dimmerSwitchBatteryCriticalStateTypeId, (powerCluster->batteryPercentage() < 10.0));
}
connect(powerCluster, &ZigbeeClusterPowerConfiguration::batteryPercentageChanged, thing, [=](double percentage){
qCDebug(dcZigbeePhilipsHue()) << "Battery percentage changed" << percentage << "%" << thing;
thing->setStateValue(smartButtonBatteryLevelStateTypeId, percentage);
thing->setStateValue(smartButtonBatteryCriticalStateTypeId, (percentage < 10.0));
});
}
}
if (thing->thingClassId() == motionSensorThingClassId) {
ZigbeeNodeEndpoint *endpointHa = node->getEndpoint(0x02);
@ -424,6 +504,100 @@ void IntegrationPluginZigbeePhilipsHue::initDimmerSwitch(ZigbeeNode *node)
});
}
void IntegrationPluginZigbeePhilipsHue::initSmartButton(ZigbeeNode *node)
{
ZigbeeNodeEndpoint *endpoint = node->getEndpoint(0x01);
// Get the current configured bindings for this node
ZigbeeReply *reply = node->removeAllBindings();
connect(reply, &ZigbeeReply::finished, node, [=](){
if (reply->error() != ZigbeeReply::ErrorNoError) {
qCWarning(dcZigbeePhilipsHue()) << "Failed to remove all bindings for initialization of" << node;
} else {
qCDebug(dcZigbeePhilipsHue()) << "Removed all bindings successfully from" << node;
}
// Read battery, bind and configure attribute reporting for battery
if (!endpoint->hasInputCluster(ZigbeeClusterLibrary::ClusterIdPowerConfiguration)) {
qCWarning(dcZigbeePhilipsHue()) << "Failed to initialize the power configuration cluster because the cluster could not be found" << node << endpoint;
return;
}
qCDebug(dcZigbeePhilipsHue()) << "Read power configuration cluster attributes" << node;
ZigbeeClusterReply *readAttributeReply = endpoint->getInputCluster(ZigbeeClusterLibrary::ClusterIdPowerConfiguration)->readAttributes({ZigbeeClusterPowerConfiguration::AttributeBatteryPercentageRemaining});
connect(readAttributeReply, &ZigbeeClusterReply::finished, node, [=](){
if (readAttributeReply->error() != ZigbeeClusterReply::ErrorNoError) {
qCWarning(dcZigbeePhilipsHue()) << "Failed to read power cluster attributes" << readAttributeReply->error();
} else {
qCDebug(dcZigbeePhilipsHue()) << "Read power configuration cluster attributes finished successfully";
}
// Bind the cluster to the coordinator
qCDebug(dcZigbeePhilipsHue()) << "Bind power configuration cluster to coordinator IEEE address";
ZigbeeDeviceObjectReply * zdoReply = node->deviceObject()->requestBindIeeeAddress(endpoint->endpointId(), ZigbeeClusterLibrary::ClusterIdPowerConfiguration,
hardwareManager()->zigbeeResource()->coordinatorAddress(node->networkUuid()), 0x01);
connect(zdoReply, &ZigbeeDeviceObjectReply::finished, node, [=](){
if (zdoReply->error() != ZigbeeDeviceObjectReply::ErrorNoError) {
qCWarning(dcZigbeePhilipsHue()) << "Failed to bind power cluster to coordinator" << zdoReply->error();
} else {
qCDebug(dcZigbeePhilipsHue()) << "Bind power configuration cluster to coordinator finished successfully";
}
// Configure attribute rporting for battery remaining (0.5 % changes = 1)
ZigbeeClusterLibrary::AttributeReportingConfiguration reportingConfig;
reportingConfig.attributeId = ZigbeeClusterPowerConfiguration::AttributeBatteryPercentageRemaining;
reportingConfig.dataType = Zigbee::Uint8;
reportingConfig.minReportingInterval = 300;
reportingConfig.maxReportingInterval = 2700;
reportingConfig.reportableChange = ZigbeeDataType(static_cast<quint8>(1)).data();
qCDebug(dcZigbeePhilipsHue()) << "Configure attribute reporting for power configuration cluster to coordinator";
ZigbeeClusterReply *reportingReply = endpoint->getInputCluster(ZigbeeClusterLibrary::ClusterIdPowerConfiguration)->configureReporting({reportingConfig});
connect(reportingReply, &ZigbeeClusterReply::finished, this, [=](){
if (reportingReply->error() != ZigbeeClusterReply::ErrorNoError) {
qCWarning(dcZigbeePhilipsHue()) << "Failed to configure power cluster attribute reporting" << reportingReply->error();
} else {
qCDebug(dcZigbeePhilipsHue()) << "Attribute reporting configuration finished for power cluster" << ZigbeeClusterLibrary::parseAttributeReportingStatusRecords(reportingReply->responseFrame().payload);
}
qCDebug(dcZigbeePhilipsHue()) << "Bind on/off cluster to coordinator";
ZigbeeDeviceObjectReply * zdoReply = node->deviceObject()->requestBindGroupAddress(endpoint->endpointId(), ZigbeeClusterLibrary::ClusterIdOnOff, 0x0000);
connect(zdoReply, &ZigbeeDeviceObjectReply::finished, node, [=](){
if (zdoReply->error() != ZigbeeDeviceObjectReply::ErrorNoError) {
qCWarning(dcZigbeePhilipsHue()) << "Failed to bind on/off cluster to coordinator" << zdoReply->error();
} else {
qCDebug(dcZigbeePhilipsHue()) << "Bind on/off cluster to coordinator finished successfully";
}
qCDebug(dcZigbeePhilipsHue()) << "Bind power level cluster to coordinator";
ZigbeeDeviceObjectReply * zdoReply = node->deviceObject()->requestBindGroupAddress(endpoint->endpointId(), ZigbeeClusterLibrary::ClusterIdLevelControl, 0x0000);
connect(zdoReply, &ZigbeeDeviceObjectReply::finished, node, [=](){
if (zdoReply->error() != ZigbeeDeviceObjectReply::ErrorNoError) {
qCWarning(dcZigbeePhilipsHue()) << "Failed to bind level cluster to coordinator" << zdoReply->error();
} else {
qCDebug(dcZigbeePhilipsHue()) << "Bind level cluster to coordinator finished successfully";
}
qCDebug(dcZigbeePhilipsHue()) << "Read binding table from node" << node;
ZigbeeReply *reply = node->readBindingTableEntries();
connect(reply, &ZigbeeReply::finished, node, [=](){
if (reply->error() != ZigbeeReply::ErrorNoError) {
qCWarning(dcZigbeePhilipsHue()) << "Failed to read binding table from" << node;
} else {
foreach (const ZigbeeDeviceProfile::BindingTableListRecord &binding, node->bindingTableRecords()) {
qCDebug(dcZigbeePhilipsHue()) << node << binding;
}
}
});
});
});
});
});
});
});
}
void IntegrationPluginZigbeePhilipsHue::initMotionSensor(ZigbeeNode *node)
{
ZigbeeNodeEndpoint *endpointHa = node->getEndpoint(0x02);

View File

@ -71,6 +71,7 @@ private:
void initDimmerSwitch(ZigbeeNode *node);
void initMotionSensor(ZigbeeNode *node);
void initSmartButton(ZigbeeNode *node);
};

View File

@ -10,7 +10,7 @@
"thingClasses": [
{
"name": "dimmerSwitch",
"displayName": "Hue dimmer switch",
"displayName": "Hue Dimmer switch",
"id": "b2711164-a848-4715-8ddf-33ca86f9f4cf",
"setupMethod": "JustAdd",
"createMethods": [ "Auto" ],
@ -101,9 +101,94 @@
}
]
},
{
"id": "edfa223b-aade-4369-a4e2-77b99989f49d",
"name": "smartButton",
"displayName": "Hue Smart button",
"createMethods": ["Auto"],
"interfaces": ["longpressbutton", "batterylevel", "wirelessconnectable"],
"paramTypes": [
{
"id": "2c2bd259-b1cd-47f4-825f-03c3806a346f",
"name": "ieeeAddress",
"displayName": "IEEE adress",
"type": "QString",
"defaultValue": "00:00:00:00:00:00:00:00"
},
{
"id": "cee19fae-eac7-4cad-ab4f-b5fe68710115",
"name": "networkUuid",
"displayName": "Zigbee network UUID",
"type": "QString",
"defaultValue": ""
}
],
"stateTypes": [
{
"id": "2837540f-a97b-4a92-9e17-900db38577e4",
"name": "batteryLevel",
"displayName": "Battery level",
"displayNameEvent": "Battery level changed",
"type": "int",
"minValue": 0,
"maxValue": 100,
"unit": "Percentage",
"defaultValue": 0
},
{
"id": "3d79d36e-008e-41c8-9bb5-28db235b93ce",
"name": "batteryCritical",
"displayName": "Battery critical",
"displayNameEvent": "Battery critical changed",
"type": "bool",
"defaultValue": false
},
{
"id": "4748fc45-5ffd-4472-97a2-9fef256937db",
"name": "connected",
"displayName": "Connected",
"displayNameEvent": "Connected changed",
"type": "bool",
"defaultValue": false,
"cached": false
},
{
"id": "0eb19a1e-04d1-44ce-9554-f70c47a4f48a",
"name": "signalStrength",
"displayName": "Signal strength",
"displayNameEvent": "Signal strength changed",
"type": "uint",
"minValue": 0,
"maxValue": 100,
"unit": "Percentage",
"defaultValue": 0
},
{
"id": "06268fbd-08d1-4f6c-bf81-ee44d8628ebc",
"name": "version",
"displayName": "Version",
"displayNameEvent": "Version changed",
"type": "QString",
"cached": true,
"defaultValue": ""
}
],
"eventTypes": [
{
"id": "b2c94c5a-0076-4231-b455-1ca1567d1b43",
"name": "pressed",
"displayName": "Pressed"
},
{
"id": "c7e6b02a-2700-4dbb-b012-cb641655ce2b",
"name": "longPressed",
"displayName": "Long pressed"
}
]
},
{
"name": "motionSensor",
"displayName": "Hue motion sensor",
"displayName": "Hue Motion sensor",
"id": "031c45d1-e782-4f91-9f05-259d6b81c7ef",
"setupMethod": "JustAdd",
"createMethods": [ "Auto" ],

View File

@ -4,10 +4,10 @@
<context>
<name>ZigbeePhilipsHue</name>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="73"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="76"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="79"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="82"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="98"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="101"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="104"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="107"/>
<source>Battery</source>
<extracomment>The name of the ParamType (ThingClass: motionSensor, EventType: batteryLevel, ID: {00a4450b-d2fe-4e2b-92c8-1ab3a98d1628})
----------
@ -19,8 +19,8 @@ The name of the StateType ({3e28e0b3-fe23-4293-8876-8384def6c4fb}) of ThingClass
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="85"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="88"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="110"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="113"/>
<source>Battery changed</source>
<extracomment>The name of the EventType ({00a4450b-d2fe-4e2b-92c8-1ab3a98d1628}) of ThingClass motionSensor
----------
@ -28,89 +28,131 @@ The name of the EventType ({3e28e0b3-fe23-4293-8876-8384def6c4fb}) of ThingClass
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="91"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="94"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="97"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="100"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="116"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="119"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="122"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="125"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="128"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="131"/>
<source>Battery critical</source>
<extracomment>The name of the ParamType (ThingClass: motionSensor, EventType: batteryCritical, ID: {9341f65a-b0aa-4648-82eb-e8400779f817})
----------
The name of the StateType ({9341f65a-b0aa-4648-82eb-e8400779f817}) of ThingClass motionSensor
----------
The name of the ParamType (ThingClass: smartButton, EventType: batteryCritical, ID: {3d79d36e-008e-41c8-9bb5-28db235b93ce})
----------
The name of the StateType ({3d79d36e-008e-41c8-9bb5-28db235b93ce}) of ThingClass smartButton
----------
The name of the ParamType (ThingClass: dimmerSwitch, EventType: batteryCritical, ID: {4223a3bc-9616-4ed2-ae50-704b9df62d0e})
----------
The name of the StateType ({4223a3bc-9616-4ed2-ae50-704b9df62d0e}) of ThingClass dimmerSwitch</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="103"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="106"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="134"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="137"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="140"/>
<source>Battery critical changed</source>
<extracomment>The name of the EventType ({9341f65a-b0aa-4648-82eb-e8400779f817}) of ThingClass motionSensor
----------
The name of the EventType ({3d79d36e-008e-41c8-9bb5-28db235b93ce}) of ThingClass smartButton
----------
The name of the EventType ({4223a3bc-9616-4ed2-ae50-704b9df62d0e}) of ThingClass dimmerSwitch</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="109"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="143"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="146"/>
<source>Battery level</source>
<extracomment>The name of the ParamType (ThingClass: smartButton, EventType: batteryLevel, ID: {2837540f-a97b-4a92-9e17-900db38577e4})
----------
The name of the StateType ({2837540f-a97b-4a92-9e17-900db38577e4}) of ThingClass smartButton</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="149"/>
<source>Battery level changed</source>
<extracomment>The name of the EventType ({2837540f-a97b-4a92-9e17-900db38577e4}) of ThingClass smartButton</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="152"/>
<source>Button name</source>
<extracomment>The name of the ParamType (ThingClass: dimmerSwitch, EventType: pressed, ID: {c086a247-838f-49c0-b1e4-2ae1ed181b55})</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="112"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="155"/>
<source>Button pressed</source>
<extracomment>The name of the EventType ({33bb5816-8479-4995-99e2-cb0443886003}) of ThingClass dimmerSwitch</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="115"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="118"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="121"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="124"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="158"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="161"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="164"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="167"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="170"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="173"/>
<source>Connected</source>
<extracomment>The name of the ParamType (ThingClass: motionSensor, EventType: connected, ID: {0d0a5ee1-41f2-4b5a-a3c0-7c8cca1c064d})
----------
The name of the StateType ({0d0a5ee1-41f2-4b5a-a3c0-7c8cca1c064d}) of ThingClass motionSensor
----------
The name of the ParamType (ThingClass: smartButton, EventType: connected, ID: {4748fc45-5ffd-4472-97a2-9fef256937db})
----------
The name of the StateType ({4748fc45-5ffd-4472-97a2-9fef256937db}) of ThingClass smartButton
----------
The name of the ParamType (ThingClass: dimmerSwitch, EventType: connected, ID: {5ac101b2-4bb7-4b5c-8493-08b1ae7ca0c1})
----------
The name of the StateType ({5ac101b2-4bb7-4b5c-8493-08b1ae7ca0c1}) of ThingClass dimmerSwitch</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="127"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="130"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="176"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="179"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="182"/>
<source>Connected changed</source>
<extracomment>The name of the EventType ({0d0a5ee1-41f2-4b5a-a3c0-7c8cca1c064d}) of ThingClass motionSensor
----------
The name of the EventType ({4748fc45-5ffd-4472-97a2-9fef256937db}) of ThingClass smartButton
----------
The name of the EventType ({5ac101b2-4bb7-4b5c-8493-08b1ae7ca0c1}) of ThingClass dimmerSwitch</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="133"/>
<source>Hue dimmer switch</source>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="185"/>
<source>Hue Dimmer switch</source>
<extracomment>The name of the ThingClass ({b2711164-a848-4715-8ddf-33ca86f9f4cf})</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="136"/>
<source>Hue motion sensor</source>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="188"/>
<source>Hue Motion sensor</source>
<extracomment>The name of the ThingClass ({031c45d1-e782-4f91-9f05-259d6b81c7ef})</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="139"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="142"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="191"/>
<source>Hue Smart button</source>
<extracomment>The name of the ThingClass ({edfa223b-aade-4369-a4e2-77b99989f49d})</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="194"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="197"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="200"/>
<source>IEEE adress</source>
<extracomment>The name of the ParamType (ThingClass: motionSensor, Type: thing, ID: {a866df99-7e2a-40e1-b82e-529c03846d5e})
----------
The name of the ParamType (ThingClass: smartButton, Type: thing, ID: {2c2bd259-b1cd-47f4-825f-03c3806a346f})
----------
The name of the ParamType (ThingClass: dimmerSwitch, Type: thing, ID: {b221cad1-ef2e-4192-8168-11d0205a43da})</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="145"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="148"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="203"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="206"/>
<source>Last seen time</source>
<extracomment>The name of the ParamType (ThingClass: motionSensor, EventType: lastSeenTime, ID: {128777a9-75e7-4cc6-b196-691d2ffddbc9})
----------
@ -118,14 +160,14 @@ The name of the StateType ({128777a9-75e7-4cc6-b196-691d2ffddbc9}) of ThingClass
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="151"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="209"/>
<source>Last seen time changed</source>
<extracomment>The name of the EventType ({128777a9-75e7-4cc6-b196-691d2ffddbc9}) of ThingClass motionSensor</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="154"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="157"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="212"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="215"/>
<source>Light intensity</source>
<extracomment>The name of the ParamType (ThingClass: motionSensor, EventType: lightIntensity, ID: {8077e335-1d18-4e3f-9b5e-6f71af4a33b1})
----------
@ -133,20 +175,26 @@ The name of the StateType ({8077e335-1d18-4e3f-9b5e-6f71af4a33b1}) of ThingClass
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="160"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="218"/>
<source>Light intensity changed</source>
<extracomment>The name of the EventType ({8077e335-1d18-4e3f-9b5e-6f71af4a33b1}) of ThingClass motionSensor</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="163"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="221"/>
<source>Long pressed</source>
<extracomment>The name of the EventType ({c7e6b02a-2700-4dbb-b012-cb641655ce2b}) of ThingClass smartButton</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="224"/>
<source>Philips</source>
<extracomment>The name of the vendor ({0ae1e001-2aa6-47ed-b8c0-334c3728a68f})</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="166"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="169"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="227"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="230"/>
<source>Present</source>
<extracomment>The name of the ParamType (ThingClass: motionSensor, EventType: isPresent, ID: {66e3b840-4f4c-4f4a-a71a-69fb751f2a3b})
----------
@ -154,38 +202,53 @@ The name of the StateType ({66e3b840-4f4c-4f4a-a71a-69fb751f2a3b}) of ThingClass
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="172"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="233"/>
<source>Present changed</source>
<extracomment>The name of the EventType ({66e3b840-4f4c-4f4a-a71a-69fb751f2a3b}) of ThingClass motionSensor</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="175"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="178"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="181"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="184"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="236"/>
<source>Pressed</source>
<extracomment>The name of the EventType ({b2c94c5a-0076-4231-b455-1ca1567d1b43}) of ThingClass smartButton</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="239"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="242"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="245"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="248"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="251"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="254"/>
<source>Signal strength</source>
<extracomment>The name of the ParamType (ThingClass: motionSensor, EventType: signalStrength, ID: {d4f85c34-896a-4bab-af71-8b80d9889815})
----------
The name of the StateType ({d4f85c34-896a-4bab-af71-8b80d9889815}) of ThingClass motionSensor
----------
The name of the ParamType (ThingClass: smartButton, EventType: signalStrength, ID: {0eb19a1e-04d1-44ce-9554-f70c47a4f48a})
----------
The name of the StateType ({0eb19a1e-04d1-44ce-9554-f70c47a4f48a}) of ThingClass smartButton
----------
The name of the ParamType (ThingClass: dimmerSwitch, EventType: signalStrength, ID: {5a6e325e-a6ee-4a36-b429-f5d8c8adb80b})
----------
The name of the StateType ({5a6e325e-a6ee-4a36-b429-f5d8c8adb80b}) of ThingClass dimmerSwitch</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="187"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="190"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="257"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="260"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="263"/>
<source>Signal strength changed</source>
<extracomment>The name of the EventType ({d4f85c34-896a-4bab-af71-8b80d9889815}) of ThingClass motionSensor
----------
The name of the EventType ({0eb19a1e-04d1-44ce-9554-f70c47a4f48a}) of ThingClass smartButton
----------
The name of the EventType ({5a6e325e-a6ee-4a36-b429-f5d8c8adb80b}) of ThingClass dimmerSwitch</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="193"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="196"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="266"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="269"/>
<source>Temperature</source>
<extracomment>The name of the ParamType (ThingClass: motionSensor, EventType: temperature, ID: {978f069c-57c0-4e73-a81b-c593bc2e7624})
----------
@ -193,53 +256,65 @@ The name of the StateType ({978f069c-57c0-4e73-a81b-c593bc2e7624}) of ThingClass
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="199"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="272"/>
<source>Temperature changed</source>
<extracomment>The name of the EventType ({978f069c-57c0-4e73-a81b-c593bc2e7624}) of ThingClass motionSensor</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="202"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="275"/>
<source>Time period</source>
<extracomment>The name of the ParamType (ThingClass: motionSensor, Type: settings, ID: {4576f68f-7856-48f8-a3fd-2c9e7f968537})</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="205"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="208"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="211"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="214"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="278"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="281"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="284"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="287"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="290"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="293"/>
<source>Version</source>
<extracomment>The name of the ParamType (ThingClass: motionSensor, EventType: version, ID: {18cb67e1-220f-41d7-9145-1816fc5d38d0})
----------
The name of the StateType ({18cb67e1-220f-41d7-9145-1816fc5d38d0}) of ThingClass motionSensor
----------
The name of the ParamType (ThingClass: smartButton, EventType: version, ID: {06268fbd-08d1-4f6c-bf81-ee44d8628ebc})
----------
The name of the StateType ({06268fbd-08d1-4f6c-bf81-ee44d8628ebc}) of ThingClass smartButton
----------
The name of the ParamType (ThingClass: dimmerSwitch, EventType: version, ID: {12139630-668a-4ad8-96fa-781028e9eced})
----------
The name of the StateType ({12139630-668a-4ad8-96fa-781028e9eced}) of ThingClass dimmerSwitch</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="217"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="220"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="296"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="299"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="302"/>
<source>Version changed</source>
<extracomment>The name of the EventType ({18cb67e1-220f-41d7-9145-1816fc5d38d0}) of ThingClass motionSensor
----------
The name of the EventType ({06268fbd-08d1-4f6c-bf81-ee44d8628ebc}) of ThingClass smartButton
----------
The name of the EventType ({12139630-668a-4ad8-96fa-781028e9eced}) of ThingClass dimmerSwitch</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="223"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="305"/>
<source>Zigbee Philips Hue</source>
<extracomment>The name of the plugin ZigbeePhilipsHue ({0ca340b7-061a-42e6-ab7d-d7b4fd235d02})</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="226"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="229"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="308"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="311"/>
<location filename="../../../build-nymea-plugins-Desktop-Debug/zigbeephilipshue/plugininfo.h" line="314"/>
<source>Zigbee network UUID</source>
<extracomment>The name of the ParamType (ThingClass: motionSensor, Type: thing, ID: {99f4ff28-6d61-4e96-bfc4-c32aa05bb256})
----------
The name of the ParamType (ThingClass: smartButton, Type: thing, ID: {cee19fae-eac7-4cad-ab4f-b5fe68710115})
----------
The name of the ParamType (ThingClass: dimmerSwitch, Type: thing, ID: {d2bb97ee-caed-4776-8931-9fc0a04e4e8f})</extracomment>
<translation type="unfinished"></translation>
</message>