Der-Smarte-Wlansteckdose-Tasmota-Und-Co.-Thread

Begonnen von schwatter, 13 August 2018, 18:23:50

Vorheriges Thema - Nächstes Thema

Udomatic

Besten Dank Otto für die Tipps! Morgen beim zweiten sollte es dann ja schneller gehen :-)

Funktioniert nun erstmal alles. Schaltet per Web und eben auch FHEM inkl. der Readings!  8)
2x Raspberry 3B+, 1x Raspberry 4, Signalduino 433 (Somfy), CUL_HM (HM-MOD-RPI-PCB), MQTT, Hue, ConBee 2, Sonos, AVM DECT, Netatmo, eufy, Nuki,

CarstenF

Hallo zusammen und schönen Feiertag,
ich sehe gerade den Wald vor lauter Bäumen nicht mehr. Ich ziehe gerade mit meinen Geräten um auf einen CUBIEtruck. Vorher hatte ich auf dem Raspi einen separaten MQTT Server laufen. Jetzt will ich das über mqtt2, Fhem - Integriert lösen.
Ich habe eine. Gosund SP1 mit Tasmota geflasht in FHEM eingebunden. Ich erhalte auch Werte der Steckdose. Alles prima. Ich bekomme es aber mit dem Schalten hier nicht hin. Als mqtt Device in FHEM lief alles problemlos. Habe jetzt schon soviel gesucht und ausprobiert, das ich vermutlich den Faden verloren habe.
Könnte mal jemand aufs List vom Device schauen, und mir sagen, wo es ggfls hakt?
Internals:
   CID        DVES_22EC91
   DEF        DVES_22EC91
   DEVICETOPIC MQTT2_DVES_22EC91
   FUUID      5dbc140a-f33f-4296-b7a3-0adc110b72871ad3
   FVERSION   10_MQTT2_DEVICE.pm:0.197090/2019-06-25
   IODev      MQTT2_FHEM_Server
   LASTInputDev MQTT2_FHEM_Server
   MQTT2_FHEM_Server_MSGCNT 29
   MQTT2_FHEM_Server_TIME 2019-11-01 14:08:13
   MSGCNT     29
   NAME       MQTT2_DVES_22EC91
   NR         501
   STATE      on
   TYPE       MQTT2_DEVICE
   Helper:
     DBLOG:
       state:
         DbLog:
           TIME       1572613685.23823
           VALUE      on
   READINGS:
     2019-11-01 13:22:00   FallbackTopic   DVES_22EC91
     2019-11-01 13:22:00   GroupTopic      sonoffs
     2019-11-01 13:22:00   Hostname        %sonoff2%-3217
     2019-11-01 13:22:00   IPAddress       192.168.1.109
     2019-11-01 13:55:44   LWT             online
     2019-11-01 13:22:00   Module          BlitzWolf SHP2
     2019-11-01 13:55:44   POWER           
     2019-11-01 13:25:57   RESULT_POWER    on
     2019-11-01 13:22:00   RestartReason   Power on
     2019-11-01 14:08:13   SENSOR_ENERGY_Current 0.105
     2019-11-01 14:08:13   SENSOR_ENERGY_Factor 0.33
     2019-11-01 14:03:25   SENSOR_ENERGY_Period 0.740
     2019-11-01 14:08:13   SENSOR_ENERGY_Power 8.500
     2019-11-01 14:08:13   SENSOR_ENERGY_Today 0.007
     2019-11-01 14:08:13   SENSOR_ENERGY_Total 0.007
     2019-11-01 14:08:13   SENSOR_ENERGY_Voltage 242
     2019-11-01 14:08:13   SENSOR_ENERGY_Yesterday 0.364
     2019-11-01 14:08:13   SENSOR_Time     2019-11-01T14:08:13
     2019-11-01 14:03:25   STATE_POWER     on
     2019-11-01 14:03:25   STATE_Time      2019-11-01T14:03:25
     2019-11-01 14:03:25   STATE_Uptime    0T00:41:29
     2019-11-01 14:03:25   STATE_Vcc       3.152
     2019-11-01 14:03:25   STATE_Wifi_AP   1
     2019-11-01 14:03:25   STATE_Wifi_APMac F0:9F:C2:31:58:17
     2019-11-01 14:03:25   STATE_Wifi_RSSI 100
     2019-11-01 14:03:25   STATE_Wifi_SSId Ubiqiti
     2019-11-01 14:02:00   Time            2019-11-01T14:02:00
     2019-11-01 14:02:00   Uptime          0T00:40:04
     2019-11-01 13:22:00   Version         6.2.0
     2019-11-01 13:22:00   WebServerMode   Admin
     2019-11-01 14:08:05   state           on
