Makes RF2 sending and receiving work for ESP8266 with added support for group bit and dimming (#113)
* Made rf2 sending and receiving work With code from https://github.com/1technophile/OpenMQTTGateway/pull/109 plus some other fixes. * Added support for group bit Added support for sending and receiving group bit * Group bit and MQTT retransmitting Added support for sending and receiving group bit. Made the gateway transmit the new state of a RF2 switch to the MQTT state topic when it receives a MQTT command to control that switch. * Removed hard coded RF2 code length * Added support for dimming to RF2 Verified to work with Nexa WMR-250 dimmer. * Minor cleanup
This commit is contained in:
1 parent
0b9bbc3dd6
commit
0d1e7bbe75
4 files changed
+74
-10
No files matched your search
+3
-1
@@ -59,7 +59,9 @@ RF supported protocols
|
||||
#define subjectRF2toMQTT "home/RF2toMQTT"
|
||||
#define RF2codeKey "CODE_" // code will be defined if a subject contains RF2codeKey followed by a value of 7 digits
|
||||
#define RF2periodKey "PERIOD_" // period will be defined if a subject contains RF2periodKey followed by a value of 3 digits
|
||||
#define RF2unitKey "UNIT_" // number of your unit value will be defined if a subject contains RF2unitKey followed by a value of 1 digit
|
||||
#define RF2unitKey "UNIT_" // number of your unit value will be defined if a subject contains RF2unitKey followed by a value of 1-2 digits
|
||||
#define RF2groupKey "GROUP_" // number of your group value will be defined if a subject contains RF2groupKey followed by a value of 1 digit
|
||||
#define RF2dimKey "DIM_" // number of your dim value will be defined if a subject contains RF2dimKey followed by a value of 1-3 digits
|
||||
|
||||
/*-------------------PIN DEFINITIONS----------------------*/
|
||||
#ifdef I2C_Wiring // With Support for I2C Modules
|
||||
|
||||
Reference in new issue
Block a user