fix typos as reported by Krazy2

This commit is contained in:
Michael Zanetti 2018-03-19 13:11:24 +01:00
parent bf3f525d50
commit 6218d39a73
22 changed files with 52 additions and 52 deletions

View File

@ -51,7 +51,7 @@
is finished, the \tt running \l{State} will change to \tt false. is finished, the \tt running \l{State} will change to \tt false.
\section3 Example \section3 Example
An example for a very usefull script could be a backup scrip like following \tt backup.sh script. An example for a very useful script could be a backup scrip like following \tt backup.sh script.
\code \code
#!/bin/sh #!/bin/sh
# Directories to backup... # Directories to backup...

View File

@ -286,8 +286,8 @@ void AveaBulb::onColorServiceStateChanged(const QLowEnergyService::ServiceState
foreach (const QLowEnergyCharacteristic &characteristic, m_colorService->characteristics()) { foreach (const QLowEnergyCharacteristic &characteristic, m_colorService->characteristics()) {
qCDebug(dcElgato()) << " -->" << characteristic.name() << characteristic.uuid().toString() << characteristic.value(); qCDebug(dcElgato()) << " -->" << characteristic.name() << characteristic.uuid().toString() << characteristic.value();
foreach (const QLowEnergyDescriptor &desciptor, characteristic.descriptors()) { foreach (const QLowEnergyDescriptor &descriptor, characteristic.descriptors()) {
qCDebug(dcElgato()) << " -->" << desciptor.name() << desciptor.uuid().toString() << desciptor.value(); qCDebug(dcElgato()) << " -->" << descriptor.name() << descriptor.uuid().toString() << descriptor.value();
} }
} }

View File

@ -28,12 +28,12 @@
\ingroup plugins \ingroup plugins
\ingroup nymea-plugins \ingroup nymea-plugins
This plugin allows to find and controll devices from Max!(eQ-3). To use this devices, you need at least This plugin allows to find and control devices from Max!(eQ-3). To use this devices, you need at least
one \l{http://www.eq-3.de/max-heizungssteuerung-produktdetail/items/bc-lgw-o-tw.html}{Max! Cube LAN Gateway} one \l{http://www.eq-3.de/max-heizungssteuerung-produktdetail/items/bc-lgw-o-tw.html}{Max! Cube LAN Gateway}
in you local network. Once the cube is connected (DHCP), you can auto detect the cube in the network and in you local network. Once the cube is connected (DHCP), you can auto detect the cube in the network and
add it to your \l{https://nymea.io}{nymea} devices. Also more than one cube in the network is supported. All add it to your \l{https://nymea.io}{nymea} devices. Also more than one cube in the network is supported. All
devices, which are connected to a cube, will be autogenerated. For the setup of a cube, the original devices, which are connected to a cube, will be autogenerated. For the setup of a cube, the original
software is recomanded (min/max setpoint temperature, weekly programm...). software is recomanded (min/max setpoint temperature, weekly program...).
\chapter Supported devices \chapter Supported devices
\section2 Max! Cube LAN Gateway \section2 Max! Cube LAN Gateway
@ -349,7 +349,7 @@ void DevicePluginEQ3::wallThermostatDataUpdated()
device->setStateValue(wallThermostateEcoTempStateTypeId, wallThermostat->ecoTemp()); device->setStateValue(wallThermostateEcoTempStateTypeId, wallThermostat->ecoTemp());
device->setStateValue(wallThermostateMaxSetpointTempStateTypeId, wallThermostat->maxSetPointTemp()); device->setStateValue(wallThermostateMaxSetpointTempStateTypeId, wallThermostat->maxSetPointTemp());
device->setStateValue(wallThermostateMinSetpointTempStateTypeId, wallThermostat->minSetPointTemp()); device->setStateValue(wallThermostateMinSetpointTempStateTypeId, wallThermostat->minSetPointTemp());
device->setStateValue(wallThermostateErrorOccurredStateTypeId, wallThermostat->errorOccured()); device->setStateValue(wallThermostateErrorOccurredStateTypeId, wallThermostat->errorOccurred());
device->setStateValue(wallThermostateInitializedStateTypeId, wallThermostat->initialized()); device->setStateValue(wallThermostateInitializedStateTypeId, wallThermostat->initialized());
device->setStateValue(wallThermostateBatteryLowStateTypeId, wallThermostat->batteryLow()); device->setStateValue(wallThermostateBatteryLowStateTypeId, wallThermostat->batteryLow());
device->setStateValue(wallThermostateLinkStatusOKStateTypeId, wallThermostat->linkStatusOK()); device->setStateValue(wallThermostateLinkStatusOKStateTypeId, wallThermostat->linkStatusOK());
@ -375,7 +375,7 @@ void DevicePluginEQ3::radiatorThermostatDataUpdated()
device->setStateValue(radiatorThermostateComfortTempStateTypeId, radiatorThermostat->comfortTemp()); device->setStateValue(radiatorThermostateComfortTempStateTypeId, radiatorThermostat->comfortTemp());
device->setStateValue(radiatorThermostateMaxSetpointTempStateTypeId, radiatorThermostat->maxSetPointTemp()); device->setStateValue(radiatorThermostateMaxSetpointTempStateTypeId, radiatorThermostat->maxSetPointTemp());
device->setStateValue(radiatorThermostateMinSetpointTempStateTypeId, radiatorThermostat->minSetPointTemp()); device->setStateValue(radiatorThermostateMinSetpointTempStateTypeId, radiatorThermostat->minSetPointTemp());
device->setStateValue(radiatorThermostateErrorOccurredStateTypeId, radiatorThermostat->errorOccured()); device->setStateValue(radiatorThermostateErrorOccurredStateTypeId, radiatorThermostat->errorOccurred());
device->setStateValue(radiatorThermostateInitializedStateTypeId, radiatorThermostat->initialized()); device->setStateValue(radiatorThermostateInitializedStateTypeId, radiatorThermostat->initialized());
device->setStateValue(radiatorThermostateBatteryLowStateTypeId, radiatorThermostat->batteryLow()); device->setStateValue(radiatorThermostateBatteryLowStateTypeId, radiatorThermostat->batteryLow());
device->setStateValue(radiatorThermostatePanelLockedStateTypeId, radiatorThermostat->panelLocked()); device->setStateValue(radiatorThermostatePanelLockedStateTypeId, radiatorThermostat->panelLocked());

View File

@ -416,7 +416,7 @@ void MaxCube::decodeDevicelistMessage(QByteArray data)
// init/valid code // init/valid code
QByteArray initCode = fillBin(QByteArray::number(rawData.mid(8,2).toInt(0,16),2),8); QByteArray initCode = fillBin(QByteArray::number(rawData.mid(8,2).toInt(0,16),2),8);
device->setInformationValid((bool)initCode.mid(3,1).toInt()); device->setInformationValid((bool)initCode.mid(3,1).toInt());
device->setErrorOccured((bool)initCode.mid(4,1).toInt()); device->setErrorOccurred((bool)initCode.mid(4,1).toInt());
device->setIsAnswereToCommand((bool)initCode.mid(5,1).toInt()); device->setIsAnswereToCommand((bool)initCode.mid(5,1).toInt());
device->setInitialized((bool)initCode.mid(6,1).toInt()); device->setInitialized((bool)initCode.mid(6,1).toInt());
@ -444,7 +444,7 @@ void MaxCube::decodeDevicelistMessage(QByteArray data)
qCDebug(dcEQ3) << " RF address (hex) | " << device->rfAddress(); qCDebug(dcEQ3) << " RF address (hex) | " << device->rfAddress();
qCDebug(dcEQ3) << " initCode | " << initCode; qCDebug(dcEQ3) << " initCode | " << initCode;
qCDebug(dcEQ3) << " information valid | " << device->informationValid(); qCDebug(dcEQ3) << " information valid | " << device->informationValid();
qCDebug(dcEQ3) << " error occured | " << device->errorOccured(); qCDebug(dcEQ3) << " error occurred | " << device->errorOccurred();
qCDebug(dcEQ3) << " is answere to a command | " << device->isAnswereToCommand(); qCDebug(dcEQ3) << " is answere to a command | " << device->isAnswereToCommand();
qCDebug(dcEQ3) << " initialized | " << device->initialized(); qCDebug(dcEQ3) << " initialized | " << device->initialized();
qCDebug(dcEQ3) << " battery low | " << device->batteryLow(); qCDebug(dcEQ3) << " battery low | " << device->batteryLow();
@ -468,7 +468,7 @@ void MaxCube::decodeDevicelistMessage(QByteArray data)
QByteArray initCode = fillBin(QByteArray::number(rawData.mid(8,2).toInt(0,16),2),8); QByteArray initCode = fillBin(QByteArray::number(rawData.mid(8,2).toInt(0,16),2),8);
device->setInformationValid((bool)initCode.mid(3,1).toInt()); device->setInformationValid((bool)initCode.mid(3,1).toInt());
device->setErrorOccured((bool)initCode.mid(4,1).toInt()); device->setErrorOccurred((bool)initCode.mid(4,1).toInt());
device->setIsAnswereToCommand((bool)initCode.mid(5,1).toInt()); device->setIsAnswereToCommand((bool)initCode.mid(5,1).toInt());
device->setInitialized((bool)initCode.mid(6,1).toInt()); device->setInitialized((bool)initCode.mid(6,1).toInt());
@ -487,7 +487,7 @@ void MaxCube::decodeDevicelistMessage(QByteArray data)
qCDebug(dcEQ3) << " device name | " << device->deviceName(); qCDebug(dcEQ3) << " device name | " << device->deviceName();
qCDebug(dcEQ3) << " RF address (hex) | " << device->rfAddress(); qCDebug(dcEQ3) << " RF address (hex) | " << device->rfAddress();
qCDebug(dcEQ3) << " information valid | " << device->informationValid(); qCDebug(dcEQ3) << " information valid | " << device->informationValid();
qCDebug(dcEQ3) << " error occured | " << device->errorOccured(); qCDebug(dcEQ3) << " error occurred | " << device->errorOccurred();
qCDebug(dcEQ3) << " is answere to a command | " << device->isAnswereToCommand(); qCDebug(dcEQ3) << " is answere to a command | " << device->isAnswereToCommand();
qCDebug(dcEQ3) << " initialized | " << device->initialized(); qCDebug(dcEQ3) << " initialized | " << device->initialized();
qCDebug(dcEQ3) << " battery low | " << device->batteryLow(); qCDebug(dcEQ3) << " battery low | " << device->batteryLow();
@ -808,7 +808,7 @@ void MaxCube::setDeviceSetpointTemp(QByteArray rfAddress, int roomId, double tem
temperatureData = fillBin(QByteArray::number((int)temperature*2,2),6); temperatureData = fillBin(QByteArray::number((int)temperature*2,2),6);
// set auto/ permanent/ temp // set auto/ permanent/ temp
// 00 = auto (weekly programm...the hole tempererature byte to 0x00 // 00 = auto (weekly program...the hole tempererature byte to 0x00
// 01 = Permanent // 01 = Permanent
// 10 = Temporary (date/time has to be set) // 10 = Temporary (date/time has to be set)

View File

@ -168,14 +168,14 @@ void RadiatorThermostat::setInformationValid(const bool &informationValid)
m_informationValid = informationValid; m_informationValid = informationValid;
} }
bool RadiatorThermostat::errorOccured() const bool RadiatorThermostat::errorOccurred() const
{ {
return m_errorOccured; return m_errorOccurred;
} }
void RadiatorThermostat::setErrorOccured(const bool &errorOccured) void RadiatorThermostat::setErrorOccurred(const bool &errorOccurred)
{ {
m_errorOccured = errorOccured; m_errorOccurred = errorOccurred;
} }
bool RadiatorThermostat::isAnswereToCommand() const bool RadiatorThermostat::isAnswereToCommand() const

View File

@ -76,8 +76,8 @@ public:
bool informationValid() const; bool informationValid() const;
void setInformationValid(const bool &informationValid); void setInformationValid(const bool &informationValid);
bool errorOccured() const; bool errorOccurred() const;
void setErrorOccured(const bool &errorOccured); void setErrorOccurred(const bool &errorOccurred);
bool isAnswereToCommand() const; bool isAnswereToCommand() const;
void setIsAnswereToCommand(const bool &isAnswereToCommand); void setIsAnswereToCommand(const bool &isAnswereToCommand);
@ -126,7 +126,7 @@ private:
double m_valveMaximumSettings; double m_valveMaximumSettings;
double m_valveOffset; double m_valveOffset;
bool m_informationValid; bool m_informationValid;
bool m_errorOccured; bool m_errorOccurred;
bool m_isAnswerToCommand; bool m_isAnswerToCommand;
bool m_initialized; bool m_initialized;
bool m_batteryLow; bool m_batteryLow;

View File

@ -78,14 +78,14 @@ void WallThermostat::setInformationValid(const bool &informationValid)
m_informationValid = informationValid; m_informationValid = informationValid;
} }
bool WallThermostat::errorOccured() const bool WallThermostat::errorOccurred() const
{ {
return m_errorOccured; return m_errorOccurred;
} }
void WallThermostat::setErrorOccured(const bool &errorOccured) void WallThermostat::setErrorOccurred(const bool &errorOccurred)
{ {
m_errorOccured = errorOccured; m_errorOccurred = errorOccurred;
} }
bool WallThermostat::isAnswereToCommand() const bool WallThermostat::isAnswereToCommand() const