Attributes:
   IODev      MQTT2_FHEM_Server
   devStateIcon on:rc_GREEN:off off:rc_RED:on offline:rc_BLUE:off
   event-on-change-reading .*
   icon       message_socket
   readingList DVES_22EC91:tele/%sonoff2%/LWT:.* LWT
DVES_22EC91:stat/%sonoff2%/RESULT:.* { json2nameValue($EVENT, 'RESULT_', $JSONMAP) }
DVES_22EC91:stat/%sonoff2%/POWER:.* POWER
DVES_22EC91:tele/%sonoff2%/STATE:.* { json2nameValue($EVENT, 'STATE_', $JSONMAP) }
DVES_22EC91:tele/%sonoff2%/SENSOR:.* { json2nameValue($EVENT, 'SENSOR_', $JSONMAP) }
DVES_22EC91:tele/%sonoff2%/UPTIME:.* { json2nameValue($EVENT) }
DVES_22EC91:tele/%sonoff2%/INFO1:.* { json2nameValue($EVENT) }
DVES_22EC91:tele/%sonoff2%/INFO2:.* { json2nameValue($EVENT) }
DVES_22EC91:tele/%sonoff2%/INFO3:.* { json2nameValue($EVENT) }
DVES_22EC91:cmnd/%sonoff2%/POWER:.* POWER
   room       MQTT2_DEVICE
   setList    on cmnd/sonoff2/POWER on
off cmnd/sonoff2/POWER off


Wie gesagt. Die Werte kommen in FHEM an. Nur die Schalterei funktioniert nicht. (aus FHEM heraus) Übers die GUI der Dose läuft alles
Danke und Gruß Carsten
Raspberry Pi4
CUL 868, CUL 433, LaCrosse Gateway, Zigbeetomqtt2, HUE, Homematic
Max-Cube umgeflasht
MAX!, FhemtoFhem, Homebridge, FhemConnector, IR_Gateway und sonst auch noch allerlei Spielzeug....

Otto123

Feiertag war gestern (in Sachsen) ;)set MQTT2_DVES_22EC91 attrTemplate tasmota_basic
sollte helfen :)

Gruß Otto
Viele Grüße aus Leipzig  ⇉  nächster Stammtisch an der Lindennaundorfer Mühle
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7590,WRT3200ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266,MQTT,Zigbee,deconz

CarstenF

Leider nicht. Das hatte ich auch schon durch. Hatte ich nicht erwähnt. Habe es jetzt aber nochmal gemacht. Es kommen auch Werte, aber schalten klappt dennoch nicht.

