Komme mit Shelly plus 2pm und blue button1 auf keinen grünen Zweig

  • Zuerst, ich bin Neuling in Sachen Shelly [ag]

    was mir bis jetzt gelang,

    - Shelly 2pm plus in mein Wlan einbinden

    - per Weboberfläche auf cover (Rolladensteuerung) ändern

    - per Weboberfläche Rolltor hoch- runterfahren und pausieren

    -pairing des Blue Button1 per shelly control App am Shelly plus (siehe Screen)


    Was mir nicht gelingt, ist den Shelly mit dem Blue button zu einer Aktion Rolltor öffnen zu bewegen, wenn mir das erst mal gelingen würde,

    mache ich mich daran, das Ganze über ein Script ohne Cloudanbindung laufen zu lassen.


    Dass der Fehler vor dem Gerät sitzt ist mir schon klar [ag], wäre dankbar wenn mich jemand auf die richtige Spur bringt [bc]

  • Gut, dann führ ich mein Selbstgespräch mal weiter :P

    Über die Cloud habe ich nun die Möglichkeit mit Szenen das Rolltor mit kurzem Druck auf den Button zu öffnen, mit langem Druck zu schließen und mit Doppelclick zu stoppen [bp]

    so weit so gut,

    allerdings sollte es über Scripte möglich sein diese Aktionen ohne Cloud nur per Bluetooth auszuführen, das ist mir noch nicht gelungen:cursing:

    sollte mal wieder der Glasfaser Backbone vom Bagger erwischt werden und das Neuland für mehrere Tage ausfallen, hoffe ich dass als Backup die App im heimischen Wlan oder über den Browser der Shelly angesprochen werden kann.

  • Hm, ich bin mir nicht sicher wie und ob du ein Script brauchst.


    Ansteuerung Rollershutter:


    Hochfahren: http://<IP-Adresse_Shelly_2PM>/roller/0?go=open

    Runterfahren: http://<IP-Adresse_Shelly_2PM>/roller/0?go=close

    Stoppen: http://<IP-Adresse_Shelly_2PM>/roller/0?go=stop


    Das fügst du entsprechend bei den Blue Button als URL-Aktion ein.

  • Sobald ich die Cloud abschalten, kommt vom blu Button nichts mehr beim Plus 2 PM an,

    deshalb soll man die Mac Adresse des blu Buttons angeben und nur den gepairten Shelly mit 127.0.0.1 die jeweiligen Befehle ausführen

    Ich füge morgen Mal am PC das Beispiel Script ein,

    danke schön mal für die Hilfe.

  • Sobald ich die Cloud abschalten, kommt vom blu Button nichts mehr beim Plus 2 PM an

    Da müssen wir mal nachschauen, dass ist nicht richtig.

    Die cloud hat damit nichts zu tun.

    Hast du rpc auf dem 2pm an? Falls ja, mach das mal aus. Nur das BT Gateway aktivieren.

    Hast du ein Passwort gesetzt auf dem 2pm?

  • Diese Script Vorlage habe ich verwendet

    Das steht drin, natürlich mit der Mac Adresse meines Blu Buttons und das was ich nicht brauche rausgelöscht


    /**
    * This script lets you use your Gen2 device as a gateway between Shelly BLU button1 and other Shelly devices (no matter Gen1 or Gen2)
    * by sending local requests by their local IP APIs.
    *
    * What you should change before using it:
    * > bluButtonAddress -> You should put the mac address of your blu button here.
    * This script will help you find the mac address: https://github.com/ALLTERCO/shell…elly-scanner.js
    *
    * > actions -> You should put the urls here to be executed at the specified event. Urls that shoudl be called on single/short push
    * of the button, must be placed in the singlePush object. This applies to the double and triple push as well. Example below.
    *
    * Limitations:
    * > At the moment there is a limit of 5 RPC calls at the same time and because of this, the script will execute every 3 urls with a 1 second delay.
    * Limitations can be check here: https://shelly-api-docs.shelly.cloud/gen2/Scripts/S…resource-limits
    *
    * > The order of the execution of the urls can't be guaranteed
    */


    /** =============================== CHANGE HERE =============================== */
    const CONFIG = {
    bluButtonAddress: "b4:35:22:fe:56:e5", //the mac address of shelly blu button1 that will trigger the actions
    actions: { //urls to be called on a event
    //when adding urls you must separate them with commas and put them in quotation marks
    singlePush: [ //urls that will be executed at singlePush event from the blu button1
    "http://192.168.1.35/roller/0?go=open",
    "http://192.168.1.36/relay/0?turn=off",
    "http://192.168.1.36/relay/1?turn=on"
    ],
    doublePush: [ //urls that will be executed at doublePush event from the blu button1
    "http://192.168.1.35/roller/0?go=close"
    ],
    triplePush: [ //urls that will be executed at triplePush event from the blu button1
    "http://192.168.1.38/color/0?turn=on&red=200&green=0&blue=0",
    "http://192.168.1.38/light/0?turn=on",
    "http://192.168.1.40/rpc/Switch.Set?id=0&on=false",
    "http://192.168.1.40/rpc/Switch.Set?id=1&on=false"
    ],
    longPush: [ //urls that will be executed at longPush event from the blu button1
    "http://192.168.1.41/rpc/Cover.Close",
    "http://192.168.1.42/rpc/Cover.Close"
    ]
    }
    };
    /** =============================== STOP CHANGING HERE =============================== */

    let urlsPerCall = 3;
    let urlsQueue = [];
    let callsCounter = 0;

    const ALLTERCO_MFD_ID_STR = "0ba9";
    const BTHOME_SVC_ID_STR = "fcd2";

    const uint8 = 0;
    const int8 = 1;
    const uint16 = 2;
    const int16 = 3;
    const uint24 = 4;
    const int24 = 5;

    // The BTH object defines the structure of the BTHome data
    const BTH = {
    0x00: { n: "pid", t: uint8


    musste einiges rausschneiden da zu lang [ai]

  • Ja, da schaltet der 2pm das Rolltor auf, beim ersten "Link" und der IP meines 2 pm, das lässt mich aber immer noch nicht mit meinem Blu Button das Rolltor öffnen.

    Wie gesagt, dass ist das Beispiel Script

    und ja, da würde eines der beiden Relais ein und das andere ausgeschaltet werden, ist bei mir natürlich nicht mehr im Script


    PS muss jetzt erst mal weg, komme erst nachmittags zum weiteren Testen

  • Mit Cloud-Anbindung funktioniert der Blue Button problemlos, sobald ich den 2pm aus der Cloud nehme, kann ich mit dem Blue Button das Rolltor nicht mehr öffnen oder schließen, mit der IP im Heimnetz kann ich über die 2pm Webgui das Rolltor öffnen.

    Dann bleibt bis ich das mit dem Script schnalle halt die Cloud an.


    PS um den 2pm in der Garage physisch schalten zu können ist ein Taster wohl zielführend an S1 wie muss man dann den 2pm konfigurieren

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!