공조기 ON 후 2초 딜레이

This commit is contained in:
RubyOn 2025-04-21 10:50:41 +09:00
parent 95a126953b
commit fbf93e80ae
1 changed files with 1 additions and 0 deletions

View File

@ -37,6 +37,7 @@ module Modbus
def apply_schedule(schedule)
if schedule.is_active
run_script("on_off.rb", "0", "[Schedule] ON")
sleep 2
run_script(
"serial.rb",
(schedule.temperature * 10).to_i.to_s,