View File

@ -47,8 +47,8 @@ public:
bool informationValid() const; bool informationValid() const;
void setInformationValid(const bool &informationValid); void setInformationValid(const bool &informationValid);
bool errorOccured() const; bool errorOccurred() const;
void setErrorOccured(const bool &errorOccured); void setErrorOccurred(const bool &errorOccurred);
bool isAnswereToCommand() const; bool isAnswereToCommand() const;
void setIsAnswereToCommand(const bool &isAnswereToCommand); void setIsAnswereToCommand(const bool &isAnswereToCommand);
@ -92,7 +92,7 @@ private:
double m_minSetPointTemp; double m_minSetPointTemp;
bool m_informationValid; bool m_informationValid;
bool m_errorOccured; bool m_errorOccurred;
bool m_isAnswerToCommand; bool m_isAnswerToCommand;
bool m_initialized; bool m_initialized;
bool m_batteryLow; bool m_batteryLow;

View File

@ -28,7 +28,7 @@
\ingroup plugins \ingroup plugins
\ingroup nymea-plugins \ingroup nymea-plugins
This plugin allows to controll RF 433 MHz actors an receive remote signals from This plugin allows to control RF 433 MHz actors an receive remote signals from
\l{http://www.intertechno.at}{Intertechno} devices. \l{http://www.intertechno.at}{Intertechno} devices.
\chapter Plugin properties \chapter Plugin properties

View File

@ -217,7 +217,7 @@ void DevicePluginKodi::onUpnpDiscoveryFinished()
foreach (const UpnpDeviceDescriptor &upnpDescriptor, reply->deviceDescriptors()) { foreach (const UpnpDeviceDescriptor &upnpDescriptor, reply->deviceDescriptors()) {
if (upnpDescriptor.modelName().contains("Kodi")) { if (upnpDescriptor.modelName().contains("Kodi")) {
// check if we allready found the kodi on this ip // check if we already found the kodi on this ip
bool alreadyAdded = false; bool alreadyAdded = false;
foreach (const DeviceDescriptor dDescriptor, deviceDescriptors) { foreach (const DeviceDescriptor dDescriptor, deviceDescriptors) {
if (dDescriptor.params().paramValue(kodiIpParamTypeId).toString() == upnpDescriptor.hostAddress().toString()) { if (dDescriptor.params().paramValue(kodiIpParamTypeId).toString() == upnpDescriptor.hostAddress().toString()) {

View File

@ -47,7 +47,7 @@
from your yahoo account. from your yahoo account.
\section2 Custom Mail \section2 Custom Mail
With the Custom Mail Notification you can set up a custom SMTP connection. The supported authentification With the Custom Mail Notification you can set up a custom SMTP connection. The supported authentication
methods are ["PLAIN", "LOGIN"], the supported encryption methods are ["NONE", "SSL", "TLS"]. methods are ["PLAIN", "LOGIN"], the supported encryption methods are ["NONE", "SSL", "TLS"].
\chapter Plugin properties \chapter Plugin properties

View File

@ -161,7 +161,7 @@ void DevicePluginOsdomotics::parseNodes(Device *device, const QByteArray &data)
QHostAddress nodeAddress(QString(data.mid(index, delta - index))); QHostAddress nodeAddress(QString(data.mid(index, delta - index)));
// check if we allready have found this node // check if we already have found this node
foreach (Device *device, myDevices()) { foreach (Device *device, myDevices()) {
if (device->paramValue(merkurNodeHostParamTypeId).toString() == nodeAddress.toString()) { if (device->paramValue(merkurNodeHostParamTypeId).toString() == nodeAddress.toString()) {
return; return;

View File

@ -1033,7 +1033,7 @@ void DevicePluginPhilipsHue::processBridgeRefreshResponse(Device *device, const
break; break;
} }
// do lights/sensor update right after successfull bridge update // do lights/sensor update right after successful bridge update
HueBridge *bridge = m_bridges.key(device); HueBridge *bridge = m_bridges.key(device);
refreshLights(bridge); refreshLights(bridge);
} }

View File

@ -29,7 +29,7 @@
\ingroup plugins \ingroup plugins
\ingroup nymea-plugins-merkur \ingroup nymea-plugins-merkur
This allows to controll the nymea plantcare demo for 6LoWPAN networks. This allows to control the nymea plantcare demo for 6LoWPAN networks.
\chapter Plugin properties \chapter Plugin properties
Following JSON file contains the definition and the description of all available \l{DeviceClass}{DeviceClasses} Following JSON file contains the definition and the description of all available \l{DeviceClass}{DeviceClasses}

View File

@ -213,8 +213,8 @@ void Nuimo::printService(QLowEnergyService *service)
{ {
foreach (const QLowEnergyCharacteristic &characteristic, service->characteristics()) { foreach (const QLowEnergyCharacteristic &characteristic, service->characteristics()) {
qCDebug(dcSenic()) << " -->" << characteristic.name() << characteristic.uuid().toString() << characteristic.value(); qCDebug(dcSenic()) << " -->" << characteristic.name() << characteristic.uuid().toString() << characteristic.value();
foreach (const QLowEnergyDescriptor &desciptor, characteristic.descriptors()) { foreach (const QLowEnergyDescriptor &descriptor, characteristic.descriptors()) {
qCDebug(dcSenic()) << " -->" << desciptor.name() << desciptor.uuid().toString() << desciptor.value(); qCDebug(dcSenic()) << " -->" << descriptor.name() << descriptor.uuid().toString() << descriptor.value();
} }
} }
} }

View File

@ -114,7 +114,7 @@ DeviceManager::DeviceSetupStatus DevicePluginSnapd::setupDevice(Device *device)
} }
m_snapdControl = new SnapdControl(device, this); m_snapdControl = new SnapdControl(device, this);
m_snapdControl->setPreferedRefreshTime(configValue(SnapdRefreshScheduleParamTypeId).toInt()); m_snapdControl->setPreferredRefreshTime(configValue(SnapdRefreshScheduleParamTypeId).toInt());
connect(m_snapdControl, &SnapdControl::snapListUpdated, this, &DevicePluginSnapd::onSnapListUpdated); connect(m_snapdControl, &SnapdControl::snapListUpdated, this, &DevicePluginSnapd::onSnapListUpdated);
} else if (device->deviceClassId() == snapDeviceClassId) { } else if (device->deviceClassId() == snapDeviceClassId) {
@ -208,7 +208,7 @@ void DevicePluginSnapd::onPluginConfigurationChanged(const ParamTypeId &paramTyp
m_refreshTime = value.toInt(); m_refreshTime = value.toInt();
qCDebug(dcSnapd()) << "Refresh schedule start time" << QTime(m_refreshTime, 0, 0).toString("hh:mm"); qCDebug(dcSnapd()) << "Refresh schedule start time" << QTime(m_refreshTime, 0, 0).toString("hh:mm");
m_snapdControl->setPreferedRefreshTime(m_refreshTime); m_snapdControl->setPreferredRefreshTime(m_refreshTime);
} }
} }

View File

@ -129,11 +129,11 @@ void SnapdControl::configureRefreshSchedule()
return; return;
QVariantMap configuration; QVariantMap configMap; QVariantMap configuration; QVariantMap configMap;
configMap.insert("timer", m_preferedRefreshSchedule); configMap.insert("timer", m_preferredRefreshSchedule);
configMap.insert("schedule", m_preferedRefreshSchedule); configMap.insert("schedule", m_preferredRefreshSchedule);
configuration.insert("refresh", configMap); configuration.insert("refresh", configMap);
qCDebug(dcSnapd()) << "Configure refresh schedule from" << m_currentRefreshSchedule << "-->" << m_preferedRefreshSchedule; qCDebug(dcSnapd()) << "Configure refresh schedule from" << m_currentRefreshSchedule << "-->" << m_preferredRefreshSchedule;
SnapdReply *reply = m_snapConnection->put(QString("/v2/snaps/core/conf"), QJsonDocument::fromVariant(configuration).toJson(QJsonDocument::Compact), this); SnapdReply *reply = m_snapConnection->put(QString("/v2/snaps/core/conf"), QJsonDocument::fromVariant(configuration).toJson(QJsonDocument::Compact), this);
connect(reply, &SnapdReply::finished, this, &SnapdControl::onConfigureRefreshScheduleFinished); connect(reply, &SnapdReply::finished, this, &SnapdControl::onConfigureRefreshScheduleFinished);
@ -191,7 +191,7 @@ void SnapdControl::onLoadSystemInfoFinished()
reply->deleteLater(); reply->deleteLater();
// Check if the refresh schedule should be updated // Check if the refresh schedule should be updated
if (m_currentRefreshSchedule != m_preferedRefreshSchedule) { if (m_currentRefreshSchedule != m_preferredRefreshSchedule) {
configureRefreshSchedule(); configureRefreshSchedule();
} }
} }
@ -391,7 +391,7 @@ void SnapdControl::update()
return; return;
} }
// Note: this makes sure the state is realy connected (including connection initialisation stuff) // Note: this makes sure the state is really connected (including connection initialisation stuff)
if (!m_snapConnection->isConnected()) if (!m_snapConnection->isConnected())
return; return;
@ -453,13 +453,13 @@ void SnapdControl::checkForUpdates()
connect(reply, &SnapdReply::finished, this, &SnapdControl::onCheckForUpdatesFinished); connect(reply, &SnapdReply::finished, this, &SnapdControl::onCheckForUpdatesFinished);
} }
void SnapdControl::setPreferedRefreshTime(int startTime) void SnapdControl::setPreferredRefreshTime(int startTime)
{ {
// Schedule the refresh between startTime and startTime + 59 minutes // Schedule the refresh between startTime and startTime + 59 minutes
QTime start(startTime, 0, 0); QTime start(startTime, 0, 0);
QTime end = start.addSecs(3540); QTime end = start.addSecs(3540);
m_preferedRefreshSchedule = QString("%1-%2").arg(start.toString("h:mm")).arg(end.toString("h:mm")); m_preferredRefreshSchedule = QString("%1-%2").arg(start.toString("h:mm")).arg(end.toString("h:mm"));
qCDebug(dcSnapd()) << "Set prefered refresh schedule to " << m_preferedRefreshSchedule; qCDebug(dcSnapd()) << "Set preferred refresh schedule to " << m_preferredRefreshSchedule;
} }
void SnapdControl::snapRevert(const QString &snapName) void SnapdControl::snapRevert(const QString &snapName)