hier jetzt das aktuelle List
Internals:
   CID        DVES_22EC91
   DEF        DVES_22EC91
   DEVICETOPIC MQTT2_DVES_22EC91
   FUUID      5dbc140a-f33f-4296-b7a3-0adc110b72871ad3
   FVERSION   10_MQTT2_DEVICE.pm:0.197090/2019-06-25
   IODev      MQTT2_FHEM_Server
   LASTInputDev MQTT2_FHEM_Server
   MQTT2_FHEM_Server_MSGCNT 101
   MQTT2_FHEM_Server_TIME 2019-11-01 14:30:51
   MSGCNT     101
   NAME       MQTT2_DVES_22EC91
   NR         501
   STATE      set_off
   TYPE       MQTT2_DEVICE
   Helper:
     DBLOG:
       ENERGY_Current:
         DbLog:
           TIME       1572615036.66482
           VALUE      0.000
       ENERGY_Power:
         DbLog:
           TIME       1572615051.54835
           VALUE      8.800
       state:
         DbLog:
           TIME       1572615059.24096
           VALUE      set_off
   OLDREADINGS:
   READINGS:
     2019-11-01 14:30:51   ENERGY_Current  0.000
     2019-11-01 14:30:51   ENERGY_Factor   0.00
     2019-11-01 14:30:51   ENERGY_Power    8.800
     2019-11-01 14:30:51   ENERGY_Today    0.010
     2019-11-01 14:30:51   ENERGY_Total    0.010
     2019-11-01 14:30:51   ENERGY_Voltage  241
     2019-11-01 14:30:51   ENERGY_Yesterday 0.364
     2019-11-01 14:30:51   Time            2019-11-01T14:30:51
     2019-11-01 14:30:59   state           set_off
Attributes:
   IODev      MQTT2_FHEM_Server
   autocreate 0
   devStateIcon on:rc_GREEN:off off:rc_RED:on offline:rc_BLUE:off
   event-on-change-reading .*
   icon       message_socket
   model      A_01a_tasmota_basic_state_power1
   readingList tele/%sonoff2%/LWT:.* LWT
  tele/%sonoff2%/STATE:.* { json2nameValue($EVENT) }
  tele/%sonoff2%/SENSOR:.* { json2nameValue($EVENT) }
  tele/%sonoff2%/INFO.:.* { json2nameValue($EVENT) }
  stat/%sonoff2%/RESULT:.* { json2nameValue($EVENT) }
   room       MQTT2_DEVICE
   setList    off:noArg    cmnd/%sonoff2%/POWER1 0
  on:noArg     cmnd/%sonoff2%/POWER1 1
  toggle:noArg cmnd/%sonoff2%/POWER1 2
   setStateList on off toggle
   stateFormat POWER1


Carsten
Raspberry Pi4
CUL 868, CUL 433, LaCrosse Gateway, Zigbeetomqtt2, HUE, Homematic
Max-Cube umgeflasht
MAX!, FhemtoFhem, Homebridge, FhemConnector, IR_Gateway und sonst auch noch allerlei Spielzeug....

PeMue

Zitat von: Otto123 am 01 November 2019, 14:22:19
Feiertag war gestern (in Sachsen) ;)
Da haben auch Leute irgendwelche Zettel an Kirchen genagelt  ;), oh, sorry, das war ja Sachsen-Anhalt  :o

Gruß Peter
RPi3Bv1.2 rpiaddon 1.66 6.0 1xHM-CC-RT-DN 1.4 1xHM-TC-IT-WM 1.1 2xHB-UW-Sen-THPL-O 0.15 1x-I 0.14OTAU  1xCUNO2 1.67 2xEM1000WZ 2xUniroll 1xASH2200 3xHMS100T(F) 1xRFXtrx 90 1xWT440H 3xTFA30.3150 5xFA21
RPi1Bv2 LCDCSM 1.63 5.8 2xMAX HKT 1xMAX RT V200KW1 Heizung Wasser

Otto123

#710
das hier sieht für mich komisch aus: %sonoff2%
Da sollte der echte Topic stehen ....

Eventuell musst Du mal noch etwas warten, da waren noch nicht alle Werte da. Und autocreate nochmal auf 1 stellen :)
Viele Grüße aus Leipzig  ⇉  nächster Stammtisch an der Lindennaundorfer Mühle
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7590,WRT3200ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266,MQTT,Zigbee,deconz

CarstenF

[Gelöst] Die Prozentzeichen waren es. Danke Dir. In der vorherigen Konfiguration haben die keine Probleme gemacht.
Gruß Carsten
Raspberry Pi4
CUL 868, CUL 433, LaCrosse Gateway, Zigbeetomqtt2, HUE, Homematic
Max-Cube umgeflasht
MAX!, FhemtoFhem, Homebridge, FhemConnector, IR_Gateway und sonst auch noch allerlei Spielzeug....

