Hi,
I'm sorry. I didn't test this method yet.
I have no time
If you find the solution, please tell me.
thanks
Hi,
I'm sorry. I didn't test this method yet.
I have no time
If you find the solution, please tell me.
thanks
It's very good @hek !
thanks for your answer.
Hi all,
I use my arduino network with ethernet interface and MQTT protocol.
Now, I want to use the same hardware but with MySensors + MQTT (no gateway role).
Is it possible to use mysensors with no NRF24 or RFM69 ?
when I test I had this issue:
Radio init failed. Check wiring.
normal ... but is there an option to do this ?
thanks in advance
yes,
I'm going to ask
Hi @hek
In ebay pictures you can see 433Mhz receiver...
is it the same no ?
Hi all,
someone has already use livolo Glass Panel Touch Light Wall Switch (or livolo like) ?
I found a arduino library to work with it, but I'm not sure switch below is a 433Mhz compatible:
I'm sorry for that
It works perfectly after the library update
thank you very much @sundberg84
Thanks @sundberg84
I'm going to update my library now !
I will tell you if it works
Hi all,
I'm playing with LCD screen. I want to display in my LCD a string from my mqtt broker.
Ex:
OpenHAB --> MQTT Broker --> MQTT Gateway --> LCD (directly connected on gateway)
I can send a message Ex: "TEST_LCD_1_MIKA_COOL":
Result:
0;0;3;0;9;Message arrived on topic: mygateway1-in/0/3/1/V_TEXT/47
Incoming msg DATA: TEST_LCD_1_MIKA_COOL
but when I send a shorter message Ex: "TEST_LCD_2_SUPER"
0;0;3;0;9;Message arrived on topic: mygateway1-in/0/3/1/V_TEXT/47
Incoming msg DATA: TEST_LCD_2_SUPERCOOL
We can see that message.getString is false. It adds the end of the last string on this new string.
buffer not empty ?
My conf:
void receive(const MyMessage &message) {
// We only expect one type of message from controller. But we better check anyway.
if (message.type==V_TEXT && message.sensor == LCD_CHILD) {
lcd.clear();
Serial.print("Incoming msg DATA: ");
lcd.print("Incoming msg DATA: ");
lcd.setCursor ( 0, 1 );
Serial.println(message.getString());
lcd.print(message.getString());
}
}
can you help me please ?
Thanks in advance
Arduino has accepted my library
it available in libraries manager on the arduino IDE
First version of my official arduino library : https://github.com/Mickaelh51/Arduino-Oregon-Library
I asked at Arduino software to put this new library (1.5 arduino format) in their official "libraries manager" ==> https://github.com/arduino/Arduino/issues/4371
If they ok to include my library, the arduino IDE will be able to check the available updates.
This 1.0.0 version has been tested with : Arduino UNO / 433Mhz receiver / Oregeon sensor THGR228N.
I'm already working on developement github branch with many enhancements.
Ex: Data Checksum / Others sensors (OWL Electricty Meter / WGR918 Annometer / RGR918 Rain Guage / UV138 / THGR918 Outside Temp-Hygro / BTHR918 Temp-Hygro-Baro)
if you want to test master or developement branch, I'm free to discuss with you.
good playing
hi @Sparkman
I use Openhab.
But "presentation" function is used for what ? Is it just for the gateway sends the correct type ID ?
Hi list,
I'm looking for a way to see all registered sensors on gateway.
Ex:
can I send a specific MQTT message (if MQTT gateway) to receive a complete list ? A local software ? A web frontend ?
thanks in advance
Hi, I finished my first complete library Oregon.h with 2 examples (1 with MySensors / 2 without MySensors).
I will test it next week and I will post it here.
After many tests I post a pool request in official mysensors project on github.
Did you have time to test the first version ?
thanks in advance
ESP8266 is faster than W5100 ok thanks.
but if I want work with ethernet only ?
Hi,
No problem
I have only 3 sensors in test. But with this nodes I feel my gateway is low.
When I send an order from MQTT (Ex "On" command to specific relay), it's not in real time (few seconds to execute this order).
But when I shutdown 2 nodes / 3. I saw the same order seems faster.
So, my question is: Is there a recommendation for gateway hardware ?
thanks and happy new year 2016
Hi,
Actually I'm using an Arduino UNO to be the ethernet (MQTT) gateway.
But, I feel that Arduino UNO is too low when there is many sensors.
Do you have an experience with UNO or MEGA to be a MQTT Gateway ?
which hardware to choose ?
thanks in advance
Ok thanks.
I will do some enhancements before post my pool request.
bye
@hek thanks for your answer.
If I understood, I can use save & load state if:
for (i=EEPROM_LOCAL_CONFIG_ADDRESS; i<COUNT_OREGON_SENSORS; i++){
is it exact ?
thanks in advance
PS (10 mins after):
I don't understand, indeed with this variable:
EEPROM_CONTROLLER_CONFIG_ADDRESS (EEPROM_ROUTES_ADDRESS+256)
we are beyond the maximum ID (255) no ?
Ha @hek I use EEPROM memory writing like database of Oregon's IDs.
But your framework use also EEPROM memory.
there is a potential issue (coflict) between them ?
if yes, what other library can I use ? I'm thinking at that: http://playground.arduino.cc/Code/StackArray
thanks in advance
you're welcome
it's not finish,but after my vacations, I will finish it
there is this issue when I want "verify code" in codebender (see below), but with arduino soft 1.6.7 it works fine
MySensors_433Mhz_Oregon.ino:66:19: error: use of undeclared identifier 'digitalPinToInterrupt'
Just before my vacations, I added some features
My GitHub: https://goo.gl/x4ifu4
Results on My OpenHAB
Hi,
I developed (modify) the originale Oregon library to be able to decode these sensors and send results in MySensors.
Tested with : THGR228N and THGN132N
It's a beta version ... many enhancements must be necessary, but it works
https://goo.gl/x4ifu4
your comments are welcome
Thanks @sundberg84,
I'm already using this method with openhab
I will be continue to use it.
Thanks @mfalkvidd
it's possible to parse many informations from gateway, it's a good new.
For Nagios plugin, it's no a problem I'm going to develop one
My question is: when a node sensor is down, my mqtt broker have in own memory the last data and it dont know that sensor is down
is there a mysensors "ping" like between sensor nodes and gateway ?
thanks in adavance
Hi,
I'm looking for a solution to monitor when a node sensor is down (power outage, etc ...).
Is there a list of node connected to gateway (MQTT gateway) ?
Ex:
Nagios script checks MQTT broker (Mosquitto) with special command, Mosquitto forwards this command to MQTT gateway (GatewayW5100MQTTClient) and gateway send a list of available nodes connected.
it's already exist ?
thanks in adavance
HAAAAAAAAAAAAAAAAAA !!!!!! pffffffffffff !!!!
so noob I am
it's work now !
I have a lot of arduino in my network, and there are diffrent MAc address => normal !
But in arduino with my sensor there wasn't MY_MAC_ADDRESS defined.
and... two arduino with the same MAC (default MAC) ... pffff ==> doesn't work fine!!!!
now it's work perfectly ! I'm sorry for you waste time !
thanks !
@robosensor openhab is located on a proxmox server (it's a container).
Openhab server: 172.16.13.237/24 --> MQTTGateway: 172.16.13.145/24
I have many others sensors on arduino that are using MQTT directly (Not mysensors Framework) and they're ok and fast
I think, the MQTT gateway is very slow at some moments and it don't process MQTT messages received (as you can see in my youtube video).
but at some others moments it can process this messages
For your information, MQTT message is slow before incomingMQTT
void incomingMQTT(char* topic, byte* payload,
unsigned int length)
{
debug(PSTR("Message arrived on topic: %s\n"), topic);
Because when I send MQTT message with OpenHAB or MQTT.fx to mosquitto, it's send immediatly this message.
After X seconds I can see in serial monitor log: "Message arrived...."
Have you an idea ?
thanks a lot !
the results @robosensor :
0;0;3;0;9;read: 9-9-0 s=3,c=0,t=3,pt=0,l=0,sg=0:
0;0;3;0;9;Sending message on topic: mygateway1-out/9/3/0/0/3
0;0;3;0;9;Ethernet transaction time: 1 ms
1 ms for all received messages. indeed when sensor send temp + humidity from DHT11, the messages the messages arrive quickly to OpenHAB.
But when I send MQTT message from OpenHAB to Gateway, it's very long (https://youtu.be/zQxLzGmCKlY).
Hi,
thanks for your answer @robosensor .
But, I'm sorry, I don't know where add the patch in file
I patched MyGatewayTransportEthernet.cpp with your code, but I don't use ESP8266. I use W5100 + NRF24L01.
I patched in MY_CONTROLLER_IP_ADDRESS too => no result (not debug in serial monitor)
For me, when W5100 receive MQTT messages there is a reception problem (because MQTT server send several times the same MQTT message.
Can you help me to write patch please ?
thanks in advance
FYI
STATUS 0x0E RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
RX_ADDR_P0-1 0x00003B3F00 00003B3F0E
RX_ADDR_P2-5 0xFF C4 C5 C6
TX_ADDR 0x00003B3F00
RX_PW_P0-6 0x20 20 20 00 00 00
EN_AA 0x3B
EN_RXADDR 0x06
RF_CH 0x4C
RF_SETUP 0x07
CONFIG 0x0E
DYNPD/FEATURE 0x3F 06
Data Rate 1MBPS
Model nRF24L01+
CRC Length 16 bits
PA Power PA_MAX
Hi,
I wrote an issue on github: https://github.com/mysensors/Arduino/issues/309
Do you have an idea please ?
thanks in advance