Page 3 sur 3

Re: Homebridge Liaison MQTT Domoticz

Publié : 17 janv. 2021, 12:09
par vega6763
Bonjour,

POur ma part concernant mes modules SONOFF avec home bridge je crée un virtual switch en plus du virtual initial que je lie pour le retour d'etat, puis l'original je le deplace en "hidden" dans périphérique par emplacement afin d'éviter la polution de plusieurs interrupteurs pour un meme sonoff.

Code : Tout sélectionner

commandArray = {}
if (devicechanged['ETAT GARAGE'] == 'On') then
    commandArray['UpdateDevice']='50|0|1'
end
if (devicechanged['ETAT GARAGE'] == 'Off') then
    commandArray['UpdateDevice']='50|1|1'
end
if (devicechanged['ECLAIRAGE / Extérieur'] == 'Off') then
    commandArray['UpdateDevice']='140|0|1'
end
if (devicechanged['ECLAIRAGE / Extérieur'] == 'On') then
    commandArray['UpdateDevice']='140|1|1'
end
return commandArray
Bisx.

Re: Homebridge Liaison MQTT Domoticz

Publié : 12 janv. 2022, 20:56
par Fred0x5b
[Résolu]
Bonjour à tous, vieux sujet mais comme je m'en suis servi pour chercher la solution au problème identique, voici ma solution.
Donc même problème que les autres, Domoticz vers ESP01/module relais fonctionne en MQTT.
Homebridge change bien l'état dans Domoticz et inversement, mais rien de se passe au niveau ESP01 (Log ESPEASY rien).
Finalement il faut juste décocher dans les réglages de "Homebridge Edomoticz" / "ADVANCED SETTINGS" : Enable MQTT.
Après ça tout fonctionne parfaitement.

Dans la CONFIG Homebrige j'ai ça :

Code : Tout sélectionner

    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "auth": "form",
            "theme": "auto",
            "tempUnits": "c",
            "lang": "auto",
            "platform": "config"
        },
        {
            "name": "Domoticz",
            "server": "192.168.1.168",
            "port": "8080",
            "roomid": 2,
            "mqtt": false,
            "ssl": false,
            "dimFix": 0,
            "platform": "eDomoticz"
        },

Re: Homebridge Liaison MQTT Domoticz

Publié : 10 févr. 2022, 10:03
par PhilGood
Bonjour @Fred0x5b,

ça marche Nickel.
Merci!!!

Re: Homebridge Liaison MQTT Domoticz

Publié : 20 févr. 2022, 06:25
par Kojak44
Fred0x5b Mille merci !