本帖最后由 plutosherry 于 2018-4-20 16:17 编辑
在sensors.yaml中添加如下代码:
- platform: min_max
entity_ids:
- sensor.kitchen_temperature
- sensor.window_air_temp
- sensor.living_room_temperature
type: mean
name: indoor_mean_temp
round_digits: 0
- platform: min_max
entity_ids:
- sensor.living_room_humidity
- sensor.kitchen_humidity
type: mean
name: indoor_mean_humidity
官网详细使用说明如下:https://www.home-assistant.io/components/sensor.min_max/
PS:可以通过调整type值取最大、最小、平均等值
type (Optional): The type of sensor: min, max, last or mean. Defaults to max.
|