Udomatic

#712
Gibt es eigentlich ein Homebridge Mapping, um Verbrauchsdaten in Homekit anzeigen zu können?
Wenn ja, was wäre der richtige generic device type?

Dann tritt bei mir noch das Problem auf, dass der Shelly Channel 2 den aktuellen Verbrauch nicht anzeigt.

Channel 1


Internals:
   CFGFN     
   CID        shellyswitch25_B89E2D
   DEF        shellyswitch25_B89E2D
   DEVICETOPIC Kuechentisch
   FUUID      5dc3307f-f33f-45fc-45ae-f77f61377d21c341
   IODev      mqtt2s
   LASTInputDev mqtt2s
   MSGCNT     20391
   NAME       Kuechentisch
   NR         12842
   STATE      off
   TYPE       MQTT2_DEVICE
   mqtt2s_MSGCNT 20391
   mqtt2s_TIME 2019-11-08 09:33:33
   .attraggr:
   .attrminint:
   OLDREADINGS:
   READINGS:
     2019-11-07 09:53:19   fw_ver          20190822-102551/v1.5.3@1c2d4dd5
     2019-11-07 09:53:19   id              shellyswitch25-B89E2D
     2019-11-08 09:33:33   input_0         1
     2019-11-07 09:53:19   ip              192.168.178.51
     2019-11-07 22:59:02   longpush_0      1
     2019-11-07 09:53:19   mac             98F4ABB89E2D
     2019-11-07 09:53:19   new_fw          false
     2019-11-07 09:53:19   online          true
     2019-11-08 09:33:33   overtemperature 0
     2019-11-08 09:33:33   relay_0         off
     2019-11-08 09:33:33   relay_0_energy  1771
     2019-11-08 09:33:33   relay_0_power   0.00
     2019-11-08 09:33:33   state           off
     2019-11-08 09:33:33   temperature     51.61
     2019-11-08 09:33:33   temperature_f   124.90
Attributes:
   IODev      mqtt2s
   alexaName  Kuechentisch
   alias      Kuechentisch
   comment    Channel 1 for MQTT2_shellyswitch25_B89E2D, see also MQTT2_shellyswitch25_B89E2D_CH2
   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,"relay_0_power","unknown");; my $temp = ReadingsVal($name,"temperature","-100");;"<div><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> Aktuell: $cons W / Temp.: $temp °C</div>"}
   getList    power:noArg shellies/shellyswitch25-B89E2D/relay/power power
   group      Licht
   model      shelly25_split
   readingList shellies/shellyswitch25-B89E2D/relay/0:.* state
  shellies/shellyswitch25-B89E2D/relay/0:.* relay_0
  shellies/shellyswitch25-B89E2D/input/0:.* input_0
  shellies/shellyswitch25-B89E2D/online:.* online
  shellies/shellyswitch25-B89E2D/announce:.* { json2nameValue($EVENT) }
  shellies/announce:.* { $EVENT =~ m,..id...shellyswitch25-B89E2D...mac.*, ? json2nameValue($EVENT) : undef }
  shellies/shellyswitch25-B89E2D/relay/0/power:.* relay_0_power
  shellies/shellyswitch25-B89E2D/relay/0/energy:.* relay_0_energy
  shellies/shellyswitch25-B89E2D/temperature:.* temperature
  shellies/shellyswitch25-B89E2D/overtemperature:.* overtemperature
  shellies/shellyswitch25-B89E2D/longpush/0:.* longpush_0
shellyswitch25_B89E2D:shellies/shellyswitch25-B89E2D/temperature_f:.* temperature_f
   room       Alexa,Homekit,Kueche,MQTT2_DEVICE
   setList    off:noArg shellies/shellyswitch25-B89E2D/relay/0/command off
  on:noArg shellies/shellyswitch25-B89E2D/relay/0/command on
  x_update:noArg shellies/shellyswitch25-B89E2D/command update_fw
  x_mqttcom shellies/shellyswitch25-B89E2D/command $EVTPART1
   siriName   Kuechentisch


