[gelöst] DOIF mit wildcards im Set teil

Begonnen von DasQ, 01 Februar 2024, 10:05:30

Vorheriges Thema - Nächstes Thema

DasQ

hi,

durch zufall ist mir gerade eben erst aufgefallen, das seit bald ner kleinen ewigkeit, jede nacht etliche fehlermeldung raus haut und ich habs nicht bemerkt. grundsätzlich funktioniert das doif, nur eben diese unschönen fehler im log. (man sollte gelegentlich auch die logs vom vortag anschauen vorallen wenn man wie ich erst um 23:59 schaltet ...omg ::)

und zwar schalte ich im haus einige gosund mehrfachsteckdosen gleichzeitig aus. da die fast gleichlautende namen haben, pack ich die devices mit einem wildcards an. das klappt auch so weit nur vermutlich hab ich ein riesen hund bei den arguments. kein plan warum das funktioniert und wie ich die fehlermeldung weg bekomm.

das doif heist nacht aus. und schaut so aus

list
Internals:
   DEF        ([23:59]) (set MQTT2_TasmotaNouv.* off, set MQTT2_obk.* POWER5 OFF, set GOSUND_P.* POWER1 off, set GOSUND_P.* POWER2 off, set GOSUND_P.* POWER3 off)
DOELSEIF ([06:00]) (set MQTT2_TasmotaNouv.* on)
   FUUID      635e7a27-f33f-5aff-bd66-82bf74f1a2b9e43c
   MODEL      FHEM
   NAME       DoIfNachtAus
   NOTIFYDEV  global
   NR         73
   NTFY_ORDER 50-DoIfNachtAus
   STATE      cmd_2
   TYPE       DOIF
   VERSION    27740 2023-07-10 09:31:11
   eventCount 21
   READINGS:
     2024-02-01 09:56:03   cmd             2
     2024-02-01 09:56:03   cmd_event       set_cmd_2
     2024-02-01 09:56:03   cmd_nr          2
     2024-02-01 09:55:09   mode            enabled
     2024-02-01 09:56:03   state           cmd_2
     2024-02-01 09:55:09   timer_01_c01    01.02.2024 23:59:00
     2024-02-01 09:55:09   timer_02_c02    02.02.2024 06:00:00
   Regex:
     accu:
     bar:
     barAvg:
     collect:
   attr:
     cmdState:
     wait:
     waitdel:
   condition:
     0          ::DOIF_time_once($hash,0,$wday)
     1          ::DOIF_time_once($hash,1,$wday)
   days:
   do:
     0:
       0          set MQTT2_TasmotaNouv.* off, set MQTT2_obk.* POWER5 OFF, set GOSUND_P.* POWER1 off, set GOSUND_P.* POWER2 off, set GOSUND_P.* POWER3 off
     1:
       0          set MQTT2_TasmotaNouv.* on
     2:
   helper:
     NOTIFYDEV  global
     globalinit 1
     last_timer 2
     sleeptimer -1
     DOIF_eventa:
       cmd_nr: 2
       cmd: 2
       cmd_event: set_cmd_2
       cmd_2
     DOIF_eventas:
       cmd_nr: 2
       cmd: 2
       cmd_event: set_cmd_2
       state: cmd_2
   intervalfunc:
   localtime:
     0          1706828340
     1          1706850000
   realtime:
     0          23:59:00
     1          06:00:00
   time:
     0          23:59:00
     1          06:00:00
   timeCond:
     0          0
     1          1
   timer:
     0          0
     1          0
   timers:
     0           0
     1           1
   triggertime:
     1706828340:
       localtime  1706828340
       hash:
     1706850000:
       localtime  1706850000
       hash:
   uiState:
   uiTable:
Attributes:
   DbLogExclude .*
   room       Fhem
   sortby     9


