刚开始逛论坛,看了几个视频,不是很明白,请大神指教。如果在发送邮件的时候带上温湿度的值,对yaml不是很懂
id: '1621510593295'
alias: Temperature
description: Temperature High
trigger:
- type: temperature
platform: device
device_id: 411151e2e4982ce3da079b27f64850e4
entity_id: sensor.temperature_lumi_158d000128ac1c
domain: sensor
below: 0
for:
hours: 0
minutes: 5
seconds: 0
milliseconds: 0
above: 25
condition: []
action:
- service: notify.my_email
data:
title: 温度过高
message: 温度过高
- service: switch.turn_on
target:
area_id: kong_zhi_shi
device_id: d66ab12dfc5713ec3fa0fdfa9dce9e5a
entity_id: switch.xiaomi_gateway
mode: single
message: 这里能否带上传感器的温度,如何获取?是否能支持html格式。
感谢
|