MQTT2+Shelly: erste Konfiguration und template-Entwicklung

Begonnen von miggun, 03 Dezember 2018, 21:05:34

Vorheriges Thema - Nächstes Thema

TomLee

#720
Doofe Frage ist  color_0 nicht der Status und müsste einfach nach state oder steht da auch mal was anderes drin ?

2021-05-27 16:06:23 MQTT2_SERVER MQTT2Server shellies/shellycolorbulb-8CAAB555E45D/color/0:off
2021-05-27 16:07:10 MQTT2_SERVER MQTT2Server shellies/shellycolorbulb-8CAAB555E45D/color/0:on


shellycolorbulb_8CAAB555E45D:shellies/shellycolorbulb-8CAAB555E45D/color/0:.* color_0

=>

shellycolorbulb_8CAAB555E45D:shellies/shellycolorbulb-8CAAB555E45D/color/0:.* state

edit:

Upps steht ja oben schon  8)

MadMax-FHEM

#721
Also ich hab mal rumgespielt, auch mit json2nameValue.
Gut, wenn json kommt -> Readings bauen.

Halbwegs verstanden (naja so lala ;) ).

Aber gerade habe ich versucht herauszufinden, wie state "gebildet" wird... ;)

@TomLee: Ich werde das mal versuchen (sofern ich verstehe was zu tun ist ;)  )
EDIT: ok verstanden :) UND: es klappt! :) DANKE!

Aktuell habe ich bei /color/0: immer nur on/off gesehen :)

Danke, Joachim
FHEM PI3B+ Bullseye: HM-CFG-USB, 40x HM, ZWave-USB, 13x ZWave, EnOcean-PI, 15x EnOcean, HUE/deCONZ, CO2, ESP-Multisensor, Shelly, alexa-fhem, ...
FHEM PI2 Buster: HM-CFG-USB, 25x HM, ZWave-USB, 4x ZWave, EnOcean-PI, 3x EnOcean, Shelly, ha-bridge, ...
FHEM PI3 Buster (Test)

TomLee

attr MQTT2_shellycolorbulb_8CAAB555E45D readingList shellies/shellycolorbulb-8CAAB555E45D/color/0:.* color_0


ändern in

attr MQTT2_shellycolorbulb_8CAAB555E45D readingList shellies/shellycolorbulb-8CAAB555E45D/color/0:.* state


TomLee

#723
Zitatund "status" sieht mir überflüssig aus ( => {} als "Pseudo-Perl"-Auswertung für "den großen JSON")

und das war so gemeint:

attr MQTT2_shellyrgbw2_80E656 readingList shellies/shellyrgbw2-80E656/color/0/status:.* {}

Die Readingsmusst danach löschen, von alleine verschwinden die nicht.

MadMax-FHEM

#724
Zitat von: TomLee am 28 Mai 2021, 13:18:53
edit:

Upps steht ja oben schon  8)

Du meinst das:

Zitat von: Beta-User am 27 Mai 2021, 16:38:18
Na ja, ."..color/0" nach "state" sollte doch eigentlich schon fast ausreichen, und "status" sieht mir überflüssig aus ( => {} als "Pseudo-Perl"-Auswertung für "den großen JSON").

Naja, wenn man weiß was das bedeuten soll, dann: ja ;)

Ich hab es erst jetzt verstanden (naja: so lala ;) ) ;)

D.h. es gibt dann irgendwann ein neues Tamplate?
Oder wird das bestehende angepasst, weil es Shelly generell in der FW ab Version X so macht?

Dann gleich eine weitere Frage (Antwort glaube ich kenne ich aber wohl schon ;)  ): wenn es ein Update gibt, dann muss ich die attrTemplate (die geändert wurden: wie erkenne ich dass es zu einem verwendeten attrTemplate eine neue Version gibt?) neu anwenden...
...oder lassen, wenn es läuft... 8)

Wie ist es mit selbst gemachten Änderungen?
Notieren und wieder nachziehen (fürchte ich)?

So, jetzt mache ich dann mal weiter mit: Datenflut einschränken (soweit möglich) und entscheiden ob nun ZigBee oder WLAN...
(wobei mir die Steuerung mit den Shelly und MQTT schon sehr gut gefällt [jetzt wo es geht :):)  )

