Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for pingGrace parameter #511

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

RileyEv
Copy link

@RileyEv RileyEv commented Sep 21, 2019

Adds support to stop pinging a switch for a set period of time to allow it to start up or turn off.

In the accessory options add pingGrace.

An example is below:

This prevents the ping to the device for 10 seconds.

{
  "name":"TV On/Off",
  "type":"switch",
  "pingIPAddress":"192.168.0.1",
  "pingGrace":10,
  "data":{
    "on":"2600500000012...",
    "off":"2600500000012..."
  }
}

The default period is set to 10 seconds.

Resolves #506

@dnicolson
Copy link

@RileyEv can you update the pull request to resolve the conflict?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New parameter request
2 participants