-
Notifications
You must be signed in to change notification settings - Fork 667
HowTo_OperateLowCostOutlets
There are generally five common kinds of outlet switches and two type of light controls
- "Type A" is configured with a 10 pole DIP switch.
- "Type B" is configured with two rotary (or sliding) switches with four setting possibilities each.
- "Type C" is made by Intertechno
- "Type D" like Status brand learn there RF codes each time they are powered on.
- "Type E" like ProElec (sold bt RS in the UK) are factory set with codes but can learn new codes
- "Slampher" these in light sockets made by Sonoff can be controlled via 433mHz they can be programmed to re
- "Funry" these light switches can be controlled via 433mHz
RCSwitch::switchOn("11001", "01000");
The first parameter represents the setting of the first 5 DIP switches. In this example it's ON-ON-OFF-OFF-ON.
The second parameter represents the setting of the last 5 DIP switches. In this example the last 5 DIP switches are OFF-ON-OFF-OFF-OFF.
#include <RCSwitch.h>
RCSwitch mySwitch = RCSwitch();
void setup() {
// Transmitter is connected to Arduino Pin #10
mySwitch.enableTransmit(10);
}
void loop() {
mySwitch.switchOn("11001", "01000");
// Wait a second
delay(1000);
// Switch off
mySwitch.switchOff("11001", "01000");
// Wait another second
delay(1000);
}
RCSwitch::switchOn(4, 2);
The first parameter represents the setting of the first rotary switch. In this example it's switched to "4" or "D" or "IV".
The second parameter represents the setting of the second rotary switch. In this example it's switched to "2" or "B" or "II".
#include <RCSwitch.h>
RCSwitch mySwitch = RCSwitch();
void setup() {
// Transmitter is connected to Arduino Pin #10
mySwitch.enableTransmit(10);
}
void loop() {
mySwitch.switchOn(4, 2);
// Wait a second
delay(1000);
// Switch off
mySwitch.switchOff(4, 2);
// Wait another second
delay(1000);
}
RCSwitch::switchOn('a', 1, 2);
mySwitch.setProtocol(1); mySwitch.setPulseLength(306); mySwitch.setRepeatTransmit(7);
mySwitch.setProtocol(1);
mySwitch.setPulseLength(175);
mySwitch.setRepeatTransmit(7);
Slampher" these in light sockets made by Sonoff can be controlled via 433mHz they can be programmed to re
mySwitch.setProtocol(1); mySwitch.setPulseLength(250); mySwitch.setRepeatTransmit(7);