more G-Labs products

Author Topic: This could be a bug light shuts off for no reason  (Read 2509 times)

September 19, 2015, 04:33:55 PM
Read 2509 times

MItchCECG

  • *
  • Information
  • Newbie
  • Posts: 19
I have a light that turns off almost instantly when I turn it on. in the zwave settings I had accidently set Automatic Turn off to 30 seconds so I reset it  to 0 but the light turns off anyway. How can I reset this setting manually to not used (if this is the issue) ?
It might be a bug.
for a test I just set auto turn off to 3492 seconds and it still turns off instantly.

When I stop the HG service it stays on !!!

any Ideas how to solve????

Please remember I am on the Windows Platform and am waiting for the software update for windows

THANX
MITCH
« Last Edit: September 19, 2015, 04:36:25 PM by MItchCECG »

September 19, 2015, 05:38:45 PM
Reply #1

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
I think you need to delete the value out of the turn off delay module in order to keep it from turning off the module.  If you have the value set to 0, I assume the module will turn off after 0 seconds.

September 19, 2015, 07:36:22 PM
Reply #2

MItchCECG

  • *
  • Information
  • Newbie
  • Posts: 19
Thanks for getting back to me. I can delete the field  but it reverts back to 0
Since it is a slider and it defaults back to 0
« Last Edit: September 19, 2015, 08:39:51 PM by MItchCECG »

September 19, 2015, 10:22:43 PM
Reply #3

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
I suppose there could be a bug, but looking at the script it doesn't look like having a value of 0 would pose an issue.

Code: [Select]
When.ModuleParameterIsChanging((module, parameter) => {
  // check if the module raising the event has the Turn Off Delay set
  if (module.HasFeature("HomeGenie.TurnOffDelay") && module.Parameter("HomeGenie.TurnOffDelay").DecimalValue > 0)
  {
 ...

The code should not use a value of 0 as a valid delay value.

September 30, 2015, 03:25:07 PM
Reply #4

MItchCECG

  • *
  • Information
  • Newbie
  • Posts: 19
Still having Issue

more detail
When HG service is stopped I do not have these issues at all. But when it is running I have lights that are on binary switches that shut off for no apparent reason.
All lights 13 of them have LevelPoll set on using the Poll Module Level to ascertain the state of all devices
Light # 1  is set for automatic turn off of 3600
light # 2 had been set for auto turn off and is now set to 0

Even if I shut off the level polling the issue still happens

I have no Idea how to troubleshoot so I deleted HG and reinstalled Reset the controller and relearned all devices reinstalled HG and the problem came right back once I set up HG

Any Ideas?

Thanks in advance
Mitch
« Last Edit: September 30, 2015, 03:35:07 PM by MItchCECG »

September 30, 2015, 04:47:45 PM
Reply #5

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
Sounds like either you have a scheduled event enabled or you have set the "turn off after time" APP set.  My recommendation when trying to determine what is causing HG to do things is to first look at the activity log (has to be turned on in maintenance) and if that doesn't give enough detail check the log file.  As a last step, you can output the mono output to a file or watch it interactively.  When the module is turned off, one of these methods should give enough detail to determine what's doing it.  Once you know what is driving the action, you can figure out a way to augment it to do what you actually want.

October 04, 2015, 03:23:11 PM
Reply #6

MItchCECG

  • *
  • Information
  • Newbie
  • Posts: 19
I have spent a few days looking and searching this forum. so I don't feel bad asking where are the log files on a windows 64 bit system

THANX

October 05, 2015, 07:05:35 AM
Reply #7

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
Check your scheduled events carefully.  I had an issue where a light turned off at the wrong time for months and finally after checking settings and the logs I changed something that caused the correct string to show up in scheduled events.

In any case, the logs can be see if you enable them through maintenance -> user interface -> events history.  If you need more data, you can view the mono output by stopping the service and running HG from the command line.

October 05, 2015, 02:41:58 PM
Reply #8

MItchCECG

  • *
  • Information
  • Newbie
  • Posts: 19
things to remember I am running on windows and all devices are Z-wave
I have determined that the issue is with the level poll program. When that is not running the lights do not turn off randomly. However, the system only knows the lights are turned when activated by HG.
If I turn on the light by the light switch it is not seen as on by HG. Therefore I need to poll the condition to have the system work properly.
Any Ideas?
I am running on windows and cannot seem to locate the log files. could someone also point me to their location?

October 10, 2015, 04:30:09 PM
Reply #9

MItchCECG

  • *
  • Information
  • Newbie
  • Posts: 19
Thanks for all of the previous help. I have posted this before but got no response
I need to solve this issue. I think it is a bug in the polling program but I am not a coder so I do not know where to look
 
I have determined that the issue is with the level poll program. When that is not running the lights do not turn off randomly. However, the system only knows the lights are turned when activated by HG.
If I turn on the light by the light switch it is not seen as on by HG. Therefore I need to poll the condition to have the system work properly.
Any Ideas?
I am running on windows and cannot seem to locate the log files. could someone also point me to their location?

October 25, 2015, 02:49:19 PM
Reply #10

MItchCECG

  • *
  • Information
  • Newbie
  • Posts: 19
very frustrated still no help on this issue.

October 25, 2015, 05:02:29 PM
Reply #11

mvdarend

  • *****
  • Information
  • Hero Member
  • Posts: 431
This is a wild guess, is it possible that you have another (old or replaced) module with the same name?

I had this once when a defective Hue bulb was replaced. I gave the new bulb the same name as the old one, but forgot to remove the old one with 'Modules cleanup'.

You can check by going to Configure -> Maintenance  | Configuration and Data -> Cleanup Modules, scroll through the list and check that there are no duplicate names.