Zigbee Module tauchen nicht von selbst in Fhem auf

Begonnen von Wasserwerk33, 23 Januar 2025, 11:38:03

Vorheriges Thema - Nächstes Thema

Wasserwerk33

Hallo Leute,

meine Zigbee Module tauchen nicht von selbst in meinem Fhem auf, ich muss sie immer Händisch über "defined" nachtragen.


Hier finde ich meinen Mehrfachschalter drin. Aber leider legt er sich ja nicht von selber an.
Internals:
   CID        mqttjs_b4a305a1
   DEF        mqttjs_b4a305a1
   FUUID      66cb13db-f33f-c6b9-c593-f9f44d74ef8fbce7
   IODev      myBroker
   LASTInputDev myBroker
   MSGCNT     43160
   NAME       MQTT2_mqttjs_b4a305a1
   NR         171
   STATE      ???
   TYPE       MQTT2_DEVICE
   eventCount 43160
   myBroker_CONN myBroker_127.0.0.1_38290
   myBroker_MSGCNT 43160
   myBroker_TIME 2025-01-23 11:35:56
   READINGS:
     2024-12-16 17:11:32   0x5c0272fffe88df19
     2024-12-18 15:21:40   0xec1bbdfffe805606
     2024-12-04 19:37:03   Eltern_Steckdose_child_lock UNLOCK
     2024-12-04 19:37:03   Eltern_Steckdose_current 0.01
     2024-12-04 19:37:03   Eltern_Steckdose_energy 0
     2024-12-04 19:37:03   Eltern_Steckdose_linkquality 100
     2024-12-04 19:37:03   Eltern_Steckdose_power 0
     2024-12-04 19:37:03   Eltern_Steckdose_power_outage_memory on
     2024-12-04 19:37:03   Eltern_Steckdose_state OFF
     2024-12-04 19:37:03   Eltern_Steckdose_voltage 226
     2025-01-23 11:35:56   Eltern_child_lock UNLOCK
     2025-01-23 11:35:56   Eltern_current  0
     2025-01-23 11:35:56   Eltern_energy   2.84
     2025-01-23 11:35:56   Eltern_linkquality 68
     2025-01-23 11:35:56   Eltern_power    0
     2025-01-23 11:35:56   Eltern_power_outage_memory on
     2025-01-23 11:35:56   Eltern_state    OFF
     2025-01-23 11:35:56   Eltern_voltage  225
     2025-01-08 06:42:10   IODev           myBroker
     2025-01-06 09:48:08   Krippe_linkquality 100
     2025-01-06 09:48:08   Krippe_state    ON
     2025-01-23 11:25:30   Mehrfachschalter_action 3_single
     2025-01-23 11:25:30   Mehrfachschalter_battery 91
     2025-01-23 11:25:30   Mehrfachschalter_linkquality 88
     2025-01-23 11:25:30   Mehrfachschalter_operation_mode event
     2025-01-23 11:25:30   Mehrfachschalter_voltage 2900
     2025-01-06 09:10:28   Tannenbaum_linkquality 92
     2025-01-06 09:10:28   Tannenbaum_state OFF
     2024-12-03 18:18:18   attrTemplateVersion 20240409
     2025-01-23 11:22:48   subscriptions   zigbee2mqtt/#
Attributes:
   autocreate 1
   bridgeRegexp (tele|stat|shellies|valetudo|Advantech)/([^/]+)/.*:.* "$2"
  (shellyp(lus|ro4pm)[^/:_]{4,}+)/.*:.* "$1"
  zigbee2mqtt/bridge/.*:.* "zigbee2mqtt"
  sonos/connected.* "sonos"
  tvheadend/[^/:]+.* "tvheadend"
  milight/LWT:.* "milight"
  (ESPClient_[^/]+)/.*:.* "$1"
  (ebusd[^/]*)/global/.*:.* "$1"
  [^/]+/(ems-esp[^/]+)/start:.* "$1"
  (mygateway[\d]+)-(in|out)/.* "$1"
  (wallpanel|wled|instar)/([^/]+)/.*:.* "$1_$2"
  (nuki)/[^/]+/.* "$1"
  go-eCharger/([^/]+)/.*:.* "go_eCharger_$1"
  owntracks/[^/]+/([^/:]+).* "owntracks_$1"
  home/(O[^/]*M[^/]*G[^/]*)/LWT:.* "$1"
  homeassistant/.*/config:.* ""
  tasmota/discovery/[^/:]+/(config|sensors):.* ""
   comment    Do not use very open bridgeRegexp expressions! This might lead to irritating results... Especially make sure to not have two regexpes that may both match!
   icon       mqtt_bridge_2
   model      MQTT2_CLIENT_general_bridge
   readingList mqttjs_b4a305a1:zigbee2mqtt/Eltern\x20Steckdose:.* { json2nameValue($EVENT, 'Eltern_Steckdose_', $JSONMAP) }