2024.02.01 09:42:40 3: MQTT2_DEVICE set GOSUND_P1_1 POWER3 on
2024.02.01 09:42:40 3: MQTT2_DEVICE set GOSUND_P1_2 POWER3 on
2024.02.01 09:42:40 3: MQTT2_DEVICE set GOSUND_P1_3 POWER3 on
2024.02.01 09:42:40 3: MQTT2_DEVICE set GOSUND_P1_4 POWER3 on
2024.02.01 09:42:40 2: DoIfNachtAus:  set GOSUND_P.* POWER3 on: Unknown argument POWER3, choose one of off:noArg on:noArg toggle:noArg on-for-timer off-till-overnight off-for-timer on-till blink off-till intervals on-till-overnight attrTemplate:?,General_Info,MQTT2_CLIENT_general_bridge,MQTT2_IO_ignoreRegexp_basic,MQTT2_IO_ignoreRegexp_tasmota,MQTT2_IO_ignoreRegexp_shelly,MQTT2_IO_ignoreRegexp_homeassistant,speechcontrol_general_naming_master_template,tasmota_basic,tasmota_basic_state_power1,tasmota_1ch+motion+SI7021,tasmota_POW,tasmota_POW_USB_split,tasmota_plug_with_rgbw_split,tasmota_plug_with_rgb_split,tasmota_ir,tasmota_rf,tasmota_rf_keys_example,tasmota_use_DS18x20_id,tasmota_zigbee2tasmota_bridge,tasmota_clear_readings_reset_readingsList_and_reboot,tasmota_set_lowercase_texts_and_state1,tasmota_set_uppercase_texts_and_state1,tasmota_set_power1_state_to_power,tasmota_2channel_split,tasmota_2ch_unified,tasmota_2channel_split_energy,tasmota_NSPanel_split,tasmota_2ch_shutter_invert_1,tasmota_2ch_shutter_invert_0,tasmota_4ch_two_shutters_invert_0,tasmota_2ch_shutter_venetian_invert_0,tasmota_3channel_input_shelly_i3,tasmota_4channel_input_shelly_i4,tasmota_4channel_split,tasmota_3socketUSB_split,tasmota_4ch_unified_basic_text,tasmota_4ch_unified_icon,tasmota_8ch_unified_icon,tasmota_8channel_split,tasmota_rgb_led_controller,tasmota_rgbw_led,tasmota_rgbcct_light,tasmota_cct_led,tasmota_TuyaMCU_dimmer,tasmota_window_sensor_MC400A,tasmota_bt2tasmota_bridge,shelly1,shellyPlus_1,shellyPlus_1pm,shellyPlus_2pm_split,shellyPlus_2pm_roller_invert_0,shellyPlus_2pm_roller_invert_1,shellypro4pm,shellyPlus_i4,ESPurna_single_relay,eBus_daemon_splitter,ebus_update_files_from_svn,ems-esp_heater_device,ems-esp_boiler,ems-esp_thermostat_read-only,ems-esp_thermostat_simple,ems-esp_thermostat_RC35_type,WThermostatBeca,zigbee2mqtt_bridge,sonos2mqtt_bridge,sonos2mqtt_speaker,sonos2mqtt_bridge_comfort,roon,InstarCam,wled_controller,go_eCharger,go_eCharger_old,8channel_ethernet_board_split,8channel_ethernet_board_unified,6channel_ethernet_board_6input_split,6channel_ethernet_board_6input_unified,8channel_relay_board_8di_split,hoymiles_microinverter_hub_bridge,hoymiles_opendtu_hub_bridge,esp_milight_hub_bridge,esp_milight_hub_remote_events_only,OpenMQTTGateway_MCU,valetudo,worx_landroid,wallpanel_app,weewx_weather_station,McLighting
Unknown argument POWER3, choose one of active:noArg addRegexpPart inactive:noArg removeRegexpPart
Unknown argument POWER3, choose one of off:noArg on:noArg toggle:noArg off-for-timer on-for-timer off-till-overnight off-till intervals on-till-overnight on-till blink attrTemplate:?,General_Info,MQTT2_CLIENT_general_bridge,MQTT2_IO_ignoreRegexp_basic,MQTT2_IO_ignoreRegexp_tasmota,MQTT2_IO_ignoreRegexp_shelly,MQTT2_IO_ignoreRegexp_homeassistant,speechcontrol_general_naming_master_template,tasmota_basic,tasmota_basic_state_power1,tasmota_1ch+motion+SI7021,tasmota_POW,tasmota_POW_USB_split,tasmota_plug_with_rgbw_split,tasmota_plug_with_rgb_split,tasmota_ir,tasmota_rf,tasmota_rf_keys_example,tasmota_use_DS18x20_id,tasmota_zigbee2tasmota_bridge,tasmota_clear_readings_reset_readingsList_and_reboot,tasmota_set_lowercase_texts_and_state1,tasmota_set_uppercase_texts_and_state1,tasmota_set_power1_state_to_power,tasmota_2channel_split,tasmota_2ch_unified,tasmota_2channel_split_energy,tasmota_NSPanel_split,tasmota_2ch_shutter_invert_1,tasmota_2ch_shutter_invert_0,tasmota_4ch_two_shutters_invert_0,tasmota_2ch_shutter_venetian_invert_0,tasmota_3channel_input_shelly_i3,tasmota_4channel_input_shelly_i4,tasmota_4channel_split,tasmota_3socketUSB_split,tasmota_4ch_unified_basic_text,tasmota_4ch_unified_icon,tasmota_8ch_unified_icon,tasmota_8channel_split,tasmota_rgb_led_controller,tasmota_rgbw_led,tasmota_rgbcct_light,tasmota_cct_led,tasmota_TuyaMCU_dimmer,tasmota_window_sensor_MC400A,tasmota_bt2tasmota_bridge,shelly1,shellyPlus_1,shellyPlus_1pm,shellyPlus_2pm_split,shellyPlus_2pm_roller_invert_0,shellyPlus_2pm_roller_invert_1,shellypro4pm,shellyPlus_i4,ESPurna_single_relay,eBus_daemon_splitter,ebus_update_files_from_svn,ems-esp_heater_device,ems-esp_boiler,ems-esp_thermostat_read-only,ems-esp_thermostat_simple,ems-esp_thermostat_RC35_type,WThermostatBeca,zigbee2mqtt_bridge,sonos2mqtt_bridge,sonos2mqtt_speaker,sonos2mqtt_bridge_comfort,roon,InstarCam,wled_controller,go_eCharger,go_eCharger_old,8channel_ethernet_board_split,8channel_ethernet_board_unified,6channel_ethernet_board_6input_split,6channel_ethernet_board_6input_unified,8channel_relay_board_8di_split,hoymiles_microinverter_hub_bridge,hoymiles_opendtu_hub_bridge,esp_milight_hub_bridge,esp_milight_hub_remote_events_only,OpenMQTTGateway_MCU,valetudo,worx_landroid,wallpanel_app,weewx_weather_station,McLighting
Unknown argument POWER3, choose one of off:noArg on:noArg toggle:noArg on-till-overnight intervals off-till blink on-till off-for-timer off-till-overnight on-for-timer attrTemplate:?,General_Info,MQTT2_CLIENT_general_bridge,MQTT2_IO_ignoreRegexp_basic,MQTT2_IO_ignoreRegexp_tasmota,MQTT2_IO_ignoreRegexp_shelly,MQTT2_IO_ignoreRegexp_homeassistant,speechcontrol_general_naming_master_template,tasmota_basic,tasmota_basic_state_power1,tasmota_1ch+motion+SI7021,tasmota_POW,tasmota_POW_USB_split,tasmota_plug_with_rgbw_split,tasmota_plug_with_rgb_split,tasmota_ir,tasmota_rf,tasmota_rf_keys_example,tasmota_use_DS18x20_id,tasmota_zigbee2tasmota_bridge,tasmota_clear_readings_reset_readingsList_and_reboot,tasmota_set_lowercase_texts_and_state1,tasmota_set_uppercase_texts_and_state1,tasmota_set_power1_state_to_power,tasmota_2channel_split,tasmota_2ch_unified,tasmota_2channel_split_energy,tasmota_NSPanel_split,tasmota_2ch_shutter_invert_1,tasmota_2ch_shutter_invert_0,tasmota_4ch_two_shutters_invert_0,tasmota_2ch_shutter_venetian_invert_0,tasmota_3channel_input_shelly_i3,tasmota_4channel_input_shelly_i4,tasmota_4channel_split,tasmota_3socketUSB_split,tasmota_4ch_unified_basic_text,tasmota_4ch_unified_icon,tasmota_8ch_unified_icon,tasmota_8channel_split,tasmota_rgb_led_controller,tasmota_rgbw_led,tasmota_rgbcct_light,tasmota_cct_led,tasmota_TuyaMCU_dimmer,tasmota_window_sensor_MC400A,tasmota_bt2tasmota_bridge,shelly1,shellyPlus_1,shellyPlus_1pm,shellyPlus_2pm_split,shellyPlus_2pm_roller_invert_0,shellyPlus_2pm_roller_invert_1,shellypro4pm,shellyPlus_i4,ESPurna_single_relay,eBus_daemon_splitter,ebus_update_files_from_svn,ems-esp_heater_device,ems-esp_boiler,ems-esp_thermostat_read-only,ems-esp_thermostat_simple,ems-esp_thermostat_RC35_type,WThermostatBeca,zigbee2mqtt_bridge,sonos2mqtt_bridge,sonos2mqtt_speaker,sonos2mqtt_bridge_comfort,roon,InstarCam,wled_controller,go_eCharger,go_eCharger_old,8channel_ethernet_board_split,8channel_ethernet_board_unified,6channel_ethernet_board_6input_split,6channel_ethernet_board_6input_unified,8channel_relay_board_8di_split,hoymiles_microinverter_hub_bridge,hoymiles_opendtu_hub_bridge,esp_milight_hub_bridge,esp_milight_hub_remote_events_only,OpenMQTTGateway_MCU,valetudo,worx_landroid,wallpanel_app,weewx_weather_station,McLighting
Unknown argument POWER3, choose one of off:noArg on:noArg toggle:noArg on-till-overnight intervals off-till on-till blink off-for-timer off-till-overnight on-for-timer attrTemplate:?,General_Info,MQTT2_CLIENT_general_bridge,MQTT2_IO_ignoreRegexp_basic,MQTT2_IO_ignoreRegexp_tasmota,MQTT2_IO_ignoreRegexp_shelly,MQTT2_IO_ignoreRegexp_homeassistant,speechcontrol_general_naming_master_template,tasmota_basic,tasmota_basic_state_power1,tasmota_1ch+motion+SI7021,tasmota_POW,tasmota_POW_USB_split,tasmota_plug_with_rgbw_split,tasmota_plug_with_rgb_split,tasmota_ir,tasmota_rf,tasmota_rf_keys_example,tasmota_use_DS18x20_id,tasmota_zigbee2tasmota_bridge,tasmota_clear_readings_reset_readingsList_and_reboot,tasmota_set_lowercase_texts_and_state1,tasmota_set_uppercase_texts_and_state1,tasmota_set_power1_state_to_power,tasmota_2channel_split,tasmota_2ch_unified,tasmota_2channel_split_energy,tasmota_NSPanel_split,tasmota_2ch_shutter_invert_1,tasmota_2ch_shutter_invert_0,tasmota_4ch_two_shutters_invert_0,tasmota_2ch_shutter_venetian_invert_0,tasmota_3channel_input_shelly_i3,tasmota_4channel_input_shelly_i4,tasmota_4channel_split,tasmota_3socketUSB_split,tasmota_4ch_unified_basic_text,tasmota_4ch_unified_icon,tasmota_8ch_unified_icon,tasmota_8channel_split,tasmota_rgb_led_controller,tasmota_rgbw_led,tasmota_rgbcct_light,tasmota_cct_led,tasmota_TuyaMCU_dimmer,tasmota_window_sensor_MC400A,tasmota_bt2tasmota_bridge,shelly1,shellyPlus_1,shellyPlus_1pm,shellyPlus_2pm_split,shellyPlus_2pm_roller_invert_0,shellyPlus_2pm_roller_invert_1,shellypro4pm,shellyPlus_i4,ESPurna_single_relay,eBus_daemon_splitter,ebus_update_files_from_svn,ems-esp_heater_device,ems-esp_boiler,ems-esp_thermostat_read-only,ems-esp_thermostat_simple,ems-esp_thermostat_RC35_type,WThermostatBeca,zigbee2mqtt_bridge,sonos2mqtt_bridge,sonos2mqtt_speaker,sonos2mqtt_bridge_comfort,roon,InstarCam,wled_controller,go_eCharger,go_eCharger_old,8channel_ethernet_board_split,8channel_ethernet_board_unified,6channel_ethernet_board_6input_split,6channel_ethernet_board_6input_unified,8channel_relay_board_8di_split,hoymiles_microinverter_hub_bridge,hoymiles_opendtu_hub_bridge,esp_milight_hub_bridge,esp_milight_hub_remote_events_only,OpenMQTTGateway_MCU,valetudo,worx_landroid,wallpanel_app,weewx_weather_station,McLighting

