|
楼主 |
发表于 2021-6-27 16:05:46
|
显示全部楼层
对了,还可以把每日的用水量存下来。
config里面加入
notify:
- name: filenotify
platform: file
filename: recorder.csv
timestamp: true
然后自动化加入
- id: '1623036154760'
alias: Daily Water and Power notify
description: ''
trigger:
- platform: time
at: '23:59:00'
condition: []
action:
- service: notify.filenotify
data_template:
title: water and power
message: water,{{ states.sensor.daily_water_hai.state }},power,{{ states.sensor.jinri_dianliang.state
}},
mode: single
这样每天快到12点会把今日电量,水量存起来,方便后面按天查看。 |
|