Changelog:
- General: Added new input type:
"l":[]
and"p0":[]
,"p1":[]
... UseICMP Ping
to set accessory status:
"h":
Target host, with DNS resolution.
"r":
Response type. (Default1
):0
: target host does not response.1
: target host responses.
"l":[]
is equivalent to "b":[]
"p0":[]
,"p1":[]
... are equivalent to "f0":[]
,"f1":[]
...
Example of Sonoff S20 that uses ping
to turn on/off:
{"c":{"l":13,"b":[{"g":0,"t":5}]},"a":[{"t":2,"0":{"r":[{"g":12}]},"1":{"r":[{"g":12,"v":1}]},"b":[{"g":0}],"p1":[{"h":"my-tv"}],"p0":[{"h":"my-tv","r":0}]}]}
Example of Wadoo lightbulb that uses ping
to turn on/off:
{"c":{"b":[{"g":0}]},"a":[{"t":30,"r":14,"g":12,"v":13,"w":4,"fr":3,"fg":3,"fv":3,"p1":[{"h":"iMac-de-Jose"}],"p0":[{"h":"iMac-de-Jose","r":0}]}]}
Read Wiki for more info.