wemo/movieMode.json

55 lines
3.2 KiB
JSON

{
"on": [
{
"device": "Basement",
"comment": "Basement lights will turn off",
"action": "\"urn:Belkin:service:basicevent:1#SetBinaryState\"",
"content": "<?xml version=\"1.0\" encoding=\"utf-8\"?><s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><s:Body><u:SetBinaryState xmlns:u=\"urn:Belkin:service:basicevent:1\"><BinaryState>1</BinaryState><brightness>${val}</brightness></u:SetBinaryState></s:Body></s:Envelope>",
"steps": 15,
"seconds": 5,
"start": -1,
"end": 20,
"endOff": true,
"startAction": "\"urn:Belkin:service:basicevent:1#GetBinaryState\"",
"startContent": "<?xml version=\"1.0\" encoding=\"utf-8\"?><s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><s:Body><u:GetBinaryState xmlns:u=\"urn:Belkin:service:basicevent:1\"></u:GetBinaryState></s:Body></s:Envelope>",
"startField": "brightness"
},
{
"device": "Bar",
"comment": "Bar lights down to 10%, then off",
"action": "\"urn:Belkin:service:basicevent:1#SetBinaryState\"",
"content": "<?xml version=\"1.0\" encoding=\"utf-8\"?><s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><s:Body><u:SetBinaryState xmlns:u=\"urn:Belkin:service:basicevent:1\"><BinaryState>1</BinaryState><brightness>${val}</brightness></u:SetBinaryState></s:Body></s:Envelope>",
"steps": 15,
"seconds": 5,
"start": -1,
"end": 0,
"endOff": true,
"startAction": "\"urn:Belkin:service:basicevent:1#GetBinaryState\"",
"startContent": "<?xml version=\"1.0\" encoding=\"utf-8\"?><s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><s:Body><u:GetBinaryState xmlns:u=\"urn:Belkin:service:basicevent:1\"></u:GetBinaryState></s:Body></s:Envelope>",
"startField": "brightness"
}
],
"off": [
{
"device": "Basement",
"comment": "Basement lights will turn on",
"action": "\"urn:Belkin:service:basicevent:1#SetBinaryState\"",
"content": "<?xml version=\"1.0\" encoding=\"utf-8\"?><s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><s:Body><u:SetBinaryState xmlns:u=\"urn:Belkin:service:basicevent:1\"><BinaryState>1</BinaryState><brightness>${val}</brightness></u:SetBinaryState></s:Body></s:Envelope>",
"steps": 15,
"seconds": 5,
"start": 20,
"end": 60
},
{
"device": "Bar",
"comment": "Bar lights up to 100%",
"action": "\"urn:Belkin:service:basicevent:1#SetBinaryState\"",
"content": "<?xml version=\"1.0\" encoding=\"utf-8\"?><s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><s:Body><u:SetBinaryState xmlns:u=\"urn:Belkin:service:basicevent:1\"><BinaryState>1</BinaryState><brightness>${val}</brightness></u:SetBinaryState></s:Body></s:Envelope>",
"steps": 15,
"seconds": 5,
"start": 10,
"end": 100
}
]
}