Doku zu LightScene korrekt ?

Begonnen von TomLee, 12 Juli 2021, 03:04:52

Vorheriges Thema - Nächstes Thema

TomLee

In der Doku zu setcmd steht man soll zwei Semikola verwenden:

Zitatsetcmd <scene_name> <device> [<cmd>]
set command to be executed for <device> in <scene_name> to <cmd>. <cmd> can be any commandline that fhem understands including multiple commands separated by ;;

    set kino_group setcmd allOff LampeDecke sleep 30 ;; set LampeDecke off
    set light_group setcmd test Lampe1 sleep 10 ;; set Lampe1 on ;; sleep 5 ;; set Lampe1 off


Wenn ich das so mache steht nach ausführen der entprechenden Szene in den dazugehörigen brightness-Readings der Devices: set 20;sleep 20;set MQTT2_zigbee_gu10_3 off die Befehle werden also nicht ausgeführt.

Internals:
   DEF        MQTT2_zigbee_gu10_1 MQTT2_zigbee_gu10_2 MQTT2_zigbee_gu10_3 MQTT2_zigbee_gu10_4 MQTT2_zigbee_gu10_5 MQTT2_zigbee_gu10_6
   FUUID      5fdf6c02-f33f-78f5-d93c-97e5fe0d2929e4a3
   HAS_DataDumper 1
   HAS_JSON   1
   NAME       ls_wz_dl
   NR         315
   NTFY_ORDER 50-ls_wz_dl
   STATE      spots_pee
   TYPE       LightScene
   mayBeVisible 1
   CONTENT:
     MQTT2_zigbee_gu10_1 1
     MQTT2_zigbee_gu10_2 1
     MQTT2_zigbee_gu10_3 1
     MQTT2_zigbee_gu10_4 1
     MQTT2_zigbee_gu10_5 1
     MQTT2_zigbee_gu10_6 1
   READINGS:
     2020-12-20 18:02:40   sceneList       spots50_1,spots50_2,spots_all,spots_table
     2021-07-12 02:43:09   state           spots_pee
   SCENES:
     spots50_1:
       MQTT2_zigbee_gu10_1 on
       MQTT2_zigbee_gu10_2 off
       MQTT2_zigbee_gu10_3 on
       MQTT2_zigbee_gu10_4 off
       MQTT2_zigbee_gu10_5 on
       MQTT2_zigbee_gu10_6 off
     spots50_2:
       MQTT2_zigbee_gu10_1 off
       MQTT2_zigbee_gu10_2 on
       MQTT2_zigbee_gu10_3 off
       MQTT2_zigbee_gu10_4 on
       MQTT2_zigbee_gu10_5 off
       MQTT2_zigbee_gu10_6 on
     spots_all:
       MQTT2_zigbee_gu10_1 on
       MQTT2_zigbee_gu10_2 on
       MQTT2_zigbee_gu10_3 on
       MQTT2_zigbee_gu10_4 on
       MQTT2_zigbee_gu10_5 on
       MQTT2_zigbee_gu10_6 on
     spots_pee:
       MQTT2_zigbee_gu10_1 off
       MQTT2_zigbee_gu10_2 off
       MQTT2_zigbee_gu10_3 ;set MQTT2_zigbee_gu10_3 brightness 20;;sleep 20;;set MQTT2_zigbee_gu10_3 off
       MQTT2_zigbee_gu10_4 off
       MQTT2_zigbee_gu10_5 ;set MQTT2_zigbee_gu10_5 brightness 20;;sleep 20;;set MQTT2_zigbee_gu10_5 off
       MQTT2_zigbee_gu10_6 off
     spots_table:
       MQTT2_zigbee_gu10_1 on
       MQTT2_zigbee_gu10_2 off
       MQTT2_zigbee_gu10_3 off
       MQTT2_zigbee_gu10_4 on
       MQTT2_zigbee_gu10_5 off
       MQTT2_zigbee_gu10_6 off
   devices:
     MQTT2_zigbee_gu10_1
     MQTT2_zigbee_gu10_2
     MQTT2_zigbee_gu10_3
     MQTT2_zigbee_gu10_4
     MQTT2_zigbee_gu10_5
     MQTT2_zigbee_gu10_6
