是的,我是用esphome直接写的,但是不知道如何把number:的数值返回到delay
我的number代码是这样的:
- platform: template
name: "open_timer"
id: open_time
optimistic: true
min_value: 80
max_value: 180
step: 1
控制开关延时的代码是:
script:
- id: Water_Open #打开阀门程序
then:
- switch.turn_on: Water_Switch
- delay:
seconds: ??? #这里想设为获取number交互变量,
- switch.turn_off: Water_Switch
但是纯小白不知道怎么写,大神如果知道请告知,谢谢! |