@bgunnarb I like @eiten 's solution for you.
Personally, I am not a fan of using cloud/public brokers. Thus I am curious about your system and there is something about it from which I can learn. I would like to understand why you cannot deploy your own mosquitto broker.
I see your set up as 3 sensor groups defined by the channel used
#define MY_RF24_CHANNEL ChannelOfSensorGroup
Each sensor group has some number of sensors and one MQTT GW on ESP8266. On the MQTT side, do you distinguish between gateways by using a different host name?
Something like:
#define MY_MQTT_PUBLISH_TOPIC_PREFIX "mygateway-nOf3-out"
#define MY_MQTT_SUBSCRIBE_TOPIC_PREFIX "mygateway-nOf3-in"
#define MY_MQTT_CLIENT_ID "mysensors-nOf3"
#define MY_HOSTNAME "ESP8266_MQTT_GW_nOf3"
//#define MY_CONTROLLER_IP_ADDRESS 192, 168, 178, 68
#define MY_CONTROLLER_URL_ADDRESS "test.mosquitto.org"
#define MY_PORT 1883
I must assume your controller (aka Home Assistant) discriminates between through which gateway the data is to flow by way of the different topic names.
If my "something like" is correct, then changing brokers is changing the IPaddress/URL in your gateways and in your controller (though if the controller is Home Assistant, it may be a bother because the device-id's may change which will make a mess of all the work you've done in HA. This is why I like @eiten 's solution.)
I hope it's all working for you again.
OSD
@chbla said in Multiple uses battery RFM69 node:
Can anyone suggest a source for the parts? Are there any sources that you can upload the files by any chance?
If you mean can you upload a BOM to a company and then it generates a basket of the items, then i know that farnell and maybe digikey do this. But i only use this feature that is built into EAGLE pcb designer, so i'm not sure if they support it directly on their websites, might be worth a look.
http://www.farnell.com/
http://www.digikey.co.uk
@openhardware-io
Hi: (Please direct to Feanor-Anglin if possible)
I previously ordered some 4RelayDIN PCBs off openhardware.io and got v1.6 PCBs but the info on the site I found is only for an earlier version of the PCB board.
I am trying to build some of the boards but there are additional compomemts on the newer PCB board.
The main one which looks to be a driver IC.
Would you please share the updated information with me or perhaps update the openhardware.io site.
Many thanks, Rod
Hi,
nice projet. I am very interested in it.
But why you are using 5 V and not 3.3 V? The ATmea328 works with 3.3 V too and the NRF have to use 3.3 V.
The only restriction on 3.3 V is the clock limitation for the Atmega (8 MHz). But with no crystal it don't care.
For example you could use an HLK-PM03 instead of HLK-PM01 and remove the linear voltage regulator. So you get more space an everything have the same voltage level.
And another point is, it is recommended to use a capacitor (0.1 ยตF) to ground for each voltage pin (Vcc, Avcc, Aref).