Channel 2


Internals:
   CFGFN     
   CID        shellyswitch25_B89E2D
   DEF        shellyswitch25_B89E2D
   DEVICETOPIC Arbeitsplatte
   FUUID      5dc33108-f33f-45fc-bd7b-5e6fe3ba23d97b78
   IODev      mqtt2s
   LASTInputDev mqtt2s
   MSGCNT     20363
   NAME       Arbeitsplatte
   NR         12862
   STATE      off
   TYPE       MQTT2_DEVICE
   mqtt2s_MSGCNT 20363
   mqtt2s_TIME 2019-11-08 09:34:33
   .attraggr:
   .attrminint:
   READINGS:
     2019-11-06 22:10:48   associatedWith  Kuechentisch
     2019-11-07 09:53:19   fw_ver          20190822-102551/v1.5.3@1c2d4dd5
     2019-11-07 09:53:19   id              shellyswitch25-B89E2D
     2019-11-08 09:34:33   input_1         0
     2019-11-07 09:53:19   ip              192.168.178.51
     2019-11-07 23:36:42   longpush_1      1
     2019-11-07 09:53:19   mac             98F4ABB89E2D
     2019-11-07 09:53:19   new_fw          false
     2019-11-07 09:53:19   online          true
     2019-11-08 09:34:33   overtemperature 0
     2019-11-08 09:34:33   relay_1         off
     2019-11-08 09:34:33   relay_1_energy  2203
     2019-11-08 09:34:33   relay_1_power   0.00
     2019-11-08 09:34:33   state           off
     2019-11-08 09:34:33   temperature     51.71
     2019-11-08 09:34:33   temperature_f   125.07
Attributes:
   IODev      mqtt2s
   alexaName  Arbeitsplatte
   alias      Arbeitsplatte
   comment    Channel 2 for MQTT2_shellyswitch25_B89E2D
   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,"relay_0_power","unknown");; my $temp = ReadingsVal($name,"temperature","-100");;"<div><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> Aktuell: $cons W / Temp.: $temp °C</div>"}
   getList    power:noArg shellies/shellyswitch25-B89E2D/relay/power power
   group      Licht
   model      shellyplug
   readingList shellies/shellyswitch25-B89E2D/relay/1:.* state
  shellies/shellyswitch25-B89E2D/relay/1:.* relay_1
  shellies/shellyswitch25-B89E2D/input/1:.* input_1
  shellies/shellyswitch25-B89E2D/online:.* online
  shellies/shellyswitch25-B89E2D/announce:.* { json2nameValue($EVENT) }
  shellies/announce:.* { $EVENT =~ m,..id...shellyswitch25-B89E2D...mac.*, ? json2nameValue($EVENT) : undef }
  shellies/shellyswitch25-B89E2D/relay/1/power:.* relay_1_power
  shellies/shellyswitch25-B89E2D/relay/1/energy:.* relay_1_energy
  shellies/shellyswitch25-B89E2D/temperature:.* temperature
  shellies/shellyswitch25-B89E2D/overtemperature:.* overtemperature
  shellies/shellyswitch25-B89E2D/longpush/1:.* longpush_1
shellyswitch25_B89E2D:shellies/shellyswitch25-B89E2D/temperature_f:.* temperature_f
   room       Alexa,Homekit,Kueche,MQTT2_DEVICE
   setList    off:noArg shellies/shellyswitch25-B89E2D/relay/1/command off
  on:noArg shellies/shellyswitch25-B89E2D/relay/1/command on
   siriName   Arbeitsplatte


Wenn ich allerdings die Variable im devStateIcon anpassen und die 0 durch 1 ersetze

my $cons = ReadingsVal($name,"relay_0_power","unknown")

ändern sich beide Werte auf "Unknow" in FHEM Web

Ich verstehe aber auch den kompletten Code im devStateIcon nicht.

Kann mir jemand helfen das zu lösen?

