| | |
| | | { |
| | | sid = "000101" + guid + "0102010001AABB", |
| | | name = ss.GetValue("Name").ToString(), |
| | | trait = new List<Trait>() { |
| | | propertList = new List<Trait>() { |
| | | new Trait { attri="on_off", max=100,min = 0, value= new List<string> { "on","off"} }, |
| | | }, |
| | | roomIdList = roomIds, |
| | |
| | | { |
| | | sid = "000101" + guid + "0202020001AABB", |
| | | name = ss.GetValue("Name").ToString(), |
| | | trait = new List<Trait>() { |
| | | propertList = new List<Trait>() { |
| | | new Trait { attri="brightness", max=100,min = 0, value= new List<string> { "up","down"} }, |
| | | }, |
| | | roomIdList = roomIds, |
| | |
| | | { |
| | | sid = "000101" + guid + "0202040001AABB", |
| | | name = ss.GetValue("Name").ToString(), |
| | | trait = new List<Trait>() { |
| | | propertList = new List<Trait>() { |
| | | new Trait { attri="brightness", max=100,min = 0, value= new List<string> { "on","off"} }, |
| | | new Trait { attri="color", max=100,min = 0, value= new List<string> { "255", "255", "255" } }, |
| | | }, |
| | |
| | | { |
| | | sid = "000101" + guid + "0204010001AABB", |
| | | name = ss.GetValue("Name").ToString(), |
| | | trait = new List<Trait>() { |
| | | propertList = new List<Trait>() { |
| | | new Trait { attri="on_off", max=1,min = 0, value= new List<string> { "on","off"} }, |
| | | new Trait { attri="mode", max = 2,min =0,value = new List<string>{ "auto", "heat", "cool","dry" } }, |
| | | new Trait { attri = "fan",max = 3,min =0,value = new List<string>{ "low", "mid", "high" ,"auto"} }, |
| | |
| | | name = ss.GetValue("Name").ToString(), |
| | | roomIdList = roomIds, |
| | | //roomIdList = new List<string>() { roomSid }, |
| | | trait = new List<Trait>() { |
| | | propertList = new List<Trait>() { |
| | | new Trait { attri="on_off", max=2,min = 0, value= new List<string> { "on","off","stop"} }, |
| | | },// "curtain", |
| | | lastState = "开", |
| | |
| | | name = ss.GetValue("Name").ToString(), |
| | | roomIdList = roomIds, |
| | | //roomIdList = new List<string>() { roomSid }, |
| | | trait = new List<Trait>() { |
| | | propertList = new List<Trait>() { |
| | | new Trait { attri="on_off", max=100,min = 0, value= new List<string> { "on","off","stop"} }, |
| | | },// "rollingshutter", |
| | | lastState = "20%", |
| | |
| | | name = ss.GetValue("Name").ToString(), |
| | | roomIdList = roomIds, |
| | | //roomIdList = new List<string>() { roomSid }, |
| | | trait = new List<Trait>() { |
| | | propertList = new List<Trait>() { |
| | | new Trait { attri="on_off", max=100,min = 0, value= new List<string> { "on","off","stop"} }, |
| | | }, |
| | | lastState = "20%", |