Attributes:
   room       Wohnzimmer



Verwende ich nur ein Semikolon werden die Befehle korrekt ausgeführt:

Internals:
   DEF        MQTT2_zigbee_gu10_1 MQTT2_zigbee_gu10_2 MQTT2_zigbee_gu10_3 MQTT2_zigbee_gu10_4 MQTT2_zigbee_gu10_5 MQTT2_zigbee_gu10_6
   FUUID      5fdf6c02-f33f-78f5-d93c-97e5fe0d2929e4a3
   HAS_DataDumper 1
   HAS_JSON   1
   NAME       ls_wz_dl
   NR         315
   NTFY_ORDER 50-ls_wz_dl
   STATE      spots_pee
   TYPE       LightScene
   mayBeVisible 1
   CONTENT:
     MQTT2_zigbee_gu10_1 1
     MQTT2_zigbee_gu10_2 1
     MQTT2_zigbee_gu10_3 1
     MQTT2_zigbee_gu10_4 1
     MQTT2_zigbee_gu10_5 1
     MQTT2_zigbee_gu10_6 1
   READINGS:
     2020-12-20 18:02:40   sceneList       spots50_1,spots50_2,spots_all,spots_table
     2021-07-12 02:56:47   state           spots_pee
   SCENES:
     spots50_1:
       MQTT2_zigbee_gu10_1 on
       MQTT2_zigbee_gu10_2 off
       MQTT2_zigbee_gu10_3 on
       MQTT2_zigbee_gu10_4 off
       MQTT2_zigbee_gu10_5 on
       MQTT2_zigbee_gu10_6 off
     spots50_2:
       MQTT2_zigbee_gu10_1 off
       MQTT2_zigbee_gu10_2 on
       MQTT2_zigbee_gu10_3 off
       MQTT2_zigbee_gu10_4 on
       MQTT2_zigbee_gu10_5 off
       MQTT2_zigbee_gu10_6 on
     spots_all:
       MQTT2_zigbee_gu10_1 on
       MQTT2_zigbee_gu10_2 on
       MQTT2_zigbee_gu10_3 on
       MQTT2_zigbee_gu10_4 on
       MQTT2_zigbee_gu10_5 on
       MQTT2_zigbee_gu10_6 on
     spots_pee:
       MQTT2_zigbee_gu10_1 off
       MQTT2_zigbee_gu10_2 off
       MQTT2_zigbee_gu10_3 ;set MQTT2_zigbee_gu10_3 brightness 20;sleep 20;set MQTT2_zigbee_gu10_3 off
       MQTT2_zigbee_gu10_4 off
       MQTT2_zigbee_gu10_5 ;set MQTT2_zigbee_gu10_5 brightness 20;sleep 20;set MQTT2_zigbee_gu10_5 off
       MQTT2_zigbee_gu10_6 off
     spots_table:
       MQTT2_zigbee_gu10_1 on
       MQTT2_zigbee_gu10_2 off
       MQTT2_zigbee_gu10_3 off
       MQTT2_zigbee_gu10_4 on
       MQTT2_zigbee_gu10_5 off
       MQTT2_zigbee_gu10_6 off
   devices:
     MQTT2_zigbee_gu10_1
     MQTT2_zigbee_gu10_2
     MQTT2_zigbee_gu10_3
     MQTT2_zigbee_gu10_4
     MQTT2_zigbee_gu10_5
     MQTT2_zigbee_gu10_6
Attributes:
   room       Wohnzimmer


Hab ich jetzt was falsch verstanden oder ist die Doku nicht korrekt ?

Weil das mit dem Semikolon vor dem ersten set in den list leicht verwirrend ist, hab ich zusätzlich noch einen Screenshot angehängt, das man sieht das da auch wirklich keines ist und nur in dem List vorkommt.



TomLee

Das es in der Befehlzeile zwei ; sein müssen ist klar, die Doku liest sich aber so das man, ich nenne es mal Wizard, unter Edit scene auch zwei verwenden soll, ist aber nicht so, halt ich mal für zukünftige Leser fest.

TomLee

Und dann wüsste ich noch gerne warum es kurz zu dieser Meldung oben in FHEMWEB kommt:

Unknown argument pct, choose one of on:noArg off:noArg brightness:colorpicker,BRI,0,5,255 ct:colorpicker,CT,154,2,500 ct_startup:coolest,cool,neutral,warmest,previous on-for-timer on-till off-till toggle blink off-for-timer on-till-overnight off-till-overnight intervals

wenn ich bei dem oben genannnten Device in der Geräteansicht spots_pee "aktiviere" oder auch mit set über die Befehlszeile.(im Logfile wird das nicht festgehalten)

Oder zu dieser Meldung im Logfile, wenn die Szene aus einem notify aufgerufen wird:

2021.11.16 16:19:51 3: not_WZ_BM_DB return value: Unknown argument pct, choose one of on:noArg off:noArg brightness:colorpicker,BRI,0,5,255 ct:colorpicker,CT,154,2,500 ct_startup:coolest,cool,neutral,warmest,previous on-for-timer on-till off-till toggle blink off-for-timer on-till-overnight off-till-overnight intervals 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_3channel_input_shelly_i3,shelly1,ESPurna_single_relay,E_00_eBus_daemon_splitter,E_01_eBus_bai_readingsgroup_Status01,eBus_daemon_splitter,ebus_update_files_from_svn,E_02_eBus_bai_readingsgroup_Status01_Balken,ems-esp_heater_device,ems-esp_boiler,ems-esp_thermostat_read-only,ems-esp_thermostat_simple,ems-esp_thermostat_RC35_type,E_03_eBus_bai_readingsgroup_Status02,E_04_eBus_bai_readingsgroup_Status02_Balken,E_05_eBus_Calormatic_readingsgroup_Set_Hcurve_Hotwater,E_06_eBus_bai_Status01,E_07_eBus_bai_Status01+Status02_HWC,E_08_eBus_SetMode,E_09_eBus_Hc1HeatCurve+HwcTempDesired,zigbee2mqtt_bridge,zigbee2mqtt_light_dimmer,zigbee2mqtt_router_only_device,zigbee2mqtt_light_cct,zigbee2mqtt_light_rgb_hex,zigbee2mqtt_light_rgb_rgb,zigbee2mqtt_light_rgbw_hex,zigbee2mqtt_light_rgbw_rgb,zigbee2mqtt_light_rgbcct_hex,zigbee2mqtt_light_rgbcct_rgb,zigbee2mqtt_smokeDetector,zigbee2mqtt_hueMotionSensor,zigbee2mqtt_plug,zigbee2mqtt_plug_w_energy_measuring,zigbee2mqtt_2channel_split,zigbee2mqtt_3channel_split,zigbee2mqtt_blind_drive,zigbee2mqtt_ContactSensor,zigbee2mqtt_TempHumHpaSensor,zigbee2mqtt_TempHumSensor,zigbee2mqtt_human_body_movement,zigbee2mqtt_human_body_movement_illuminance,zigbee2mqtt_Light_Intensity_Sensor,zigbee2mqtt_TempMotion_sensor,zigbee2mqtt_Motion_Sensor,zigbee2mqtt_Water_Leak_Sensor,zigbee2mqtt_Light_Switch,zigbee2mqtt_scene_controller,zigbee2mqtt_Wireless_Button,zigbee2mqtt_wireless_button_old,zigbee2mqtt_aqara_cube,zigbee2mqtt_AlarmSensor,zigbee2mqtt_symfonsik_sound_controller,zigbee2mqtt_eurotronic_spirit,zigbee2mqtt_thermostat_with_weekrofile,zigbee2mqtt_thermostat_without_weekprofile,sonos2mqtt_bridge,sonos2mqtt_speaker,sonos2mqtt_bridge_comfort,roon,InstarCam,zigbee2mqtt_2channel_split_w_buttons,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,esp_milight_hub_bridge,esp_milight_hub_remote_events_only,OpenMQTTGateway_MCU,worx_landroid,wallpanel_app,weewx_weather_station,McLighting

