这两个参数设成你想要的效果:按你说的例子应该是-3/180=-0.0167和180
min_gradient string (optional, default: 0.0)
The minimum rate at which the observed value must be changing for this sensor to switch on. The gradient is measured in sensor units per second.
sample_duration integer (optional, default: 0)
The duration in seconds to store samples for. Samples older than this value will be discarded