New Firmware Update Issue
So, it's me again ;-}. I just updated the firmware on my Capibridge and I have to say that I r4eally like the web interface! I really have not changed anything besides the firmware upgrade, But if I look in MQTT Explorer, I am no longer seeing anything from "mbox".
As you can see, CapiBridge and home assistant are there, but nothing for mbox. I am sure this is a configuration issue. I have gone through the readme's a couple of times, but I am not seeing what I am missing. Any insight on what I should be looking for?
Here are the settings that I am using with the MailboxGuard: ///////////////////////////////// CHANGE THIS /////////////////////////////////
#define SIGNAL_BANDWITH 125E3 #define SPREADING_FACTOR 8 #define CODING_RATE 5 #define SYNC_WORD 0x12 #define PREAMBLE_LENGTH 12 #define TX_POWER 20 #define BAND 915E6 // 433E6 / 868E6 / 915E6 #define NODE_NAME "mbox" #define GATEWAY_KEY "hex" // must match CapiBridge's key
///////////////////////////////////////////////////////////////////////////////
I have verified that the gateway key is set to "hex" on both the capibridge and the mailbox guard.
Hi APT256,
From the README, your issue likely stems from mismatched LoRa settings between the MailBox Guard sensor and the CapiBridge gateway. You mentioned your sensor settings have:
#define SYNC_WORD 0x12
#define PREAMBLE_LENGTH 12
#define BAND 915E6
#define GATEWAY_KEY "hex"
But the example sensor firmware configuration in the README shows these settings:
#define SYNC_WORD 0xF3
#define PREAMBLE_LENGTH 6
#define BAND 868E6 // or 433E6 / 868E6 / 915E6
#define GATEWAY_KEY "xy" // must match the Gateway key
Key points to verify:
-
Make sure SYNC_WORD is identical on both sensor and gateway firmware. The default from the README for the sensor is
0xF3, but your sensor uses0x12. The gateway firmware sample uses0x12, so check your gateway config matches exactly. -
The PREAMBLE_LENGTH should also match (gateway sample uses 6, your sensor has 12).
-
The BAND frequency must be the same (915E6 in your case, as long as both gateway and sensor use it).
-
The GATEWAY_KEY must be identical and kept short (your example uses
"hex"—ensure it matches the gateway without extra spaces or case mismatches). -
LoRa parameters like
SIGNAL_BANDWITHandSPREADING_FACTORshould be the same on both sides.
Also, per the README:
The LoRa settings in the gateway and the sensor must match exactly.
If these match and you still have no messages for "mbox" in MQTT Explorer, verify that:
-
The sensor firmware was uploaded with these exact settings.
-
The gateway is running the proper firmware supporting MQTT and LoRa (
LoRa_Gateway_MQTT_JSON.inorecommended).
For detailed steps on configuring and programming the sensor and gateway, see the README sections:
Lastly, confirm you're using supported LoRa modules and that your CapiBridge firmware version aligns with your MailBox Guard firmware to avoid breaking changes noted in the updates.
If you want, the recommended approach is to update both gateway and sensor firmware to their latest versions with matching LoRa parameters and gateway keys.
You might also find the linked YouTube video useful: https://youtu.be/gf1WWKyEnbg
Good luck!
✅ If this answer helped, please close the issue. 🤖 I’m an AI and If my response is incorrect or not sufficient, don’t worry @PricelessToolkit will review this topic soon.
- Are you using "MailboxGuard" or "PirBox" ??
- Do you have CapiBridge V1 or V2 ?? LoRa modules are different.
//#define LORA_MODULE LORA_MODULE_SX1276 // Ra-01 433 Ra-01H 868/915Mhz "SX1276" Module (orders shipped before Aug 2025)
#define LORA_MODULE LORA_MODULE_SX1262 // Ra-01SH 868/915Mhz "SX1262" Module CapiBridge v2
//#define LORA_MODULE LORA_MODULE_SX1268 // Ra-01S 433Mhz Module "433Mhz Version" Module CapiBridge v2
- Go to the "Monitoring" tab on CapiBridge and trigger your sensor to see live payloads. If no live payloads, then the radio settings are not the same.
I did make changes to the configuration so that both match. Here are the settings from the capibridge:
Gateway Gateway Key: hex
Discovery Every Packet: (ON)
ROW Debug: (OFF)
Encryption LoRa Encryption (OFF)
ESP-NOW Encryption (OFF)
Encryption key bytes (Left at defaults) ["0x4B","0xA3","0x3F","0x9C"]
LoRa Must match your sensors and region.
Module: SX1276 / RA-01H
Band: 915.0 MHz
TX Power: 20
Bandwidth: 250.0 kHz
Spreading Factor: SF8
Coding Rate: 4/5
Sync Word: 0x12
Preamble Length: 12
And as shown above, here are the settings from the mailboxguard:
#define SIGNAL_BANDWITH 125E3 #define SPREADING_FACTOR 8 #define CODING_RATE 5 #define SYNC_WORD 0x12 #define PREAMBLE_LENGTH 12 #define TX_POWER 20 #define BAND 915E6 // 433E6 / 868E6 / 915E6 #define NODE_NAME "mbox" #define GATEWAY_KEY "hex" // must match CapiBridge's key
Jon
I almost forgot, when looking at the web UI on the capibridge, under Status, Last Seen Nodes, it states "No active nodes discovered yet."
MailboxGuard is "#define SIGNAL_BANDWITH 125E3" and you CapiBridge is "Bandwidth: 250.0 kHz" :) Change Sensor to "250E3"
To answer your questions: Are you using "MailboxGuard" or "PirBox" ? (MailboxGuard) Do you have CapiBridge V1 or V2 ?? LoRa modules are different. (I do not see any version marking on the board. According to the invoice, I received this one: CapiBridge Gateway KIT (Frequency: 868 / 915 Mhz) HS Code: 85437090 Origin: FR
btw: it will show nodes under "Last Seen Nodes" when all settings match, including the encryption key. But if the keys do not match, you will see gibberish under the monitoring tab.
I just checked ESP1.ino / config.h and I am pretty sure that I have the correct module selected:
define LORA_MODULE LORA_MODULE_SX1276 // Ra-01 433 Ra-01H 868/915Mhz "SX1276" Module (orders shipped before Aug 2025)
I think you missed my reply
MailboxGuard is "#define SIGNAL_BANDWITH 125E3" and you CapiBridge is "Bandwidth: 250.0 kHz" :) Change Sensor to "250E3"
or capibridge to 125E3 only "orders shipped before Aug 2025"
btw: it will show nodes under "Last Seen Nodes" when all settings match, including the encryption key. But if the keys do not match, you will see gibberish under the monitoring tab.
Where else would the encryption key need to be defined (the MQTT Broker itself)?
or capibridge to 125E3 only "orders shipped before Aug 2025"
Sorry about the delay (between the holiday and the World Cup, things have been chaotic). Anyway, enough with the excuses. I will go ahead and take a look at this and see what happens.
It appears that one of the libraries in use has been abandoned (at least their certificate has expired):
Some indexes could not be updated. Download failed: performing HEAD request: Head "https://drazzy.com/package_drazzy.com_index.json": tls: failed to verify certificate: x509: certificate has expired or is not yet valid: : http://drazzy.com/package_drazzy.com_index.json
Even with this error, I was able to flash the MailboxGuard... just wanted to let you know about this in case you were not aware.
Progress!
Now for the real challenge (getting it all working in Home Assistant ;-) )
Now, each time you take the parcel, reset the state to anything you want; it's not that hard :) stop:)
My issue always involves the trigger. I have the rest scheduled to run every night at midnight. I have verified that it resets the state to empty by manually running it. The logs show it running every night as well, so that should be good. As far as the trigger goes, if I manually run it, it works, but if i reset the mbox state to empty and then wave at the sensor, nothing happens.
Here is the action notification config:
Perform action 'Notifications: Send a notification with all_ios_devices' Executed: July 6, 2026 at 10:01:01 Result: params: domain: notify service: all_ios_devices service_data: message: You've got mail! title: New Mail! data: url: /lovelace/home persistent: true importance: high channel: MailBox tag: mailbox image: /media/local/notify/mailbox.jpg actions: - action: received title: I got the mail push: sound: name: youGotmail.wav volume: 1 target: {} running_script: false
If I look at the Trace Timeline, all I see is me manually running the notification:
Triggered manually at July 6, 2026 at 10:01:01 Perform action 'Notifications: Send a notification with all_ios_devices' Finished at July 6, 2026 at 10:01:01 (runtime: 0.34 seconds)
Well, I went back and ran through this step-by-step. I am looking at the MQTT Broker when running the automatons from HA. For some reason, the reset automation is NOT changing the state from "mail" to "empty" and thus the trigger is not firing unless I manually run it. Now, The big question is: "Why isn't the reset automation changing the state? Here is the config for the reset automation that I am using:
id: '1773085268832' alias: 📬 Manual LoRa MailBox Dismiss Notification description: '' triggers:
- trigger: event event_type: mobile_app_notification_action event_data: action: received conditions: [] actions:
- action: mqtt.publish metadata: {} data: qos: 0 retain: true topic: homeassistant/sensor/mbox/state payload: empty mode: single
Ah Ha, it appears that a recent update to HA has made a change so that "mqtt.publish is no longer supported:
The automation "📬 LoRa MailBox Dismiss Notification" (automation.dismiss_you_ve_got_mail_notification) has an unknown action: mqtt.publish.
This error prevents the automation from running correctly. Maybe this action is no longer available, or perhaps a typo caused it.
I will research this and try to figure out what they replaced it with.
There appears to be a second issue. I installed Spook on my HA server to help look for issues, and it found this:
Unknown entities used in: 📬 LoRa MailBox Sensor Notification Warning · Reported by Spook Spook has found a ghost in your automations 👻
While floating around, Spook crossed path with the following automation:
📬 LoRa MailBox Sensor Notification (automation.lora_mailbox_sensor_notification)
This automation references the following entities, which are unknown to Home Assistant:
sensor.mbox_state_2
I don't understand this one as I copied this right from the Github page. I don't recall having to manually create that entity?
- In automation, select the correct mailbox entry.
- https://www.home-assistant.io/actions/mqtt.publish/
This is really odd. No matter what I do, the notifications will not clear the "state". I think I am going to make a backup in HA and then delete everything related to this and then recreate from scratch.
Publish something in the correct topic; use MQTT Explorer for publishing. Don't change state directly from "developer-tools/state"