Benutzer-Werkzeuge

Webseiten-Werkzeuge


homebridge:shelly_gen2

Dies ist eine alte Version des Dokuments!


Homebridge - Shelly Gen 2 mqttthing

Nachfolgend ein json Konstrukt um die 2Generation der Shellys zu steuern. Shelly1 + Shelly1PM

Hier noch der Link woher die Daten gezogen wurden: https://github.com/arachnetech/homebridge-mqttthing/discussions/511 https://github.com/arachnetech/homebridge-mqttthing/wiki/Tested-Configurations#shelly-plus-1

{
            "accessory": "mqttthing",
            "type": "outlet",
            "name": "TEST",
            "url": "mqtt://10.10.10.10",
            "username": "",
            "password": "",
            "caption": "TEST",
            "topics": {
                "getOn": {
                    "topic": "shellyplus1pm-xxxx/events/rpc",
                    "apply": "if (message.includes('output')) return JSON.parse(message).params[\"switch:0\"].output;"
                },
                "setOn": {
                    "topic": "shellyplus1pm-xxxx/rpc",
                    "apply": "return JSON.stringify({id:1, src:'shellyplus1pm-xxxx', method:'Switch.Toggle', params:{id:0}})"
                }
            },
            "integerValue": true
},
homebridge/shelly_gen2.1702327545.txt.gz · Zuletzt geändert: 2023/12/11 20:45 von max

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki