No description
  • Rust 89.7%
  • Nix 10.3%
Find a file
2022-08-01 20:56:02 +02:00
.github/workflows docker ci 2021-07-31 15:12:33 +02:00
src hopefully fix reconnect 2022-08-01 20:56:02 +02:00
.dockerignore docker setup 2020-11-15 17:28:50 +01:00
.envrc flake 2022-07-28 19:13:02 +02:00
.gitignore flake 2022-07-28 19:13:02 +02:00
Cargo.lock bumb dependencies 2022-07-28 19:15:00 +02:00
Cargo.toml bumb dependencies 2022-07-28 19:15:00 +02:00
Dockerfile build using official image 2021-11-10 13:03:55 +01:00
flake.lock flake 2022-07-28 19:13:02 +02:00
flake.nix flake 2022-07-28 19:13:02 +02:00
README.md readme 2022-02-13 17:22:24 +01:00

taspromto

Publish tasmota state into prometheus

What

Taspromto listens to messages published by tasmota devices to MQTT and presents the data in a prometheus compatible format.

Usage

Run the binary with the following environment variables set

PORT=
MQTT_HOSTNAME=
MQTT_USERNAME= # Optional
MQTT_PASSWORD= # Optional

Exposed data

The following tasmota data is supported

  • ON/OFF state
  • Current and total power consumption for power meter devices
  • CO² levels for MH-Z19 sensors
  • Power and Gas levels from supported P1 smart meters
  • Particle concentration from PMS5003 sensors

Xiaomi MI Temperature and Humidity Sensors

Tasmota can expose temperature and humidity data from Xiaomi sensors, to expose these sensors you need to configure the names for the sensors.

This is done by setting the MITEMP_NAMES environment variable to comma separated key value pairs of the last 6 digits of the MAC address of the sensors and the desired name.

MITEMP_NAMES="351234=Bedroom,352468=Living Room"