Vielen Dank vorab!
2x Raspberry 3B+, 1x Raspberry 4, Signalduino 433 (Somfy), CUL_HM (HM-MOD-RPI-PCB), MQTT, Hue, ConBee 2, Sonos, AVM DECT, Netatmo, eufy, Nuki,

TomLee

Hallo,

ZitatGibt es eigentlich ein Homebridge Mapping, um Verbrauchsdaten in Homekit anzeigen zu können?

In Eve bekommst den aktuellen Verbrauch für Channel 1 mit

attr Kuechentisch homebridgeMapping Power=relay_0_power,name=power,format=FLOAT

angezeigt, für Channel 2 mit

attr Arbeitsplatte homebridgeMapping Power=relay_1_power,name=power,format=FLOAT

ein genericDeviceType brauchst gar nicht vergeben wird auch so erkannt.




ZitatWenn ich allerdings die Variable im devStateIcon anpassen und die 0 durch 1 ersetze...

Sollte eigentlich so passen, zeig mal ein List von dem 2. Kanal was jetzt genau in devStateIcon drin steht, dir muss irgend ein Fehler unterlaufen sein.

Gruß

Thomas

Udomatic

Zitat von: TomLee am 08 November 2019, 21:46:52
Sollte eigentlich so passen, zeig mal ein List von dem 2. Kanal was jetzt genau in devStateIcon drin steht, dir muss irgend ein Fehler unterlaufen sein.

Gruß

Thomas

Hallo Thomas,

danke für die Mappings, werde ich gleich mal testen.

Nach dem autocreate des ersten Channels habe ich das Template shelly25_split angewendet und nichts weiter am Code verändert.

Das ist das List des zweiten Channels



Internals:
   CFGFN     
   CID        shellyswitch25_B89E2D
   DEF        shellyswitch25_B89E2D
   DEVICETOPIC Arbeitsplatte
   FUUID      5dc33108-f33f-45fc-bd7b-5e6fe3ba23d97b78
   IODev      mqtt2s
   LASTInputDev mqtt2s
   MSGCNT     31615
   NAME       Arbeitsplatte
   NR         12862
   STATE      off
   TYPE       MQTT2_DEVICE
   mqtt2s_MSGCNT 31615
   mqtt2s_TIME 2019-11-08 22:58:00
   .attraggr:
   .attrminint:
   READINGS:
     2019-11-06 22:10:48   associatedWith  Kuechentisch
     2019-11-08 16:53:28   fw_ver          20190822-102551/v1.5.3@1c2d4dd5
     2019-11-08 16:53:28   id              shellyswitch25-B89E2D
     2019-11-08 22:58:00   input_1         0
     2019-11-08 16:53:28   ip              192.168.178.51
     2019-11-08 22:49:55   longpush_1      1
     2019-11-08 16:53:28   mac             98F4ABB89E2D
     2019-11-08 16:53:28   new_fw          false
     2019-11-08 16:53:28   online          true
     2019-11-08 22:58:00   overtemperature 0
     2019-11-08 22:58:00   relay_1         off
     2019-11-08 22:58:00   relay_1_energy  2468
     2019-11-08 22:58:00   relay_1_power   0.00
     2019-11-08 22:58:00   state           off
     2019-11-08 22:58:00   temperature     52.28
     2019-11-08 22:58:00   temperature_f   126.11
Attributes:
   IODev      mqtt2s
   alexaName  Arbeitsplatte
   alias      Arbeitsplatte
   comment    Channel 2 for MQTT2_shellyswitch25_B89E2D
   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,"relay_0_power","unknown");; my $temp = ReadingsVal($name,"temperature","-100");;"<div><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> Aktuell: $cons W / Temp.: $temp °C</div>"}
   getList    power:noArg shellies/shellyswitch25-B89E2D/relay/power power
   group      Licht
   homebridgeMapping Power=relay_1_power,name=power,format=FLOAT
   model      shellyplug
   readingList shellies/shellyswitch25-B89E2D/relay/1:.* state
  shellies/shellyswitch25-B89E2D/relay/1:.* relay_1
  shellies/shellyswitch25-B89E2D/input/1:.* input_1
  shellies/shellyswitch25-B89E2D/online:.* online
  shellies/shellyswitch25-B89E2D/announce:.* { json2nameValue($EVENT) }
  shellies/announce:.* { $EVENT =~ m,..id...shellyswitch25-B89E2D...mac.*, ? json2nameValue($EVENT) : undef }
  shellies/shellyswitch25-B89E2D/relay/1/power:.* relay_1_power
  shellies/shellyswitch25-B89E2D/relay/1/energy:.* relay_1_energy
  shellies/shellyswitch25-B89E2D/temperature:.* temperature
  shellies/shellyswitch25-B89E2D/overtemperature:.* overtemperature
  shellies/shellyswitch25-B89E2D/longpush/1:.* longpush_1