mqttjs_b4a305a1:zigbee2mqtt/Eltern:.* { json2nameValue($EVENT, 'Eltern_', $JSONMAP) }
mqttjs_b4a305a1:zigbee2mqtt/Mehrfachschalter:.* { json2nameValue($EVENT, 'Mehrfachschalter_', $JSONMAP) }
mqttjs_b4a305a1:zigbee2mqtt/0x5c0272fffe88df19:.* 0x5c0272fffe88df19
mqttjs_b4a305a1:zigbee2mqtt/Krippe:.* { json2nameValue($EVENT, 'Krippe_', $JSONMAP) }
mqttjs_b4a305a1:zigbee2mqtt/0xec1bbdfffe805606:.* 0xec1bbdfffe805606
mqttjs_b4a305a1:zigbee2mqtt/Tannenbaum:.* { json2nameValue($EVENT, 'Tannenbaum_', $JSONMAP) }
   room       MQTT2_DEVICE
   setList    clear_all:noArg {fhem("deleteattr $NAME readingList; deletereading -q $NAME (?!associatedWith|IODev).*");return undef}
   setStateList on off

Dieses ist mein Broker
Internals:
   CONNECTS   1
   Clients    :MQTT2_DEVICE:MQTT_GENERIC_BRIDGE:
   ClientsKeepOrder 1
   DEF        1884 global
   FD         12
   FUUID      66c21c6b-f33f-c6b9-dfe4-05058b8324befb7f
   NAME       myBroker
   NR         157
   PORT       1884
   STATE      Initialized
   TYPE       MQTT2_SERVER
   eventCount 1
   MatchList:
     1:MQTT2_DEVICE ^.
     2:MQTT_GENERIC_BRIDGE ^.
   READINGS:
     2025-01-08 06:42:24   nrclients       1
     2025-01-08 06:42:10   state           Initialized
   clients:
     myBroker_127.0.0.1_38290 1
   retain:
Attributes:
   autocreate complex
   room       System

Danke für die Hilfe.

Wasserwerk33

Hier habe ich noch einen Broker gefunden. Warum habe ich 2.

Internals:
   BUF       
   FD         39
   NAME       myBroker_127.0.0.1_38290
   NR         10000001
   PEER       127.0.0.1
   PORT       38290
   SNAME      myBroker
   SSL       
   STATE      Connected
   TEMPORARY  1
   TYPE       MQTT2_SERVER
   WBCallback
   cflags     46
   cid        mqttjs_b4a305a1
   keepalive  60
   lastMsgTime 1737629220.67932
   lwt        zigbee2mqtt/bridge/state:{"state":"offline"}
   protoNum   4
   protoTxt   MQTT
   READINGS:
     2025-01-08 06:42:24   state           Connected
   subscriptions:
     zigbee2mqtt/# 1736314945.19685
Attributes:
   autocreate complex
   room       System,hidden

Otto123

Zitat von: Wasserwerk33 am 23 Januar 2025, 11:47:36Warum habe ich 2.
Das ist eine temporäre Instanz, die wird automatisch bei einer Verbindung (hier von localhost) erzeugt.
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

Beta-User

Zitat von: Wasserwerk33 am 23 Januar 2025, 11:38:03meine Zigbee Module tauchen nicht von selbst in meinem Fhem auf, ich muss sie immer Händisch über "defined" nachtragen.
Dann fehlt vermutlich das "bridge"-Device für zigbee2mqtt (nein, dein gezeigtes Gerät mit bridgeRegexp ist was anderes!).

https://wiki.fhem.de/wiki/Zigbee2mqtt ist bekannt?
Server: HP-elitedesk@Debian 12, aktuelles FHEM@ConfigDB | CUL_HM (VCCU) | MQTT2: MiLight@ESP-GW, BT@OpenMQTTGw | MySensors: seriell, v.a. 2.3.1@RS485 | ZWave | ZigBee@deCONZ | SIGNALduino | MapleCUN | RHASSPY
svn: u.a MySensors, Weekday-&RandomTimer, Twilight,  div. attrTemplate-files

Wasserwerk33

Hallo Beta-User. Ja das Wiki kenne ich.

Ich habe noch eine instanz gefunden. Und zwar eine die ich hier nicht reinkopbieren kann.
Sie ist in der List zu große

Internals:
   CFGFN     
   CID        zigbee2mqtt
   DEF        zigbee2mqtt
   FUUID      67921eb4-f33f-c6b9-a2b7-6d893c617f5da659
   IODev      myBroker
   LASTInputDev myBroker
   MSGCNT     944
   NAME       MQTT2_zigbee2mqtt
   NR         11078
   STATE      online
   TYPE       MQTT2_DEVICE
   eventCount 952
   myBroker_CONN myBroker_127.0.0.1_52326
   myBroker_MSGCNT 944
   myBroker_TIME 2025-01-23 13:22:31
   READINGS:
     2025-01-23 11:49:24   IODev           myBroker
     2025-01-23 11:50:51   associatedWith  MQTT2_mqttjs_b4a305a1
     2025-01-23 11:50:51   data_from       Mehrfachschalter
     2025-01-23 11:50:51   data_homeassistant_rename false
     2025-01-23 11:50:51   data_to         Mehrfachschalter1
     2025-01-23 11:49:53   definitions

2025-01-23 13:22:31   level           info
     2025-01-23 13:22:31   message         z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/T-Til', payload '{"battery":69,"humidity":49,"linkquality":96,"temperature":18.3,"voltage":2900}'
     2025-01-23 11:49:53   state           online
     2025-01-23 11:50:51   status          ok
     2025-01-23 11:50:51   transaction     rjuw2-2
Attributes:
   readingList zigbee2mqtt/bridge/logging:.* { json2nameValue($EVENT) }
