[Z-Wave] Термостат Danfos Z=Wave RS

Подключение исполнительных устройств, датчиков, контроллеров.

Модератор: immortal

Ответить
Ласта
Сообщения: 8
Зарегистрирован: Пт янв 13, 2017 7:26 pm
Благодарил (а): 0
Поблагодарили: 1 раз

[Z-Wave] Термостат Danfos Z=Wave RS

Сообщение Ласта » Пн мар 06, 2017 9:43 pm

Приобрел термостат Danfos RS, подключен к MJD через Razberry. Как датчик температуры работает отлично, а вот как термостат система его не видит.
Я так понял это из за того что там вроде как 2 термостата, один для обогрева, другой для охлаждения.
Вот Raw Data устройства, в нем оба термостата видно. Может кто помочь дописать модуль?
СпойлерПоказать

Код: Выделить всё

{
    "commandClasses": {
        "32": {
            "name": "Basic",
            "data": {
                "invalidateTime": 1488820832,
                "updateTime": 1488820831,
                "type": "empty",
                "value": null,
                "supported": {
                    "invalidateTime": 1488820832,
                    "updateTime": 1488820831,
                    "type": "bool",
                    "value": true
                },
                "version": {
                    "invalidateTime": 1488820832,
                    "updateTime": 1488820831,
                    "type": "int",
                    "value": 1
                },
                "security": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820831,
                    "type": "bool",
                    "value": false
                },
                "interviewDone": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820832,
                    "type": "bool",
                    "value": true
                },
                "interviewCounter": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820832,
                    "type": "int",
                    "value": 9
                },
                "level": {
                    "invalidateTime": 1488820831,
                    "updateTime": 1488820832,
                    "type": "int",
                    "value": 15
                }
            },
            "id": 32
        },
        "49": {
            "name": "SensorMultilevel",
            "data": {
                "invalidateTime": 1488820830,
                "updateTime": 1488820831,
                "type": "empty",
                "value": null,
                "supported": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820831,
                    "type": "bool",
                    "value": true
                },
                "version": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820831,
                    "type": "int",
                    "value": 6
                },
                "security": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820831,
                    "type": "bool",
                    "value": false
                },
                "interviewDone": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820833,
                    "type": "bool",
                    "value": true
                },
                "interviewCounter": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820832,
                    "type": "int",
                    "value": 9
                },
                "typemask": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820832,
                    "type": "binary",
                    "value": [
                        1
                    ]
                },
                "1": {
                    "invalidateTime": 1488821849,
                    "updateTime": 1488824396,
                    "type": "empty",
                    "value": null,
                    "sensorTypeString": {
                        "invalidateTime": 1488820832,
                        "updateTime": 1488820833,
                        "type": "string",
                        "value": "Temperature"
                    },
                    "val": {
                        "invalidateTime": 1488820832,
                        "updateTime": 1488824396,
                        "type": "float",
                        "value": 24.11
                    },
                    "deviceScale": {
                        "invalidateTime": 1488820832,
                        "updateTime": 1488824396,
                        "type": "int",
                        "value": 0
                    },
                    "scale": {
                        "invalidateTime": 1488820832,
                        "updateTime": 1488820833,
                        "type": "int",
                        "value": 0
                    },
                    "scaleString": {
                        "invalidateTime": 1488820832,
                        "updateTime": 1488824396,
                        "type": "string",
                        "value": "\u00b0C"
                    }
                }
            },
            "id": 49
        },
        "67": {
            "name": "ThermostatSetPoint",
            "data": {
                "invalidateTime": 1488820830,
                "updateTime": 1488820831,
                "type": "empty",
                "value": null,
                "supported": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820831,
                    "type": "bool",
                    "value": true
                },
                "version": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820832,
                    "type": "int",
                    "value": 2
                },
                "security": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820831,
                    "type": "bool",
                    "value": false
                },
                "interviewDone": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820833,
                    "type": "bool",
                    "value": true
                },
                "interviewCounter": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820832,
                    "type": "int",
                    "value": 9
                },
                "modemask": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820833,
                    "type": "int",
                    "value": 70
                },
                "1": {
                    "invalidateTime": 1488822221,
                    "updateTime": 1488822230,
                    "type": "empty",
                    "value": null,
                    "val": {
                        "invalidateTime": 1488822221,
                        "updateTime": 1488822230,
                        "type": "float",
                        "value": 20.5
                    },
                    "scale": {
                        "invalidateTime": 1488822221,
                        "updateTime": 1488820832,
                        "type": "int",
                        "value": 0
                    },
                    "scaleString": {
                        "invalidateTime": 1488822221,
                        "updateTime": 1488820832,
                        "type": "string",
                        "value": "\u00b0C"
                    },
                    "setVal": {
                        "invalidateTime": 1488822221,
                        "updateTime": 1488822230,
                        "type": "float",
                        "value": 20.5
                    },
                    "modeName": {
                        "invalidateTime": 1488822221,
                        "updateTime": 1488820832,
                        "type": "string",
                        "value": "Heating"
                    },
                    "deviceScale": {
                        "invalidateTime": 1488822221,
                        "updateTime": 1488822230,
                        "type": "int",
                        "value": 0
                    },
                    "deviceScaleString": {
                        "invalidateTime": 1488822221,
                        "updateTime": 1488822230,
                        "type": "string",
                        "value": "\u00b0C"
                    }
                },
                "2": {
                    "invalidateTime": 1488820832,
                    "updateTime": 1488820833,
                    "type": "empty",
                    "value": null,
                    "val": {
                        "invalidateTime": 1488820832,
                        "updateTime": 1488820833,
                        "type": "float",
                        "value": 21
                    },
                    "scale": {
                        "invalidateTime": 1488820833,
                        "updateTime": 1488820832,
                        "type": "int",
                        "value": 0
                    },
                    "scaleString": {
                        "invalidateTime": 1488820833,
                        "updateTime": 1488820832,
                        "type": "string",
                        "value": "\u00b0C"
                    },
                    "setVal": {
                        "invalidateTime": 1488820832,
                        "updateTime": 1488820833,
                        "type": "float",
                        "value": 21
                    },
                    "modeName": {
                        "invalidateTime": 1488820833,
                        "updateTime": 1488820832,
                        "type": "string",
                        "value": "Cooling"
                    },
                    "deviceScale": {
                        "invalidateTime": 1488820832,
                        "updateTime": 1488820833,
                        "type": "int",
                        "value": 0
                    },
                    "deviceScaleString": {
                        "invalidateTime": 1488820832,
                        "updateTime": 1488820833,
                        "type": "string",
                        "value": "\u00b0C"
                    }
                },
                "10": {
                    "invalidateTime": 1488820832,
                    "updateTime": 1488820833,
                    "type": "empty",
                    "value": null,
                    "val": {
                        "invalidateTime": 1488820832,
                        "updateTime": 1488820833,
                        "type": "float",
                        "value": 21
                    },
                    "scale": {
                        "invalidateTime": 1488820833,
                        "updateTime": 1488820832,
                        "type": "int",
                        "value": 0
                    },
                    "scaleString": {
                        "invalidateTime": 1488820833,
                        "updateTime": 1488820832,
                        "type": "string",
                        "value": "\u00b0C"
                    },
                    "setVal": {
                        "invalidateTime": 1488820832,
                        "updateTime": 1488820833,
                        "type": "float",
                        "value": 21
                    },
                    "modeName": {
                        "invalidateTime": 1488820833,
                        "updateTime": 1488820832,
                        "type": "string",
                        "value": "AutoChangeOver"
                    },
                    "deviceScale": {
                        "invalidateTime": 1488820832,
                        "updateTime": 1488820833,
                        "type": "int",
                        "value": 0
                    },
                    "deviceScaleString": {
                        "invalidateTime": 1488820832,
                        "updateTime": 1488820833,
                        "type": "string",
                        "value": "\u00b0C"
                    }
                }
            },
            "id": 67
        },
        "91": {
            "name": "CentralScene",
            "data": {
                "invalidateTime": 1488820830,
                "updateTime": 1488820831,
                "type": "empty",
                "value": null,
                "supported": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820831,
                    "type": "bool",
                    "value": true
                },
                "version": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820831,
                    "type": "int",
                    "value": 1
                },
                "security": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820831,
                    "type": "bool",
                    "value": false
                },
                "interviewDone": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820832,
                    "type": "bool",
                    "value": true
                },
                "interviewCounter": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820832,
                    "type": "int",
                    "value": 9
                },
                "maxScenes": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820832,
                    "type": "int",
                    "value": 1
                },
                "currentScene": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488821531,
                    "type": "int",
                    "value": 1
                },
                "keyAttribute": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488821531,
                    "type": "int",
                    "value": 0
                }
            },
            "id": 91
        },
        "112": {
            "name": "Configuration",
            "data": {
                "invalidateTime": 1488820830,
                "updateTime": 1488820831,
                "type": "empty",
                "value": null,
                "supported": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820831,
                    "type": "bool",
                    "value": true
                },
                "version": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820831,
                    "type": "int",
                    "value": 2
                },
                "security": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820831,
                    "type": "bool",
                    "value": false
                },
                "interviewDone": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820832,
                    "type": "bool",
                    "value": true
                },
                "interviewCounter": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820832,
                    "type": "int",
                    "value": 9
                },
                "1": {
                    "invalidateTime": 1488821456,
                    "updateTime": 1488821457,
                    "type": "empty",
                    "value": null,
                    "val": {
                        "invalidateTime": 1488821456,
                        "updateTime": 1488821457,
                        "type": "int",
                        "value": 2
                    },
                    "size": {
                        "invalidateTime": 1488821456,
                        "updateTime": 1488821457,
                        "type": "int",
                        "value": 2
                    }
                },
                "2": {
                    "invalidateTime": 1488821542,
                    "updateTime": 1488821555,
                    "type": "empty",
                    "value": null,
                    "val": {
                        "invalidateTime": 1488821542,
                        "updateTime": 1488821555,
                        "type": "int",
                        "value": 1
                    },
                    "size": {
                        "invalidateTime": 1488821542,
                        "updateTime": 1488821555,
                        "type": "int",
                        "value": 2
                    }
                },
                "3": {
                    "invalidateTime": 1488821416,
                    "updateTime": 1488821023,
                    "type": "empty",
                    "value": null,
                    "val": {
                        "invalidateTime": 1488821416,
                        "updateTime": 1488821023,
                        "type": "int",
                        "value": 12
                    },
                    "size": {
                        "invalidateTime": 1488821416,
                        "updateTime": 1488821023,
                        "type": "int",
                        "value": 2
                    }
                },
                "4": {
                    "invalidateTime": 1488821416,
                    "updateTime": 1488821024,
                    "type": "empty",
                    "value": null,
                    "val": {
                        "invalidateTime": 1488821416,
                        "updateTime": 1488821024,
                        "type": "int",
                        "value": 28
                    },
                    "size": {
                        "invalidateTime": 1488821416,
                        "updateTime": 1488821024,
                        "type": "int",
                        "value": 2
                    }
                },
                "5": {
                    "invalidateTime": 1488821416,
                    "updateTime": 1488821024,
                    "type": "empty",
                    "value": null,
                    "val": {
                        "invalidateTime": 1488821416,
                        "updateTime": 1488821024,
                        "type": "int",
                        "value": 0
                    },
                    "size": {
                        "invalidateTime": 1488821416,
                        "updateTime": 1488821024,
                        "type": "int",
                        "value": 2
                    }
                },
                "6": {
                    "invalidateTime": 1488821416,
                    "updateTime": 1488821433,
                    "type": "empty",
                    "value": null,
                    "val": {
                        "invalidateTime": 1488821416,
                        "updateTime": 1488821433,
                        "type": "int",
                        "value": 1
                    },
                    "size": {
                        "invalidateTime": 1488821416,
                        "updateTime": 1488821433,
                        "type": "int",
                        "value": 1
                    }
                },
                "7": {
                    "invalidateTime": 1488821416,
                    "updateTime": 1488821024,
                    "type": "empty",
                    "value": null,
                    "val": {
                        "invalidateTime": 1488821416,
                        "updateTime": 1488821024,
                        "type": "int",
                        "value": 1
                    },
                    "size": {
                        "invalidateTime": 1488821416,
                        "updateTime": 1488821024,
                        "type": "int",
                        "value": 1
                    }
                },
                "8": {
                    "invalidateTime": 1488821416,
                    "updateTime": 1488821024,
                    "type": "empty",
                    "value": null,
                    "val": {
                        "invalidateTime": 1488821416,
                        "updateTime": 1488821024,
                        "type": "int",
                        "value": 1
                    },
                    "size": {
                        "invalidateTime": 1488821416,
                        "updateTime": 1488821024,
                        "type": "int",
                        "value": 1
                    }
                },
                "9": {
                    "invalidateTime": 1488821416,
                    "updateTime": 1488821433,
                    "type": "empty",
                    "value": null,
                    "val": {
                        "invalidateTime": 1488821416,
                        "updateTime": 1488821433,
                        "type": "int",
                        "value": 1
                    },
                    "size": {
                        "invalidateTime": 1488821416,
                        "updateTime": 1488821433,
                        "type": "int",
                        "value": 1
                    }
                },
                "10": {
                    "invalidateTime": 1488821008,
                    "updateTime": 1488821015,
                    "type": "empty",
                    "value": null,
                    "val": {
                        "invalidateTime": 1488821008,
                        "updateTime": 1488821015,
                        "type": "int",
                        "value": 5
                    },
                    "size": {
                        "invalidateTime": 1488821008,
                        "updateTime": 1488821015,
                        "type": "int",
                        "value": 1
                    }
                },
                "11": {
                    "invalidateTime": 1488821416,
                    "updateTime": 1488821433,
                    "type": "empty",
                    "value": null,
                    "val": {
                        "invalidateTime": 1488821416,
                        "updateTime": 1488821433,
                        "type": "int",
                        "value": 1
                    },
                    "size": {
                        "invalidateTime": 1488821416,
                        "updateTime": 1488821433,
                        "type": "int",
                        "value": 1
                    }
                }
            },
            "id": 112
        },
        "114": {
            "name": "ManufacturerSpecific",
            "data": {
                "invalidateTime": 1488820832,
                "updateTime": 1488820831,
                "type": "empty",
                "value": null,
                "supported": {
                    "invalidateTime": 1488820832,
                    "updateTime": 1488820831,
                    "type": "bool",
                    "value": true
                },
                "version": {
                    "invalidateTime": 1488820832,
                    "updateTime": 1488820831,
                    "type": "int",
                    "value": 2
                },
                "security": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820831,
                    "type": "bool",
                    "value": false
                },
                "interviewDone": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820832,
                    "type": "bool",
                    "value": true
                },
                "interviewCounter": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820832,
                    "type": "int",
                    "value": 9
                },
                "vendorId": {
                    "invalidateTime": 1488820831,
                    "updateTime": 1488820832,
                    "type": "int",
                    "value": 2
                },
                "vendor": {
                    "invalidateTime": 1488820831,
                    "updateTime": 1488820832,
                    "type": "string",
                    "value": "Danfoss"
                },
                "productId": {
                    "invalidateTime": 1488820831,
                    "updateTime": 1488820832,
                    "type": "int",
                    "value": 32784
                },
                "productType": {
                    "invalidateTime": 1488820831,
                    "updateTime": 1488820832,
                    "type": "int",
                    "value": 3
                },
                "serialNumber": {
                    "invalidateTime": 1488820831,
                    "updateTime": 1488820832,
                    "type": "string",
                    "value": "0000193035"
                }
            },
            "id": 114
        },
        "117": {
            "name": "Protection",
            "data": {
                "invalidateTime": 1488820832,
                "updateTime": 1488820831,
                "type": "empty",
                "value": null,
                "supported": {
                    "invalidateTime": 1488820832,
                    "updateTime": 1488820831,
                    "type": "bool",
                    "value": true
                },
                "version": {
                    "invalidateTime": 1488820832,
                    "updateTime": 1488820831,
                    "type": "int",
                    "value": 2
                },
                "security": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820831,
                    "type": "bool",
                    "value": false
                },
                "interviewDone": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820833,
                    "type": "bool",
                    "value": true
                },
                "interviewCounter": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820832,
                    "type": "int",
                    "value": 9
                },
                "state": {
                    "invalidateTime": 1488820832,
                    "updateTime": 1488820833,
                    "type": "int",
                    "value": 0
                },
                "rfState": {
                    "invalidateTime": 1488820832,
                    "updateTime": 1488820833,
                    "type": "int",
                    "value": 0
                },
                "exclusive": {
                    "invalidateTime": 1488820832,
                    "updateTime": 1488820831,
                    "type": "empty",
                    "value": null
                },
                "timeout": {
                    "invalidateTime": 1488820832,
                    "updateTime": 1488820831,
                    "type": "empty",
                    "value": null
                },
                "stateCap": {
                    "invalidateTime": 1488820832,
                    "updateTime": 1488820833,
                    "type": "int",
                    "value": 5
                },
                "rfStateCap": {
                    "invalidateTime": 1488820832,
                    "updateTime": 1488820833,
                    "type": "int",
                    "value": 1
                },
                "exclusiveCap": {
                    "invalidateTime": 1488820832,
                    "updateTime": 1488820833,
                    "type": "bool",
                    "value": false
                },
                "timeoutCap": {
                    "invalidateTime": 1488820832,
                    "updateTime": 1488820833,
                    "type": "bool",
                    "value": false
                }
            },
            "id": 117
        },
        "128": {
            "name": "Battery",
            "data": {
                "invalidateTime": 1488820832,
                "updateTime": 1488820831,
                "type": "empty",
                "value": null,
                "supported": {
                    "invalidateTime": 1488820832,
                    "updateTime": 1488820831,
                    "type": "bool",
                    "value": true
                },
                "version": {
                    "invalidateTime": 1488820832,
                    "updateTime": 1488820831,
                    "type": "int",
                    "value": 1
                },
                "security": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820831,
                    "type": "bool",
                    "value": false
                },
                "interviewDone": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820833,
                    "type": "bool",
                    "value": true
                },
                "interviewCounter": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820832,
                    "type": "int",
                    "value": 9
                },
                "lastChange": {
                    "invalidateTime": 1488820832,
                    "updateTime": 1488820833,
                    "type": "int",
                    "value": 1488820833
                },
                "history": {
                    "invalidateTime": 1488820832,
                    "updateTime": 1488820833,
                    "type": "empty",
                    "value": null,
                    "100": {
                        "invalidateTime": 1488820832,
                        "updateTime": 1488824396,
                        "type": "int",
                        "value": 1488824396
                    }
                },
                "last": {
                    "invalidateTime": 1488820832,
                    "updateTime": 1488824396,
                    "type": "int",
                    "value": 100
                }
            },
            "id": 128
        },
        "132": {
            "name": "Wakeup",
            "data": {
                "invalidateTime": 1488821442,
                "updateTime": 1488821452,
                "type": "empty",
                "value": null,
                "supported": {
                    "invalidateTime": 1488821442,
                    "updateTime": 1488820831,
                    "type": "bool",
                    "value": true
                },
                "version": {
                    "invalidateTime": 1488821442,
                    "updateTime": 1488820831,
                    "type": "int",
                    "value": 2
                },
                "security": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820831,
                    "type": "bool",
                    "value": false
                },
                "interviewDone": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820833,
                    "type": "bool",
                    "value": true
                },
                "interviewCounter": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820832,
                    "type": "int",
                    "value": 9
                },
                "interval": {
                    "invalidateTime": 1488821442,
                    "updateTime": 1488821452,
                    "type": "int",
                    "value": 360
                },
                "nodeId": {
                    "invalidateTime": 1488821442,
                    "updateTime": 1488821452,
                    "type": "int",
                    "value": 1
                },
                "min": {
                    "invalidateTime": 1488821442,
                    "updateTime": 1488820832,
                    "type": "int",
                    "value": 300
                },
                "max": {
                    "invalidateTime": 1488821442,
                    "updateTime": 1488820832,
                    "type": "int",
                    "value": 86400
                },
                "default": {
                    "invalidateTime": 1488821442,
                    "updateTime": 1488820832,
                    "type": "int",
                    "value": 3600
                },
                "step": {
                    "invalidateTime": 1488821442,
                    "updateTime": 1488820832,
                    "type": "int",
                    "value": 1
                },
                "lastWakeup": {
                    "invalidateTime": 1488821442,
                    "updateTime": 1488824396,
                    "type": "int",
                    "value": 1488824396
                },
                "lastSleep": {
                    "invalidateTime": 1488821442,
                    "updateTime": 1488824396,
                    "type": "int",
                    "value": 1488824396
                }
            },
            "id": 132
        },
        "134": {
            "name": "Version",
            "data": {
                "invalidateTime": 1488820831,
                "updateTime": 1488820832,
                "type": "empty",
                "value": null,
                "supported": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820831,
                    "type": "bool",
                    "value": true
                },
                "version": {
                    "invalidateTime": 1488820831,
                    "updateTime": 1488820832,
                    "type": "int",
                    "value": 2
                },
                "security": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820831,
                    "type": "bool",
                    "value": false
                },
                "interviewDone": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820832,
                    "type": "bool",
                    "value": true
                },
                "interviewCounter": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820831,
                    "type": "int",
                    "value": 9
                },
                "ZWLib": {
                    "invalidateTime": 1488820831,
                    "updateTime": 1488820832,
                    "type": "int",
                    "value": 6
                },
                "ZWProtocolMajor": {
                    "invalidateTime": 1488820831,
                    "updateTime": 1488820832,
                    "type": "int",
                    "value": 3
                },
                "ZWProtocolMinor": {
                    "invalidateTime": 1488820831,
                    "updateTime": 1488820832,
                    "type": "int",
                    "value": 67
                },
                "SDK": {
                    "invalidateTime": 1488820831,
                    "updateTime": 1488820832,
                    "type": "string",
                    "value": "4.55.00"
                },
                "applicationMajor": {
                    "invalidateTime": 1488820831,
                    "updateTime": 1488820832,
                    "type": "int",
                    "value": 1
                },
                "applicationMinor": {
                    "invalidateTime": 1488820831,
                    "updateTime": 1488820832,
                    "type": "int",
                    "value": 0
                },
                "hardwareVersion": {
                    "invalidateTime": 1488820831,
                    "updateTime": 1488820832,
                    "type": "int",
                    "value": 1
                },
                "firmwareCount": {
                    "invalidateTime": 1488820831,
                    "updateTime": 1488820832,
                    "type": "int",
                    "value": 1
                },
                "firmware1": {
                    "invalidateTime": 1488820831,
                    "updateTime": 1488820832,
                    "type": "empty",
                    "value": null,
                    "major": {
                        "invalidateTime": 1488820831,
                        "updateTime": 1488820832,
                        "type": "int",
                        "value": 2
                    },
                    "minor": {
                        "invalidateTime": 1488820831,
                        "updateTime": 1488820832,
                        "type": "int",
                        "value": 2
                    }
                }
            },
            "id": 134
        },
        "135": {
            "name": "Indicator",
            "data": {
                "invalidateTime": 1488820830,
                "updateTime": 1488820831,
                "type": "empty",
                "value": null,
                "supported": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820831,
                    "type": "bool",
                    "value": true
                },
                "version": {
                    "invalidateTime": 1488820831,
                    "updateTime": 1488820832,
                    "type": "int",
                    "value": 1
                },
                "security": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820831,
                    "type": "bool",
                    "value": false
                },
                "interviewDone": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820833,
                    "type": "bool",
                    "value": true
                },
                "interviewCounter": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820832,
                    "type": "int",
                    "value": 9
                },
                "stat": {
                    "invalidateTime": 1488820832,
                    "updateTime": 1488820833,
                    "type": "int",
                    "value": 0
                }
            },
            "id": 135
        },
        "143": {
            "name": "MultiCmd",
            "data": {
                "invalidateTime": 1488820830,
                "updateTime": 1488820831,
                "type": "empty",
                "value": null,
                "supported": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820831,
                    "type": "bool",
                    "value": true
                },
                "version": {
                    "invalidateTime": 1488820831,
                    "updateTime": 1488820832,
                    "type": "int",
                    "value": 1
                },
                "security": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820831,
                    "type": "bool",
                    "value": false
                },
                "interviewDone": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820832,
                    "type": "bool",
                    "value": true
                },
                "interviewCounter": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820832,
                    "type": "int",
                    "value": 9
                },
                "maxNum": {
                    "invalidateTime": 1488820830,
                    "updateTime": 1488820832,
                    "type": "int",
                    "value": 3
                }
            },
            "id": 143
        }
    },
    "data": {
        "invalidateTime": 1488820830,
        "updateTime": 1488820831,
        "type": "empty",
        "value": null,
        "dynamic": {
            "invalidateTime": 1488820830,
            "updateTime": 1488820831,
            "type": "bool",
            "value": false
        },
        "genericType": {
            "invalidateTime": 1488820830,
            "updateTime": 1488820831,
            "type": "int",
            "value": 33
        },
        "specificType": {
            "invalidateTime": 1488820830,
            "updateTime": 1488820831,
            "type": "int",
            "value": 1
        },
        "nodeInfoFrame": {
            "invalidateTime": 1488820830,
            "updateTime": 1488820831,
            "type": "empty",
            "value": null
        }
    },
    "id": 0
}
Ласта
Сообщения: 8
Зарегистрирован: Пт янв 13, 2017 7:26 pm
Благодарил (а): 0
Поблагодарили: 1 раз

