I want to use modbus gas sensor and air pump with relay and sensor valuest must read in this time when pump has worked 15 sec. How activate sensor readings only in this time?
time:
- platform: sntp
id: sntp_time
on_time:
- seconds: 0
minutes: /2
then:
- switch.turn_on: relay #turn air pump on
- delay: 15sec
#in here read sensor, how?
- delay: 5sec
- switch.turn_off: relay #turn air pump off
something like this?
- modbus.write_register:
id: mod_bus
address: 0xFE