Frage (weil ja Beta-User hier mit liest ;)  ): wie ist denn bzgl. "Steuerung" etc. der Unterschied zwischen deCONZ und HUEBridge-Modul zu zigbee2mqtt und MQTT?
(ok, ich hab noch einen RaspBee rumfliegen, mal sehen, ob der auch zigbee2mqtt-tauglich ist / dann werde ich das halt auch [noch] ausprobieren)
EDIT: oder anders: ist die "Darstellung" und "Steuerung" ähnlich wie hier? Also gibt/gäbe es einen (großen) Unterschied zu einer RGBW-Lampe die ZigBee mittels zigbee2mqtt ist gegenüber der Shelly hier?

Danke, Joachim
FHEM PI3B+ Bullseye: HM-CFG-USB, 40x HM, ZWave-USB, 13x ZWave, EnOcean-PI, 15x EnOcean, HUE/deCONZ, CO2, ESP-Multisensor, Shelly, alexa-fhem, ...
FHEM PI2 Buster: HM-CFG-USB, 25x HM, ZWave-USB, 4x ZWave, EnOcean-PI, 3x EnOcean, Shelly, ha-bridge, ...
FHEM PI3 Buster (Test)

MadMax-FHEM

Zitat von: TomLee am 28 Mai 2021, 13:30:43
und das war so gemeint:

attr MQTT2_shellyrgbw2_80E656 readingList shellies/shellyrgbw2-80E656/color/0/status:.* {}

Das Reading musst danach löschen, von alleine verschwindet es nicht.

Jep, nun ist es mir klar(er) :)

Danke, Joachim
FHEM PI3B+ Bullseye: HM-CFG-USB, 40x HM, ZWave-USB, 13x ZWave, EnOcean-PI, 15x EnOcean, HUE/deCONZ, CO2, ESP-Multisensor, Shelly, alexa-fhem, ...
FHEM PI2 Buster: HM-CFG-USB, 25x HM, ZWave-USB, 4x ZWave, EnOcean-PI, 3x EnOcean, Shelly, ha-bridge, ...
FHEM PI3 Buster (Test)

TomLee

#726
ZitatD.h. es gibt dann irgendwann ein neues Tamplate?
Oder wird das bestehende angepasst, weil es Shelly generell in der FW ab Version X so macht?

Wenn das Shelly generell so macht denk ich wird das Template angepasst.

Zitatwenn es ein Update gibt, dann muss ich die attrTemplate ...

Die aktuelle attrTemplateVersion sieht man (zumindest bei Bulbs) wenn man das entsprechende Template aus der Liste des setters attrTemplate wählt, musst ja nicht setzen nur auswählen.

ZitatWie ist es mit selbst gemachten Änderungen?
Notieren und wieder nachziehen (fürchte ich)?

Jep

Zitatist die "Darstellung" und "Steuerung" ähnlich wie hier?

Genau das gleiche nur halt andere Readings.

Beispiel Zigbee-Bulb, Farbe hab ich nicht:

defmod MQTT2_zigbee_bulb MQTT2_DEVICE zigbee_0x00158d0002fdc5d7
attr MQTT2_zigbee_bulb IODev MQTT2_Server
attr MQTT2_zigbee_bulb alexaName merkur
attr MQTT2_zigbee_bulb devStateIcon {zigbee2mqtt_devStateIcon255($name)}
attr MQTT2_zigbee_bulb devicetopic zigbee2mqtt/0x00158d0002fdc5d7
attr MQTT2_zigbee_bulb genericDeviceType light
attr MQTT2_zigbee_bulb group Kuechenflur
attr MQTT2_zigbee_bulb homebridgeMapping Brightness=brightness::brightness,maxValue=100,factor=0.39216,delay=true
attr MQTT2_zigbee_bulb icon light_control
attr MQTT2_zigbee_bulb imageLink /fhem/deviceimages/mqtt2/404006-404008-404004.jpg
attr MQTT2_zigbee_bulb model zigbee2mqtt_light_dimmer
attr MQTT2_zigbee_bulb readingList $DEVICETOPIC:.* { json2nameValue($EVENT) }
attr MQTT2_zigbee_bulb room MQTT2_DEVICE
attr MQTT2_zigbee_bulb setList on:noArg $DEVICETOPIC/set {"state":"ON","transition": 200}\
  off:noArg $DEVICETOPIC/set {"state":"OFF"}\
  brightness:colorpicker,BRI,0,5,255 $DEVICETOPIC/set {"state":"on","$EVTPART0":"$EVTPART1"}