Re: [Z-Wave] Термостат Danfos Z=Wave RS

Сообщение Ласта » Чт мар 09, 2017 7:31 am

Вообщем разобрался. Не у всех термостатов есть класс ClassThermostat. У некоторых только ClassThermostatSetpoint. Немного переписал модули и все заработало, единственное привязал к параметру отвечающему за заданную температуру свойство объекта, но поменять установленную температуру из MJD пока не получается. Либо параметры Zwave загружаются слишком быстро, и мои изменения затираются текущими значениями, либо что то еще.
Аватара пользователя
Bagir
Сообщения: 1487
Зарегистрирован: Вт сен 17, 2013 6:46 pm
Откуда: Ярославская область город Углич
Благодарил (а): 187 раз
Поблагодарили: 338 раз

Re: [Z-Wave] Термостат Danfos Z=Wave RS

Сообщение Bagir » Чт мар 09, 2017 11:50 am

Если выложите добавочный код для нового класса, то можно попросить sergejey добавить в обновления
Windows 7, HTTP, MegaD, Z-Wave, 1-Wire
Ласта
Сообщения: 8
Зарегистрирован: Пт янв 13, 2017 7:26 pm
Благодарил (а): 0
Поблагодарили: 1 раз

Re: [Z-Wave] Термостат Danfos Z=Wave RS

