From 018a92f2983fa0a86f03c280504d55fc5ee82baf Mon Sep 17 00:00:00 2001 From: Eugene Chaykin Date: Sun, 21 Mar 2021 21:20:33 +0800 Subject: [PATCH] Create domofon.json SprutHub integration template --- ge1mer/domofon.json | 149 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 149 insertions(+) create mode 100644 ge1mer/domofon.json diff --git a/ge1mer/domofon.json b/ge1mer/domofon.json new file mode 100644 index 0000000..d7048e9 --- /dev/null +++ b/ge1mer/domofon.json @@ -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" + } + } + }] +} + ] +}