Sonoff 3 buttons configured as one #1925
ehramartins
started this conversation in
MEPLHAA Scripts
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I bought a 3 button sonoff with HomeKit to use in home, but just one button is working.
I know I have to change the code, but I couldn't find in internet the code for 3 button
Here is the code that I get in curl, if you can help me
{
"accessories":[
{
"aid":1,
"services":[
{
"iid":1,
"type":"3E",
"hidden":false,
"primary":false,
"characteristics":[
{
"aid":1,
"iid":2,
"type":"23",
"perms":["pr"],
"description":"Name",
"format":"string",
"value":"RavenCore-904B64"
},
{
"aid":1,
"iid":3,
"type":"20",
"perms":["pr"],
"description":"Manufacturer",
"format":"string",
"value":"RavenSystem"
},
{
"aid":1,
"iid":4,
"type":"30",
"perms":["pr"],
"description":"Serial Number",
"format":"string",
"value":"D8F15B904B64"
},
{
"aid":1,"iid":5,"type":"21","perms":["pr"],"description":"Model","format":"string","value":"RavenCore"
},
{
"aid":1,"iid":6,"type":"52","perms":["pr"],"description":"Firmware Revision","format":"string","value":"1.2.0"
},
{
"aid":1,"iid":7,"type":"14","perms":["pw"],"description":"Identify","format":"bool"
}
]
},
{
"iid":8,
"type":"49",
"hidden":false,
"primary":true,
"characteristics":[
{
"aid":1,
"iid":9,
"type":"23",
"perms":["pr"],
"description":"Name",
"format":"string",
"value":"Switch 1"
},
{
"aid":1,
"iid":10,
"type":"25",
"perms":["pr","pw","ev"],
"ev":false,
"description":"On",
"format":"bool",
"value":false
},
{
"aid":1,
"iid":11,
"type":"00000001-03a1-4971-92bf-af2b7d833922",
"perms":["pr","pw","ev"],
"ev":false,
"description":"Show Setup",
"format":"bool",
"value":true
}
]
},
{
"iid":99,
"type":"F00000FF-03a1-4971-92bf-af2b7d833922",
"hidden":false,
"primary":false,
"characteristics":[
{
"aid":1,
"iid":100,
"type":"23",
"perms":["pr"],
"description":"Name",
"format":"string",
"value":"Setup"
},
{
"aid":1,
"iid":101,
"type":"F0000103-03a1-4971-92bf-af2b7d833922",
"perms":["pr"],
"description":"Actual Dev Type",
"format":"string",
"value":"Switch 1ch"
},
{
"aid":1,
"iid":102,
"type":"F0000100-03a1-4971-92bf-af2b7d833922",
"perms":["pr","pw","ev"],
"ev":false,
"description":"Device Type",
"format":"uint8",
"minValue":1,
"maxValue":15,
"minStep":1,
"valid-values":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],
"value":1
},
{
"aid":1,
"iid":103,
"type":"00000002-03a1-4971-92bf-af2b7d833922",
"perms":["pr","pw","ev"],
"ev":false,
"description":"Reboot",
"format":"bool",
"value":false
},
{
"aid":1,
"iid":126,
"type":"F0000003-03a1-4971-92bf-af2b7d833922",
"perms":["pr","pw","ev"],
"ev":false,
"description":"Board Type",
"format":"uint8",
"minValue":1,
"maxValue":5,
"minStep":1,
"valid-values":[1,2,3,4,5],
"value":1
},
{
"aid":1,
"iid":129,
"type":"F0000109-03a1-4971-92bf-af2b7d833922",
"perms":["pr","pw","ev"],
"ev":false,
"description":"Log output",
"format":"uint8",
"minValue":0,
"maxValue":2,
"minStep":1,
"valid-values":[0,1,2],
"value":1
},
{
"aid":1,
"iid":130,
"type":"F0000201-03a1-4971-92bf-af2b7d833922",
"perms":["pr"],
"description":"Wifi IP Addr",
"format":"string",
"value":"192.168.0.146"
},
{
"aid":1,
"iid":131,
"type":"F0000202-03a1-4971-92bf-af2b7d833922",
"perms":["pr","pw","ev"],
"ev":false,
"description":"Wifi Reset",
"format":"bool",
"value":false
},
{
"aid":1,
"iid":135,
"type":"F0000119-03a1-4971-92bf-af2b7d833922",
"perms":["pr","pw","ev"],
"ev":false,
"description":"Reverse SW1",
"format":"bool",
"value":false
},
{
"aid":1,
"iid":150,
"type":"F0000150-03a1-4971-92bf-af2b7d833922",
"perms":["pr","pw","ev"],
"ev":false,
"description":"Dummy Switch",
"format":"bool",
"value":false
},
{
"aid":1,
"iid":151,
"type":"F0000505-03a1-4971-92bf-af2b7d833922",
"perms":["pr","pw","ev"],
"ev":false,
"description":"Init State DM",
"format":"uint8",
"minValue":0,
"maxValue":3,
"minStep":1,
"valid-values":[0,1,2,3],
"value":0
},
{
"aid":1,
"iid":149,
"type":"F0004113-03a1-4971-92bf-af2b7d833922",
"perms":["pr","pw","ev"],
"ev":false,"description":"Inching time DM",
"format":"float",
"unit":"seconds",
"minValue":0,
"maxValue":12,
"minStep":0.300000011920929,
"value":0
},
{
"aid":1,
"iid":152,
"type":"F0000140-03a1-4971-92bf-af2b7d833922",
"perms":["pr","pw","ev"],
"ev":false,
"description":"Button Filter",
"format":"uint8",
"minValue":0,
"maxValue":200,
"minStep":1,
"value":0
},
{
"aid":1,
"iid":111,
"type":"F0000104-03a1-4971-92bf-af2b7d833922",
"perms":["pr","pw","ev"],
"ev":false,
"description":"External Toggle 1",
"format":"uint8",
"minValue":0,
"maxValue":3,
"minStep":1,
"valid-values":[0,1,2,3],
"value":0
},
{
"aid":1,
"iid":120,
"type":"F0000501-03a1-4971-92bf-af2b7d833922",
"perms":["pr","pw","ev"],
"ev":false,
"description":"Init State SW1",
"format":"uint8",
"minValue":0,
"maxValue":3,
"minStep":1,
"valid-values":[0,1,2,3],
"value":0
},
{
"aid":1,
"iid":117,
"type":"F0000113-03a1-4971-92bf-af2b7d833922",
"perms":["pr","pw","ev"],
"ev":false,
"description":"Inching time 1",
"format":"float",
"unit":"seconds",
"minValue":0,
"maxValue":12,
"minStep":0.300000011920929,
"value":0
}
]
}
]
}
]
}
And the image is bellow.
Thanks for helping
Beta Was this translation helpful? Give feedback.
All reactions