Сообщение Ласта » Чт мар 09, 2017 1:15 pm

Ну как только разберусь с установкой значений, выложу исправленный модуль, а заодно и обновленный список описаний железа z-wave.
Ласта
Сообщения: 8
Зарегистрирован: Пт янв 13, 2017 7:26 pm
Благодарил (а): 0
Поблагодарили: 1 раз

Re: [Z-Wave] Термостат Danfos Z=Wave RS

Сообщение Ласта » Чт мар 09, 2017 10:49 pm

Вообщем затык у меня с модулем, второй день сижу эксперементирую, но без результатов.
Опишу подробнее устройство, может у кого появятся идеи как заставить его работать :)
В нем есть 2 экземпляра устройства класса Thermostat Setpoint (Heating и Cooling).
Установленную температуру Heating можно получить тут: /ZWaveAPI/Run/devices[16].commandClasses[67].data[2].val.value
Задать температуру можно так: /ZWaveAPI/Run/devices[16].commandClasses[67].Set(1,20)
В скриптах вроде все прописал, слинковал свежесозданный объект к нужному параметру в Z-wave устройстве, изменяю свойство объекта, а ничего не происходит. Как я понял не выполняется даже функция в setProperty($property_id, $value) в классе zwave.class.php (проверяю запросом /ZWaveAPI/Run/devices[16].commandClasses[67].data[2].setVal.value).
Выложил свои поделки тут: https://github.com/Lasta2007/majordomo-zwave
буду благодарен, если кто поможет.
Ласта
Сообщения: 8
Зарегистрирован: Пт янв 13, 2017 7:26 pm
Благодарил (а): 0
Поблагодарили: 1 раз

