Added support for RisingSun receivers
This commit is contained in:
parent
c1c58bf54e
commit
80a30d6a1c
4 changed files with 174 additions and 0 deletions
|
@ -14,6 +14,7 @@
|
|||
|
||||
#include "DeviceGroup.h"
|
||||
#include "DeviceNexa.h"
|
||||
#include "DeviceRisingSun.h"
|
||||
#include "DeviceWaveman.h"
|
||||
#include "DeviceSartano.h"
|
||||
#include "DeviceIkea.h"
|
||||
|
@ -85,6 +86,11 @@ Device *Manager::getDevice(int intDeviceId){
|
|||
} else if (strcasecmp(protocol.c_str(), "group") == 0) {
|
||||
dev = new DeviceGroup(intDeviceId, intModel, strName);
|
||||
((DeviceGroup*)dev)->setDevices(settings.getDeviceParameter(intDeviceId, "devices"));
|
||||
|
||||
} else if (strcasecmp(protocol.c_str(), "risingsun") == 0) {
|
||||
dev = new DeviceRisingSun(intDeviceId, intModel, strName);
|
||||
((DeviceRisingSun*)dev)->setHouse(settings.getDeviceParameter(intDeviceId, "nexa_house"));
|
||||
((DeviceRisingSun*)dev)->setUnit(settings.getDeviceParameter(intDeviceId, "nexa_unit"));
|
||||
|
||||
} else if (strcasecmp(protocol.c_str(), "Waveman") == 0) {
|
||||
dev = new DeviceWaveman(intDeviceId, intModel, strName);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue