Skip to content

Commit

Permalink
Update lua.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Цуркан Алексей Владимирович committed Apr 16, 2024
1 parent d9f58a0 commit 556c9ef
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lua.md
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ result = zigbee.setState(device, stateName, stateValue[[, type], events])
```lua
zigbee.setTimeout(device, timeout)
-- device - STR, FriendlyName, ieeeAddr или nwkAddr устройства
-- timeout - INT, тамаут опроса в секундах
-- timeout - INT, таймаут опроса в секундах
```
_Для сохранения настройки после перезагрузки, добавить в init.lua._
Expand Down Expand Up @@ -497,6 +497,15 @@ http.request2 (url[:port], [method, headers, body])
Возвращает Unix время. Вызывается без параметров.
#### os.setTime()
Устанавливает время шлюза
```lua
os.setTime(unixtime)
-- unixtime - STR, время в формате unixtime
```
#### os.sunrise([offset])
Возвращает время восхода солнца (часы, минуты). Для правильной работы требуется выполнить настройки `Settings -> Time & Location`
Expand Down

0 comments on commit 556c9ef

Please sign in to comment.