A new version of the gateway is available on github:
https://github.com/1technophile/OpenMQTTGateway
This version introduce the following changes:
Major change is the arduino and esp8266 compatibility with the same code, the goal is to be able to maintain the gateway for both platform on a more easy way.
You will notice also that the code has been optimized and the sram footprint also.
It is now possible to define into the topic some rcswitch parameters like protocol and pulselength.
I add some requests about adding direct modules like DHT sensor or fan on the gateway but wouldn't like to drift the code from what it is first ... a gateway. So as to do that, Addons modules can be now added with an extra file called Zaddon... it must have its parameters on its own.
The user and setup guide is now on the github wiki. This new version is on a beta state at this time.
https://github.com/1technophile/OpenMQTTGateway
This version introduce the following changes:
- esp8266 and arduino compatibility with the same code
- code SRAM load optimization for arduino uno
- group user and other parameters
- remove duplicate for IR
- RF protocols definition in subject
- RF pulse length definition in subject
- acknowledgement inside a subtopic
- code refactoring
- handle MQTT authentication automaticaly if user set
- put parameters on an user_config.h file
Major change is the arduino and esp8266 compatibility with the same code, the goal is to be able to maintain the gateway for both platform on a more easy way.
You will notice also that the code has been optimized and the sram footprint also.
It is now possible to define into the topic some rcswitch parameters like protocol and pulselength.
I add some requests about adding direct modules like DHT sensor or fan on the gateway but wouldn't like to drift the code from what it is first ... a gateway. So as to do that, Addons modules can be now added with an extra file called Zaddon... it must have its parameters on its own.
The user and setup guide is now on the github wiki. This new version is on a beta state at this time.
Hi, I'm using your project in my 433MHz setup and it works flawlessy on my local test MQTT Server, but it isn't working on my main MQTT Server wich is SSL protected, any ways to solve this? Thanks in advance
RépondreSupprimerHi, could you plug the gateway to your computer, open your IDE serial monitor and indicate me where it stop?
SupprimerWiFi connected
Supprimerclient mqtt not connected, trying to connect
Attempting MQTT connection...
failed, rc=
-4
try again in 5 seconds
Attempting MQTT connection...
This is the error I get!
As you proposed please change the mqtt port, if you download the latest code I added a constant to define it:
Supprimer#define mqtt_port 8883
most of the time the port is 8883 for SSL MQTT, please check your broker what is the good port
Hi, I tried earlier to modify the port in here:
SupprimerPubSubClient client(mqtt_server, 1883, callback, eClient);
without any success, I think it might be a limitation with PubSubClient but I'm at level 0 with C unfortunatly
Hi,
SupprimerI confirm that SSL is not supported by the pubsubclient used by the gateway
https://github.com/knolleary/pubsubclient/issues/23
As the SSL can't be handle by the arduino Uno
Ce commentaire a été supprimé par l'auteur.
RépondreSupprimerCe commentaire a été supprimé par l'auteur.
RépondreSupprimerHi,
RépondreSupprimerI was wondering if it can do different bit? Some of my rf devices are 12bit & 32bit for the code. I have read the codes using a nano & rc_switch to get the codes + bit + protocol. I can see that you can set protocol using the 433_* in the topic.
Thanks
Matt
Hi,
SupprimerCould you post the result from receive demo advanced, I will check?
Ceiling Fan & Light controller
SupprimerLight ON
Decimal: 3069 (12Bit) Binary: 101111111101 Tri-State: not applicable PulseLength: 386 microseconds Protocol: 6
Raw data: 8916,328,688,308,324,684,696,192,248,324,56,36,268,40,528,348,132,16,540,308,692,300,684,308,688,
Decimal: 3069 (12Bit) Binary: 101111111101 Tri-State: not applicable PulseLength: 386 microseconds Protocol: 6
Raw data: 9072,332,688,316,428,592,696,88,704,144,872,276,684,708,280,132,256,272,164,24,144,228,84,516,332,
Light Off
Decimal: 3581 (12Bit) Binary: 110111111101 Tri-State: 1F111F PulseLength: 386 microseconds Protocol: 6
Raw data: 8908,324,688,300,684,308,324,680,696,300,688,308,688,300,692,300,692,304,692,304,296,300,324,688,692,
I got the 32 bit to work by changing mySwitch.send(data, 24);
Supprimerto mySwitch.send(data, 32);
BAUHN Remote Control Power Point
SupprimerChannel 1 On
Decimal: 3505196978 (32Bit) Binary: 11010000111011010000111110110010 Tri-State: not applicable PulseLength: 262 microseconds Protocol: 1
Raw data: 8344,720,276,716,276,232,764,716,276,244,748,236,760,236,756,240,752,720,276,716,276,724,268,240,752,724,272,720,276,236,756,720,272,240,756,236,756,236,760,236,756,720,272,720,272,724,268,724,272,716,280,236,756,716,276,720,276,240,744,740,100,136,188,144,160,
Channel 1 Off
Decimal: 3505194938 (32Bit) Binary: 11010000111011010000011110111010 Tri-State: not applicable PulseLength: 262 microseconds Protocol: 1
Raw data: 8144,716,276,720,276,232,760,716,280,232,760,236,756,236,756,236,756,720,276,716,276,716,276,240,752,720,276,716,276,236,756,720,276,236,756,236,760,236,756,236,756,236,756,720,272,720,276,716,276,720,276,236,756,716,276,720,272,724,272,236,756,720,276,236,748,
Fan Controller Light On
SupprimerDecimal: 3069 (12Bit) Binary: 101111111101 Tri-State: not applicable PulseLength: 386 microseconds Protocol: 6
Raw data: 8920,48,968,332,680,312,328,680,700,296,700,292,700,300,680,312,696,300,688,308,684,308,696,300,700,
433tomqttto433 via node-red
Decimal: 3069 (32Bit) Binary: 00000000000000000000101111111101 Tri-State: not applicable PulseLength: 353 microseconds Protocol: 6
Raw data: 204,76,752,332,420,636,368,672,376,772,348,708,360,336,660,752,352,208,664,360,692,352,700,348,704,340,720,416,640,824,268,196,16,552,236,328,92,232,384,868,180,868,180,876,460,400,656,392,672,516,544,368,268,40,4108,48,524,20,88,216,372,48,340,496,164,
Hello,
SupprimerAnd when you put a 12 bit value by mqtt like 3069 without changing mySwitch.send(data, 24); does it work?
No response, I even tried changing it to myswitch.send(data,12) & it still doesn't work.
SupprimerI was also wondering if anyone has used a serial 433 mhz transcevier like SI4463?
Ce commentaire a été supprimé par l'auteur.
SupprimerIf i sum up:
SupprimerIt works with 32 bits codes if you change 24 to 32 in the gateway code
It doesn't work with 12 bit codes if you change 24 to 12 in the gateway code ?
Never tested with SI4463, but have two instock I will try
Yes to 24 to 32 bit (RF Switch/power points).
RépondreSupprimerWould it be easy to add a 3rd variable to ie BIT_12 or BIT_24 or BIT_32 that would force the the bit to a different value mySwitch.send(data,bit)?
I think the 12 bit one may also be to do with timing (386ms which I tried setting). I am going to try my 3 other fan controllers & see if they work, they are from a different manufacturer.
Thanks for your help, it is very appreciated, I ,am new to all this so have had a steep learning curve.
I am trying to increase my wife's appreciation factor for automating our house.
I think by putting 32 for all cases it should work, let's see your results
SupprimerAwesome project !!!
RépondreSupprimerAlthough i can't get 433ghz receiver to snif anything, IR works fine.
Could you add support for AC's maybe, like Mitsubishi.
ex: https://github.com/markszabo/IRremoteESP8266
thank you for work, keep it up :D !
hi,
SupprimerThanks for the feedback!
I have added your request to the request list:
https://github.com/1technophile/OpenMQTTGateway/issues/33
Please tell me if everything is connected or only in turn?
RépondreSupprimer(433 -> <- ) && (IR -> <-) && (BLU -> <-)
OR
(433 -> <- ) OR (IR -> <-) OR (BLU -> <-)
You can have RF, IR and BLE on the same chip:
Supprimer(433 -> <- ) && (IR -> <-) && (BLU -> <-)