SX1231 Packet Transport Platform
The Packet Transport platform allows ESPHome nodes to directly communicate with each over a communication channel. The SX1231 implementation of the platform uses FSK or OOK as a communication medium. See the Packet Transport and SX1231 for more information.
The radio must be in packet mode with a payload_length of 0 (the default) and a sync_value, and both nodes need
the same radio settings. A packet holds at most 64 bytes. A node that receives values from providers also needs the
radio’s rx_start to be true (the default); with it turned off the radio sleeps and the node can only send.
Example Configuration
Section titled “Example Configuration”# Example configuration entrysx1231: cs_pin: GPIOXX dio0_pin: GPIOXX frequency: 915MHz modulation: FSK bitrate: 50000 deviation: 25kHz preamble_size: 4 sync_value: [0x2D, 0xD4] crc_enable: true
packet_transport: platform: sx1231 sensors: - dht_temp
sensor: - platform: dht pin: GPIOXX temperature: name: "Temperature" id: dht_tempConfiguration Variables
Section titled “Configuration Variables”- sx1231_id (Optional, ID): The ID of the SX1231 radio to use. Only needed when more than one is configured.
- All other options from the Packet Transport Component.