Dimmable LED Actuator ver 1.4.1
-
@hek I am getting the following error when I compile this sketch under Mysensor ver 1.4.1. what can the problem be. If I do i on ver 1.4 it works
DimmableLEDActuator.ino:33:17: error: no matching function for call to 'MySensor::MySensor(int, int)'
DimmableLEDActuator.ino:33:17: note: candidates are:
In file included from DimmableLEDActuator.ino:26:0:
E:\ardruino progammes\libraries\MySensors/MySensor.h:79:2: note: MySensor::MySensor()
MySensor();
^
E:\ardruino progammes\libraries\MySensors/MySensor.h:79:2: note: candidate expects 0 arguments, 2 provided
E:\ardruino progammes\libraries\MySensors/MySensor.h:70:7: note: MySensor::MySensor(const MySensor&)
class MySensor
^
E:\ardruino progammes\libraries\MySensors/MySensor.h:70:7: note: candidate expects 1 argument, 2 provided
Error compiling. -
in openhab , dimmer switch change only two state 0 and 100.
I didn't get change in between 0 to 100.please help me in openhab rule file for change.
my rule file is
when
Item Fan_Hall_reg received commandthen var Number percent = 0 if(Fan_Hall_reg.state instanceof DecimalType) percent = Fan_Hall_reg.state as DecimalType if(receivedCommand==INCREASE) percent = percent + 5 if(receivedCommand==DECREASE) percent = percent - 5 if(percent<0) percent = 0 if(percent>100) percent = 100 postUpdate(Fan_Hall_reg, percent); sendCommand (Arduino , "Fan_Hall_reg=" + percent)in this rule I get only two state not in between that.