attr MQTT2_zigbee_bulb setStateList on off
attr MQTT2_zigbee_bulb verbose 2
attr MQTT2_zigbee_bulb webCmd brightness
attr MQTT2_zigbee_bulb webCmdLabel Helligkeit\
:

setstate MQTT2_zigbee_bulb OFF
setstate MQTT2_zigbee_bulb 2021-05-23 15:56:50 IODev MQTT2_Server
setstate MQTT2_zigbee_bulb 2020-06-26 14:09:28 associatedWith MQTT2_zigbee_Bridge
setstate MQTT2_zigbee_bulb 2020-12-05 13:10:01 attrTemplateVersion 20200904
setstate MQTT2_zigbee_bulb 2021-05-28 10:11:48 brightness 254
setstate MQTT2_zigbee_bulb 2021-05-28 10:11:48 linkquality 36
setstate MQTT2_zigbee_bulb 2021-05-28 10:11:48 state OFF

MadMax-FHEM

Ok, danke (noch mal)!

Werde mal sehen, ob ich mit meiner vorhandenen Test-HW zigbee2mqtt zum Laufen kriege...

Mannmannmann immer diese vielen Möglichkeiten (mit fhem) ;)

Gruß, Joachim
FHEM PI3B+ Bullseye: HM-CFG-USB, 40x HM, ZWave-USB, 13x ZWave, EnOcean-PI, 15x EnOcean, HUE/deCONZ, CO2, ESP-Multisensor, Shelly, alexa-fhem, ...
FHEM PI2 Buster: HM-CFG-USB, 25x HM, ZWave-USB, 4x ZWave, EnOcean-PI, 3x EnOcean, Shelly, ha-bridge, ...
FHEM PI3 Buster (Test)

TomLee

Ist schon klar wie das Device jetzt aussieht, zeig aber trotzdem nochmal zum nachvollziehen eine Raw-Definition.

MadMax-FHEM

Zitat von: TomLee am 28 Mai 2021, 14:07:53
Ist schon klar wie das Device jetzt aussieht, zeig aber trotzdem nochmal zum nachvollziehen eine Raw-Definition.

Klar, here it comes (aber noch mit genericDeviceType und homebridgeMaping: ungenutzt/ungewollt und gesetztem event-on-change-reading):


