Lesson 1Example JSON payload dem fi reading and command wid schema exampleApply schema dem to concrete JSON payload dem fi reading and command. Yuh wi build clear, versioned example dem weh show required field dem, optional metadata, and validation rule dem fi smart room integration dem.
JSON examples for sensor readingsJSON examples for actuator commandsEmbedding quality and health metadataVersioning and schema evolution fieldsHuman-readable vs compact JSON stylesLesson 2Inventory a room device and sensor dem (temperature, CO2/air quality, motion, light dem, HVAC) wid role demCreate structured inventory a smart room device and sensor dem. Yuh wi classify temperature, air quality, motion, lighting, and HVAC element dem, document role dem, location dem, and relationship dem.
Cataloging device types and capabilitiesMapping devices to physical locationsRoles of comfort, safety, and energy devicesLogical grouping into zones and scenesMaintaining inventory and identity recordsLesson 3Actuator command specification: command name dem, parameter dem, expected response dem, acknowledgement pattern demSpecify actuator command model dem fi light dem, HVAC, and other device dem. Yuh wi define command name dem, parameter dem, expected response dem, and acknowledgement flow dem fi ensure predictable, safe device behaviour.
Catalog of actuator command namesParameter structures and value rangesSynchronous vs asynchronous responsesAcknowledgement and retry patternsTimeouts, errors, and fallback actionsLesson 4Data validation and quality metadata: range dem, CRC dem, sensor health flag dem, dropout handlingDefine validation rule dem and quality metadata fi sensor data. Yuh wi model range dem, checksum dem, health flag dem, and dropout handling so downstream analytics can trust and interpret smart room data.
Valid ranges and unit-consistent checksCRCs, hashes, and payload integritySensor health and calibration flagsDetecting gaps, dropouts, and spikesAnnotating imputed or corrected valuesLesson 5Data retention, aggregation and TTL strategy dem fi raw vs aggregated reading demPlan retention and aggregation strategy dem fi telemetry. Yuh wi separate raw and aggregated data, define TTL dem, and design rollup dem weh preserve insight while controlling storage and query cost dem.
Retention tiers for raw vs processed dataAggregation windows and rollup levelsTTL policies and regulatory constraintsCold storage and archival strategiesBackfilling and reaggregation proceduresLesson 6Sensor data specification: measurement name dem, unit dem, precision, recommended sampling frequency demDefine precise sensor data model dem fi smart room dem. Yuh wi specify measurement name dem, engineering unit dem, precision, and sampling rate dem so heterogeneous sensor dem produce consistent, analyzable, and interoperable data stream dem.
Standardizing sensor measurement namesChoosing and documenting measurement unitsDefining precision and resolution rulesSelecting sampling rates per sensor typeHandling oversampling and downsamplingLesson 7Control command and event schema: field dem fi command_id, target_device, command_type, param dem, issued_by, timestamp, statusModel command dem and event dem fi controllable device dem. Yuh wi design field dem fi identifier dem, target dem, parameter dem, issuer dem, timestamp dem, and status, enabling traceable, auditable, and automatable smart room interaction dem.
Command identifiers and idempotencyTarget device and addressing fieldsCommand types and parameter encodingIssued-by, origin, and authentication dataStatus, error codes, and lifecycle statesLesson 8MQTT topic and REST endpoint naming convention dem, topic hierarchy dem, QoS and retained message strategyDesign MQTT topic dem and REST endpoint dem fi smart room dem. Yuh wi define naming convention dem, hierarchy dem, QoS level dem, and retained message strategy dem weh balance reliability, bandwidth, and clarity.
MQTT topic hierarchy for rooms and devicesREST endpoint paths for devices and dataQoS level selection per message typeUse of retained messages and last willMulti-tenant and building-level namespacesLesson 9Time-series data schema: field dem fi timestamp, device_id, sensor_type, value, unit, quality flag demDesign time-series schema fi smart room telemetry. Yuh wi define timestamp dem, device identifier dem, sensor type dem, value dem, unit dem, and quality flag dem fi support storage, querying, and analytics.
Timestamp standards and time zonesDevice and sensor identity fieldsValue, unit, and type representationQuality flags and annotation fieldsIndexing and partitioning considerations