-
Notifications
You must be signed in to change notification settings - Fork 0
MQTT Format
Geoffrey Ottoy edited this page Feb 12, 2019
·
7 revisions
This document describes the format of the topics and messages of this project.
Generic format: SENSOR_TYPE/<own-id>/FUNCTION "message"
The <own-id>
is formatted as <sensor-type>-<unique-id>
where the <unique-id>
is a 4 digit hex value.
The <sensor-type>
is defined in the format below.
Sensor Type | Update Frequency |
---|---|
doorlock | onChange |
co2sensor | every second |
colorsensor | every second |
luxsensor | every second |
fireplace sensor | onChange |
curtain | onChange |
button | onChange |
doorLock/all/set <msg>
doorlock/<own-id>/set <msg>
doorLock/<own-id>/status <msg>
- "closed"
- "open"
co2sensor/<own-id>/status <msg>
-
uint_16
formatted as string
colorsensor/<own-id>/status <msg>
- "#RRGGBB" (e.g.,
#d9d8c6
)
luxsensor/<own-id>/status <msg>
-
float
formatted as string
fireplace/all/set <msg>
fireplace/<own-id>/set <msg>
fireplace/<own-id>/status <msg>
- "#RRGGBB" (e.g.,
#d9d8c6
)
curtain/all/set <msg>
curtain/<own-id>/set <msg>
curtain/<own-id>/status <msg>
- "up"
- "down"
- "going up" (status only)
- "going down" (status only)
button/<own-id>/status <msg>
- "pressed"
- "released"
- Pull up the
curtain-93a3
curtain: ´curtain/curtain-93a3/set "up"´ - Listen to the status of a button: ´button/+/status´
- co2sensor-0c02
- doorlock-10cb
- co2sensor-0c02
- colorsensor-8421
- luxsensor-4f23
- fireplace-f17e
- curtains-09e4
- button-9b65
- The application should allocate sensors to locations based on the sensor-id