Skip to content

Publish status/state of Sensibo devices, and allow setting state over MQTT

License

Notifications You must be signed in to change notification settings

denwilliams/sensibo-mqtt

Repository files navigation

sesnsibo-mqtt

Publish status/state of Sensibo devices, and allow setting state over MQTT.

Installation and Configuration

It is intended to be installed globally, ie npm i -g sensibo-mqtt

Create a YAML file somewhere. See config.example.yml

Run (replace path)

CONFIG_PATH=/path/to/my/config.yml sensibo-mqtt

You can also use Consul for config. See mqtt-usvc for more details.

You need to provide and apiKey in the config. The pollInterval is optional (default 60000 [60s]).

Status Updates

Once started you will receive status updates on sensibo/status/{device_id} at the configured pollInterval. The event will be emitted regardless of whether anything has changed.

Controlling

You can change AC state sending to sensibo/set/{device_id}/acState see post details, or just single properties using sensibo/set/{device_id}/acState/{property} see patch details or enable climate react using sensibo/set/{device_id}/smartmode see put details NOTE: seems this endpoint doesn't work on the Sensibo API.

Eg, send to:

  • topic = sensibo/set/Abcd123/acState/on
  • value = true

or

  • topic = sensibo/set/Abcd123/smartmode
  • value = true

or

  • topic = sensibo/set/Abcd123/acState
  • value = {"on"true,"mode":"cool","fanLevel":"auto","targetTemperature":22}

HTTP Status

To enable set a http port in the config (see example), then poll /status on that port.

About

Publish status/state of Sensibo devices, and allow setting state over MQTT

Resources

License

Stars

Watchers

Forks

Packages

No packages published