MQTT Einbindung UNI

  • Hallo,

    leider finde ich kein Template für den Uni.

    Ich habe das Device am Laufen und kann die Kanäle schalten.


    Aber immer nur einen einen.


    Wie spreche ich den Kanal 2 an? Ich möchte gerne die Funktion "on-for-timer" behalten, da ich ihn als Taster für das Garagentor nutzen möchte.

    VG


    defmod Garage_door_CTRL MQTT2_DEVICE

    attr Garage_door_CTRL DbLogExclude .*

    attr Garage_door_CTRL IODev MQTT2

    attr Garage_door_CTRL autocreate 1

    attr Garage_door_CTRL devStateIcon {my $onl = ReadingsVal($name,"online","false") eq "false" ? "rot" : ReadingsVal($name,"new_fw","false") eq "true" ? "gelb" : "gruen";; my $light = ReadingsVal($name,"state","off");; my $show = '<a href="';;$show .= $onl eq "gelb" ? "/fhem?cmd.dummy=set $name x_update&XHR=1\">" : "http://%22.readingsval(%24name,%22ip%22,%22none%22).' "target="_blank">';; $show .= FW_makeImage("10px-kreis-".$onl)."</a>";; "<div> $show <a href=\"/fhem?cmd.dummy=set $name toggle&XHR=1\">".FW_makeImage($light)."</a></div>" }

    attr Garage_door_CTRL model shelly1

    attr Garage_door_CTRL readingList shellies/shellyuni-483FDA82C4A2/relay/0:.* state\

    shellies/shellyuni-483FDA82C4A2/relay/0:.* relay0\

    shellies/shellyuni-483FDA82C4A2/input/0:.* input0\

    shellies/shellyuni-483FDA82C4A2/relay/1:.* state\

    shellies/shellyuni-483FDA82C4A2/relay/1:.* relay1\

    shellies/shellyuni-483FDA82C4A2/input/1:.* input1\

    shellies/shellyuni-483FDA82C4A2/online:.* online\

    shellies/shellyuni-483FDA82C4A2/announce:.* { json2nameValue($EVENT) }\

    shellies/announce:.* { $EVENT =~ m,..id...shellyuni-483FDA82C4A2...mac.*, ? json2nameValue($EVENT) : return }

    attr Garage_door_CTRL room 1 Overview,MQTT

    attr Garage_door_CTRL setList off:noArg shellies/shellyuni-483FDA82C4A2/relay/0/command off\

    on:noArg shellies/shellyuni-483FDA82C4A2/relay/0/command on\

    x_update:noArg shellies/shellyuni-483FDA82C4A2/command update_fw\

    x_mqttcom shellies/shellyuni-483FDA82C4A2/command $EVTPART1

    setstate Garage_door_CTRL on

    setstate Garage_door_CTRL 2020-11-27 13:13:33 attrTemplateVersion 20200831

    setstate Garage_door_CTRL 2020-11-30 09:56:04 fw_ver 20200826-111450/1206-production-ShellyUNI@a80ee1fc+

    setstate Garage_door_CTRL 2020-11-30 09:56:04 id shellyuni-483FDA82C4A2

    setstate Garage_door_CTRL 2020-11-30 10:06:24 input0 0

    setstate Garage_door_CTRL 2020-11-30 10:06:24 input1 0

    setstate Garage_door_CTRL 2020-11-30 09:56:04 ip 192.168.178.231

    setstate Garage_door_CTRL 2020-11-30 09:56:04 mac 483FDA82C4A2

    setstate Garage_door_CTRL 2020-11-30 09:56:04 model SHUNI-1

    setstate Garage_door_CTRL 2020-11-30 09:56:04 new_fw false

    setstate Garage_door_CTRL 2020-11-30 09:56:04 online true

    setstate Garage_door_CTRL 2020-11-30 10:06:24 relay0 off

    setstate Garage_door_CTRL 2020-11-30 10:06:24 relay1 on

    setstate Garage_door_CTRL 2020-11-30 10:06:24 state on

  • Könnte ein Mod das nach FHEM verschieben? hat ja eher weniger mit MQTT als mit dem nicht vorhandenen FHEM-Template zu tun..

    >100 Shellies, darunter so gut wie alles was der Hersteller produziert hat. ;)
    :!: ich beantworte grundsätzlich keine Fragen per persönlicher Nachricht:!: