Skip to main content

Thermo-hygrometer thermo-hygrometer.1

A sensor that shows temperature and humidity. The app sends no commands.

← Device types

Use​

For temperature and humidity sensor boards such as DHT22 or SHT31.

On the device​

On connecting, the device announces this type with t= in @$ui and sends @$state whenever its state changes. Apps send commands to <cid>@.

@$name My Thermo-hygrometer:Living room
@$ui t=thermo-hygrometer.1
@$state temp=-20;hum=0

State keys @$state​

KeyValuesMeaning
temp-20–50°CTemperature (°C, scale -20–50)
hum0–100%Relative humidity (%, 0–100)

Commands <cid>@​

Apps send no commands.

Implementation notes​

  • Send values like temp=23.5;hum=41 when they change or at regular intervals.
  • The server keeps the last state, so an app opened later shows the latest values at once.

Default picture​

Without v=1 in $ui and a $view, apps use this picture. Its values name the $state keys the picture reads.

{"kind":"thermo","temp":"temp","hum":"hum"}

Examples​

No Arduino example uses this type yet.

Type file​

iosignal/devices/types/thermo-hygrometer.1.json (rev 2) · CDN

The screen labels in the type file are in Korean; apps show them as written.