ich steh im wald und find die bäume nicht. boardsuche hab ich jetzt auch ne ggute stunde gequält aber auch hier beweg ich mich im kreis, da alles was ich find auf die prüfung abziehlt und nicht auf den set teil.

thx vorab :)
Fhem on MacMini/Ubuntu.
Absoluter Befürworter der Konsequenten-Kleinschreibung https://de.wikipedia.org/wiki/Kleinschreibung
Infos zu Klimawandel http://www.globalcarbonatlas.org

MadMax-FHEM

Was kommt denn bei:

list GOSUND_P.*

Ich vermute da ist ein Device dabei was eben POWER3 on/off nicht "versteht"...

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)

DasQ

Also die Gosund Steckdosenleisten schalten alle um 23:59 power 1-3 aus.

Es wirft nur die Fehlermeldungen je device raus.

Exemplarisch hier jetzt einmal

Internals:
   CID        DVES_52141E
   DEF        DVES_52141E
   FUUID      6415de4a-f33f-5aff-9620-d85be78020741161
   IODev      MQTT2_Broker
   LASTInputDev MQTT2_Broker
   MQTT2_Broker_CONN MQTT2_Broker_192.168.1.193_55841
   MQTT2_Broker_MSGCNT 417
   MQTT2_Broker_TIME 2024-02-01 11:41:19
   MSGCNT     417
   NAME       GOSUND_P1_1
   NR         180
   STATE      <a href="http://192.168.1.193" target="_blank">
