Dateien nach "/" hochladen
This commit is contained in:
70
config_RF_RHASK.h
Normal file
70
config_RF_RHASK.h
Normal file
@@ -0,0 +1,70 @@
|
||||
/*-------------------RF sensor + hardware settings----------------------*/
|
||||
const int RFSensorIDs[] = {1,2,3,4,5,6,7};
|
||||
const String RFSensorNames[] = {"RainSensor", "Humidity1", "RainSensor1", "LuxSensor1","MoistureSensor1","MoistureSensor_Test","Doorbell"};
|
||||
const String RFSensorType[] = {"RainMass", "Humidity", "Rain", "Light","Moisture","Moisture","Door"};
|
||||
const String RFSensorBaseName = "rf/sensors/";
|
||||
const String RFTargetBaseName = "rf/target/";
|
||||
|
||||
const int RFTargetIDs[] = {5,6,7};
|
||||
const String RFTargetNames[] = {"Light1","Light2","LED1"};
|
||||
const String RFTargetType[] = {"Light", "Light","LED"};
|
||||
const String ParameterIds[] = {"red","green","blue","brightness", "effect", "effectparameter"};
|
||||
|
||||
/*-------------------RF topics & parameters----------------------*/
|
||||
//433Mhz MQTT Subjects and keys
|
||||
#define subjectMQTTtoRF Base_Topic Gateway_Name "/commands/MQTTto433"
|
||||
#define subjectRFtoMQTT Base_Topic Gateway_Name "/433toMQTT"
|
||||
#define subjectGTWRFtoMQTT Base_Topic Gateway_Name "/433toMQTT"
|
||||
#define RFprotocolKey "433_" // protocol will be defined if a subject contains RFprotocolKey followed by a value of 1 digit
|
||||
#define RFbitsKey "RFBITS_" // bits will be defined if a subject contains RFbitsKey followed by a value of 2 digits
|
||||
#define repeatRFwMQTT false // do we repeat a received signal by using mqtt with RF gateway
|
||||
|
||||
/*
|
||||
RF supported protocols
|
||||
433_1
|
||||
433_2
|
||||
433_3
|
||||
433_4
|
||||
433_5
|
||||
433_6
|
||||
*/
|
||||
#define RFpulselengthKey "PLSL_" // pulselength will be defined if a subject contains RFprotocolKey followed by a value of 3 digits
|
||||
// subject monitored to listen traffic processed by other gateways to store data and avoid ntuple
|
||||
#define subjectMultiGTWRF "+/+/433toMQTT"
|
||||
//RF number of signal repetition
|
||||
#define RF_EMITTER_REPEAT 3
|
||||
|
||||
/*-------------------RF2 topics & parameters----------------------*/
|
||||
//433Mhz newremoteswitch MQTT Subjects and keys
|
||||
#define subjectMQTTtoRF2 Base_Topic Gateway_Name "/commands/MQTTtoRF2"
|
||||
#define subjectRF2toMQTT Base_Topic Gateway_Name "/RF2toMQTT"
|
||||
#define subjectGTWRF2toMQTT Base_Topic Gateway_Name "/433toMQTT"
|
||||
#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-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 and the payload contains the dim value as digits
|
||||
|
||||
/*-------------------ESPPiLight topics & parameters----------------------*/
|
||||
//433Mhz Pilight MQTT Subjects and keys
|
||||
#define subjectMQTTtoPilight Base_Topic Gateway_Name "/commands/MQTTtoPilight"
|
||||
#define subjectPilighttoMQTT Base_Topic Gateway_Name "/PilighttoMQTT"
|
||||
#define subjectGTWPilighttoMQTT Base_Topic Gateway_Name "/PilighttoMQTT"
|
||||
#define PilightRAW "RAW"
|
||||
|
||||
/*-------------------PIN DEFINITIONS----------------------*/
|
||||
//#ifdef ESP8266
|
||||
// #define RF_RECEIVER_PIN 5 // D3 on nodemcu
|
||||
// #define RF_EMITTER_PIN 4 // RX on nodemcu if it doesn't work with 3, try with 4 (D2)
|
||||
//#elif ESP32
|
||||
// #define RF_RECEIVER_PIN 13 // D13 on DOIT ESP32
|
||||
// #define RF_EMITTER_PIN 12 // D12 on DOIT ESP32
|
||||
//#elif __AVR_ATmega2560__
|
||||
// #define RF_RECEIVER_PIN 1 //1 = D3 on mega
|
||||
// #define RF_EMITTER_PIN 4
|
||||
//#else
|
||||
// //IMPORTANT NOTE: On arduino UNO connect IR emitter pin to D9 , comment #define IR_USE_TIMER2 and uncomment #define IR_USE_TIMER1 on library <library>IRremote/boarddefs.h so as to free pin D3 for RF RECEIVER PIN
|
||||
// //RF PIN definition
|
||||
// #define RF_RECEIVER_PIN 1 //1 = D3 on arduino
|
||||
// #define RF_EMITTER_PIN 4 //4 = D4 on arduino
|
||||
//#endif
|
||||
Reference in New Issue
Block a user