Skip to content

Commit

Permalink
Adding an example for setting the SmartTask to repeat on every day of…
Browse files Browse the repository at this point in the history
… the week
  • Loading branch information
blast-hardcheese committed Jan 16, 2023
1 parent 5bd02d4 commit fd84f1a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pytradfri/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from pprint import pprint
import uuid

from pytradfri import const # pyright: ignore reportUnusedImport
from pytradfri.api.libcoap_api import APIFactory
from pytradfri.device import Device
from pytradfri.error import PytradfriError
Expand Down Expand Up @@ -139,6 +140,7 @@ def dump_devices() -> None:
if socket:
print("> sockets")
print("> socket.socket_control.sockets")
print("> api(socket.socket_control.set_values({ const.ATTR_REPEAT_DAYS: 0b1111111 }))")
if tasks:
print("> tasks[0].repeat_days_list")
print("> api(gateway.reboot())")
Expand Down

0 comments on commit fd84f1a

Please sign in to comment.