Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

CODESYS Creating a Subscriber


MQTT Topic Overview

TopicDatatypeTypical ValuesPublisherDescription
/settings/system/flowtimefloat600-1320CDPStudioHow long the keep the system in flow state in minutes.
/settings/system/ebbtimefloat60-240CDPStudioHow long the keep the system in ebb state in minutes.
/settings/system/ebbflowautobool
statusbool
1 or 0CDPStudio

Whether ebb and flow is controlled automatically (1) or manually (0)

/settings/ph/targetfloat5.8-6.0CDPStudioTarget PH value
/settings/ph/maxfloat6.0-6.2CDPStudioMaximum allowed PH value before system regulates
/settings/ph/minfloat5.6-5.8CDPStudioMinimum allowed PH value before system regulates
/settings/ph/autobool0 or 1CDPStudioWhether PH is controlled automatically (1) or manually (0)
/settings/ec/targetfloat11-12CDPStudioTarget EC value
/settings/ec/maxfloat12-12.5CDPStudioMaximum allowed EC value before system regulates
/settings/ec/minfloat11.5-12CDPStudioMinimum allowed EC value before system regulates
/settings/ec/autobool0 or 1CDPStudioWhether EC is controlled automatically (1) or manually (0)
/settings/air/temp/targetfloat20.5-21.5CDPStudioTarget air temperature
/settings/air/temp/maxfloat21.5-22CDPStudioMaximum allowed air temperature system regulates
/settings/air/temp/minfloat20-20.5CDPStudioMinimum allowed air temperature before system regulates
/settings/air/temp/autobool0 or 1CDPStudioWhether air temperature is controlled automatically (1) or manually (0)
/settings/air/humidity/targetfloat65-75CDPStudioTarget humidity%
/settings/air/humidity/maxfloat75-80CDPStudioMaximum allowed humidity% before system regulates
/settings/air/humidity/minfloat60-65CDPStudioMinimum allowed humidity% before system regulates
/settings/air/humidity/autobool0 or 1CDPStudioWhether EC is controlled automatically (1) or manually (0)
/settings/air/co2/targetfloat1000-2000CDPStudioTarget CO2 ppm
/settings/air/co2/maxfloat2500-3000CDPStudioMaximum allowed CO2 ppm before system regulates
/settings/air/co2/minfloat500-1000CDPStudioMinimum allowed CO2 ppm before system regulates
/settings/air/co2/autobool0-1CDPStudioWhether air co2 ppm is controlled automatically (1) or manually (0)
/settings/light/timeonfloat960-1320CDPStudioHow long to keep the light on in minutes
/settings/light/timeofffloat120-480CDPStudio

How long to keep the light off in minutes

/settings/light/autobool0 or 1CDPStudio

Whether lights are controlled automatically (1) or manually (0)

/settings/valve/exercise/statebool0 or 1CDPStudio

Whether valves should be exercised to avoid debris buildup and relubricate (1) or not (0)

/settings/valve/exercise/timefloat0 or 1CDPStudio

Time interval of how often to exercise the valves







































































/statusbool
PLC
PLS

Should be published at the start of every update so CDP can detect loss of connection. Value should always be 1.

/sensor/water
_
/ecfloat
PLS

PLCWater EC measurement.
/sensor/water
_
/phfloat
PLS

PLCWater PH measurement.
/sensor/water
_
/tempfloat
PLS

PLCWater temperature measurement.
/sensor/air
_
/tempfloat
PLS

PLCAir temperature measurement.
/sensor/air
_
/humidityfloat
PLS

PLCAir humidity measurement.
/sensor/air
_
/co2float
PLS

PLCAir CO2 measurement.
/system/light
_
/statebool
PLS

PLCLight state, 1 when on, 0 when off.
/system/light
_
/timeRemainingfloat
PLS

PLCTime until light toggles on or off, given in hours.