S30M-V1B automation, linkage and remote display
Version requirement: v1.0.0 includes local power rules, weekly / once schedules, Clock settings and MQTT remote display. Published RC5 packages include power rules but not calendar schedules; check the target version before installing.
On this page
Socket automation
TC1 and S30M-V1B use the same weekly, once and power triggers and schedules.* interface. Weekly / once schedules support outlet control, child lock, indicator and reboot; power rules support outlet control. TC1 can select one or all outlets; S30M-V1B has one outlet.
Set the time zone and NTP server in Settings → Clock and confirm synchronization, then select a weekly pattern or a single date and time in Settings → Schedules. Single dates use the device time zone. S30M-V1B stores up to eight time rules and eight power rules together, with edit, disable and delete controls; changing the trigger preserves the rule ID.
Time rules save their execution record before running the action. Rules survive reboot, which requires fresh clock synchronization. Unsynchronized clocks do not run time rules; moving the clock backwards does not repeat an executed occurrence, clock jumps do not replay past weekly actions, and expired single occurrences are marked missed. The physical button's short priority window also applies to scheduled outlet control. NTP defaults to pool.ntp.org, synchronizes hourly after success and retries after 60 seconds on failure, trying Aliyun, Tencent and public NTP pools. After synchronization, execution continues with MQTT disconnected and the browser closed.
Local power automation
In Settings → Schedules, select a power condition, above / below a threshold, a continuous duration and an explicit on / off action. For example, below 5 W for 600 seconds turns the outlet off. A duration of 0 triggers on a fresh matching reading; this is not cumulative energy in Wh. The limits are 0–25,000 W and 0–604,800 whole seconds, with at most eight power rules.
Comparison is strictly above or below; equality does not match. A rule fires once per matching period and rearms only after an observed nonmatching condition. Missing samples or reboot restart unfinished timing; a brief invalid sample does not repeat an action that already fired. Busy or failed storage does not count as success; the action remains retryable. Physical controls take priority: after a manual action the rule waits for the condition to clear.
Rules execute locally without a browser, cloud service, MQTT or NTP. Checks run once a second in addition to metering latency; this is not a circuit breaker, overload protector or precision timer. Rules persist, but an in-progress timer does not survive reboot.
Power rules use the single outlet's active power and support on / off actions with both threshold directions and immediate / sustained triggers. Meter data expires after about five seconds.
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 |
|---|---|---|
voltage |
Voltage | V |
current |
Current | A |
power |
Active power | W |
energy |
Accumulated energy | kWh |
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.