The virtiaul environment monitor listens for multiple temperature sensors and sends average temperature to ESP32-faikin controller.
Prerequisites:
Steps:
- Clone this repository.
bun install
- Copy
.env.example
to.env
and fill correct values. bun run src/index.ts
Steps:
- Copy
.env.example
to.env
and fill correct values. - Run docker command:
$ docker run --env-file .env ghcr.io/martynaszilinskas/mqtt-environment-monitor:latest
These are environment variables that must be set to start the service.
- MQTT_URL - MQTT Endpoint (Example:
mqtt://mqtt.example.com:1883
) - MQTT_USERNAME
- MQTT_PASSWORD
- TEMPERATURE_SENSOR_TOPICS - Topics that hold numeric state and separated by comma (Example:
esphome/living-room/sensor/temperature/state,esphome/living-room2/sensor/temperature/state
) - FAIKIN_AC_TOPIC - Faikin device base topic. Service will append
/control
path (Example:Faikin/faikin-ac
)
After setting up and running the project, the service will start listening to the specified MQTT topics for temperature data and send control command to faikin. Additional Env
column should appear in Faikin's dashboard.
- One instance can control only one Faikin.
This project is licensed under MIT License.