For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /developers/blog/2022-09-28-new_sensor_device_classes.md.

新的 sensor device classes

已添加多个新的 sensor device classes:

  • distance,以 cmftinkmmmimmyd 之一测量的距离
  • speed,以 ft/sin/din/hkm/hknm/smm/dmph 之一测量的速度
  • volume,以 fl. oz.ft³galLmL 之一测量的体积
  • weight,以 gkglbmgozµg 之一测量的质量

pressuretemperature sensors 类似,用户可以在 UI 中自由地为使用任何新 device class 的 sensors 选择显示单位。

长期统计

长期统计将 distance 存储为 mspeed 存储为 m/svolume 存储为 weight 存储为 g。 对于修改为其中一种新 device class 的现有 sensors,统计将继续以 sensor 的 state_unit 记录,但用户将获得选项,可以将现有统计转换为标准化单位。