zigbee2mqtt/bridge/state:.* { json2nameValue($EVENT) }
zigbee2mqtt/bridge/info:.* info
zigbee2mqtt/bridge/devices:.* devices
zigbee2mqtt/bridge/groups:.* groups
zigbee2mqtt/bridge/definitions:.* definitions
zigbee2mqtt/bridge/extensions:.* extensions
zigbee2mqtt/bridge/response/device/rename:.* { json2nameValue($EVENT) }
   room       MQTT2_DEVICE

die definition ist zur Groß und kann ich nicht mit anfügen

Beta-User

Zitat von: Wasserwerk33 am 23 Januar 2025, 13:24:39die definition ist zur Groß und kann ich nicht mit anfügen
Interessant ist v.a. das "bridgeRegexp"-Attribut, und das scheint dir verloren gegangen zu sein.

(Zum Rest - angefangen mit der fehlenden ClientID - sage ich jetzt mal nichts)
Server: HP-elitedesk@Debian 12, aktuelles FHEM@ConfigDB | CUL_HM (VCCU) | MQTT2: MiLight@ESP-GW, BT@OpenMQTTGw | MySensors: seriell, v.a. 2.3.1@RS485 | ZWave | ZigBee@deCONZ | SIGNALduino | MapleCUN | RHASSPY
svn: u.a MySensors, Weekday-&RandomTimer, Twilight,  div. attrTemplate-files

Wasserwerk33

habe es mir nochmal ganz genau angeschaut und bin die Punkte nochmal durchgegangen.

jetzt sieht es so aus.