defmod MQTT2_shellycolorbulb_8CAAB555E45D MQTT2_DEVICE shellycolorbulb_8CAAB555E45D
attr MQTT2_shellycolorbulb_8CAAB555E45D devStateIcon {my $onl = ReadingsVal($name,"online","false") eq "true"?"10px-kreis-gruen":"10px-kreis-rot";; my $light = ReadingsVal($name,"state","off");; my $cons = ReadingsVal($name,"power","unknown");; "<a href=\"http://".ReadingsVal($name,"ip","none")." \"target=\"_blank\">".FW_makeImage($onl)."</a> <a href=\"/fhem?cmd.dummy=set $name toggle&XHR=1\">".FW_makeImage($light)."</a><div>Verbrauch: $cons</div>"}
attr MQTT2_shellycolorbulb_8CAAB555E45D event-on-change-reading .*
attr MQTT2_shellycolorbulb_8CAAB555E45D genericDeviceType light
attr MQTT2_shellycolorbulb_8CAAB555E45D homebridgeMapping Brightness=brightness::brightness,maxValue=100,factor=0.39216,delay=true
attr MQTT2_shellycolorbulb_8CAAB555E45D icon light_control
attr MQTT2_shellycolorbulb_8CAAB555E45D jsonMap brightness:pct
attr MQTT2_shellycolorbulb_8CAAB555E45D model shellybulb
attr MQTT2_shellycolorbulb_8CAAB555E45D readingList shellies/shellycolorbulb-8CAAB555E45D/color/0/status:.* {json2nameValue($EVENT,'',$JSONMAP)}\
shellycolorbulb_8CAAB555E45D:shellies/shellycolorbulb-8CAAB555E45D/online:.* online\
shellycolorbulb_8CAAB555E45D:shellies/announce:.* { json2nameValue($EVENT) }\
shellycolorbulb_8CAAB555E45D:shellies/shellycolorbulb-8CAAB555E45D/announce:.* { json2nameValue($EVENT) }\
shellycolorbulb_8CAAB555E45D:shellies/shellycolorbulb-8CAAB555E45D/info:.* { json2nameValue($EVENT) }\
shellycolorbulb_8CAAB555E45D:shellies/shellycolorbulb-8CAAB555E45D/color/0:.* state\
shellycolorbulb_8CAAB555E45D:shellies/shellycolorbulb-8CAAB555E45D/light/0/power:.* light_0_power\
shellycolorbulb_8CAAB555E45D:shellies/shellycolorbulb-8CAAB555E45D/light/0/energy:.* light_0_energy
attr MQTT2_shellycolorbulb_8CAAB555E45D room MQTT2_DEVICE
attr MQTT2_shellycolorbulb_8CAAB555E45D setList off:noArg shellies/shellycolorbulb-8CAAB555E45D/color/0/command off\
  on:noArg shellies/shellycolorbulb-8CAAB555E45D/color/0/command on\
  pct:colorpicker,BRI,0,1,100 shellies/shellycolorbulb-8CAAB555E45D/color/0/set {"gain":"$EVTPART1","brightness":"$EVTPART1"}\
  pct_on:colorpicker,BRI,0,1,100 shellies/shellycolorbulb-8CAAB555E45D/color/0/set {"turn":"on","gain":"$EVTPART1","brightness":"$EVTPART1"}\
  ct:colorpicker,CT,3000,10,6500 {$EVTPART1=3000 if ($EVTPART1<3000);;"shellies/shellycolorbulb-8CAAB555E45D/color/0/set {\"mode\":\"white\",\"temp\":\"$EVTPART1\"}"}\
  ct_on:colorpicker,CT,3000,10,6500 {$EVTPART1=3000 if ($EVTPART1<3000);;"shellies/shellycolorbulb-8CAAB555E45D/color/0/set {\"turn\":\"on\",\"mode\":\"white\",\"temp\":\"$EVTPART1\"}"}\
  rgb:colorpicker,RGB {$EVTPART1=~/(..)(..)(..)/;;if($1 ne $2 || $2 ne $3){"shellies/shellycolorbulb-8CAAB555E45D/color/0/set {\"mode\":\"color\",\"gain\":\"100\",\"red\":".hex($1).",\"green\":".hex($2).",\"blue\":".hex($3)."}"}else{"shellies/shellycolorbulb-8CAAB555E45D/color/0/set {\"turn\":\"on\",\"mode\":\"white\",\"brightness\":".int(hex($1)/2.55)."}"}}\
  rgb_on:colorpicker,RGB {$EVTPART1=~/(..)(..)(..)/;;if($1 ne $2 || $2 ne $3){"shellies/shellycolorbulb-8CAAB555E45D/color/0/set {\"turn\":\"on\",\"mode\":\"color\",\"gain\":\"100\",\"red\":".hex($1).",\"green\":".hex($2).",\"blue\":".hex($3)."}"}else{"shellies/shellycolorbulb-8CAAB555E45D/color/0/set {\"turn\":\"on\",\"mode\":\"white\",\"brightness\":".int(hex($1)/2.55)."}"}}\
  x_update:noArg shellies/shellycolorbulb-8CAAB555E45D/command update_fw\
  x_mqttcom shellies/shellycolorbulb-8CAAB555E45D/command $EVTPART1
