shellyrgbw Anzeige im Webinterface (Attribute?) [gelöst]

Begonnen von dip, 01 November 2022, 09:36:37

Vorheriges Thema - Nächstes Thema

dip

Moin,

ich habe einen shellyrgbw erfolgreich mittles MQTT2 und autocreate angelegt bekommen, siehe unten.

Meine Frage: wie bekomme ich nun die Attribute gesetzt, sodass der shellyrgbw im Webinterface richtig angezeigt wird, inklusive der Stati?

Ich habe leider dazu nichts gefunden, was ich verstanden hätte.

Danke für Eure Hilfe und Euer Verständnis für uns Dummies.

defmod MQTT2_shellyrgbw2_81B383 MQTT2_DEVICE shellyrgbw2_81B383
attr MQTT2_shellyrgbw2_81B383 model shellyrgbw
attr MQTT2_shellyrgbw2_81B383 readingList shellyrgbw2_81B383:shellies/shellyrgbw2-81B383/online:.* online\
shellyrgbw2_81B383:shellies/announce:.* { json2nameValue($EVENT, 'announce_', $JSONMAP) }\
shellyrgbw2_81B383:shellies/shellyrgbw2-81B383/color/0/status:.* { json2nameValue($EVENT, 'status_', $JSONMAP) }\
shellyrgbw2_81B383:shellies/shellyrgbw2-81B383/color/0:.* color_0
attr MQTT2_shellyrgbw2_81B383 room MQTT2_DEVICE

setstate MQTT2_shellyrgbw2_81B383 2022-11-01 08:53:50 IODev MQTT2
setstate MQTT2_shellyrgbw2_81B383 2022-11-01 08:53:50 announce_fw_ver 20190822-083406/master@4148d2b7
setstate MQTT2_shellyrgbw2_81B383 2022-11-01 08:53:50 announce_id shellyrgbw2-81B383
setstate MQTT2_shellyrgbw2_81B383 2022-11-01 08:53:50 announce_ip 192.168.2.45
setstate MQTT2_shellyrgbw2_81B383 2022-11-01 08:53:50 announce_mac E8DB8481B383
setstate MQTT2_shellyrgbw2_81B383 2022-11-01 08:53:50 announce_new_fw true
setstate MQTT2_shellyrgbw2_81B383 2022-11-01 08:57:10 color_0 on
setstate MQTT2_shellyrgbw2_81B383 2022-11-01 08:53:50 online true
setstate MQTT2_shellyrgbw2_81B383 2022-11-01 09:07:20 status_blue 0
setstate MQTT2_shellyrgbw2_81B383 2022-11-01 09:07:20 status_effect 0
setstate MQTT2_shellyrgbw2_81B383 2022-11-01 09:07:20 status_gain 0
setstate MQTT2_shellyrgbw2_81B383 2022-11-01 09:07:20 status_green 0
setstate MQTT2_shellyrgbw2_81B383 2022-11-01 09:07:20 status_ison true
setstate MQTT2_shellyrgbw2_81B383 2022-11-01 09:07:20 status_mode color
setstate MQTT2_shellyrgbw2_81B383 2022-11-01 09:07:20 status_overpower false
setstate MQTT2_shellyrgbw2_81B383 2022-11-01 09:07:20 status_power 5.01
setstate MQTT2_shellyrgbw2_81B383 2022-11-01 09:07:20 status_red 255
setstate MQTT2_shellyrgbw2_81B383 2022-11-01 09:07:20 status_white 54



dip

Hier zur besseren Übersicht das gesamte Listing des Device inkl. der jetzigen Attribute:

Internals:
   CFGFN     
   CID        shellyrgbw2_81B383
   DEF        shellyrgbw2_81B383
   FUUID      6360d08e-f33f-222b-aed8-44a1b33f8a5a7a24
   IODev      MQTT2
   LASTInputDev MQTT2
   MQTT2_CONN MQTT2_192.168.2.45_24576
   MQTT2_MSGCNT 38
   MQTT2_TIME 2022-11-01 09:07:20
   MSGCNT     38
   NAME       MQTT2_shellyrgbw2_81B383
   NR         612
   STATE      ???
   TYPE       MQTT2_DEVICE
   eventCount 42
   READINGS:
     2022-11-01 08:53:50   IODev           MQTT2
     2022-11-01 08:53:50   announce_fw_ver 20190822-083406/master@4148d2b7
     2022-11-01 08:53:50   announce_id     shellyrgbw2-81B383
     2022-11-01 08:53:50   announce_ip     192.168.2.45
     2022-11-01 08:53:50   announce_mac    E8DB8481B383
     2022-11-01 08:53:50   announce_new_fw true
     2022-11-01 08:57:10   color_0         on
     2022-11-01 08:53:50   online          true
     2022-11-01 09:07:20   status_blue     0
     2022-11-01 09:07:20   status_effect   0
     2022-11-01 09:07:20   status_gain     0
     2022-11-01 09:07:20   status_green    0
     2022-11-01 09:07:20   status_ison     true
     2022-11-01 09:07:20   status_mode     color
     2022-11-01 09:07:20   status_overpower false
     2022-11-01 09:07:20   status_power    5.01
     2022-11-01 09:07:20   status_red      255
     2022-11-01 09:07:20   status_white    54
Attributes:
   model      shellyrgbw
   readingList shellyrgbw2_81B383:shellies/shellyrgbw2-81B383/online:.* online
shellyrgbw2_81B383:shellies/announce:.* { json2nameValue($EVENT, 'announce_', $JSONMAP) }
shellyrgbw2_81B383:shellies/shellyrgbw2-81B383/color/0/status:.* { json2nameValue($EVENT, 'status_', $JSONMAP) }
shellyrgbw2_81B383:shellies/shellyrgbw2-81B383/color/0:.* color_0
   room       MQTT2_DEVICE

dip

Die Lösung war nur einen Klick entfernt:

Auf der Seite des Device wird ganz oben die Zeile set angezeigt. Wenn man dort set devicename attrTemplate shelly2rgbw_color auswählt (siehe "set-attribute" Screenshot) und auf set klickt werden alle Attribute gesetzt (siehe "attribute-set" Screenshot)