Internals:
   CFGFN     
   CID        zigbee2mqtt
   DEF        zigbee2mqtt
   FUUID      67921eb4-f33f-c6b9-a2b7-6d893c617f5da659
   IODev      myBroker
   LASTInputDev myBroker
   MSGCNT     1241
   NAME       MQTT2_zigbee2mqtt
   NR         11078
   STATE      online
   TYPE       MQTT2_DEVICE
   eventCount 1252
   myBroker_CONN myBroker_127.0.0.1_52326
   myBroker_MSGCNT 1241
   myBroker_TIME 2025-01-23 13:52:39
   OLDREADINGS:
   READINGS:
     2025-01-23 13:27:27   attrTemplateVersion 20231205
     2025-01-23 13:29:48   data_value      true
     2025-01-23 13:29:47   info            {"commit":"5bdf90d","config":{"advanced":{"adapter_concurrent":null,"adapter_delay":null,"availability_blacklist":[],"availability_blocklist":[],"availability_passlist":[],"availability_whitelist":[],"cache_state":true,"cache_state_persistent":true,"cache_state_send_on_startup":true,"channel":11,"elapsed":false,"ext_pan_id":[13,12,39,239,230,158,11,71],"homeassistant_legacy_entity_attributes":false,"last_seen":"disable","legacy_api":false,"legacy_availability_payload":false,"log_debug_namespace_ignore":"","log_debug_to_mqtt_frontend":false,"log_directory":"/opt/zigbee2mqtt/data/log/%TIMESTAMP%","log_file":"log.log","log_level":"info","log_namespaced_levels":{},"log_output":["console","file"],"log_rotation":true,"log_symlink_current":false,"log_syslog":{},"output":"json","pan_id":34310,"report":false,"soft_reset_timeout":0,"timestamp_format":"YYYY-MM-DD HH:mm:ss"},"blocklist":[],"device_options":{"legacy":false},"devices":{"0x00158d00090d62d1":{"friendly_name":"Tursensor Haustur"},"0x00158d000910878b":{"friendly_name":"Tursensor Schiebetur"},"0x04cf8cdf3c7cc6e3":{"description":"0x04cf8cdf3c7cc6e3","friendly_name":"Lichtsensor Wohnzimmer"},"0x5c0272fffe2885a8":{"description":"0x5c0272fffe2885a8","friendly_name":"WeihnachtenSteckdose","state_action":true},"0x5c0272fffe88df19":{"description":"0x5c0272fffe88df19","friendly_name":"Krippe"},"0x5c0272fffe943780":{"friendly_name":"Til"},"0x70b3d52b601191d9":{"description":"0x70b3d52b601191d9","friendly_name":"Eltern"},"0x842e14fffe5bfbb7":{"description":"0x842e14fffe5bfbb7","friendly_name":"Esszimmer"},"0x842e14fffee546de":{"description":"0x842e14fffee546de","friendly_name":"Salzlampe"},"0x842e14fffef254f4":{"description":"0x842e14fffef254f4","friendly_name":"Subwoofer"},"0x847127fffe09c3c3":{"friendly_name":"Mehrfachschalter1"},"0x84fd27fffe39e02f":{"friendly_name":"Spring"},"0xa4c138136da9b9c2":{"description":"Temperatursensor 4","friendly_name":"T-Flur"},"0xa4c1383b26435698":{"description":"Temperatursensor 1","friendly_name":"T_Wohnzimmer"},"0xa4c138b21b356517":{"description":"Temperatur","friendly_name":"Sensor Hof"},"0xa4c138c087b179e1":{"description":"0xa4c138c087b179e1","friendly_name":"Wohnzimmer"},"0xa4c138c1ebba27cd":{"description":"Temperatur","friendly_name":"Sensor Garten"},"0xa4c138cdff6441d4":{"description":"Temperatursensor 2","friendly_name":"T-Ole"},"0xa4c138d1ebe5751d":{"friendly_name":"Pool"},"0xa4c138db61cb4044":{"description":"Temperatursensor 3","friendly_name":"T-Til"},"0xb4e3f9fffe206709":{"description":"0xb4e3f9fffe206709","friendly_name":"Gartenfenster","state_action":true},"0xbc33acfffe58f8be":{"description":"Licht Ole","friendly_name":"Ole"},"0xec1bbdfffe805606":{"description":"0xec1bbdfffe805606","friendly_name":"Tannenbaum"}},"external_converters":[],"frontend":{"port":8080},"groups":{},"homeassistant":false,"map_options":{"graphviz":{"colors":{"fill":{"coordinator":"#e04e5d","enddevice":"#fff8ce","router":"#4ea3e0"},"font":{"coordinator":"#ffffff","enddevice":"#000000","router":"#ffffff"},"line":{"active":"#009900","inactive":"#994444"}}}},"mqtt":{"base_topic":"zigbee2mqtt","force_disable_retain":false,"include_device_information":false,"server":"mqtt://localhost:1884"},"ota":{"disable_automatic_update_check":false,"update_check_interval":1440},"passlist":[],"permit_join":false,"serial":{"adapter":"ember","disable_led":false,"port":"/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20231218143718-if00"}},"config_schema":{"definitions":{"device":{"properties":{"debounce":{"description":"Debounces messages of this device","title":"Debounce","type":"number"},"debounce_ignore":{"description":"Protects unique payload values of specified payload properties from overriding within debounce time","examples":["action"],"items":{"type":"string"},"title":"Ignore debounce","type":"array"},"disabled":{"description":"Disables the device (excludes device from network scans, availability and group state updates)","requiresRestart":true,"title":"Disabled","type":"boolean"},"filtered_attributes":{"description":"Filter attributes with regex from published payload.","examples":["^temperature$","^battery$","^action$"],"items":{"type":"string"},"title":"Filtered publish attributes","type":"array"},"filtered_cache":{"description":"Filter attributes with regex from being added to the cache, this prevents the attribute from being in the published payload when the value didn't change.","examples":["^input_actions$"],"items":{"type":"string"},"title":"Filtered attributes from cache","type":"array"},"filtered_optimistic":{"description":"Filter attributes with regex from optimistic publish payload when calling /set. (This has no effect if optimistic is set to false).","examples":["^color_(mode|temp)$","color"],"items":{"type":"string"},"title":"Filtered optimistic attributes","type":"array"},"friendly_name":{"description":"Used in the MQTT topic of a device. By default this is the device ID","readOnly":true,"title":"Friendly name","type":"string"},"homeassistant":{"properties":{"name":{"description":"Name of the device in Home Assistant","title":"Home Assistant name","type":"string"}},"title":"Home Assistant","type":["object","null"]},"icon":{"description":"The user-defined device icon for the frontend. It can be a full URL link to an image (e.g. https://SOME.SITE/MODEL123.jpg) (you cannot use a path to a local file) or base64 encoded data URL (e.g. image/svg+xml;base64,PHN2ZyB3aW....R0aD)","title":"Icon","type":"string"},"optimistic":{"default":true,"description":"Publish optimistic state after set","title":"Optimistic","type":"boolean"},"qos":{"description":"QoS level for MQTT messages of this device","title":"QoS","type":"number"},"retain":{"description":"Retain MQTT messages of this device","title":"Retain","type":"boolean"},"retention":{"description":"Sets the MQTT Message Expiry in seconds, Make sure to set mqtt.version to 5","title":"Retention","type":"number"}},"required":["friendly_name"],"type":"object"},"group":{"properties":{"devices":{"items":{"type":"string"},"type":"array"},"filtered_attributes":{"items":{"type":"string"},"type":"array"},"friendly_name":{"type":"string"},"off_state":{"default":"auto","description":"Control when to publish state OFF for a group. 'all_members_off': only publish state OFF when all group members are in state OFF, 'last_member_state': publish state OFF whenever one of its members changes to OFF","enum":["all_members_off","last_member_state"],"requiresRestart":true,"title":"Group off state","type":["string"]},"optimistic":{"type":"boolean"},"qos":{"type":"number"},"retain":{"type":"boolean"}},"required":["friendly_name"],"type":"object"}},"properties":{"advanced":{"properties":{"adapter_concurrent":{"description":"Adapter concurrency (e.g. 2 for CC2531 or 16 for CC26X2R1) (default: null, uses recommended value)","requiresRestart":true,"title":"Adapter concurrency","type":["number","null"]},"adapter_delay":{"description":"Adapter delay","requiresRestart":true,"title":"Adapter delay","type":["number","null"]},"cache_state":{"default":true,"description":"MQTT message payload will contain all attributes, not only changed ones. Has to be true when integrating via Home Assistant","title":"Cache state","type":"boolean"},"cache_state_persistent":{"default":true,"description":"Persist cached state, only used when cache_state: true","title":"Persist cache state","type":"boolean"},"cache_state_send_on_startup":{"default":true,"description":"Send cached state on startup, only used when cache_state: true","title":"Send cached state on startup","type":"boolean"},"channel":{"default":11,"description":"Zigbee channel, changing might require re-pairing some devices! (Note: use a ZLL channel: 11, 15, 20, or 25 to avoid problems)","examples":[15,20,25],"maximum":26,"minimum":11,"requiresRestart":true,"title":"ZigBee channel","type":"number"},"elapsed":{"default":false,"description":"Add an elapsed attribute to MQTT messages, contains milliseconds since the previous msg","title":"Elapsed","type":"boolean"},"ext_pan_id":{"description":"Zigbee extended pan ID, changing requires re-pairing all devices!","oneOf":[{"title":"Extended pan ID (string)","type":"string"},{"items":{"type":"number"},"title":"Extended pan ID (array)","type":"array"}],"requiresRestart":true,"title":"Ext Pan ID"},"last_seen":{"default":"disable","description":"Add a last_seen attribute to MQTT messages, contains date/time of last Zigbee message","enum":["disable","ISO_8601","ISO_8601_local","epoch"],"title":"Last seen","type":"string"},"legacy_api":{"default":true,"description":"Disables the legacy api (false = disable)","requiresRestart":true,"title":"Legacy API","type":"boolean"},"legacy_availability_payload":{"default":true,"description":"Payload to be used for device availability and bridge/state topics. true = text, false = JSON","requiresRestart":true,"title":"Legacy availability payload","type":"boolean"},"log_debug_namespace_ignore":{"default":"","description":"Do not log these namespaces (regex-based) for debug level","examples":["^zhc:legacy:fz:(tuya|moes)","^zhc:legacy:fz:(tuya|moes)|^zh:ember:uart:|^zh:controller"],"title":"Log debug namespace ignore","type":"string"},"log_debug_to_mqtt_frontend":{"default":false,"description":"Log debug level to MQTT and frontend (may decrease overall performance)","requiresRestart":true,"title":"Log debug to MQTT and frontend","type":"boolean"},"log_directory":{"description":"Location of log directory","examples":["data/log/%TIMESTAMP%"],"requiresRestart":true,"title":"Log directory","type":"string"},"log_file":{"default":"log.txt","description":"Log file name, can also contain timestamp","examples":["zigbee2mqtt_%TIMESTAMP%.log"],"requiresRestart":true,"title":"Log file","type":"string"},"log_level":{"default":"info","description":"Logging level","enum":["error","warning","info","debug","warn"],"title":"Log level","type":"string"},"log_namespaced_levels":{"additionalProperties":{"enum":["error","warning","info","debug"],"type":"string"},"default":{},"description":"Set individual log levels for certain namespaces","examples":[{"z2m:mqtt":"warning"},{"zh:ember:uart:ash":"info"}],"propertyNames":{"pattern":"^(z2m|zhc|zh)(:[a-z0-9]{1,})*$"},"title":"Log Namespaced Levels","type":"object"},"log_output":{"description":"Output location of the log, leave empty to suppress logging","items":{"enum":["console","file","syslog"],"type":"string"},"requiresRestart":true,"title":"Log output","type":"array"},"log_rotation":{"default":true,"description":"Log rotation","requiresRestart":true,"title":"Log rotation","type":"boolean"},"log_symlink_current":{"default":false,"description":"Create symlink to current logs in the log directory","requiresRestart":true,"title":"Log symlink current","type":"boolean"},"log_syslog":{"oneOf":[{"title":"syslog (disabled)","type":"null"},{"properties":{"app_name":{"default":"Zigbee2MQTT","description":"The name of the application (Default: Zigbee2MQTT).","title":"Localhost","type":"string"},"eol":{"default":"/n","description":"The end of line character to be added to the end of the message (Default: Message without modifications).","title":"eol","type":"string"},"host":{"default":"localhost","description":"The host running syslogd, defaults to localhost.","title":"Host","type":"string"},"localhost":{"default":"localhost","description":"Host to indicate that log messages are coming from (Default: localhost).","title":"Localhost","type":"string"},"path":{"default":"/dev/log","description":"The path to the syslog dgram socket (i.e. /dev/log or /var/run/syslog for OS X).","examples":["/var/run/syslog"],"title":"Path","type":"string"},"pid":{"default":"process.pid","description":"PID of the process that log messages are coming from (Default process.pid).","title":"PID","type":"string"},"port":{"default":514,"description":"The port on the host that syslog is running on, defaults to syslogd's default port.","title":"Port","type":"number"},"protocol":{"default":"udp4","description":"The network protocol to log over (e.g. tcp4, udp4, tls4, unix, unix-connect, etc).","examples":["udp4","tls4","unix","unix-connect"],"title":"Protocol","type":"string"},"type":{"default":"5424","description":"The type of the syslog protocol to use (Default: BSD, also valid: 5424).","title":"Type","type":"string"}},"title":"syslog (enabled)","type":"object"}],"requiresRestart":true},"network_key":{"description":"Network encryption key, changing requires re-pairing all devices!","oneOf":[{"title":"Network key(string)","type":"string"},{"items":{"type":"number"},"title":"Network key(array)","type":"array"}],"requiresRestart":true,"title":"Network key"},"output":{"description":"Examples when 'state' of a device is published json: topic: 'zigbee2mqtt/my_bulb' payload '{\"state\": \"ON\"}' attribute: topic 'zigbee2mqtt/my_bulb/state' payload 'ON' attribute_and_json: both json and attribute (see above)","enum":["attribute_and_json","attribute","json"],"title":"MQTT output type","type":"string"},"pan_id":{"description":"ZigBee pan ID, changing requires re-pairing all devices!","oneOf":[{"title":"Pan ID (string)","type":"string"},{"title":"Pan ID (number)","type":"number"}],"requiresRestart":true,"title":"Pan ID"},"timestamp_format":{"description":"Log timestamp format","examples":["YYYY-MM-DD HH:mm:ss"],"requiresRestart":true,"title":"Timestamp format","type":"string"},"transmit_power":{"description":"Transmit power of adapter, only available for Z-Stack (CC253*/CC2652/CC1352) adapters, CC2652 = 5dbm, CC1352 max is = 20dbm (5dbm default)","requiresRestart":true,"title":"Transmit power","type":["number","null"]}},"title":"Advanced","type":"object"},"availability":{"description":"Checks whether devices are online/offline","oneOf":[{"title":"Availability (simple)","type":"boolean"},{"properties":{"active":{"description":"Options for active devices (routers/mains powered)","properties":{"timeout":{"default":10,"description":"Time after which an active device will be marked as offline in minutes","requiresRestart":true,"title":"Timeout","type":"number"}},"requiresRestart":true,"title":"Active","type":"object"},"passive":{"description":"Options for passive devices (mostly battery powered)","properties":{"timeout":{"default":1500,"description":"Time after which an passive device will be marked as offline in minutes","requiresRestart":true,"title":"Timeout","type":"number"}},"requiresRestart":true,"title":"Passive","type":"object"}},"title":"Availability (advanced)","type":"object"}],"requiresRestart":true,"title":"Availability"},"ban":{"items":{"type":"string"},"readOnly":true,"requiresRestart":true,"title":"Ban (deprecated, use blocklist)","type":"array"},"blocklist":{"description":"Block devices from the network (by ieeeAddr)","items":{"type":"string"},"requiresRestart":true,"title":"Blocklist","type":"array"},"device_options":{"title":"Options that are applied to all devices","type":"object"},"devices":{"patternProperties":{"^.*$":{"$ref":"#/definitions/device"}},"propertyNames":{"pattern":"^0x[\\d\\w]{16}$"},"type":"object"},"external_converters":{"description":"You can define external converters to e.g. add support for a DiY device","examples":["DIYRuZ_FreePad.js"],"items":{"type":"string"},"requiresRestart":true,"title":"External converters","type":"array"},"frontend":{"oneOf":[{"title":"Frontend (simple)","type":"boolean"},{"properties":{"auth_token":{"description":"Enables authentication, disabled by default","requiresRestart":true,"title":"Auth token","type":["string","null"]},"host":{"description":"Frontend binding host. Binds to a unix socket when an absolute path is given instead.","examples":["127.0.0.1","::1","/run/zigbee2mqtt/zigbee2mqtt.sock"],"requiresRestart":true,"title":"Bind host","type":["string","null"]},"port":{"default":8080,"description":"Frontend binding port. Ignored when using a unix domain socket","requiresRestart":true,"title":"Port","type":"number"},"ssl_cert":{"description":"SSL Certificate file path for exposing HTTPS. The sibling property 'ssl_key' must be set for HTTPS to be activated.","requiresRestart":true,"title":"Certificate file path","type":["string","null"]},"ssl_key":{"description":"SSL key file path for exposing HTTPS. The sibling property 'ssl_cert' must be set for HTTPS to be activated.","requiresRestart":true,"title":"key file path","type":["string","null"]},"url":{"description":"URL on which the frontend can be reached, currently only used for the Home Assistant device configuration page","requiresRestart":true,"title":"URL","type":["string","null"]}},"title":"Frontend (advanced)","type":"object"}],"requiresRestart":true,"title":"Frontend"},"groups":{"patternProperties":{"^.*$":{"$ref":"#/definitions/group"}},"propertyNames":{"pattern":"^[\\w].*$"},"type":"object"},"homeassistant":{"default":false,"description":"Home Assistant integration (MQTT discovery)","oneOf":[{"title":"Home Assistant (simple)","type":"boolean"},{"properties":{"discovery_topic":{"description":"Home Assistant discovery topic","examples":["homeassistant"],"requiresRestart":true,"title":"Homeassistant discovery topic","type":"string"},"legacy_entity_attributes":{"default":true,"description":"Home Assistant legacy entity attributes, when enabled Zigbee2MQTT will add state attributes to each entity, additional to the separate entities and devices it already creates","title":"Home Assistant legacy entity attributes","type":"boolean"},"legacy_triggers":{"default":true,"description":"Home Assistant legacy triggers, when enabled Zigbee2mqt will send an empty 'action' or 'click' after one has been send. A 'sensor_action' and 'sensor_click' will be discoverd","title":"Home Assistant legacy triggers","type":"boolean"},"status_topic":{"description":"Home Assistant status topic","examples":["homeassistant/status"],"requiresRestart":true,"title":"Home Assistant status topic","type":"string"}},"title":"Home Assistant (advanced)","type":"object"}],"requiresRestart":true,"title":"Home Assistant integration"},"map_options":{"properties":{"graphviz":{"properties":{"colors":{"properties":{"fill":{"properties":{"coordinator":{"type":"string"},"enddevice":{"type":"string"},"router":{"type":"string"}},"type":"object"},"font":{"properties":{"coordinator":{"type":"string"},"enddevice":{"type":"string"},"router":{"type":"string"}},"type":"object"},"line":{"properties":{"active":{"type":"string"},"inactive":{"type":"string"}},"type":"object"}},"type":"object"}},"type":"object"}},"title":"Networkmap","type":"object"},"mqtt":{"properties":{"base_topic":{"default":"zigbee2mqtt","description":"MQTT base topic for Zigbee2MQTT MQTT messages","examples":["zigbee2mqtt"],"requiresRestart":true,"title":"Base topic","type":"string"},"ca":{"description":"Absolute path to SSL/TLS certificate of CA used to sign server and client certificates","examples":["/etc/ssl/mqtt-ca.crt"],"requiresRestart":true,"title":"Certificate authority","type":"string"},"cert":{"description":"Absolute path to SSL/TLS certificate for client-authentication","examples":["/etc/ssl/mqtt-client.crt"],"requiresRestart":true,"title":"SSL/TLS certificate","type":"string"},"client_id":{"description":"MQTT client ID","examples":["MY_CLIENT_ID"],"requiresRestart":true,"title":"Client ID","type":"string"},"force_disable_retain":{"default":false,"description":"Disable retain for all send messages. ONLY enable if you MQTT broker doesn't support retained message (e.g. AWS IoT core, Azure IoT Hub, Google Cloud IoT core, IBM Watson IoT Platform). Enabling will break the Home Assistant integration","requiresRestart":true,"title":"Force disable retain","type":"boolean"},"include_device_information":{"default":false,"description":"Include device information to mqtt messages","title":"Include device information","type":"boolean"},"keepalive":{"default":60,"description":"MQTT keepalive in second","requiresRestart":true,"title":"Keepalive","type":"number"},"key":{"description":"Absolute path to SSL/TLS key for client-authentication","examples":["/etc/ssl/mqtt-client.key"],"requiresRestart":true,"title":"SSL/TLS key","type":"string"},"password":{"description":"MQTT server authentication password","examples":["ILOVEPELMENI"],"requiresRestart":true,"title":"Password","type":"string"},"reject_unauthorized":{"default":true,"description":"Disable self-signed SSL certificate","requiresRestart":true,"title":"Reject unauthorized","type":"boolean"},"server":{"description":"MQTT server URL (use mqtts:// for SSL/TLS connection)","examples":["mqtt://localhost:1883"],"requiresRestart":true,"title":"MQTT server","type":"string"},"user":{"description":"MQTT server authentication user","examples":["johnnysilverhand"],"requiresRestart":true,"title":"User","type":"string"},"version":{"default":4,"description":"MQTT protocol version","examples":[5],"requiresRestart":true,"title":"Version","type":["number","null"]}},"required":["server"],"title":"MQTT","type":"object"},"ota":{"properties":{"disable_automatic_update_check":{"default":false,"description":"Zigbee devices may request a firmware update, and do so frequently, causing Zigbee2MQTT to reach out to third party servers. If you disable these device initiated checks, you can still initiate a firmware update check manually.","title":"Disable automatic update check","type":"boolean"},"ikea_ota_use_test_url":{"default":false,"description":"Use IKEA TRADFRI OTA test server, see OTA updates documentation","requiresRestart":true,"title":"IKEA TRADFRI OTA use test url","type":"boolean"},"update_check_interval":{"default":1440,"description":"Your device may request a check for a new firmware update. This value determines how frequently third party servers may actually be contacted to look for firmware updates. The value is set in minutes, and the default is 1 day.","title":"Update check interval","type":"number"},"zigbee_ota_override_index_location":{"description":"Location of override OTA index file","examples":["index.json"],"requiresRestart":true,"title":"OTA index override file name","type":["string","null"]}},"title":"OTA updates","type":"object"},"passlist":{"description":"Allow only certain devices to join the network (by ieeeAddr). Note that all devices not on the passlist will be removed from the network!","items":{"type":"string"},"requiresRestart":true,"title":"Passlist","type":"array"},"permit_join":{"default":false,"description":"Allow new devices to join (re-applied at restart)","title":"Permit join","type":"boolean"},"serial":{"properties":{"adapter":{"default":"auto","description":"Adapter type, not needed unless you are experiencing problems","enum":["deconz","zstack","zigate","ezsp","auto","ember"],"requiresRestart":true,"title":"Adapter","type":["string"]},"baudrate":{"description":"Baud rate speed for serial port, this can be anything firmware support but default is 115200 for Z-Stack and EZSP, 38400 for Deconz, however note that some EZSP firmware need 57600","examples":[38400,57600,115200],"requiresRestart":true,"title":"Baudrate","type":"number"},"disable_led":{"default":false,"description":"Disable LED of the adapter if supported","requiresRestart":true,"title":"Disable led","type":"boolean"},"port":{"description":"Location of the adapter. To autodetect the port, set null","examples":["/dev/ttyACM0"],"requiresRestart":true,"title":"Port","type":["string","null"]},"rtscts":{"description":"RTS / CTS Hardware Flow Control for serial port","requiresRestart":true,"title":"RTS / CTS","type":"boolean"}},"title":"Serial","type":"object"},"whitelist":{"items":{"type":"string"},"readOnly":true,"requiresRestart":true,"title":"Whitelist (deprecated, use passlist)","type":"array"}},"required":["mqtt"],"type":"object"},"coordinator":{"ieee_address":"0xbc026efffe0e32eb","meta":{"build":0,"ezsp":13,"major":7,"minor":4,"patch":2,"revision":"7.4.2 [GA]","special":0,"type":170},"type":"EmberZNet"},"log_level":"info","network":{"channel":11,"extended_pan_id":940170333533375400,"pan_id":34310},"permit_join":true,"restart_required":false,"version":"1.39.1","zigbee_herdsman":{"version":"0.55.3"},"zigbee_herdsman_converters":{"version":"19.72.0"}}
     2025-01-23 13:52:39   log_level       info
     2025-01-23 13:52:39   log_message     z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/T-Til', payload '{"battery":69,"humidity":48.6,"linkquality":84,"temperature":18.3,"voltage":2900}'
     2025-01-23 13:29:47   permit_join     set permit_join true
     2025-01-23 13:29:48   status          ok