attr MQTT2_shellycolorbulb_8CAAB555E45D setStateList on off
attr MQTT2_shellycolorbulb_8CAAB555E45D userReadings ct:temp.* {ReadingsVal($name,"temp",3000)}, rgb:red.* {if(ReadingsVal($name,"mode","") eq "color"){sprintf("%02X%02X%02X", ReadingsVal($name,"red",99), ReadingsVal($name,"green",99), ReadingsVal($name,"blue",99))}else{my $a=sprintf("%02X",ReadingsVal($name,"brightness",0)*2.555);;"$a$a$a"}}
attr MQTT2_shellycolorbulb_8CAAB555E45D webCmd on:off:pct:ct:rgb

setstate MQTT2_shellycolorbulb_8CAAB555E45D on
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:37:19 IODev MQTT2Server
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 actions_stats_skipped 0
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 attrTemplateVersion 20200522 or prior
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-28 14:13:17 blue 0
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 16:18:53 brightness 11
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 cfg_changed_cnt 0
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 cloud_connected false
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 cloud_enabled false
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-28 14:06:46 ct 3000
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-28 14:13:17 effect 0
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:24:02 energy 1
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 fs_free 159385
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 fs_size 233681
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-28 14:12:47 fw_ver 20210429-095910/v1.10.4-g3f94cd7
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-28 14:13:17 gain 1
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-28 14:13:17 green 0
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-28 14:13:17 has_timer false
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 has_update false
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-28 14:12:47 id shellycolorbulb-8CAAB555E45D
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-28 14:12:47 ip 192.168.10.167
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-28 14:13:17 ison true
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-28 14:13:17 light_0_energy 0
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-28 14:13:17 light_0_power 1.08
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 lights_1_blue 0
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 lights_1_brightness 11
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 lights_1_effect 0
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 lights_1_gain 11
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 lights_1_green 0
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 lights_1_has_timer false
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 lights_1_ison true
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 lights_1_mode white
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 lights_1_red 255
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 lights_1_source http
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 lights_1_temp 3000
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 lights_1_timer_duration 0
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 lights_1_timer_remaining 0
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 lights_1_timer_started 0
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 lights_1_white 0
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-28 14:12:47 mac 8CAAB555E45D
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 meters_1_counters_1 1.378
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 meters_1_counters_2 1.378
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 meters_1_counters_3 1.378
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 meters_1_is_valid true
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 meters_1_power 1.38
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 meters_1_timestamp 1622126303
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 meters_1_total 24
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-28 14:13:17 mode white
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-28 14:12:47 model SHCB-1
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 mqtt_connected true
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-28 14:12:47 new_fw false
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-28 14:14:53 online false
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-28 14:13:17 pct 1
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 ping_check true
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:24:02 power 0.00
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 ram_free 37776
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 ram_total 50200
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-28 14:13:17 red 255
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-28 13:41:35 rgb 1C1C1C
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 serial 42
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-28 14:13:17 source mqtt
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-28 14:13:17 state on
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-28 14:13:17 temp 3000
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 time 14:38
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-28 14:13:17 timer_duration 0
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-28 14:13:17 timer_remaining 0
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-28 14:13:17 timer_started 0
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 unixtime 1622119103
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 update_has_update false
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 update_new_version
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 update_old_version 20210429-095910/v1.10.4-g3f94cd7
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 update_status unknown
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 uptime 1020
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-28 14:13:17 white 0
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 wifi_sta_connected true
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 wifi_sta_ip 192.168.10.167
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 wifi_sta_rssi -67
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 wifi_sta_ssid My-Network
setstate MQTT2_shellycolorbulb_8CAAB555E45D 2021-05-27 14:38:22 x_mqttcom set announce


Gruß, Joachim
FHEM PI3B+ Bullseye: HM-CFG-USB, 40x HM, ZWave-USB, 13x ZWave, EnOcean-PI, 15x EnOcean, HUE/deCONZ, CO2, ESP-Multisensor, Shelly, alexa-fhem, ...
FHEM PI2 Buster: HM-CFG-USB, 25x HM, ZWave-USB, 4x ZWave, EnOcean-PI, 3x EnOcean, Shelly, ha-bridge, ...
FHEM PI3 Buster (Test)

TomLee

#730
Das noch ein "unsauberes" Device du hast die Readings aus dem Json noch nicht gelöscht.

