Skip to content

Commit

Permalink
Update timers.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tsurkan-av authored Feb 6, 2024
1 parent ac25321 commit cb3d135
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions timers.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,9 @@ scripts.addCron("aquarium", "0 20 * * 1-5") -- Время выключения 2

```lua
-- aquarium.lua
if (Event.Time.hour = 6 and Event.Time.min = 0) then
if (Event.Time.hour == 6 and Event.Time.min == 0) then
zigbee.set("0xA4C138E56B96596D", "state", "ON") -- включить
elseif (Event.Time.hour = 20 and Event.Time.min = 0) then
elseif (Event.Time.hour == 20 and Event.Time.min == 0) then
zigbee.set("0xA4C138E56B96596D", "state", "OFF") -- выключить
end
```
Expand Down

0 comments on commit cb3d135

Please sign in to comment.