defmod not_WZ_BM_DB notify MQTT2_zigbee_0x00158d000302cc1e:occupancy:.true {\
my $hm = sprintf("%02d:%02d", $hour, $min);;\
return CommandSet(undef,'ls_wz_dl scene spots_pee') if ReadingsVal('TV_Wohnzimmer','state','') eq "off" && !isday() && $hm gt "00:30:00";;\
}


Ich weiß nicht warum ich das nicht gleich gesehen habe, ich meine zu dem Zeitpunkt als ich mich damit beschäftigt hatte war das nicht so.

TomLee

Sry, oben war der pct Befehl gar nicht enthalten und kam erst später dazu, hier nochmal ein List der LightScene:
Internals:
   DEF        MQTT2_zigbee_gu10_1 MQTT2_zigbee_gu10_2 MQTT2_zigbee_gu10_3 MQTT2_zigbee_gu10_4 MQTT2_zigbee_gu10_5 MQTT2_zigbee_gu10_6
   FUUID      5fdf6c02-f33f-78f5-d93c-97e5fe0d2929e4a3
   HAS_DataDumper 1
   HAS_JSON   1
   NAME       ls_wz_dl
   NR         296
   NTFY_ORDER 50-ls_wz_dl
   STATE      spots_pee
   TYPE       LightScene
   mayBeVisible 1
   CONTENT:
     MQTT2_zigbee_gu10_1 1
     MQTT2_zigbee_gu10_2 1
     MQTT2_zigbee_gu10_3 1
     MQTT2_zigbee_gu10_4 1
     MQTT2_zigbee_gu10_5 1
     MQTT2_zigbee_gu10_6 1
   READINGS:
     2020-12-20 18:02:40   sceneList       spots50_1,spots50_2,spots_all,spots_table
     2021-11-16 16:47:19   state           spots_pee
   SCENES:
     spots50_1:
       MQTT2_zigbee_gu10_1 on
       MQTT2_zigbee_gu10_2 off
       MQTT2_zigbee_gu10_3 on
       MQTT2_zigbee_gu10_4 off
       MQTT2_zigbee_gu10_5 on
       MQTT2_zigbee_gu10_6 off
     spots50_2:
       MQTT2_zigbee_gu10_1 off
       MQTT2_zigbee_gu10_2 on
       MQTT2_zigbee_gu10_3 off
       MQTT2_zigbee_gu10_4 on
       MQTT2_zigbee_gu10_5 off
       MQTT2_zigbee_gu10_6 on
     spots_all:
       MQTT2_zigbee_gu10_1 on
       MQTT2_zigbee_gu10_2 on
       MQTT2_zigbee_gu10_3 on
       MQTT2_zigbee_gu10_4 on
       MQTT2_zigbee_gu10_5 on
       MQTT2_zigbee_gu10_6 on
     spots_pee:
       MQTT2_zigbee_gu10_1 off
       MQTT2_zigbee_gu10_2 off
       MQTT2_zigbee_gu10_3 ;set MQTT2_zigbee_gu10_3 pct 20;sleep 20;set MQTT2_zigbee_gu10_3 off
       MQTT2_zigbee_gu10_4 off
       MQTT2_zigbee_gu10_5 ;set MQTT2_zigbee_gu10_5 pct 20;sleep 20;set MQTT2_zigbee_gu10_5 off
       MQTT2_zigbee_gu10_6 off
     spots_table:
       MQTT2_zigbee_gu10_1 on
       MQTT2_zigbee_gu10_2 off
       MQTT2_zigbee_gu10_3 off
       MQTT2_zigbee_gu10_4 on
       MQTT2_zigbee_gu10_5 off
       MQTT2_zigbee_gu10_6 off
   devices:
     MQTT2_zigbee_gu10_1
     MQTT2_zigbee_gu10_2
     MQTT2_zigbee_gu10_3
     MQTT2_zigbee_gu10_4
     MQTT2_zigbee_gu10_5
     MQTT2_zigbee_gu10_6
Attributes:
   room       Privat->OG->Wohnzimmer