Online
</a>
1:on
2:on
3:on
uptime: 24T16:51:20
<br>
aktuell: 47 W
Tag: 0.148 kWh
Gestern: 0.671 kWh
Gesamt: 109.318 kWh
   TYPE       MQTT2_DEVICE
   eventCount 444
   Helper:
     DBLOG:
       ENERGY_Power:
         logdb:
           TIME       1706784079.2143
           VALUE      47
       ENERGY_Today:
         logdb:
           TIME       1706784079.2143
           VALUE      0.148
       ENERGY_Total:
         logdb:
           TIME       1706784079.2143
           VALUE      109.318
       ENERGY_Yesterday:
         logdb:
           TIME       1706784079.2143
           VALUE      0.671
   JSONMAP:
     Channel_0  0
     Channel_1  0
     Channel_2  0
     Channel_3  0
     Channel_4  0
     Channel_5  0
     Color      0
     Dimmer     0
     HSBColor   0
     POWER1     0
     POWER2     0
     POWER3     0
     POWER4     0
   READINGS:
     2024-02-01 11:41:19   ANALOG_A0       1024
     2023-03-24 12:16:08   Add1            993.000
     2023-10-24 12:43:39   BASE            18
     2024-01-04 13:34:47   Command         Unknown
     2024-02-01 11:41:19   ENERGY_ApparentPower 72
     2024-02-01 11:41:19   ENERGY_Current  0.307
     2024-02-01 11:41:19   ENERGY_Factor   0.66
     2024-02-01 11:41:19   ENERGY_Period   3
     2024-02-01 11:41:19   ENERGY_Power    47
     2024-02-01 11:41:19   ENERGY_ReactivePower 54
     2024-02-01 11:41:19   ENERGY_Today    0.148
     2024-02-01 11:41:19   ENERGY_Total    109.318
     2024-02-01 11:41:19   ENERGY_TotalStartTime 2023-03-18T16:08:39
     2024-02-01 11:41:19   ENERGY_Voltage  233
     2024-02-01 11:41:19   ENERGY_Yesterday 0.671
     2023-03-24 12:23:53   Event           Done
     2023-10-24 12:43:39   FLAG            0
     2023-10-24 12:43:39   GPIO_1          0
     2023-10-24 12:43:39   GPIO_10         226
     2023-10-24 12:43:39   GPIO_11         224
     2023-10-24 12:43:39   GPIO_12         0
     2023-10-24 12:43:39   GPIO_13         35
     2023-10-24 12:43:39   GPIO_14         4704
     2023-10-24 12:43:39   GPIO_2          3072
     2023-10-24 12:43:39   GPIO_3          0
     2023-10-24 12:43:39   GPIO_4          3104
     2023-10-24 12:43:39   GPIO_5          0
     2023-10-24 12:43:39   GPIO_6          259
     2023-10-24 12:43:39   GPIO_7          0
     2023-10-24 12:43:39   GPIO_8          0
     2023-10-24 12:43:39   GPIO_9          225
     2024-02-01 11:41:19   Heap            15
     2024-01-31 20:37:31   IODev           MQTT2_Broker
     2023-08-22 14:29:54   Info1_FallbackTopic cmnd/DVES_52141E_fb/
     2023-08-22 14:29:54   Info1_GroupTopic cmnd/tasmotas/
     2023-08-22 14:29:54   Info1_Module    Gosund_P1_1
     2023-08-22 14:29:54   Info1_Version   12.4.0(tasmota)
     2024-01-07 18:52:23   Info2_Hostname  gosund-52141E-5150
     2024-01-07 18:52:23   Info2_IPAddress 192.168.1.193
     2024-01-07 18:52:23   Info2_WebServerMode Admin
     2024-01-31 20:38:38   LWT             Online
     2023-10-24 12:34:35   LedPower1       off
     2023-10-24 12:38:18   LedState        7
     2024-02-01 11:41:19   LoadAvg         19
     2024-02-01 11:41:19   MqttCount       62
     2023-10-24 12:43:39   NAME            Gosund_P1_1
     2024-01-02 16:11:40   OtaUrl          http://ota.tasmota.com/tasmota/release-13.3.0/tasmota-minimal.bin.gz
     2023-11-10 11:22:51   POWER           set POWER off
     2024-02-01 11:41:19   POWER1          on
     2024-02-01 11:41:19   POWER2          on
     2024-02-01 11:41:19   POWER3          on
     2024-02-01 11:41:19   POWER4          on
     2023-10-24 12:30:53   Rule1_Free      511
     2023-10-24 12:30:53   Rule1_Length    0
     2023-10-24 12:30:53   Rule1_Once      off
     2023-10-24 12:30:53   Rule1_Rules     
     2023-10-24 12:30:53   Rule1_State     off
     2023-10-24 12:30:53   Rule1_StopOnError off
     2023-10-24 12:31:02   Rule2_Free      394
     2023-10-24 12:31:02   Rule2_Length    117
     2023-10-24 12:31:02   Rule2_Once      on
     2023-10-24 12:31:02   Rule2_Rules     ON Analog#A0div10<30 DO Power3 2 BREAK ON Analog#A0div10<60 DO Power2 2 BREAK ON Analog#A0div10<80 DO Power1 2 ENDON
     2023-10-24 12:31:02   Rule2_State     on
     2023-10-24 12:31:02   Rule2_StopOnError off
     2023-10-28 10:25:46   Rule3_Free      511
     2023-10-28 10:25:46   Rule3_Length    0
     2023-10-28 10:25:46   Rule3_Once      off
     2023-10-28 10:25:46   Rule3_Rules     
     2023-10-28 10:25:46   Rule3_State     on
     2023-10-28 10:25:46   Rule3_StopOnError off
     2023-10-24 12:42:48   SetOption31     on
     2024-02-01 11:41:19   Sleep           50
     2024-02-01 11:41:19   SleepMode       Dynamic
     2024-02-01 11:41:19   Time            2024-02-01T11:41:19
     2024-01-02 16:11:40   Upgrade         Version 12.4.0 from http://ota.tasmota.com/tasmota/release-13.3.0/tasmota-minimal.bin.gz
     2024-02-01 11:41:19   Uptime          24T16:51:20
     2024-02-01 11:41:19   UptimeSec       2134280
     2023-10-28 10:25:04   Var1            119
     2024-01-02 16:12:35   Vcc             4.466
     2024-02-01 11:41:19   Wifi_AP         1
     2024-02-01 11:41:19   Wifi_BSSId      3C:37:12:DE:9E:62
     2024-02-01 11:41:19   Wifi_Channel    1
     2024-02-01 11:41:19   Wifi_Downtime   0T00:07:37
     2024-02-01 11:41:19   Wifi_LinkCount  5
     2024-02-01 11:41:19   Wifi_Mode       11n
     2024-02-01 11:41:19   Wifi_RSSI       64
     2024-02-01 11:41:19   Wifi_SSId       1
     2024-02-01 11:41:19   Wifi_Signal     -68
     2024-01-31 16:42:27   subscriptions   cmnd/DVES_52141E_fb/# cmnd/gosund_52141E/# cmnd/tasmotas/#
