Fan automation based on light status?

graydon@gdsamps.com's Avatar Topic Author

Re: Fan automation based on light status?

2 years 6 months ago
#1800
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 or Create an account to join the conversation.

David Li's Avatar
Admin Admin
  • Posts: 1027
  • Thanks: 99

Re: Fan automation based on light status?

2 years 6 months ago
#1801
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 or Create an account to join the conversation.

graydon@gdsamps.com's Avatar Topic Author

Re: Fan automation based on light status?

2 years 6 months ago
#1802
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 or Create an account to join the conversation.

davep's Avatar
Admin Admin
  • Posts: 371
  • Thanks: 98

Re: Fan automation based on light status?

2 years 6 months ago
#1804
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 or Create an account to join the conversation.

graydon@gdsamps.com's Avatar Topic Author

Re: Fan automation based on light status?

2 years 6 months ago
#1821
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 or Create an account to join the conversation.

davep's Avatar
Admin Admin
  • Posts: 371
  • Thanks: 98

Re: Fan automation based on light status?

2 years 6 months ago
#1826
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 or Create an account to join the conversation.

Time to create page: 0.298 seconds