Skip to content

MQTT Remote Control

vitotai edited this page Dec 19, 2018 · 2 revisions

MQTT Remote Control enables controlling BPL by a MQTT server. When enabled, BPL subscribes the specified path and changes the setting accordingly. Currently, four item can be controlled in this way:

Mode

The values can be 0,1,2,3 or o,f,b,p for 'Off', 'Fridge Constant', 'Beer Constant', and 'Beer Profile'. If the mode is changed to 'Beer Profile', the current profile will be used and the profile starting time will be set to current time. That is, you should edit the profile beforehand, and expect the profile to be execute starting from the time it is set.

Setting Temperature

It is valid in 'Fridge Constant' and 'Beer Constant' mode only.

Capping/spunding, if enabled.

PTC temperature, if enabled

To set PTC target temperature, the 'triggering temperature' will set to 3 degree higher.

Settings for ubidots.com

Get the full information from Ubidots Docs. For free/educational users, use

  • MQTT Server: things.ubidots.com
  • MQTT Port : 1883
  • User Name: [ubidots token]
  • Password: (left blank)

The path is in format of '/v1.6/devices/{DEVICE_LABEL}/{LABEL_VARIABLE}/lv'. Let the device label be 'fermenter01' and mode and setting temperature variables be 'mode', and 'settemp'.

  • Mode path: /v1.6/devices/fermenter01/mode/lv
  • Setting Temperature path: /v1.6/devices/fermenter01/settemp/lv

You will have to create two variables named 'mode' and 'settemp' in device 'fermenter01'.

Some Notes

Connecting to MQTT server takes up a TCP connection and some resource. The program might stick to the setting on MQTT server. Therefore, enable it only when you need it.

There is latency of network and update of data. Therefore, expect some delay after changing the setting.

Clone this wiki locally