Page 2 sur 2

Re: [Plugin] MQTTmapper : Intégration directe de topics MQTT dans Domoticz

Publié : 19 mars 2023, 16:14
par Flying Domotic
J'ai terminé la modif.

Un exemple de fichier json qui marche est :

Code : Tout sélectionner

{
     "mvtdec1": {
        "topic": "KC868_AI/4022D8E06EE0/STATE",
        "key": "KC868_AI/4022D8E06EE0/STATE-input1",
        "type": "244", "subtype": "73", "switchtype": "8",
        "mapping": {"item": "input1/value", "default": "0", "values": {"True": "1"}}
    },
     "mvtdec2": {
        "topic": "KC868_AI/4022D8E06EE0/STATE",
        "key": "KC868_AI/4022D8E06EE0/STATE-input2",
        "type": "244", "subtype": "73", "switchtype": "8",
        "mapping": {"item": "input2/value", "default": "0", "values": {"True": "1"}}
    }
}
Dis-moi si ça fonctionne bien une fois intégré.

Re: [Plugin] MQTTmapper : Intégration directe de topics MQTT dans Domoticz

Publié : 19 mars 2023, 18:40
par Guillaume_77
Je viens d'essayer:

Code : Tout sélectionner

{
     "mvtdec1": {
        "topic": "KC868_AI/4022D8E06EE0/STATE",
        "key": "KC868_AI/4022D8E06EE0/STATE-input1",
        "type": "244", "subtype": "73", "switchtype": "8",
        "mapping": {"item": "input1/value", "default": "0", "values": {"True": "1"}}
    },
     "mvtdec2": {
        "topic": "KC868_AI/4022D8E06EE0/STATE",
        "key": "KC868_AI/4022D8E06EE0/STATE-input2",
        "type": "244", "subtype": "73", "switchtype": "8",
        "mapping": {"item": "input2/value", "default": "0", "values": {"True": "1"}}
    },
     "mvtdec48": {
        "topic": "KC868_AI/4022D8E06EE0/STATE",
        "key": "KC868_AI/4022D8E06EE0/STATE-input48",
        "type": "244", "subtype": "73", "switchtype": "8",
        "mapping": {"item": "input48/value", "default": "0", "values": {"True": "1"}}
    }


}
Cela fonctionne parfaitement.

Bravo et encore merci !!

Re: [Plugin] MQTTmapper : Intégration directe de topics MQTT dans Domoticz

Publié : 19 mars 2023, 18:53
par Flying Domotic
Comme quoi on n'est pas à l'abri d'un coup de pot ;-)