Der pct-Befehl wird korrekt ausgeführt, es kommt aber zu den Meldungen wie oben beschrieben.

TomLee

Warum auch immer, die Meldung ist plötzlich weg, ich habe in der zwischenzeit nur die Befehle in setcmd zur Sicherheit nochmals mit zwei Semikola ausprobiert, wieder zu einem geändert und immer das saveline ausgeführt, auch einen restart hab ich vorsichtshalber gemacht, nicht das die Meldungen doch wieder stattfinden.

Ich hab tägliche Backups der letzten Wochen, Monate und kann die nächtlichen Log-Meldungen und die gleiche Definition wie zuvor nachweisen, es hat sich nichts an der Definition geändert, es ist alles wie zuvor nur die Meldungen kommen auf einmal nicht mehr..

Internals:
   DEF        MQTT2_zigbee_gu10_1 MQTT2_zigbee_gu10_2 MQTT2_zigbee_gu10_3 MQTT2_zigbee_gu10_4 MQTT2_zigbee_gu10_5 MQTT2_zigbee_gu10_6
   FUUID      5fdf6c02-f33f-78f5-d93c-97e5fe0d2929e4a3
   HAS_DataDumper 1
   HAS_JSON   1
   NAME       ls_wz_dl
   NR         296
   NTFY_ORDER 50-ls_wz_dl
   STATE      spots_pee
   TYPE       LightScene
   mayBeVisible 1
   CONTENT:
     MQTT2_zigbee_gu10_1 1
     MQTT2_zigbee_gu10_2 1
     MQTT2_zigbee_gu10_3 1
     MQTT2_zigbee_gu10_4 1
     MQTT2_zigbee_gu10_5 1
     MQTT2_zigbee_gu10_6 1
   READINGS:
     2020-12-20 18:02:40   sceneList       spots50_1,spots50_2,spots_all,spots_table
     2021-11-16 22:53:09   state           spots_pee
   SCENES:
     spots50_1:
       MQTT2_zigbee_gu10_1 on
       MQTT2_zigbee_gu10_2 off
       MQTT2_zigbee_gu10_3 on
       MQTT2_zigbee_gu10_4 off
       MQTT2_zigbee_gu10_5 on
       MQTT2_zigbee_gu10_6 off
     spots50_2:
       MQTT2_zigbee_gu10_1 off
       MQTT2_zigbee_gu10_2 on
       MQTT2_zigbee_gu10_3 off
       MQTT2_zigbee_gu10_4 on
       MQTT2_zigbee_gu10_5 off
       MQTT2_zigbee_gu10_6 on
     spots_all:
       MQTT2_zigbee_gu10_1 on
       MQTT2_zigbee_gu10_2 on
       MQTT2_zigbee_gu10_3 on
       MQTT2_zigbee_gu10_4 on
       MQTT2_zigbee_gu10_5 on
       MQTT2_zigbee_gu10_6 on
     spots_pee:
       MQTT2_zigbee_gu10_1 off
       MQTT2_zigbee_gu10_2 off
       MQTT2_zigbee_gu10_3 ;set MQTT2_zigbee_gu10_3 pct 20;sleep 20;set MQTT2_zigbee_gu10_3 off
       MQTT2_zigbee_gu10_4 off
       MQTT2_zigbee_gu10_5 ;set MQTT2_zigbee_gu10_3 pct 20;sleep 20;set MQTT2_zigbee_gu10_5 off
       MQTT2_zigbee_gu10_6 off
     spots_table:
       MQTT2_zigbee_gu10_1 on
       MQTT2_zigbee_gu10_2 off
       MQTT2_zigbee_gu10_3 off
       MQTT2_zigbee_gu10_4 on
       MQTT2_zigbee_gu10_5 off
       MQTT2_zigbee_gu10_6 off
   devices:
     MQTT2_zigbee_gu10_1
     MQTT2_zigbee_gu10_2
     MQTT2_zigbee_gu10_3
     MQTT2_zigbee_gu10_4
     MQTT2_zigbee_gu10_5
     MQTT2_zigbee_gu10_6
Attributes:
   room       Privat->OG->Wohnzimmer