Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
evohome2mqtt
Advanced tools
Send the status of your evohome system to mqtt. Inspired on https://github.com/mqtt-smarthome
This node.js application is a bridge between the Evohome system and a mqtt server. Your thermostats will be polled every x seconds and the status(es) get published to your (local) mqtt server. As with a bridge it also works the other way around. You can set the temperature for a thermostat with a message to mqtt.
It's intended as a building block in heterogenous smart home environments where an MQTT message broker is used as the centralized message bus. See MQTT Smarthome on Github for a rationale and architectural overview.
Using xiaomi2mqtt is really easy, but it requires at least Node.js v6 or higher. (This app is tested against v6 and v8).
sudo npm install -g evohome2mqtt
evohome2mqtt 0.0.0-development
Usage: evohome2mqtt [options]
Options:
--user Your evohome username [required]
--password Your evohome password [required]
-h, --help Show help
-l, --logging possiblevalues: "error", "warn","info","debug"
[default: "info"]
-m, --mqtt mqtt broker url. See
https://github.com/svrooij/evohome2mqtt#mqtt-url
[default: "mqtt://127.0.0.1"]
-n, --name instance name. used as mqtt client id and as topic
prefix [default: "evohome"]
-p, --polling-interval evohome polling interval in seconds [default: 30]
--app Specify a different application ID (EXPERT?)
[default: "91db1612-73fd-4500-91b2-e63b069b185c"]
--version Show version number [boolean]
We need your evohome credentials, so those are required. evohome2mqtt --user yourUsername --password yourSecretPassword
Use the MQTT url to connect to your specific mqtt server. Check out mqtt.connect for the full description.
Connection without port (port 1883 gets used)
[protocol]://[address] (eg. mqtt://127.0.0.1)
Connection with port
[protocol]://[address]:[port] (eg. mqtt://127.0.0.1:1883)
Secure connection with username/password and port
[protocol]://[username]:[password]@[address]:[port] (eg. mqtts://myuser:secretpassword@127.0.0.1:8883)
You can also config this app with environment variables, they all start with EVOHOME2MQTT_
and then then full name of the argument. Like EVOHOME2MQTT_USER
, EVOHOME2MQTT_PASSWORD
or EVOHOME2MQTT_POLLING_INTERVAL
Every message starts with a prefix (see usage) that defaults to evohome
. So if you change this all the topics change.
This bridge uses the evohome/connected
topic to send retained connection messages. Use this topic to check your evohome bridge is still running.
0
or missing is not connected (set by will functionality).1
is connected to mqtt, but not to evohome.2
is connected to mqtt and evohome. (ultimate success!)The status of each thermostat will be published to evohome/status/thermostat/zone_name
as a JSON object containing the following fields.
val
current temperature.state
JSON object retrieved from evohome server.lc
last change.We also publish the temperature as a single value to evohome/status/thermostat/zone_name/temp
.
You can control each zone by sending a json message to evohome/set/thermostat/zone_name
with the following fields:
temp
is the new temperature.minutes
is the number of minutes this new temp should be set (optional).evohome/set/thermostat/livingroom
{
"temp":20,
"minutes":48
}
Will set the temperature to 20º for 48 minutes.
An empty message to evohome/set/thermostat/livingroom
will revert the livingroom
back to the schedule.
If everything works as expected, you should make the app run in the background automatically. Personally I use PM2 for this. And they have a great guide for this.
The latest version of this bridge is inspired on hue2mqtt.js by Sabastian Raff. That was a great sample on how to create a globally installed, command-line, something2mqtt bridge.
FAQs
Send the status of your evohome system to mqtt. Inspired on https://github.com/mqtt-smarthome
The npm package evohome2mqtt receives a total of 8 weekly downloads. As such, evohome2mqtt popularity was classified as not popular.
We found that evohome2mqtt demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.