I just purchased Homeseer, and LOVE it! I'm just starting to get my feet wet with script writing, and have a long way to go! I can't seem to find a solution to a simple problem that I'm sure can be solved. I have a coffee maker connected to an appliance module with status (G8). I use the pot to brew tea for iced tea. I want to be able to turn the pot on (local trigger)and walk away from it, and have it turn off 12 minutes later. The following script will work, with the event "Teapot Off" being the timed event that will turn the pot back off:
sub main()
hs.PollDevice "G8"
if hs.IsOn("G8") then
hs.TriggerEvent "Teapot Off"
end if
end sub
I have this script running once a minute. My problem is the logging. Once a minute I get two log entries; one for when the event is run, and one for the status of the polled device. If I check "Do not log this event" in the event properties, I still get the status of the polled device logged. I've tried using hs.NoLog, but it apparently only works with the hs.ExecX10 command.
I don't want to fill my log with insignicant entries, and I don't want to turn off the logging entirely. If anyone has a solution, I sure would appreciate it! This is starting to drive me nutser!!
sub main()
hs.PollDevice "G8"
if hs.IsOn("G8") then
hs.TriggerEvent "Teapot Off"
end if
end sub
I have this script running once a minute. My problem is the logging. Once a minute I get two log entries; one for when the event is run, and one for the status of the polled device. If I check "Do not log this event" in the event properties, I still get the status of the polled device logged. I've tried using hs.NoLog, but it apparently only works with the hs.ExecX10 command.
I don't want to fill my log with insignicant entries, and I don't want to turn off the logging entirely. If anyone has a solution, I sure would appreciate it! This is starting to drive me nutser!!
Comment