M1 automation, linkage and remote display
On this page
Local automation and linkage
Weekly / date schedules use device time and can perform display actions; a matching controller also supports alarm actions. Check device time first. Controller requirements for alarms and display extensions are in M1 controller firmware.
For A1 linkage, configure this M1's ID on A1 and establish authorization. M1 supplies readings and does not command A1. As a remote display, its formaldehyde and PM regions independently select source devices and fields without changing local sensor acquisition.
Device IDs and field IDs
A device_id is the factory MAC as 12 lowercase hexadecimal digits, such as aabbccddeeff. Read your device's ID in device information / diagnostics or select it under the same MQTT account. Field IDs are case-sensitive; use the identifiers below.
| Field ID | Meaning | Unit |
|---|---|---|
temperature |
Temperature | °C |
humidity |
Humidity | % |
pm25 |
PM2.5 | µg/m³ |
formaldehyde |
Formaldehyde | mg/m³ |
co2 |
CO₂ (available optional hardware) | ppm |
pressure |
Pressure (available optional hardware) | Pa |
Supply readings to M1 over MQTT
- Use the project's binary MQTT mode on both the source and M1, with the same external broker and MQTT account. The account's ACL must allow subscribing to its sensor topics. The same server with different accounts generally does not provide mutual discovery.
- In M1 Settings → General → Device screen user readings, choose the formaldehyde or PM2.5 region, then another MQTT device as the source. Select the actual device and field. If missing, check that both versions support sensor descriptors and have published them.
- Save the source, unit, display mode and lifetime, then select user readings. A configured double press can switch both regions together. The default lifetime is 20 seconds; expired or invalid data restores that region's original reading.
- Close the browser and cloud platform. Publishing, subscribing and display continue while both devices and the broker run.
M1 has fixed three-digit segment displays and cannot show arbitrary unit text. The PM region is integer-only; the formaldehyde decimal point is fixed after its first digit. For W, V, A or ppm, hide the original legends and mg/m³ / µg/m³ units as appropriate. See M1 display formats.
Protocol and troubleshooting
Sensor descriptors and readings use MessagePack schema 3, published through metadata and state respectively. Topics are phicomm/v2/u_<account encoding>/sensor/<device_id>/metadata and /state. Firmware derives the account encoding from the username; an empty username uses the local scope. Metadata is retained and readings are not. Boot identity, sequence, descriptor revision, validity and age prevent reuse of stale data. Diagnostic tools need MessagePack decoding support.
For an offline source, missing field, unit mismatch or expired sample, check source publications and M1 lifetime. Invalid or missing data is treated as unavailable. UDP pairing, web management authentication and broker authentication are independent. Developer interfaces are in the openiot protocol documentation.