Attributes:
   DbLogExclude .*
   DbLogInclude ENERGY_Total,ENERGY_Today,ENERGY_Yesterday,ENERGY_Power,Var1
   alias      BueroGosund1
   autocreate 0
   comment    NOTE: For on-for-timer SetExtensions are used. You may add on-for-timer option running on the device. The following is limited to 1h max duration, but will not affect future simple "on" commands:<br>on-for-timer {my $duration = $EVTPART1*10; 'cmnd/cmnd/gosund_52141E/Backlog POWER1 1; delay '.$duration.'; POWER1 0'}<br>See the "Praxisbeispiele" in the wiki for "pulseTime1" alternative option and it's restrictions.
   devStateIcon Online:10px-kreis-gruen Offline:10px-kreis-rot 1.on:on:POWER1+off 1.off:off:POWER1+on 2.on:on:POWER2+off 2.off:off:POWER2+on 3.on:on:POWER3+off 3.off:off:POWER3+on
   event-on-change-reading .*
   event-on-update-reading .*
   genericDeviceType switch
   group      Gosund
   icon       hue_filled_outlet
   jsonMap    POWER1:0 POWER2:0 POWER3:0 POWER4:0 Dimmer:0 Channel_0:0 Channel_1:0 Channel_2:0 Channel_3:0 Channel_4:0 Channel_5:0 HSBColor:0 Color:0
   model      tasmota_POW_USB_split
   readingList DVES_52141E:tele/gosund_52141E/LWT:.* LWT