Re: [Z-Wave] Термостат Danfos Z=Wave RS

Сообщение Ласта » Вт мар 14, 2017 8:30 pm

Вообщем прошу помощи, никак не получается заставить менять значения термостата, сменой значения слинкованного объекта.
Как я понял не выполняется код $data=$this->apiCall('/ZWaveAPI/Run/devices['.$device['NODE_ID'].'].instances['.$device['INSTANCE_ID'].'].commandClasses[67].Set('.$mode.', '.$value.')');

В файле zwave.class.php:
в функцию pollDevice добавил следующий код:
СпойлерПоказать

Код: Выделить всё

   if ($rec['CLASS_THERMOSTAT_SETPOINT']) {
    //$value=$data->commandClasses->{"67"}->data->mode->value;
    $command_classes['ThermostatSetPoint']=67;

    $comments_str='';
    for($i=0;$i<255;$i++) {
     if ($data->commandClasses->{"67"}->data->{$i}) {
      $comments_str.="$i = ".$data->commandClasses->{"67"}->data->{$i}->modeName->value."; ";
     }
    }
    $comments['ThermostatSetPoint']=$comments_str;

    if (isset($data->commandClasses->{"67"}->data)) {
     for($i=0;$i<255;$i++) {
      if ($data->commandClasses->{"67"}->data->{$i}->setVal) {
       $key='ThermostatSetPoint '.$data->commandClasses->{"67"}->data->{$i}->modeName->value;
       $properties[$key]=$data->commandClasses->{"67"}->data->{$i}->setVal->value;
       $command_classes[$key]=67;
       $updatedList[$key]=$data->commandClasses->{"67"}->data->{$i}->updateTime;
       if ($data->commandClasses->{"67"}->data->{$i}->updateTime>$updateTime) {
         $updateTime=$data->commandClasses->{"67"}->data->{$i}->updateTime;
       }
       if ($data->commandClasses->{"67"}->data->{$i}->scaleString->value) {
        $comments[$key]=$data->commandClasses->{"67"}->data->{$i}->scaleString->value;
       }
      }
     }
    }

   }
