Match Everflourish parameters to allow receiving from TellStick Duo.
This commit is contained in:
parent
f4e248edef
commit
9f7928076e
1 changed files with 7 additions and 2 deletions
|
@ -101,7 +101,12 @@ int DeviceEverflourish::learn(Controller *controller){
|
|||
|
||||
|
||||
bool DeviceEverflourish::parameterMatches( const std::string &name, const std::string &value ) const {
|
||||
return false;
|
||||
if (name.compare("house") == 0) {
|
||||
return intHouse == atoi(value.c_str());
|
||||
} else if (name.compare("unit") == 0) {
|
||||
return intCode == atoi(value.c_str()) - 1;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -112,7 +117,7 @@ int DeviceEverflourish::methods(){
|
|||
}
|
||||
|
||||
std::string DeviceEverflourish::getProtocol() const {
|
||||
return "arctech";
|
||||
return "everflourish";
|
||||
}
|
||||
|
||||
std::string DeviceEverflourish::getCode(unsigned char action) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue