|
想請教各位大神,
以下的這支 automation 是用來比對地下室和戶外的濕度, 當差異大於 15度時, 就自動開啟地下室的風扇...
可是怪怪的.....今早看它濕差高達20度, 但它就是一動也不動. .......
請問我那裡錯了嗎?
- alias: humidity of basement
trigger:
platform: numeric_state
entity_id: sensor.haya_humidityx
value_template: "{{ sensor.basement1_humidity - sensor.haya_humidityx }}"
above: 15
condition:
condition: and
conditions:
- condition: time
after: "09:12:00"
before: "17:59:00"
action:
- service: tts.google_translate_say
data:
entity_id: "media_player.zhu_wo_shi_2"
message: "戶外濕度為 {{states('sensor.haya_humidityx')}} 地下室排風扇將自動打開"
cache: false
- service: switch.turn_on
target:
entity_id: switch.basement2_fan
|
|