Skip to content

Set countdown timer on plug? #284

Answered by rytilahti
senghauser asked this question in Q&A
Discussion options

You must be logged in to vote

So I just checked how this works on KP115, and from the looks of it there can only be a single countdown timer and they do not get removed automatically... However, here's what you could do using raw commands to achieve your goal:

  1. Create a rule that is disabled for now:
$ kasa --host 192.168.xx.xx raw-command count_down add_rule '{"enable": 0, "delay": 5, "act": 0, "name": "test"}'
No --strip nor --bulb nor --plug given, discovering..
{'id': 'FFCC02F439FFEE7E1D8853935949AA4A'}

Note down the rule id or perform a query to list available rules, you will need this to modify the rule to activate it later.
If you get an error on already existing rule, you can either delete this by using dele…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@senghauser
Comment options

Answer selected by senghauser
Comment options

You must be logged in to vote
2 replies
@senghauser
Comment options

@MrSimmo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants