MQTT client reporting measurements of FT017TH wireless thermo/hygrometers
Project description
wireless-sensor-mqtt 🌡
MQTT client reporting measurements of FT017TH wireless thermo/hygrometers
Requirements
- MQTT broker
- FT017TH sensor
- CC1101 transceiver
- Linux machine with CC1101 connected to SPI port (wiring instructions for raspberry pi)
Setup
$ pip3 install --user --upgrade wireless-sensor-mqtt
Usage
$ wireless-sensor-mqtt --mqtt-host HOSTNAME_OR_IP_ADDRESS \
--mqtt-topic-prefix MQTT_TOPIC_PREFIX
Measurements will be published on topics
MQTT_TOPIC_PREFIX/temperature-degrees-celsius
and MQTT_TOPIC_PREFIX/relative-humidity-percent
(e.g., living-room/temperature-degrees-celsius
with --mqtt-topic-prefix living-room
).
Add --debug
to get debug logs.
MQTT via TLS
TLS is enabled by default.
Run wireless-sensor-mqtt --mqtt-disable-tls …
to disable TLS.
MQTT Authentication
wireless-sensor-mqtt --mqtt-username me --mqtt-password secret …
# or
wireless-sensor-mqtt --mqtt-username me --mqtt-password-file /var/lib/secrets/mqtt/password …
Home Assistant 🏡
Home Assistant will detect two new sensors automatically, if connected to the same MQTT broker and MQTT discovery is enabled (enabled by default since version 0.117.0).
When using a custom discovery_prefix
, run wireless-sensor-mqtt --homeassistant-discovery-prefix custom-prefix …
.
Docker 🐳
Pre-built docker images are available at https://hub.docker.com/r/fphammerle/wireless-sensor-mqtt/tags
$ sudo docker run --name wireless_sensor_mqtt \
--device /dev/spidev0.0 fphammerle/wireless-sensor-mqtt \
wireless-sensor-mqtt --mqtt-host HOSTNAME_OR_IP_ADDRESS …
Optionally add --read-only --cap-drop ALL --security-opt no-new-privileges
before image specifier.
Annotation of signed tags docker/*
contains docker image digests: https://github.com/fphammerle/wireless-sensor-mqtt/tags
Docker Compose 🐙
- Clone this repository.
- Edit
docker-compose.yml
. sudo docker-compose up --build
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for wireless-sensor-mqtt-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d286677a46e0b0d156c20568179f059406c91ea710d89350db7d0608a0d6c09 |
|
MD5 | 33eaefb66c0d729f026a418ecd990d04 |
|
BLAKE2b-256 | 90d7b309de9a9568cfda54a473d18bff56104cd6a3e83cb6efec119603461ce6 |
Hashes for wireless_sensor_mqtt-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fb139f78ad469012259e9936a441b3f39cc191bb9a649c8438042749b65fc26 |
|
MD5 | de003b72dd6d8df1d398a93311cd1c51 |
|
BLAKE2b-256 | 04661139547b11252fc31d0adc8e2dde17b53428687a187f2312f26258a43a67 |