Up: push a value to the gauge
The gauge you made (IDtempGauge) updates when something pushes a value to that
ID.
Real hardware — from firmware:
tempGauge in the widget’s Data tab), and watch the gauge move.
Open the dashboard in Preview — the gauge tracks the value live. No polling.
Down: send a command from the switch
Flip the Switch on the dashboard. It sends yourOperate command. The device
receives it.
Real hardware — handle it in firmware:
{ "status": "ok" } from the Device side.
What you just did
Value up
updateWidget(targetId, "tempGauge", value) → the bound gauge.Command down
The switch →
setUserCommandHandler on the device.Next: store data & automate
Log readings and add a rule.

