Turn lights on/off ...
 

[Solved] Turn lights on/off via a daily schedule  

  RSS

sophanox
(@sophanox)
New Member
Joined: 4 months ago
Posts: 2
30/06/2019 4:43 pm  

Hey there,

I'm brand new to Mycodo and all I'm trying to do at the moment is run a linux script at a certain time to turn a light on (handled via a Zigbee smart plug), and then another script at a later time to turn it off. I've configured the output as so:

Output image

Hitting on/off from the output there turns the light on/off as expected.

Obviously, I want to run this on a schedule - so from what I can gather, a method would be best? I've configured this daily (time based) method as a test:

Method image

However, nothing happens! Looking at the daemon logs, it appears execution hasn't even been attempted.

Sorry that this is so basic, but can you point me in the right direction? Thanks!

 

This topic was modified 4 months ago by sophanox

Quote
Kyle Gabriel
(@kylegabriel)
Member Admin
Joined: 5 years ago
Posts: 85
30/06/2019 8:06 pm  

Hi. What you want to use is a Trigger on the Setup -> Function page. You can click the question mark next to "Function" on that page to be taken to the part of the manual that describes what each function does. You'll probably want to use the Timer (Daily Point) Trigger, but others may be more appropriate for your application.

Mycodo Developer


ReplyQuote
sophanox
(@sophanox)
New Member
Joined: 4 months ago
Posts: 2
03/07/2019 8:24 am  

That was it - seems so obvious now. Thanks for your reply and a massive thanks for this great framework. Hoping I can contribute in future!

Cheers


ReplyQuote