shellyswitch25_B89E2D:shellies/shellyswitch25-B89E2D/temperature_f:.* temperature_f
   room       Alexa,Homekit,Kueche,MQTT2_DEVICE
   setList    off:noArg shellies/shellyswitch25-B89E2D/relay/1/command off
  on:noArg shellies/shellyswitch25-B89E2D/relay/1/command on


Fällt dir was auf?

Gruß
Udo
2x Raspberry 3B+, 1x Raspberry 4, Signalduino 433 (Somfy), CUL_HM (HM-MOD-RPI-PCB), MQTT, Hue, ConBee 2, Sonos, AVM DECT, Netatmo, eufy, Nuki,

TomLee

Na und jetzt so wie du schon sagtest die 0 durch eine 1 ersetzen.

ZitatReadingsVal($name,"relay_0_power","unknown")

Da dürfte kein unknown zurückkommen.

Udomatic

Zitat von: TomLee am 08 November 2019, 23:22:26
Na und jetzt so wie du schon sagtest die 0 durch eine 1 ersetzen.

Da dürfte kein unknown zurückkommen.

Danke fürs drüber schauen und vor allem für die Homebridge Mappings. Funktioniert jetzt beides wie gewünscht.
Scheinbar habe ich beim ersten mal etwas falsch gemacht.

Was mir auch noch nicht so ganz klar ist, was das Reading ENERGY_Factor bedeutet? Wie genau findet das Anwendung?
Da habe ich in der comand ref nichts gefunden zu.
2x Raspberry 3B+, 1x Raspberry 4, Signalduino 433 (Somfy), CUL_HM (HM-MOD-RPI-PCB), MQTT, Hue, ConBee 2, Sonos, AVM DECT, Netatmo, eufy, Nuki,

jnewton957

Heute beginnen ja die Black-Friday-Tage.

Welche WLAN Steckdose wäre denn zu empfehlen und lässt sich "einfach" einbinden ?

TECKIN 16A 4000W Modellnummer: SS42 WLAN Steckdose Outdoor
FHEM6.2 auf Pi5
V 1.66 nanoCUL 433 (IT)
V 1.66 nanoCUL868 (HM)
sqlite3 LogDb
ELRO AB440, DECT200,  TFA30.3125, esp8266, HM, TabletUI, IR-Schreiblesekopf (Udo),tibber Pulse, Kostal Pico, cfos Wallbox, Modbus TCP

Udomatic

#718
Zitat von: jnewton957 am 22 November 2019, 07:40:06
Heute beginnen ja die Black-Friday-Tage.

Welche WLAN Steckdose wäre denn zu empfehlen und lässt sich "einfach" einbinden ?

TECKIN 16A 4000W Modellnummer: SS42 WLAN Steckdose Outdoor

Vielleicht, kannst du dich an dieser Liste orientieren und schauen, welche Geräte zu flashen sind und dann abwarten, ob dafür Angebote kommen:
https://github.com/arendst/Tasmota/wiki/supported-devices


Gruß
Udo
2x Raspberry 3B+, 1x Raspberry 4, Signalduino 433 (Somfy), CUL_HM (HM-MOD-RPI-PCB), MQTT, Hue, ConBee 2, Sonos, AVM DECT, Netatmo, eufy, Nuki,