Fan automation based on light status?

  • graydon@gdsamps.com
  • Topic Author
  • Offline
  • User
  • User
More
2 years 4 months ago #1800 by graydon@gdsamps.com
Replied by graydon@gdsamps.com on topic Fan automation based on light status?
Hi Dave;
Thanks, that was the ticket. All you changed was to add the space on each side of the = sign.
It works now.

The only bummer is that it takes a few seconds before the server recognizes that the light has changed status if I use the Nexlight system to turn the light on/off rather than the Myserver system.  It works - it just takes a few seconds.

Please Log in to join the conversation.

More
2 years 4 months ago #1801 by David Li
Replied by David Li on topic Fan automation based on light status?

Hi Dave;
Thanks, that was the ticket. All you changed was to add the space on each side of the = sign.
It works now.

The only bummer is that it takes a few seconds before the server recognizes that the light has changed status if I use the Nexlight system to turn the light on/off rather than the Myserver system.  It works - it just takes a few seconds.
What takes the time - for Nexlight to tell myServer?  For myServer to update that pertinent Var?  For the Automation event to get triggered?  for the Action to process via myServer?  For the light to respond to the command?  All of that has to take place.

Please Log in to join the conversation.

  • graydon@gdsamps.com
  • Topic Author
  • Offline
  • User
  • User
More
2 years 4 months ago #1802 by graydon@gdsamps.com
Replied by graydon@gdsamps.com on topic Fan automation based on light status?
HI David;

I don't know exactly where the delay is coming from.  The switches respond very quickly so the modbus communication seems to be working very well.  It seems like Myserver must take some time to poll all of the variables because it takes a moment to update the status of the variables sometimes.  When I hit a Nexlight wall switch for my shop light, it takes roughly 10 seconds before Myserver recognizes that the light is off and then it turns on the fan.

Please Log in to join the conversation.

More
2 years 4 months ago #1804 by davep
Replied by davep on topic Fan automation based on light status?
The delay is in the driver polling modbus.  I'll change the driver so that it will immediately poll the register after issuing a command.

Please Log in to join the conversation.

  • graydon@gdsamps.com
  • Topic Author
  • Offline
  • User
  • User
More
2 years 4 months ago #1821 by graydon@gdsamps.com
Replied by graydon@gdsamps.com on topic Fan automation based on light status?
Hi Dave;

That would help. That delay is typically very short. The biggest delay occurs when I use the Nexlight switch on the wall to turn the light on or off. It takes 10-30 seconds for Myserver to recognize that the light has changed and then the automation kicks in and switches the fan on/off. It is working well otherwise and this is not really a big deal in this particular application - just a minor annoyance.
Thanks!

Please Log in to join the conversation.

More
2 years 4 months ago #1826 by davep
Replied by davep on topic Fan automation based on light status?
That big delay is that when you manually turn on a light there is no feedback coming back from modbus saying something just happened. So the light does not get updated until the next status poll. That explains the 10-30 second delay. The status poll executes every 15 seconds.
The following user(s) said Thank You: graydon@gdsamps.com

Please Log in to join the conversation.

Time to create page: 0.184 seconds