7
1072
3361
论坛元老
使用道具 举报
25
224
1011
金牌会员
007潜水了
demacia 发表于 2024-4-9 18:59 sensor 还会记录上一次的值?我一直以为历史日志和日志里面变化的只是记录的值。为什么不多加个sensor呢 ...
隔壁的王叔叔 发表于 2024-4-9 22:00 {{(as_timestamp(now())-as_timestamp(states.light.yeelight_panel1_0x124379aa.last_updated)) > 5}} ...
{{ as_timestamp(now()) - as_timestamp(states.binary_sensor.switch_m5_3g_549d88_button_a.last_changed) < 60000}}
5
67
中级会员
sensor: - platform: history_stats name: Last Gas Balance entity_id: sensor.tian_ran_qi_yu_e state: "last" type: sum end: "{{ now() }}" duration: days: 1
benlky 发表于 2024-4-15 16:04 通过 history_stats sensor 好像可以实现这个功能
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|Hassbian
GMT+8, 2024-4-30 21:54 , Processed in 0.053896 second(s), 30 queries .
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.