Attributes:
   bridgeRegexp zigbee2mqtt/([A-Za-z0-9._]+)[/]?.*:.* "zigbee_$1"
   comment    To check for new updates of the deamon software, you might want to use a separate HTTPMOD device. See HTTPMOD template zigbee2mqtt_daemon_updates for further details.
   devicetopic zigbee2mqtt
   getList    networkmap_raw:noArg raw $DEVICETOPIC/bridge/request/networkmap raw
  networkmap_graphviz:noArg graphviz $DEVICETOPIC/bridge/request/networkmap graphviz
   icon       mqtt
   model      zigbee2mqtt_bridge
   readingList $DEVICETOPIC/bridge/state:.* state
  $DEVICETOPIC/bridge/config/devices:.* {}
  $DEVICETOPIC/bridge/config/log_level:.* log_level
  $DEVICETOPIC/bridge/config/permit_join:.* permit_join
  $DEVICETOPIC/bridge/config/rename:.* { json2nameValue($EVENT, 'rename_') }
  $DEVICETOPIC/bridge/config:.* { json2nameValue($EVENT) }
  $DEVICETOPIC/bridge/log:.*\"type\".\"devices\".\"message\".* devices
  $DEVICETOPIC/bridge/log:.* log
  $DEVICETOPIC/bridge/logging:.* { json2nameValue($EVENT,'log_') }
  $DEVICETOPIC/bridge/response/networkmap:.* { my $type = $EVENT =~ m/.*,"type":"(raw|graphviz)",.*/ ? $1 : 'networkmap'; $EVENT =~ m/{"data":\{.*"value":"?(.*[^"])"?\},"status":"ok"\}/ ? { $type=>$1 } : {} }
  $DEVICETOPIC/bridge/devices:.* devices
  $DEVICETOPIC/bridge/info:.* info
  $DEVICETOPIC/bridge/groups:.* groups
  $DEVICETOPIC/bridge/event:.* { json2nameValue($EVENT) }
  $DEVICETOPIC/bridge/extensions:.* extensions
  $DEVICETOPIC/bridge/response/permit_join:.* { json2nameValue($EVENT) }
   room       MQTT2_DEVICE
   setList    log_level:debug,info,warn,error $DEVICETOPIC/bridge/config/log_level $EVTPART1
  permit_join:true,false $DEVICETOPIC/bridge/request/permit_join $EVTPART1
  remove:textField $DEVICETOPIC/bridge/config/remove $EVTPART1
  ota_update:textField $DEVICETOPIC/bridge/ota_update/update $EVTPART1
  ota_update_check:textField $DEVICETOPIC/bridge/ota_update/check $EVTPART1
  y_device_setting:textField $DEVICETOPIC/$EVTPART1/set {"$EVTPART2": "$EVTPART3"}
  x_bind:textField $DEVICETOPIC/bridge/bind/$EVTPART1 $EVTPART2
  x_bind_unbind:textField $DEVICETOPIC/bridge/unbind/$EVTPART1 $EVTPART2
  x_device_options:textField $DEVICETOPIC/bridge/config/device_options {"friendly_name":"$EVTPART1","options": {"$EVTPART2": "$EVTPART3"}}
  x_group_add_to:textField $DEVICETOPIC/bridge/group/$EVTPART1/add $EVTPART2
  x_group_rm_from:textField $DEVICETOPIC/bridge/group/$EVTPART1/remove $EVTPART2
  x_group_rm_from_all:textField $DEVICETOPIC/bridge/group/$EVTPART1/remove_all $EVTPART2
  x_group_add_group:textField $DEVICETOPIC/bridge/config/add_group $EVTPART1
  x_group_rm_group:textField $DEVICETOPIC/bridge/config/remove_group $EVTPART1
  z_elapsed:textField $DEVICETOPIC/bridge/config/elapsed $EVTPART1
  z_last_seen:disable,ISO_8601,epoch,ISO_8601_local $DEVICETOPIC/bridge/config/last_seen $EVTPART1
  z_ban:textField $DEVICETOPIC/bridge/config/ban $EVTPART1
  z_rename:textField $DEVICETOPIC/bridge/config/rename  {"old":"$EVTPART1","new":"$EVTPART2"}
  z_reset_CC:noArg $DEVICETOPIC/bridge/config/reset
   setStateList on off

betateilchen

Diese Diskussion ist komplett im falschen Unterforum.
Man beachte bitte den (einzigen!) hier im Bereich angepinnten Thread: Hinweise zu diesem Board
-----------------------
Formuliere die Aufgabe möglichst einfach und
setze die Lösung richtig um - dann wird es auch funktionieren.
-----------------------
Lesen gefährdet die Unwissenheit!