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.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd1322ca2b004c587c295e6ab9cd2952990a7e5b04d1da3af0087a2337e71943 |
|
MD5 | 247fcb98fda11258d8396901af790e11 |
|
BLAKE2b-256 | cad18f31b1fc5cd59354a25032b7d1726eb21c45ebdf658b620eb3ec693278a6 |
Hashes for wireless_sensor_mqtt-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8483fa7d947b5182117c30baba96f7588ef1ea553efe1858b172954305ff1a2c |
|
MD5 | 7137af5160b13496d9b3827a4aeeb19f |
|
BLAKE2b-256 | 7066c5cf0ba0066515ab74f2fc1ad7f3b993e1fba4427af6af25b98f23b0e8b8 |