thermiek
(thermiek)
July 30, 2024, 3:46pm
1
hello ,
i want to create a yaml file that show rf433 messages that it recieves into the log.
the esp i use is : LilyGO TTGO T3 LoRa32 433MHz V1.6.1 ESP32
it has all hardware onboard , because when i flash it with
openmqttgateway
then i recieve many messages from the area where i live.
I use GPIO26 as input , according to this schematic : pcb layout
and my esphome code is the default yaml
remote_receiver:
pin: GPIO26
dump: all
# Settings to optimize recognition of RF devices
tolerance: 50%
filter: 250us
idle: 4ms
buffer_size: 2kb
what can i do better ?
do i need to setup miso and mosi etc ?
thx in advance
2 Likes
123
(Taras)
July 30, 2024, 4:01pm
2
If you’re interested, it’s possible to include only the 433MHz devices you want and exclude all others. I helped someone else with the same issue here.
MQTT Discovery only discovers what is submitted for discovery.
Your ESP device finds all 433MHz devices in your neighborhood and submits them to Home Assistant via MQTT Discovery.
It isn’t MQTT Discovery’s responsibility to filter out discovery requests. The responsibility lies with whatever makes the request.
If you have no control over what the ESP device submits to Home Assistant via MQTT Discovery, then that’s a shortcoming with its functionality (not with MQTT Discovery).
Here’s one …
It can be done manually or with an automation.
thermiek
(thermiek)
July 30, 2024, 8:21pm
3
and how to create a esphome-yaml , so i can use my ttgo for other things , such as binary sensors , oled lcd etc??
when i use other firmware i cant control my free gpio and lcd to my custom items
123
(Taras)
July 30, 2024, 8:30pm
4
You’re right.
I didn’t know that you wanted to do other things with the LilyGO TTGO T3 LoRa32 433MHz V1.6.1 ESP32. Your first post gave me the impression you only wanted to use it for receiving data from 433MHz devices because you had tried it with openmqttgateway firmware. However, I overlooked to notice that you posted this in the ESPHome category so you intend to use it with firmware customized for your specific requirements.
Sorry for the misunderstanding. Hopefully someone else will help you soon with your ESPHome question.
thermiek
(thermiek)
July 31, 2024, 7:45pm
5
no problem , thanks anyway
and also openmqttgateway was a test so i know that my hardware works fine…
now the software
I don’t think the sx12XX chips are supported yet in core ESPHome… it looks like there is a custom component .
Hi
can this device only be used as a receiver? or also as transmitter?!
The custom component for ESPHome linked above supports both receiving and transmitting… OpenMQTTGateway only supports receiving on this device.
2 Likes
shaikedem
(Shaikedem)
August 24, 2024, 8:53am
10
hi
how do i install this custom component? I saw there only 2 files
thermiek
(thermiek)
August 25, 2024, 12:06pm
13
external_components:
- source:
type: git
url: https://github.com/swoboda1337/sx127x-esphome
ref: main
refresh: 1d
spi:
clk_pin: GPIO5
mosi_pin: GPIO27
miso_pin: GPIO19
sx127x:
nss_pin: GPIO18
rst_pin: GPIO23
frequency: 433920000
modulation: OOK
rx_floor: -90
rx_bandwidth: 50_0kHz
remote_receiver:
pin: GPIO32
#filter: 255us
#idle: 2000us
#buffer_size: 100000b
memory_blocks: 3 #8
dump:
- rc_switch
- raw
shaikedem
(Shaikedem)
August 26, 2024, 12:47pm
14
thanks, i was able to use this integration
however, this receiver gets bombarded with all RF433 in my neighborhood…
Not sure how i can filter what i want with this configuration
I eventually reverted to using OpenMQTT Integration, where I can create sensor based on topics, etc
G88111
(G88111)
January 10, 2025, 2:36pm
15
Hello
Hope someone can help me, i receives but can’t send
Can’t find which pin to use, gpio 33 was the one I found that should work.
esphome:
name: esphome-web-f64384
friendly_name: ESPHome Web f64384
name_add_mac_suffix: False
esp32:
board: esp32dev
framework:
type: arduino
external_components:
- source:
type: git
url: https://github.com/swoboda1337/sx127x-esphome
ref: main
refresh: 1d
spi:
clk_pin: GPIO5
mosi_pin: GPIO27
miso_pin: GPIO19
sx127x:
nss_pin: GPIO18
rst_pin: GPIO23
frequency: 433920000
modulation: OOK
rx_floor: -90
rx_bandwidth: 50_0kHz
remote_receiver:
pin: GPIO32
#filter: 255us
#idle: 2000us
#buffer_size: 100000b
memory_blocks: 3 #8
dump:
- rc_switch
- raw
remote_transmitter:
pin: GPIO33
carrier_duty_percent: 100%
button:
- platform: template
name: "RF Power Button"
on_press:
- remote_transmitter.transmit_rc_switch_raw:
code: '1010101010100110100110010101010110011010100101010110100110101010'
protocol: 8
repeat:
times: 10
wait_time: 0s
wmaker
(Tommy Long)
January 10, 2025, 7:17pm
16
Hi,
I have a question,
I’ve used LoRA end devices with OpenMQTT GW before and the OpenMQTT GW supports a 1 to many arrangement (1 G/W to many LoRa End Devices).
I’m less familiar with ESPHome.
What is this arrangement with ESPHome using the LilyGo and custom component, is it 1 to 1 (one LilyGo as the HA Device and one LoRa end device I guess as the sensor entity) or can their be many LoRA end devices connected to the LilyGO?
Thanks!
johnknoy
(John Knoy)
January 26, 2025, 2:35am
17
If you haven’t given up, this is how I was able to get this to transmit:
external_components:
- source:
type: git
url: https://github.com/swoboda1337/sx127x-esphome
ref: main
refresh: 1d
spi:
clk_pin: GPIO5
mosi_pin: GPIO27
miso_pin: GPIO19
sx127x:
nss_pin: GPIO18
rst_pin: GPIO23
frequency: 433920000
modulation: OOK
rx_start: true
rx_floor: -90
rx_bandwidth: 50_0kHz
pa_pin: BOOST
pa_power: 17
remote_transmitter:
pin: GPIO32
carrier_duty_percent: 100%
on_transmit:
then:
- sx127x.set_mode_tx
on_complete:
then:
- sx127x.set_mode_standby
button:
- platform: template
name: rfswitch
on_press:
then:
- remote_transmitter.transmit_rc_switch_raw:
code: '111000010010100100101000'
protocol: 1
repeat:
times: 4
wait_time: 0s
G88111
(G88111)
January 31, 2025, 2:18pm
18
I gave up for a while, but now I’ve got it working to transmit.
I read all the RF codes, deleted the reciver function and then copied your settings.
So now I can transmit.
Thanks
brettm
(Brett M)
February 23, 2025, 5:40am
19
Here’s the config I’m using to send and receive.
Based on the “Transmitter & Receiver” section of the docs that were linked to on the components Github page.
external_components:
- source: github://pr#7490
components: [ sx127x ]
esp32:
framework:
type: esp-idf
spi:
clk_pin: GPIO5
mosi_pin: GPIO27
miso_pin: GPIO19
sx127x:
cs_pin: GPIO18
rst_pin: GPIO23
frequency: 433920000
modulation: OOK
rx_start: false
rx_floor: -90
bandwidth: 50_0kHz
pa_pin: BOOST
pa_power: 17
remote_receiver:
id: rx_id
pin:
number: GPIO32
mode:
input: true
output: true
pullup: true
open_drain: true
allow_other_uses: true
#filter: 255us
#idle: 2000us
#buffer_size: 100000b
#memory_blocks: 3 #8
dump:
- rc_switch
- raw
remote_transmitter:
id: tx_id
pin:
number: GPIO32
mode:
input: true
output: true
pullup: true
open_drain: true
allow_other_uses: true
eot_level: false
carrier_duty_percent: 100%
on_transmit:
then:
- sx127x.set_mode_standby
- lambda: 'id(tx_id)->digital_write(false);'
- sx127x.set_mode_tx
on_complete:
then:
- sx127x.set_mode_standby
- lambda: 'id(tx_id)->digital_write(true);'
- sx127x.set_mode_rx
button:
- platform: template
name: pwr_button
on_press:
then:
- remote_transmitter.transmit_rc_switch_raw:
code: '010101010101010101010111'
protocol: 1
repeat:
times: 4
wait_time: 0s