Am einfachsten ist es alle Readings zu löschen und dann einen Neustart des Shelly zu machen, danach sind alle nötigen Readings wieder da.

edit:

Achso den rL-Eintrag zu status hast auch gar nicht wie oben erwähnt ergänzt.

MadMax-FHEM

#731
?

Es gab doch nur ein "unsauberes" Reading: color_0?
Das habe ich gelöscht...

Und dann statt color_0 eben state?

Jetzt verstehe ich nicht was du meinst...

Also es hat so funktioniert wie ich wollte.
Gut das mit alle Readings löschen und neu "anlernen" kann ich machen.
Später, muss das Ding erst wieder rauskramen...

Ich stecke ja eigentlich in der Entscheidung: WLAN (Shelly) und da dann Shelly-Device oder MQTT2Device (aktuell also eher: MQTT2DEVICE :) ) oder ZigBee und da dann deCONZ und HUEBridge-Modul (hab ich schon) oder eben zigbee2mqtt und MQTTBridge/MQTT2DEVICE...

Gruß, Joachim
FHEM PI3B+ Bullseye: HM-CFG-USB, 40x HM, ZWave-USB, 13x ZWave, EnOcean-PI, 15x EnOcean, HUE/deCONZ, CO2, ESP-Multisensor, Shelly, alexa-fhem, ...
FHEM PI2 Buster: HM-CFG-USB, 25x HM, ZWave-USB, 4x ZWave, EnOcean-PI, 3x EnOcean, Shelly, ha-bridge, ...
FHEM PI3 Buster (Test)

TomLee

Zitat von: TomLee am 28 Mai 2021, 13:30:43
und das war so gemeint:

attr MQTT2_shellyrgbw2_80E656 readingList shellies/shellyrgbw2-80E656/color/0/status:.* {}

Die Readingsmusst danach löschen, von alleine verschwinden die nicht.

ZitatJetzt verstehe ich nicht was du meinst...

Ich habs so verstanden das die Readings die hier in dem status-Zweig :

attr MQTT2_shellycolorbulb_8CAAB555E45D readingList shellies/shellycolorbulb-8CAAB555E45D/color/0/status:.* {json2nameValue($EVENT,'',$JSONMAP)}

mit json2nameValue aus dem JSON erstellt werden unnötig sind oder nicht ?
Beta-User würd jetzt sagen die werden mit {} einfach ins Nirvana befördert.


MadMax-FHEM

Zitat von: TomLee am 28 Mai 2021, 15:14:03
Ich habs so verstanden das die Readings die hier in dem status-Zweig :

attr MQTT2_shellycolorbulb_8CAAB555E45D readingList shellies/shellycolorbulb-8CAAB555E45D/color/0/status:.* {json2nameValue($EVENT,'',$JSONMAP)}

mit json2nameValue aus dem JSON erstellt werden unnötig sind oder nicht ?
Beta-User würd jetzt sagen die werden mit {} einfach ins Nirvana befördert.

Naja, ich habe alles aus dem Template genommen (das status-Zeugs stammt da her / ob das "notwendig"/"sinnvoll" ist: keine Ahnung ;)  ), dann eben das mit state gemacht, also color_0 -> state und gut.
Das color_0 Reading habe ich gelöscht.

Mehr nicht...
...und für mich funktioniert es wie es soll, bzw. ich es will/wollte :)

Gruß, Joachim
FHEM PI3B+ Bullseye: HM-CFG-USB, 40x HM, ZWave-USB, 13x ZWave, EnOcean-PI, 15x EnOcean, HUE/deCONZ, CO2, ESP-Multisensor, Shelly, alexa-fhem, ...
FHEM PI2 Buster: HM-CFG-USB, 25x HM, ZWave-USB, 4x ZWave, EnOcean-PI, 3x EnOcean, Shelly, ha-bridge, ...
FHEM PI3 Buster (Test)

TomLee

ZitatMehr nicht...
...und für mich funktioniert es wie es soll, bzw. ich es will/wollte :)

Wird ja auch weiterhin funktionieren ohne Einschränkungen, das Device wird nur sauberer/übersichtlicher.

Ich kann dich ja nicht zwingen, aber probiers halt mal aus, schätze dann fällt der Groschen.