MQTT publishSet: Set Command funktioniert nicht

Begonnen von Tobias, 28 Januar 2023, 16:38:01

Vorheriges Thema - Nächstes Thema

Tobias

Hi,
ich habe ein MQTT Device von einem Shelly1 angelegt.
Nun möchte ich das per publishSet angelegt set command aufrufen. Per anklicken im WebUI auf der DeviceSeite funktioniert das, rufe ich aber das Kommando "per Hand" oben in der Commandline auf so erhalte ich einen Fehler. Bin gerade völlig ratlos. Und ich möchte kein MQTT2 einsetzen ;)

set SW_Licht_EG_WZEZ LichtWZ on

Please define SW_Licht_EG_WZEZ LichtWZ first


Internals:
   FUUID      5c7ea0e9-f33f-99a0-8603-fa0f4be8f1acc81c
   IODev      mqtt
   NAME       SW_Licht_EG_WZEZ
   NR         266
   STATE      off
   TYPE       MQTT_DEVICE
   eventCount 324
   .attraggr:
   .attrminint:
   .qos:
     *          0
   .retain:
     *          0
   .userReadings:
     HASH(0x55cb352750b0)
   READINGS:
     2023-01-28 16:09:45   IODev           mqtt
     2023-01-28 16:02:39   Licht           off
     2023-01-28 16:34:57   LichtEZ         off
     2023-01-28 16:34:50   LichtWZ         off
     2023-01-28 16:28:50   LichtWZ1        on
     2023-01-28 16:34:49   LichtWZ2        off
     2023-01-28 16:34:57   status          off
     2023-01-28 16:34:57   transmission-state incoming publish received
   message_ids:
   publishSets:
     LichtWZ:
       topic      shellies/shelly1-2C7258/relay/0/command
       values:
         on,off
     LichtWZ1:
       topic      shellies/shelly1-2C7258/relay/0/command
       values:
     LichtWZ2:
       topic      shellies/shelly1-2C6BB5/relay/0/command
       values:
         on,off
   sets:
     LichtWZ    on,off
     LichtWZ1   
     LichtWZ2   on,off
   subscribe:
     shellies/shelly1-2C7252/relay/0
     shellies/shelly1-2C7258/relay/0
     shellies/shelly1-2C6BB5/relay/0
   subscribeExpr:
     ^shellies\/shelly1-2C7252\/relay\/0$
     ^shellies\/shelly1-2C7258\/relay\/0$
     ^shellies\/shelly1-2C6BB5\/relay\/0$
   subscribeQos:
     shellies/shelly1-2C6BB5/relay/0 0
     shellies/shelly1-2C7252/relay/0 0
     shellies/shelly1-2C7258/relay/0 0
   subscribeReadings:
     shellies/shelly1-2C6BB5/relay/0:
       cmd       
       name       LichtWZ2
     shellies/shelly1-2C7252/relay/0:
       cmd       
       name       LichtEZ
     shellies/shelly1-2C7258/relay/0:
       cmd       
       name       LichtWZ
Attributes:
   DbLogExclude .*
   IODev      mqtt
   publishSet_LichtWZ on,off shellies/shelly1-2C7258/relay/0/command
   publishSet_LichtWZ2 on,off shellies/shelly1-2C6BB5/relay/0/command
   room       MQTT
   stateFormat status
   subscribeReading_LichtEZ shellies/shelly1-2C7252/relay/0
   subscribeReading_LichtWZ shellies/shelly1-2C7258/relay/0
   subscribeReading_LichtWZ2 shellies/shelly1-2C6BB5/relay/0
   userReadings status {(ReadingsVal("$name","LichtWZ","") eq "on" || ReadingsVal("$name","LichtWZ2","") eq "on" || ReadingsVal("$name","LichtEZ","") eq "on")?"on":"off"}
Maintainer: Text2Speech, TrashCal, MediaList

Meine Projekte: https://github.com/tobiasfaust
* PumpControl v2: allround Bewässerungssteuerung mit ESP und FHEM
* Ein Modbus RS485 zu MQTT Gateway für SolarWechselrichter

Tobias

ich antworte mir mal selbst, manchmal ist man auch ein Depp.

Im Set command war ein nicht sichtbares steuerzeichen reingerutscht. Deshalb kannte er das Device nicht ob wohl es eigentlich existierte
Maintainer: Text2Speech, TrashCal, MediaList

Meine Projekte: https://github.com/tobiasfaust
* PumpControl v2: allround Bewässerungssteuerung mit ESP und FHEM
* Ein Modbus RS485 zu MQTT Gateway für SolarWechselrichter