DVES_52141E:cmnd/gosund_52141E/POWER:.* POWER
DVES_52141E:tele/gosund_52141E/INFO1:.* { json2nameValue($EVENT) }
DVES_52141E:tele/gosund_52141E/INFO2:.* { json2nameValue($EVENT) }
DVES_52141E:stat/gosund_52141E/RESULT:.* { json2nameValue($EVENT) }
DVES_52141E:stat/gosund_52141E/POWER1:.* POWER1
DVES_52141E:stat/gosund_52141E/POWER2:.* POWER2
DVES_52141E:stat/gosund_52141E/POWER3:.* POWER3
DVES_52141E:tele/gosund_52141E/STATE:.* { json2nameValue($EVENT) }
DVES_52141E:tele/gosund_52141E/SENSOR:.* { json2nameValue($EVENT) }
   room       Buero
   setList    POWER:on,off cmnd/gosund_52141E/POWER $EVTPART1
  POWER1:on,off,toggle cmnd/gosund_52141E/POWER1 $EVTPART1
  POWER2:on,off,toggle cmnd/gosund_52141E/POWER2 $EVTPART1
  POWER3:on,off,toggle cmnd/gosund_52141E/POWER3 $EVTPART1
   setStateList on off toggle
   stateFormat <a href="http://Info2_IPAddress" target="_blank">
