This release is a pre-release and may not be stable for production use.
Pure Python Jeelink LaCrosse Library
Requirements
This library works with the Jeelink USB RF adapter and the Arduino sketch hosted on the FHEM website. LaCrosseITPlusReader firmware 10.1s or newer is sugested.
Tested Devices
- Technoline TX 29IT
- Technoline TX 29DTH-IT
Command Line Tool
# pylacrosse -h
usage: LaCrosse sensor CLI tool. [-h] [-v] [-d DEVICE] [-f FREQUENCY_RFM1]
[-F FREQUENCY_RFM2] [-t TOGGLE_INTERVAL_RFM1]
[-T TOGGLE_INTERVAL_RFM2]
[-m TOGGLE_MASK_RFM1] [-M TOGGLE_MASK_RFM2]
[-r DATARATE_RFM1] [-R DATARATE_RFM2]
{scan,info,led} ...
optional arguments:
-h, --help show this help message and exit
-v be more verbose
-d DEVICE, --device DEVICE
set local device e.g. '/dev/ttyUSB0' or
set remote device e.g. 'rfc2217://[IP]:[PORT]'
default: '/dev/ttyUSB0'
-f FREQUENCY_RFM1 set the frequency for RFM1
-F FREQUENCY_RFM2 set the frequency for RFM2
-t TOGGLE_INTERVAL_RFM1
set the toggle interval for RFM1
-T TOGGLE_INTERVAL_RFM2
set the toggle interval for RFM2
-m TOGGLE_MASK_RFM1 set the toggle mask for RFM1
-M TOGGLE_MASK_RFM2 set the toggle mask for RFM2
-r DATARATE_RFM1 set the datarate for RFM1
-R DATARATE_RFM2 set the datarate for RFM2
Commands:
{scan,info,led}
scan Show all received sensors
info Get configuration info
led Set traffic LED state
Choose one command. Configuration options are applied before the command runs. For example, set the datarate and then show the device configuration:
pylacrosse -v -d /dev/ttyUSB0 -r 2 info
Opening the connection can reset the adapter. The library opens the serial port
and flushes its input and output buffers. It then sends a v query and waits for
an identifiable firmware report, warning and continuing if the wait times out.
The CLI applies configuration options after this initialization step.
The LaCrosse sensor generates the ID every time the battery is changed.
Use the cli tool pylacrosse to find your device:
# pylacrosse -d /dev/ttyUSB0 scan
id=40 t=16.000000 h=69 nbat=0 name=unknown
id=16 t=18.700000 h=60 nbat=0 name=unknown
id=0 t=17.400000 h=65 nbat=0 name=unknown
You can generate a file with know devices at ~/.lacrosse/known_sensors.ini
[0]
name = Kitchen
[16]
name = Livingroom
[40]
name = Bedroom
then the tool will print the defined names
# pylacrosse -d /dev/ttyUSB0 scan
id=40 t=16.000000 h=69 nbat=0 name=Bedroom
id=16 t=18.700000 h=60 nbat=0 name=Livingroom
id=0 t=17.400000 h=65 nbat=0 name=Kitchen
Using remote serial port with ser2net
You can also use ser2net to connect to a remote JeeLink Adapter. This can be useful,
if you use a Docker container or if you can not attach a JeeLink adapter to your host
running pylacrosse. On your remote device install ser2net and add the following
line to your ser2net.conf file:
20001:telnet:0:/dev/ttyUSB0:57600 remctl banner
For modern ser2net versions, the ser2net.yamlconfiguration looks like this:
define: &banner \r\nser2net port \p device \d [\B] (Debian GNU/Linux)\r\n\r\n
connection: &con20001
accepter: telnet(rfc2217),tcp,20001
enable: on
connector: serialdev,/dev/ttyUSB0,57600n81,local
options:
banner: *banner
Restart the ser2net daemon and connect to your remote host using pylacrosse
command line tool:
# pylacrosse -d rfc2217://[REMOTE_IP]]:20001 scan
id=40 t=16.000000 h=69 nbat=0 name=Bedroom
id=16 t=18.700000 h=60 nbat=0 name=Livingroom
id=0 t=17.400000 h=65 nbat=0 name=Kitchen
Contributing
Developer, publishing, and maintenance instructions are in the contributing guide.
Metadata
Release files for pylacrosse 0.6.0rc1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pylacrosse-0.6.0rc1.tar.gz | 16.9 kB | With provenance | Details for pylacrosse-0.6.0rc1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pylacrosse-0.6.0rc1-py3-none-any.whl | Python 3 | none | any | Details for pylacrosse-0.6.0rc1-py3-none-any.whl |
Total release size: 36.0 kB
Release files / pylacrosse-0.6.0rc1.tar.gz
| Download URL | pylacrosse-0.6.0rc1.tar.gz |
|---|---|
| Size | 16.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f45c60908e06408a6ccd2ade3af1491e727c27767dd3e7357eea13c6f80f14ee
|
|
BLAKE2b-256 checksum How to use checksums |
4906d62daa5aa17ae580d14262c51124b1bf75d0970e7efee59f4eee6ed66ead
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.
Transparency logRelease files / pylacrosse-0.6.0rc1-py3-none-any.whl
| Download URL | pylacrosse-0.6.0rc1-py3-none-any.whl |
|---|---|
| Size | 19.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
330d2f3de42a6f8617df6536d6c824608d90d21362c81fec4c38f110040eded5
|
|
BLAKE2b-256 checksum How to use checksums |
48cf02b0801a05b8c6d853c6d9389aa6e61afa00da5899ba3f5c021fa3a9a73c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.
Transparency logSecurity for pylacrosse 0.6.0rc1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pylacrosse-0.6.0rc1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.