植物监测器
这个植物
组件使您可以将植物的水分,电导率,光强度,温度和电池水平合并为单个UI元件。它还支持为每个测量值设置最小值和最大值,如果不在这些限制之内,它将将其状态更改为“问题”。
配置
使用你的植物
安装中的传感器,将以下内容添加到您的configuration.yaml
文件:
#示例Configuration.yaml条目植物:name_of_your_plant:传感器:水分:Sensor.my_sensor_moisture电池:Sensor.my_sensor_battery温度:Sensor.my_sensor_temperature电导率:Sensor.my_sensor_conductivity亮度:Sensor.my_sensor_brightnessmin_moisture:20
配置变量
由您设置,并由集成用作ENTITY_ID
。
传感器测量实体列表。
触发问题之前,最小亮度。与其他值相反,此检查是不是查看当前情况,而是在最后几天。仅在最后几天的最大亮度低于Min_Brightness时才报告问题。您可以使用它来检查植物在一天中是否获得足够的光线。
例子
使用普通MQTT传感器获取数据
这是一个使用多个的实践示例MQTT传感器
提供读数植物
传感器。这些数据的另一个好来源是mi Flora零件。
如果传感器数据在最小/最大值之内,则状态将为好的
,如果不是,状态将是问题
。如果您的植物存在问题,则可以使用它来触发通知。当然,您只能监视传感器配置并提供数据的工厂的属性。
数据源
数据的主要来源通常是miflora传感器或aMQTT传感器从一个Plantgateway。
如果您想通过PlantGateway获得日期,这是MQTT传感器的典型配置:
#示例Configuration.yaml条目植物:仿真_plant:传感器:水分:传感器.mqtt_plant_moisture电池:传感器。mqtt_plant_battery温度:传感器.mqtt_plant_temperature电导率:传感器.mqtt_plant_conductivity亮度:传感器。mqtt_plant_brightnessmin_moisture:20max_moisture:60min_battery:17min_ conductivity:500min_temperature:15传感器:-平台:mqtt姓名:my_plant_moisturestate_topic:my_plant_topicvalue_template:“{{{value_json.moisture|int}}””测量单位:“%”-平台:mqtt姓名:my_plant_batterystate_topic:my_plant_topicvalue_template:“{{{value_json.battery|int}}””测量单位:“%”-平台:mqtt姓名:my_plant_temperaturestate_topic:my_plant_topicvalue_template:“{{{value_json.temperature|漂浮}}””测量单位:“°C”-平台:mqtt姓名:my_plant_conductivitystate_topic:my_plant_topicvalue_template:“{{{value_json.conductivity|int}}””测量单位:“µs/cm”-平台:mqtt姓名:my_plant_brightnessstate_topic:my_plant_topicvalue_template:“{{{value_json.brightness|int}}””测量单位:“勒克斯”
你必须替换state_topic
带有您在PlantGateway中配置的值。它还取决于MQTT服务器的全局配置。