LWT
</a>
1:POWER1
2:POWER2
3:POWER3
uptime: Uptime
<br>
aktuell: ENERGY_Power W
Tag: ENERGY_Today kWh
Gestern: ENERGY_Yesterday kWh
Gesamt: ENERGY_Total kWh
Fhem on MacMini/Ubuntu.
Absoluter Befürworter der Konsequenten-Kleinschreibung https://de.wikipedia.org/wiki/Kleinschreibung
Infos zu Klimawandel http://www.globalcarbonatlas.org

MadMax-FHEM

#3
Bitte keine Screenshots, danke.

Hätte nämlich dann einfach copy&pasten können, so halt nur mal eins "exemplarisch":

GOSUND_P1_1_notify_1 versteht bestimmt kein POWER3 on/off -> wird aber ja von deiner devSpec "GOSUND_P.*" erwischt und daher wird dadurch auch an das Device POWER3 on/off geschickt.
Da das Device (notify vermute ich anhand des Namens ;)  ) das aber nicht "kennt", kommt (mindestens dafür) eben die (oder eine ähnliche) Meldung mit "choose on of..."

EDIT: es ist auch keine "wildcard" sondern RegEx bzw. devspec (wie ja schon geschrieben)
Zitat von: commandrefGeräte-Spezifikation (devspec)
[EN DE]

    Die Befehle attr, set, get, usw. attr, deleteattr, displayattr, delete, get, list, set, setreading, setstate, trigger können eine komplexere Gerätespezifikation als Argumente enthalten, die auch eine Anzahl von Geräten betreffen kann. Eine Gerätespezifikation kann folgendes sein:
        ein einzelner Gerätename. Dies ist der Normalfall
        eine durch Komma(,) getrennte Liste von Gerätenamen
        ein regulärer Ausdruck
        ein NAME=WERT Ausdruck, wo NAME ein "Internal" Wert wie TYPE ist, ein Reading-Name oder ein Attribut. WERT ist ein regulärer Ausdruck. Um die Bedingung zu negieren, muss NAME!=WERT verwendet werden. Um die Suche einzugrenzen, kann man als Praefix i: für internal Werte, r: für Reading-Namen und a: für Attribute verwenden, siehe das Beispiel unten. Groß-/Kleinschreibung wird durch die Verwendung von ~ oder !~ ignoriert.
        Falls die Spezifikation von :FILTER=NAME=WERT gefolgt wird, dann wird die zuvor gefundene Liste durch diesen neuen Ausdruck gefiltert.
    Beispiele:
        set lamp1 on
        set lamp1,lamp2,lamp3 on
        set lamp.* on
        set room=kitchen off
        set room=kitchen:FILTER=STATE=on off
        set room=kitchen:FILTER=STATE!=off off
        list disabled=
        list room~office
        list TYPE=FS20 STATE
        list i:TYPE=FS20 STATE
    Bemerkungen:
        die Spezifikation kann keine Leerzeichen enthalten.
        falls ein Gerätename exakt dem Spezifikation entspricht, dann werden keine reguläre Ausdrücke oder Filter ausgewertet.
        zuerst wird die durch Komma getrennte Spezifikation abgearbeitet, dann folgen die regulären Ausdrücke und die Filter
        die Befehlszeile kann die selbe Gerätebezeichnung mehrfach enthalten z.B.: "set lamp3,lamp3 on". Lamp3 wird hier zwei Mal eingeschalten.
        um Strukturen mit komplexeren Anforderungen zu realisieren lesen Sie bitte den Abschnitt zu structure.
