本帖最后由 showphi 于 2018-7-26 09:16 编辑
如题,通过小爱或者米家APP控制灯或者插座后,虽然hassbian自动化有执行,状态也改变了,但是实际并没有执行,除非在hassbian里提前手动开关一次,才能顺利执行自动化,求助大神!早上起来又是水漫金山,死伤一大片!没有人跟我有同样情况的吗
- alias: auto_waterflowers_on
trigger:
- platform: time
hours: 8
minutes: 0
seconds: 0
- platform: time
hours: 19
minutes: 0
seconds: 0
condition:
condition: and
conditions:
- condition: numeric_state
entity_id: sensor.flower1_moisture
below: 38
value_template: '{{ state.state }}'
action:
- service: switch.turn_on
entity_id: switch.plug_158d00015e75a5
- alias: auto_waterflowers_off
trigger:
- platform: time
hours: 8
minutes: 0
seconds: 38
- platform: time
hours: 19
minutes: 0
seconds: 38
condition:
- condition: state
entity_id: switch.plug_158d00015e75a5
state: 'on'
action:
- service: switch.turn_off
entity_id: switch.plug_158d00015e75a5
|