[
{
    "id": "motion_hallway",
    "name": "Датчик дв коридор",
    "room": "Коридор",
    "type": "devices.types.sensor.motion",
    "action": [],
    "query": [
        {"type": "devices.properties.event", "option": "motion", "myfun": "do_motion_hallway"}
    ]
    },
    {
        "id": "temper56700",
        "name": "Темпера в окне",
        "description": "В спальне",
        "room": "КонатаПрочая",
        "type": "devices.types.sensor",
        "device_dir": "devices.types.sensor.temp",
        "action": [],
        "query": [{"type": "devices.properties.float", "option": "temperature", "myfun": "do_sensor_roomtemper567"}]
    },
    {
        "id": "temper567",
        "name": "Температура",
        "description": "В спальне",
        "room": "КонатаПрочая",
        "type": "devices.types.sensor",
        "device_dir": "devices.types.sensor.temp_hum",
        "action": [],
        "query": [{"type": "devices.properties.float", "option": "temperature", "myfun": "do_sensor_roomtemper567"},
                  {"type": "devices.properties.float", "option": "humidity", "myfun": "do_sensor_roomdvlagn"}
                 ]
    },
    {
        "id": "purifier_104",
        "name": "Очиститель воздуха",
        "description": "В спальне",
        "room": "КонатаПрочая",
        "type": "devices.types.purifier",
        "action": [
            {"type": "devices.capabilities.on_off", "option": "", "myfun": "do_purifier_onoff"},
            {"type": "devices.capabilities.mode", "option": "fan_speed", "myfun": "do_purifier_speed"}
        ],
        "query": [
            {"type": "devices.capabilities.on_off", "option": "", "myfun": "do_purifier_onoff"},
            {"type": "devices.capabilities.mode", "option": "fan_speed", "myfun": "do_purifier_speed"}
        ]
    },
    {
        "id": "light_living_1",
        "name": "Люстра",
        "description": "Основной свет",
        "room": "КонатаПрочая",
        "type": "devices.types.light",
        "action": [
            {"type": "devices.capabilities.on_off", "option": "", "myfun": "do_light_onoff"},
            {"type": "devices.capabilities.range", "option": "brightness", "myfun": "do_light_params"},
            {"type": "devices.capabilities.color_setting", "option": "temperature_k", "myfun": "do_light_params"}
        ],
        "query": [
            {"type": "devices.capabilities.on_off", "option": "", "myfun": "do_light_onoff"},
            {"type": "devices.capabilities.range", "option": "brightness", "myfun": "do_light_params"},
            {"type": "devices.capabilities.color_setting", "option": "temperature_k", "myfun": "do_light_params"}
        ]
    },
    {
        "id": "socket_kitchen_1",
        "name": "Розетка чайник",
        "description": "Умная розетка",
        "room": "КонатаПрочая",
        "type": "devices.types.socket",
        "action": [
            {"type": "devices.capabilities.on_off", "option": "", "myfun": "do_socket_onoff"}
        ],
        "query": [
            {"type": "devices.capabilities.on_off", "option": "", "myfun": "do_socket_onoff"}
        ]
    },
    {
        "id": "thermostat_hall",
        "name": "Термостат",
        "description": "В коридоре",
        "room": "КонатаПрочая",
        "type": "devices.types.thermostat",
        "action": [
            {"type": "devices.capabilities.on_off", "option": "", "myfun": "do_thermo_onoff"},
            {"type": "devices.capabilities.range", "option": "temperature", "myfun": "do_thermo_temp"}
        ],
        "query": [
            {"type": "devices.capabilities.on_off", "option": "", "myfun": "do_thermo_onoff"},
            {"type": "devices.capabilities.range", "option": "temperature", "myfun": "do_thermo_temp"},
            {"type": "devices.properties.float", "option": "temperature", "myfun": "do_thermo_current_temp"}
        ]
    }
]