mirror of
https://github.com/Anonym-tsk/smart-domofon.git
synced 2025-12-06 11:36:57 +03:00
Create domofon.json
SprutHub integration template
This commit is contained in:
149
ge1mer/domofon.json
Normal file
149
ge1mer/domofon.json
Normal file
@@ -0,0 +1,149 @@
|
|||||||
|
{
|
||||||
|
"name": "Домофон",
|
||||||
|
"manufacturer": "Anonym-tsk",
|
||||||
|
"model": "ge1mer",
|
||||||
|
"services": [
|
||||||
|
{
|
||||||
|
"name": "Автооткр.",
|
||||||
|
"type": "Switch",
|
||||||
|
"characteristics": [
|
||||||
|
{
|
||||||
|
"type": "On",
|
||||||
|
"link": {
|
||||||
|
"type": "String",
|
||||||
|
"topicSearch": "(.*)/switch/domofon_automatically_open/state",
|
||||||
|
"topicGet": "domofon/switch/domofon_automatically_open/state",
|
||||||
|
"topicSet": "domofon/switch/domofon_automatically_open/command",
|
||||||
|
"map": {
|
||||||
|
"false": "OFF",
|
||||||
|
"true": "ON"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Автооткр.1 раз",
|
||||||
|
"type": "Switch",
|
||||||
|
"characteristics": [
|
||||||
|
{
|
||||||
|
"type": "On",
|
||||||
|
"link": {
|
||||||
|
"type": "String",
|
||||||
|
"topicGet": "domofon/switch/domofon_automatically_open_once/state",
|
||||||
|
"topicSet": "domofon/switch/domofon_automatically_open_once/command",
|
||||||
|
"map": {
|
||||||
|
"false": "OFF",
|
||||||
|
"true": "ON"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Автосброс",
|
||||||
|
"type": "Switch",
|
||||||
|
"characteristics": [
|
||||||
|
{
|
||||||
|
"type": "On",
|
||||||
|
"link": {
|
||||||
|
"type": "String",
|
||||||
|
"topicGet": "domofon/switch/domofon_automatically_reject/state",
|
||||||
|
"topicSet": "domofon/switch/domofon_automatically_reject/command",
|
||||||
|
"map": {
|
||||||
|
"false": "OFF",
|
||||||
|
"true": "ON"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Открыть",
|
||||||
|
"type": "Switch",
|
||||||
|
"characteristics": [
|
||||||
|
{
|
||||||
|
"type": "On",
|
||||||
|
"link": {
|
||||||
|
"type": "String",
|
||||||
|
"topicGet": "domofon/switch/domofon_accept_call/state",
|
||||||
|
"topicSet": "domofon/switch/domofon_accept_call/command",
|
||||||
|
"map": {
|
||||||
|
"false": "OFF",
|
||||||
|
"true": "ON"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Сброс вызова",
|
||||||
|
"type": "Switch",
|
||||||
|
"characteristics": [
|
||||||
|
{
|
||||||
|
"type": "On",
|
||||||
|
"link": {
|
||||||
|
"type": "String",
|
||||||
|
"topicGet": "domofon/switch/domofon_reject_call/state",
|
||||||
|
"topicSet": "domofon/switch/domofon_reject_call/command",
|
||||||
|
"map": {
|
||||||
|
"false": "OFF",
|
||||||
|
"true": "ON"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Mute",
|
||||||
|
"type": "Switch",
|
||||||
|
"characteristics": [
|
||||||
|
{
|
||||||
|
"type": "On",
|
||||||
|
"link": {
|
||||||
|
"type": "String",
|
||||||
|
"topicGet": "domofon/switch/domofon_mute_sound/state",
|
||||||
|
"topicSet": "domofon/switch/domofon_mute_sound/command",
|
||||||
|
"map": {
|
||||||
|
"false": "OFF",
|
||||||
|
"true": "ON"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Mute 1 раз",
|
||||||
|
"type": "Switch",
|
||||||
|
"characteristics": [
|
||||||
|
{
|
||||||
|
"type": "On",
|
||||||
|
"link": {
|
||||||
|
"type": "String",
|
||||||
|
"topicGet": "domofon/switch/domofon_mute_sound_once/state",
|
||||||
|
"topicSet": "domofon/switch/domofon_mute_sound_once/command",
|
||||||
|
"map": {
|
||||||
|
"false": "OFF",
|
||||||
|
"true": "ON"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Вход.Звонок",
|
||||||
|
"type": "ContactSensor",
|
||||||
|
"characteristics": [{
|
||||||
|
"type": "ContactSensorState",
|
||||||
|
"link": {
|
||||||
|
"type": "Integer",
|
||||||
|
"topicGet": "domofon/binary_sensor/domofon_incoming_call/state",
|
||||||
|
"map": {
|
||||||
|
"0": "OFF",
|
||||||
|
"1": "ON"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user