设备连接:
继电器+门磁传感器+hmi串口屏->esp8266(easyesp固件)
使用屏幕输入密码(value)并发送给hassio
门磁传感器实时状态->hassio
hassio 内配置一个input_text
现在想用hassio核对屏幕传递的6位密码是否符合input_text内容,请问自动化该怎么写?
- id: automation123
alias: men
trigger:
- platform: ??????
???????
condition:
- condition: state
entity_id: binary_sensor.menci
state: 'off'
action:
- service: switch.turn_on
entity_id: switch.switch
|