MQTT - ON Timer

VPN/Proxy detected

It appears that you are using a VPN, or proxy service. Please note that using such a service may limit the functionality of this website.

  • Hallo,

    ich frage mich ob es ein MQTT äquivalent vom HTTP-Befehl: "http://192.168.XXX.XXX/relay/1?turn=on&timer=300" gibt.

    Ich möchte einige Shellies für eine bestimmte Dauer einschalten und würde ungern in Home Assistant curl hinzufügen und mit HTTP arbeiten.

    "AUTO OFF" & "BUTTON LONG PRESSED URL" in Optionen habe ich schon eingestellt, doch brauche ich (od. meine Gäste) hin und wieder einen längeren Timer.

    Bin noch rel. neu in Sachen MQTT & Heimautomation und durch die Suchfunktion bin ich nicht Schlauer geworden.

    Evl. kann mir Jemand helfen?

    MfG

    :love: Router: Turris Omnia(2GB RAM + 64GB SSD)
    Router LXC: Home Assistant(Core) + MQTT(Mosquitto)
    Sprachassistent: Mycroft(Raspberry pi 3b+)
    5x Shelly 1 (+ 1x OVP) 1x Shelly 2.5 (+ 1x OVP) 4x Shelly Plug S
    1x Shelly 1PM (OVP) 3x Shelly dimmer 2 1x Shelly RGBW2 (OVP)
    2x Shelly H&T + USB 1x Shelly Door/Window2 2x Shelly Button 1
    2x Delock 11826 2x Shelly TRV Gegrillt: 1x Shelly 2.5

    Edited 2 times, last by Kilink (September 6, 2020 at 11:18 PM).

  • Das sollte mit dem „trigger“-Node gehen.

    Hast du ein MQTT-Beispiel vielleicht?

    :love: Router: Turris Omnia(2GB RAM + 64GB SSD)
    Router LXC: Home Assistant(Core) + MQTT(Mosquitto)
    Sprachassistent: Mycroft(Raspberry pi 3b+)
    5x Shelly 1 (+ 1x OVP) 1x Shelly 2.5 (+ 1x OVP) 4x Shelly Plug S
    1x Shelly 1PM (OVP) 3x Shelly dimmer 2 1x Shelly RGBW2 (OVP)
    2x Shelly H&T + USB 1x Shelly Door/Window2 2x Shelly Button 1
    2x Delock 11826 2x Shelly TRV Gegrillt: 1x Shelly 2.5
  • Zum Ausprobieren:

    Der inject-Node schickt irgendwas an den trigger-Node, dieser schickt sofort on an den debug-Node und, nach 3sec Verzögerung, off.

    Anstelle von inject und debug kämen dann im Anwendungsfall der entsprechende Auslöser bzw. Aktion.

    Die payload vom trigger kann man nach Bedarf konfigurieren.

    Code
    [{"id":"43aafadc.637414","type":"trigger","z":"8a9fae9b.eaf468","name":"","op1":"on","op2":"off","op1type":"str","op2type":"str","duration":"3","extend":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":410,"y":1920,"wires":[["4fc2b711.9ef538"]]},{"id":"426ace21.d7b8b8","type":"inject","z":"8a9fae9b.eaf468","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"irgendwas","payloadType":"str","x":260,"y":1920,"wires":[["43aafadc.637414"]]},{"id":"4fc2b711.9ef538","type":"debug","z":"8a9fae9b.eaf468","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":570,"y":1920,"wires":[]}]

    Viel Erfolg!

    wejot

  • Danke,

    werde es mal ausprobieren.

    :love: Router: Turris Omnia(2GB RAM + 64GB SSD)
    Router LXC: Home Assistant(Core) + MQTT(Mosquitto)
    Sprachassistent: Mycroft(Raspberry pi 3b+)
    5x Shelly 1 (+ 1x OVP) 1x Shelly 2.5 (+ 1x OVP) 4x Shelly Plug S
    1x Shelly 1PM (OVP) 3x Shelly dimmer 2 1x Shelly RGBW2 (OVP)
    2x Shelly H&T + USB 1x Shelly Door/Window2 2x Shelly Button 1
    2x Delock 11826 2x Shelly TRV Gegrillt: 1x Shelly 2.5
  • This threads contains 3 more posts that have been hidden for guests.