View File

@ -53,7 +53,7 @@ private:
bool m_timerBasedSchedule = false; bool m_timerBasedSchedule = false;
QString m_currentRefreshSchedule; QString m_currentRefreshSchedule;
QString m_preferedRefreshSchedule; QString m_preferredRefreshSchedule;
// Update calls // Update calls
void loadSystemInfo(); void loadSystemInfo();
@ -90,7 +90,7 @@ public slots:
void snapRefresh(); void snapRefresh();
void checkForUpdates(); void checkForUpdates();
void setPreferedRefreshTime(int startTime); void setPreferredRefreshTime(int startTime);
void snapRevert(const QString &snapName); void snapRevert(const QString &snapName);
void changeSnapChannel(const QString &snapName, const QString &channel); void changeSnapChannel(const QString &snapName, const QString &channel);

View File

@ -143,7 +143,7 @@ void DevicePluginTcpCommander::onTcpServerConnected()
} }
connect(tcpServer, &TcpServer::textMessageReceived, this, &DevicePluginTcpCommander::onTcpServerTextMessageReceived); connect(tcpServer, &TcpServer::textMessageReceived, this, &DevicePluginTcpCommander::onTcpServerTextMessageReceived);
//send signal device Setup was successfull //send signal device Setup was successful
} }
@ -167,7 +167,7 @@ void DevicePluginTcpCommander::onTcpServerTextMessageReceived(QByteArray data)
device->setStateValue(tcpInputDataReceivedStateTypeId, data); device->setStateValue(tcpInputDataReceivedStateTypeId, data);
if (device->paramValue(tcpInputComparisionParamTypeId).toString() == "Is exactly") { if (device->paramValue(tcpInputComparisionParamTypeId).toString() == "Is exactly") {
qDebug(dcTCPCommander()) << "is exacly"; qDebug(dcTCPCommander()) << "is exactly";
if (data == device->paramValue(tcpInputInputDataParamTypeId)) { if (data == device->paramValue(tcpInputInputDataParamTypeId)) {
qDebug(dcTCPCommander()) << "comparison successful"; qDebug(dcTCPCommander()) << "comparison successful";
emitEvent(Event(tcpInputCommandReceivedEventTypeId, device->id())); emitEvent(Event(tcpInputCommandReceivedEventTypeId, device->id()));

View File

@ -34,7 +34,7 @@
The unitec socket units have a learn function. If you plug in the switch, a red light will start to blink. This means The unitec socket units have a learn function. If you plug in the switch, a red light will start to blink. This means
the socket is in the learning mode. Now you can add a Unitec switch (48111) to nymea with your desired Channel (A,B,C or D). the socket is in the learning mode. Now you can add a Unitec switch (48111) to nymea with your desired Channel (A,B,C or D).
In order to pair the socket you just have to press the power ON, and the switch has to be in the pairing mode. In order to pair the socket you just have to press the power ON, and the switch has to be in the pairing mode.
If the pairing was successfull, the switch will turn on. If the switches will be removed from the socket or there will If the pairing was successful, the switch will turn on. If the switches will be removed from the socket or there will
be a power breakdown, the switch has to be re-paired. The device can not remember the teached channel. be a power breakdown, the switch has to be re-paired. The device can not remember the teached channel.
\chapter Plugin properties \chapter Plugin properties

View File

@ -28,7 +28,7 @@
\ingroup plugins \ingroup plugins
\ingroup nymea-plugins \ingroup nymea-plugins
This plugin allows to find and controll devices from WeMo, the This plugin allows to find and control devices from WeMo, the
\l{http://www.belkin.com/de/PRODUKTE/home-automation/c/wemo-home-automation/}{Belkin} \l{http://www.belkin.com/de/PRODUKTE/home-automation/c/wemo-home-automation/}{Belkin}
home automation system. home automation system.
@ -105,7 +105,7 @@ DeviceManager::DeviceError DevicePluginWemo::executeAction(Device *device, const
if (action.actionTypeId() == wemoSwitchPowerActionTypeId) { if (action.actionTypeId() == wemoSwitchPowerActionTypeId) {
// Check if wemo device is reachable // Check if wemo device is reachable
if (device->stateValue(wemoSwitchReachableStateTypeId).toBool()) { if (device->stateValue(wemoSwitchReachableStateTypeId).toBool()) {
// setPower returns false, if the curent powerState is allready the new powerState // setPower returns false, if the curent powerState is already the new powerState
if (setPower(device, action.param(wemoSwitchPowerStateParamTypeId).value().toBool(), action.id())) { if (setPower(device, action.param(wemoSwitchPowerStateParamTypeId).value().toBool(), action.id())) {
return DeviceManager::DeviceErrorAsync; return DeviceManager::DeviceErrorAsync;
} else { } else {

View File

@ -24,7 +24,7 @@
/*! /*!
\page ws2812.html \page ws2812.html
\title ws2812 \title ws2812
\brief Plugin to controll ws2812 LEDs based on 6LoWPAN networking. \brief Plugin to control ws2812 LEDs based on 6LoWPAN networking.
\ingroup plugins \ingroup plugins
\ingroup nymea-plugins-merkur \ingroup nymea-plugins-merkur