в функцию setProperty:
СпойлерПоказать

Код: Выделить всё

   if ($device['CLASS_THERMOSTAT_SETPOINT']) {
    $mode_name=$m[1];
    $data=$this->apiCall('/ZWaveAPI/Run/devices['.$device['NODE_ID'].'].instances['.$device['INSTANCE_ID'].']');
    $mode='';
    /*
    $mode='1' - heating;
    $mode='2' - cooling
    */
    $av_modes=$data->commandClasses->{"67"}->data;
    for($i=0;$i<255;$i++) {
     if (isset($av_modes->{"$i"}->modename)) {
      if ($av_modes->{"$i"}->modename->value==$mode_name) {
       $mode=$i;
       break;
      }
     }
    }
    if ($mode) {
     $data=$this->apiCall('/ZWaveAPI/Run/devices['.$device['NODE_ID'].'].instances['.$device['INSTANCE_ID'].'].commandClasses[67].Set('.$mode.', '.$value.')');
    }
   }
В базу добавил новый столбец CLASS_THERMOSTAT_SETPOINT соответствено
Ласта
Сообщения: 8
Зарегистрирован: Пт янв 13, 2017 7:26 pm
Благодарил (а): 0
Поблагодарили: 1 раз

Re: [Z-Wave] Термостат Danfos Z=Wave RS

Сообщение Ласта » Пн окт 09, 2017 11:57 pm

Вообщем появилось время разобраться, все было сделано верно, за исключением строчки:
$data=$this->apiCall('/ZWaveAPI/Run/devices['.$device['NODE_ID'].'].instances['.$device['INSTANCE_ID'].'].commandClasses[67].Set('.$mode.', '.$value.')');
Пробел между $mode и $value лишний.
Все протестировал, все работает замечательно. Отправил Сергею pull request на внесение изменений в модуль.
За это сообщение автора Ласта поблагодарил:
directman66 (Пт окт 12, 2018 1:24 pm)
Рейтинг: 1.18%
Ответить