Lesson 1Example JSON payloads for readings and commands with schema examplesApply schemas to concrete JSON payloads for readings and commands. You will build clear, versioned examples that illustrate required fields, optional metadata, and validation rules for smart room integrations.
JSON examples for sensor readingsJSON examples for actuator commandsEmbedding quality and health metadataVersioning and schema evolution fieldsHuman-readable vs compact JSON stylesLesson 2Inventory of room devices and sensors (temperature, CO2/air quality, motion, lights, HVAC) with rolesCreate a structured inventory of smart room devices and sensors. You will classify temperature, air quality, motion, lighting, and HVAC elements, documenting roles, locations, and relationships.
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 names, parameters, expected responses, acknowledgement patternsSpecify actuator command models for lights, HVAC, and other devices. You will define command names, parameters, expected responses, and acknowledgement flows to 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: ranges, CRCs, sensor health flags, dropout handlingDefine validation rules and quality metadata for sensor data. You will model ranges, checksums, health flags, 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 strategies for raw vs aggregated readingsPlan retention and aggregation strategies for telemetry. You will separate raw and aggregated data, define TTLs, and design rollups that preserve insight while controlling storage and query costs.
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 names, units, precision, recommended sampling frequenciesDefine precise sensor data models for smart rooms. You will specify measurement names, engineering units, precision, and sampling rates so that heterogeneous sensors produce consistent, analysable, and interoperable data streams.
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: fields for command_id, target_device, command_type, params, issued_by, timestamp, statusModel commands and events for controllable devices. You will design fields for identifiers, targets, parameters, issuers, timestamps, and status, enabling traceable, auditable, and automatable smart room interactions.
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 conventions, topic hierarchies, QoS and retained message strategyDesign MQTT topics and REST endpoints for smart rooms. You will define naming conventions, hierarchies, QoS levels, and retained message strategies that 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: fields for timestamp, device_id, sensor_type, value, unit, quality flagsDesign a time-series schema for smart room telemetry. You will define timestamps, device identifiers, sensor types, values, units, and quality flags to 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