Was bei der jeweiligen devspec "erwischt" wird, kann man sich (eben) über z.B. ein list mit eben dieser devspec anzeigen lassen (wie ich ja genau deshalb so 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)

Per

Wenn man bei Set mit Wilddcards arbeitet, entweder vorher Gedanken machen und passende RegEx kreieren oder mit FILTER arbeiten, da kann man z.B. den Typ spezifizieren.
Ist aber kein DOIF Problem, kann man auch prima in der Kommandozeile testen.

DasQ

#5
Thx MadMax-FHEM das wars ... OMG total an der falschen stelle gesucht ::)
Manchmal steht man direkt davor und sieht es einfach nicht. echt peinlich

*****edit*****

Kurzes Feedback, heut Nacht lief alles wie es sollte. Perfekt und nochmals DANKE!

Und noch hinterher geschoben. Ursprünglich hatte ich die 4 Steckdosenleisten mit einem modifizierten POW mqtt Template benutzt. Aber wie es so ist, hat mich der Spieltrieb dazu verleitet ein neueres Template für die Steckdosen zu nutzen, allerdings splittete das das device in 2 teile. Die 3 Steckdosen und USB mit fast gleich lautenden Namen. Das notify hatte ich erst letztens aus dem eventmonitor erzeugt.
Ergo, zweimal Faul ist einmal intensive suchen und verzweifeln. Dank des Forum und der Community aber kein Problem, was nicht zu lösen ist.


Fhem on MacMini/Ubuntu.
Absoluter Befürworter der Konsequenten-Kleinschreibung https://de.wikipedia.org/wiki/Kleinschreibung
Infos zu Klimawandel http://www.globalcarbonatlas.org