Détecteur de mouvement

Sous forum dédié au plugin MQTTMAPPER de FlyingDomotic
Merci de poster vous questions concernant ce plugin ici et non pas dans le forum MQTT directement
Flying Domotic
Messages : 772
Inscription : 10 mars 2020, 15:26

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

Message 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é.
Guillaume_77
Messages : 6
Inscription : 18 mars 2023, 19:59

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

Message 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 !!
Flying Domotic
Messages : 772
Inscription : 10 mars 2020, 15:26

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

Message par Flying Domotic »

Comme quoi on n'est pas à l'abri d'un coup de pot ;-)
Répondre