zigbee2mqtt - Attribut imageLink

Begonnen von TomLee, 16 September 2024, 18:24:54

Vorheriges Thema - Nächstes Thema

TomLee

Hallo,

hab mich nie damit beschäftigt, ist irgendwie an mir vorbeigegangen.
Mir fällt eben auf das die Bildchen nicht mehr angezeigt werden.
Kann mir jemand bitte aufzeigen wie/wer das Attribut überhaupt setzt? Durch die Templates ja scheinbar nicht.
Und wie kommen die Bildchen nach /fhem/deviceimages/mqtt2/ ? Der Ordner existiert bei mir gar nicht (mehr?).
Steh da gerade auf dem Schlauch und gefunden im Forum hab ich nix zu imageLink.

Gruß Thomas

passibe

Das commandref-Tooltip sagt bei mir:sets the image to be shown. The "Show neighbor map" function initializes the value automatically.
Scheint also irgendwie über "Show neighbor map" zu passieren? Muss man das dann über das z2m-Webinterface anstoßen und das zieht sich das dann irgendwie aus den MQTT-Nachrichten in die jeweiligen Devices?
Höre davon aber zum ersten Mal. Was kann das denn überhaupt, sieht man dann ein Icon vom jeweiligen Gerät in FHEM? Interessant ...


TomLee

Vermutung bis jetzt (ohne was im Bauch und nebenbei am Tablet) -> die URL zum holen der Bilder ist fix hinterlegt (nur die Model-Bezeichnung wird ergänzt), die URL ist aber nicht mehr aktuell.

Wenn ich am PC bin versuch ich den Gedanken nachzuvollziehen.

rudolfkoenig

Das imageLink Attribut wird automatisch gesetzt, wenn ein graphviz oder .graphviz Reading gefunden wird, und diese Daten ein Image-Eintrag haben.
Das MQTT2_DEVICE Modul versucht das Bild von https://www.zigbee2mqtt.io/images/devices/<Image> zu laden, und es in .../www/deviceimages/mqtt2/<Image> zu speichern.

TomLee

Gerade PC angemacht.

Hab ein graphviz-Reading, aber einen image-Eintrag (wie auch immer der aussieht/aussah) seh ich nicht, kommt der evtl. nicht mehr mit? Die versteckten Readings hab ich aktiviert ein .graphviz hab ich nicht.
setstate MQTT2_zigbee_bridge 2024-09-16 20:15:31 graphviz digraph G {\nnode[shape=record];;\n  \"0x00212effff07570b\" [style=\"bold, filled\", fillcolor=\"#e04e5d\", fontcolor=\"#ffffff\", label=\"{Coordinator|0x00212effff07570b (0x0000)|0 seconds ago}\"];;\n  \"0x00212effff07570b\" -> \"0x00158d0003609724\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"28\"]\n  \"0x00212effff07570b\" -> \"0x00158d000340eac3\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"32\"]\n  \"0x00212effff07570b\" -> \"0x00158d0003274a6c\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"18\"]\n  \"0x00212effff07570b\" -> \"0x00158d000360ba24\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"81\"]\n  \"0x00212effff07570b\" -> \"0x00158d0003278378\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"40\"]\n  \"0x00212effff07570b\" -> \"0x00158d0003e5ee0c\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"89\"]\n  \"0x00212effff07570b\" -> \"0x04cd15fffea4c6ad\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"116\"]\n  \"0x00212effff07570b\" -> \"0x04cd15fffedb3a26\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"114\"]\n  \"0x00212effff07570b\" -> \"0x8cf681fffeee358e\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"71\"]\n  \"0x00212effff07570b\" -> \"0x00158d0002fde5ce\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"36\"]\n  \"0x00212effff07570b\" -> \"0x00158d00032b45ca\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"10\"]\n  \"0x00158d00031c22fa\" [style=\"rounded, dashed, filled\", fillcolor=\"#fff8ce\", fontcolor=\"#000000\", label=\"{0x00158d00031c22fa|0x00158d00031c22fa (0xcdef)|Xiaomi Mi motion sensor (RTCGQ01LM)|43 minutes, 30 seconds ago}\"];;\n  \"0x00158d000302cc1e\" [style=\"rounded, dashed, filled\", fillcolor=\"#fff8ce\", fontcolor=\"#000000\", label=\"{0x00158d000302cc1e|0x00158d000302cc1e (0xa85c)|Aqara Motion sensor (RTCGQ11LM)|6 minutes, 38 seconds ago}\"];;\n  \"0x00158d000302cc1e\" -> \"0x00158d0002fde5ce\" [penwidth=1, weight=0, color=\"#994444\", label=\"120\"]\n  \"0x00158d0003609724\" [style=\"rounded, filled\", fillcolor=\"#4ea3e0\", fontcolor=\"#ffffff\", label=\"{0x00158d0003609724|0x00158d0003609724 (0x604e)|Müller Licht Tint LED bulb GU10/E14/E27 350/470/806 lumen, dimmable, opal white (404006/404008/404004)|6 minutes, 36 seconds ago}\"];;\n  \"0x00158d0003609724\" -> \"0x00212effff07570b\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"79\"]\n  \"0x00158d0003609724\" -> \"0x00158d000340eac3\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"105\"]\n  \"0x00158d0003609724\" -> \"0x00158d000360ba24\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"90\"]\n  \"0x00158d0003609724\" -> \"0x00158d0003278378\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"55\"]\n  \"0x00158d0003609724\" -> \"0x04cd15fffea4c6ad\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"102\"]\n  \"0x00158d0003609724\" -> \"0x04cd15fffedb3a26\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"77\"]\n  \"0x00158d0003609724\" -> \"0x00158d0002fde5ce\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"108\"]\n  \"0x00158d000340eac3\" [style=\"rounded, filled\", fillcolor=\"#4ea3e0\", fontcolor=\"#ffffff\", label=\"{0x00158d000340eac3|0x00158d000340eac3 (0xa154)|Müller Licht Tint LED bulb GU10/E14/E27 350/470/806 lumen, dimmable, opal white (404006/404008/404004)|9 minutes, 25 seconds ago}\"];;\n  \"0x00158d000340eac3\" -> \"0x00212effff07570b\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"97\"]\n  \"0x00158d000340eac3\" -> \"0x00158d0003609724\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"108\"]\n  \"0x00158d000340eac3\" -> \"0x00158d000360ba24\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"81\"]\n  \"0x00158d000340eac3\" -> \"0x00158d0003278378\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"102\"]\n  \"0x00158d000340eac3\" -> \"0x00158d0003e5ee0c\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"0\"]\n  \"0x00158d000340eac3\" -> \"0x04cd15fffea4c6ad\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"104\"]\n  \"0x00158d000340eac3\" -> \"0x04cd15fffedb3a26\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"92\"]\n  \"0x00158d000340eac3\" -> \"0x00158d0002fde5ce\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"119\"]\n  \"0x00158d0003274a6c\" [style=\"rounded, filled\", fillcolor=\"#4ea3e0\", fontcolor=\"#ffffff\", label=\"{0x00158d0003274a6c|0x00158d0003274a6c (0x707d)|Müller Licht Tint LED bulb GU10/E14/E27 350/470/806 lumen, dimmable, opal white (404006/404008/404004)|1 minute ago}\"];;\n  \"0x00158d0003274a6c\" -> \"0x00212effff07570b\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"66\"]\n  \"0x00158d0003274a6c\" -> \"0x00158d0003602b8a\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"2\"]\n  \"0x00158d0003274a6c\" -> \"0xa4c13843bef9c42f\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"0\"]\n  \"0x00158d0003274a6c\" -> \"0x8cf681fffeee358e\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"65\"]\n  \"0x00158d0003274a6c\" -> \"0x00158d00032b45ca\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"47\"]\n  \"0x00158d0003602b8a\" [style=\"rounded, filled\", fillcolor=\"#4ea3e0\", fontcolor=\"#ffffff\", label=\"{0x00158d0003602b8a|0x00158d0003602b8a (0x1d71)|Müller Licht Tint LED bulb GU10/E14/E27 350/470/806 lumen, dimmable, opal white (404006/404008/404004)|46 seconds ago}\"];;\n  \"0x00158d0003602b8a\" -> \"0x00158d0003274a6c\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"2\"]\n  \"0x00158d0003602b8a\" -> \"0xa4c13843bef9c42f\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"0\"]\n  \"0x00158d0003602b8a\" -> \"0x3425b4fffeed2a93\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"36\"]\n  \"0x00158d0003602b8a\" -> \"0x8cf681fffeee358e\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"35\"]\n  \"0x00158d0003602b8a\" -> \"0x00158d00032b45ca\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"60\"]\n  \"0xa4c1389c1b701c5a\" [style=\"rounded, dashed, filled\", fillcolor=\"#fff8ce\", fontcolor=\"#000000\", label=\"{0xa4c1389c1b701c5a|0xa4c1389c1b701c5a (0x162e)|Tuya Door sensor (TS0203)|3 hours, 52 minutes ago}\"];;\n  \"0xa4c1389c1b701c5a\" -> \"0x00158d0003e5ee0c\" [penwidth=1, weight=0, color=\"#994444\", label=\"105\"]\n  \"0x00158d000360ba24\" [style=\"rounded, filled\", fillcolor=\"#4ea3e0\", fontcolor=\"#ffffff\", label=\"{0x00158d000360ba24|0x00158d000360ba24 (0x0d5f)|Müller Licht Tint LED bulb GU10/E14/E27 350/470/806 lumen, dimmable, opal white (404006/404008/404004)|6 minutes, 53 seconds ago}\"];;\n  \"0x00158d000360ba24\" -> \"0x00212effff07570b\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"212\"]\n  \"0x00158d000360ba24\" -> \"0x00158d0003609724\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"85\"]\n  \"0x00158d000360ba24\" -> \"0x00158d000340eac3\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"76\"]\n  \"0x00158d000360ba24\" -> \"0x00158d0003278378\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"162\"]\n  \"0x00158d000360ba24\" -> \"0x00158d0003e5ee0c\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"12\"]\n  \"0x00158d000360ba24\" -> \"0x04cd15fffea4c6ad\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"66\"]\n  \"0x00158d000360ba24\" -> \"0x04cd15fffedb3a26\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"100\"]\n  \"0x00158d000360ba24\" -> \"0x00158d0002fde5ce\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"51\"]\n  \"0x00158d0003278378\" [style=\"rounded, filled\", fillcolor=\"#4ea3e0\", fontcolor=\"#ffffff\", label=\"{0x00158d0003278378|0x00158d0003278378 (0x27ed)|Müller Licht Tint LED bulb GU10/E14/E27 350/470/806 lumen, dimmable, opal white (404006/404008/404004)|1 minute, 4 seconds ago}\"];;\n  \"0x00158d0003278378\" -> \"0x00212effff07570b\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"108\"]\n  \"0x00158d0003278378\" -> \"0x00158d0003609724\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"49\"]\n  \"0x00158d0003278378\" -> \"0x00158d000340eac3\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"96\"]\n  \"0x00158d0003278378\" -> \"0x00158d000360ba24\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"165\"]\n  \"0x00158d0003278378\" -> \"0x00158d0003e5ee0c\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"33\"]\n  \"0x00158d0003278378\" -> \"0x04cd15fffea4c6ad\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"100\"]\n  \"0x00158d0003278378\" -> \"0x04cd15fffedb3a26\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"60\"]\n  \"0x00158d0003278378\" -> \"0x00158d0002fde5ce\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"55\"]\n  \"0xa4c13843bef9c42f\" [style=\"rounded, filled\", fillcolor=\"#4ea3e0\", fontcolor=\"#ffffff\", label=\"{0xa4c13843bef9c42f|0xa4c13843bef9c42f (0x1159)|Tuya Zigbee dimmer module 1 channel (TS0052)|9 minutes, 26 seconds ago}\"];;\n  \"0xa4c13843bef9c42f\" -> \"0x3425b4fffeed2a93\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"224\"]\n  \"0xa4c13843bef9c42f\" -> \"0x04cd15fffea4c6ad\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"66\"]\n  \"0xa4c13843bef9c42f\" -> \"0x04cd15fffedb3a26\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"37\"]\n  \"0x2c1165fffedecf76\" [style=\"rounded, dashed, filled\", fillcolor=\"#fff8ce\", fontcolor=\"#000000\", label=\"{0x2c1165fffedecf76|0x2c1165fffedecf76 (0x674b)|Lidl Silvercrest smart button (HG08164)|3 months, 2 weeks ago}\"];;\n  \"0x2c1165fffedecf76\" -> \"0x00158d0003e5ee0c\" [penwidth=1, weight=0, color=\"#994444\", label=\"61\"]\n  \"0x00158d0003e5ee0c\" [style=\"rounded, filled\", fillcolor=\"#4ea3e0\", fontcolor=\"#ffffff\", label=\"{0x00158d0003e5ee0c|0x00158d0003e5ee0c (0x1847)|Müller Licht Tint LED bulb GU10/E14/E27 350/470/806 lumen, dimmable, color, opal white (404000/404005/404012/404019)|3 minutes, 38 seconds ago}\"];;\n  \"0x00158d0003e5ee0c\" -> \"0x00212effff07570b\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"239\"]\n  \"0x00158d0003e5ee0c\" -> \"0x00158d000340eac3\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"0\"]\n  \"0x00158d0003e5ee0c\" -> \"0x00158d000360ba24\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"18\"]\n  \"0x00158d0003e5ee0c\" -> \"0x00158d0003278378\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"36\"]\n  \"0x00158d0003e5ee0c\" -> \"0x04cd15fffea4c6ad\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"31\"]\n  \"0x00158d0003e5ee0c\" -> \"0x04cd15fffedb3a26\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"49\"]\n  \"0x3425b4fffeed2a93\" [style=\"rounded, filled\", fillcolor=\"#4ea3e0\", fontcolor=\"#ffffff\", label=\"{0x3425b4fffeed2a93|0x3425b4fffeed2a93 (0x88cf)|IKEA TRADFRI control outlet (E1603/E1702/E1708)|8 minutes, 48 seconds ago}\"];;\n  \"0x3425b4fffeed2a93\" -> \"0x00158d0003602b8a\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"0\"]\n  \"0x3425b4fffeed2a93\" -> \"0xa4c13843bef9c42f\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"133\"]\n  \"0x3425b4fffeed2a93\" -> \"0x04cd15fffea4c6ad\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"120\"]\n  \"0x3425b4fffeed2a93\" -> \"0x04cd15fffedb3a26\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"72\"]\n  \"0x00158d00047d3f22\" [style=\"rounded, dashed, filled\", fillcolor=\"#fff8ce\", fontcolor=\"#000000\", label=\"{0x00158d00047d3f22|0x00158d00047d3f22 (0x364a)|Aqara Motion sensor (RTCGQ11LM)|51 minutes, 4 seconds ago}\"];;\n  \"0x00158d00047d3f22\" -> \"0x00158d0002fde5ce\" [penwidth=1, weight=0, color=\"#994444\", label=\"46\"]\n  \"0x00158d0004038f6b\" [style=\"rounded, dashed, filled\", fillcolor=\"#fff8ce\", fontcolor=\"#000000\", label=\"{0x00158d0004038f6b|0x00158d0004038f6b (0x206e)|Aqara Motion sensor (RTCGQ11LM)|5 seconds ago}\"];;\n  \"0x00158d0004038f6b\" -> \"0x04cd15fffea4c6ad\" [penwidth=1, weight=0, color=\"#994444\", label=\"115\"]\n  \"0x00158d000411c41c\" [style=\"rounded, dashed, filled\", fillcolor=\"#fff8ce\", fontcolor=\"#000000\", label=\"{0x00158d000411c41c|0x00158d000411c41c (0x3c06)|Aqara Motion sensor (RTCGQ11LM)|19 minutes, 33 seconds ago}\"];;\n  \"0x00158d000411b050\" [style=\"rounded, dashed, filled\", fillcolor=\"#fff8ce\", fontcolor=\"#000000\", label=\"{0x00158d000411b050|0x00158d000411b050 (0xe162)|Aqara Motion sensor (RTCGQ11LM)|1 hour, 19 minutes ago}\"];;\n  \"0x00158d000411b050\" -> \"0x00158d0003e5ee0c\" [penwidth=1, weight=0, color=\"#994444\", label=\"63\"]\n  \"0x00158d00032c6d54\" [style=\"rounded, dashed, filled\", fillcolor=\"#fff8ce\", fontcolor=\"#000000\", label=\"{0x00158d00032c6d54|0x00158d00032c6d54 (0x5c75)|Xiaomi Mi motion sensor (RTCGQ01LM)|2 minutes, 18 seconds ago}\"];;\n  \"0xa4c1386c5a0939dc\" [style=\"rounded, dashed, filled\", fillcolor=\"#fff8ce\", fontcolor=\"#000000\", label=\"{0xa4c1386c5a0939dc|0xa4c1386c5a0939dc (0x201b)|AwoX Remote controller (33952)|3 months, 3 weeks ago}\"];;\n  \"0x04cd15fffea4c6ad\" [style=\"rounded, filled\", fillcolor=\"#4ea3e0\", fontcolor=\"#ffffff\", label=\"{0x04cd15fffea4c6ad|0x04cd15fffea4c6ad (0x2ec1)|Lidl Livarno Home LED ceiling light (HG08008)|16 minutes, 13 seconds ago}\"];;\n  \"0x04cd15fffea4c6ad\" -> \"0x00212effff07570b\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"122\"]\n  \"0x04cd15fffea4c6ad\" -> \"0x00158d0003609724\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"33\"]\n  \"0x04cd15fffea4c6ad\" -> \"0x00158d000340eac3\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"33\"]\n  \"0x04cd15fffea4c6ad\" -> \"0x00158d000360ba24\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"12\"]\n  \"0x04cd15fffea4c6ad\" -> \"0x00158d0003278378\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"35\"]\n  \"0x04cd15fffea4c6ad\" -> \"0xa4c13843bef9c42f\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"9\"]\n  \"0x04cd15fffea4c6ad\" -> \"0x3425b4fffeed2a93\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"112\"]\n  \"0x04cd15fffea4c6ad\" -> \"0x04cd15fffedb3a26\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"191\"]\n  \"0x04cd15fffea4c6ad\" -> \"0x00158d0002fde5ce\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"52\"]\n  \"0x04cd15fffedb3a26\" [style=\"rounded, filled\", fillcolor=\"#4ea3e0\", fontcolor=\"#ffffff\", label=\"{0x04cd15fffedb3a26|0x04cd15fffedb3a26 (0xf87c)|Lidl Livarno Home LED ceiling light (HG08008)|16 minutes, 13 seconds ago}\"];;\n  \"0x04cd15fffedb3a26\" -> \"0x00212effff07570b\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"124\"]\n  \"0x04cd15fffedb3a26\" -> \"0x00158d0003609724\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"18\"]\n  \"0x04cd15fffedb3a26\" -> \"0x00158d000340eac3\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"31\"]\n  \"0x04cd15fffedb3a26\" -> \"0x00158d000360ba24\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"41\"]\n  \"0x04cd15fffedb3a26\" -> \"0x00158d0003278378\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"6\"]\n  \"0x04cd15fffedb3a26\" -> \"0xa4c13843bef9c42f\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"0\"]\n  \"0x04cd15fffedb3a26\" -> \"0x00158d0003e5ee0c\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"0\"]\n  \"0x04cd15fffedb3a26\" -> \"0x3425b4fffeed2a93\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"64\"]\n  \"0x04cd15fffedb3a26\" -> \"0x04cd15fffea4c6ad\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"192\"]\n  \"0x04cd15fffedb3a26\" -> \"0x00158d0002fde5ce\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"33\"]\n  \"0xa4c138670d2c0385\" [style=\"rounded, dashed, filled\", fillcolor=\"#fff8ce\", fontcolor=\"#000000\", label=\"{0xa4c138670d2c0385|0xa4c138670d2c0385 (0x69c7)|Tuya Door sensor (TS0203)|1 month, 1 week ago}\"];;\n  \"0x8cf681fffeee358e\" [style=\"rounded, filled\", fillcolor=\"#4ea3e0\", fontcolor=\"#ffffff\", label=\"{0x8cf681fffeee358e|0x8cf681fffeee358e (0x931a)|Lidl Livarno Home outdoor spotlight (HG08010)|8 minutes, 50 seconds ago}\"];;\n  \"0x8cf681fffeee358e\" -> \"0x00212effff07570b\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"55\"]\n  \"0x8cf681fffeee358e\" -> \"0x00158d0003274a6c\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"9\"]\n  \"0x8cf681fffeee358e\" -> \"0x540f57fffe8ddb52\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"152\"]\n  \"0x8cf681fffeee358e\" -> \"0x00158d00032b45ca\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"0\"]\n  \"0x8cf681fffeee358e\" -> \"0x3425b4fffedaba46\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"152\"]\n  \"0xb4e3f9fffebe7a39\" [style=\"rounded, filled\", fillcolor=\"#4ea3e0\", fontcolor=\"#ffffff\", label=\"{0xb4e3f9fffebe7a39|0xb4e3f9fffebe7a39 (0xaed1)failed: lqi|IKEA TRADFRI control outlet (E1603/E1702/E1708)|1 month, 5 days ago}\"];;\n  \"0x00158d0002fde5ce\" [style=\"rounded, filled\", fillcolor=\"#4ea3e0\", fontcolor=\"#ffffff\", label=\"{0x00158d0002fde5ce|0x00158d0002fde5ce (0xdecd)|Müller Licht Tint LED bulb GU10/E14/E27 350/470/806 lumen, dimmable, opal white (404006/404008/404004)|42 seconds ago}\"];;\n  \"0x00158d0002fde5ce\" -> \"0x00212effff07570b\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"97\"]\n  \"0x00158d0002fde5ce\" -> \"0x00158d0003609724\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"108\"]\n  \"0x00158d0002fde5ce\" -> \"0x00158d000340eac3\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"118\"]\n  \"0x00158d0002fde5ce\" -> \"0x00158d000360ba24\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"55\"]\n  \"0x00158d0002fde5ce\" -> \"0x00158d0003278378\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"57\"]\n  \"0x00158d0002fde5ce\" -> \"0x04cd15fffea4c6ad\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"124\"]\n  \"0x00158d0002fde5ce\" -> \"0x04cd15fffedb3a26\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"94\"]\n  \"0x00158d00047b8d2b\" [style=\"rounded, dashed, filled\", fillcolor=\"#fff8ce\", fontcolor=\"#000000\", label=\"{0x00158d00047b8d2b|0x00158d00047b8d2b (0xdd3f)|Aqara Motion sensor (RTCGQ11LM)|39 minutes, 57 seconds ago}\"];;\n  \"0x00158d00047b8d2b\" -> \"0x3425b4fffedaba46\" [penwidth=1, weight=0, color=\"#994444\", label=\"145\"]\n  \"0x540f57fffe8ddb52\" [style=\"rounded, filled\", fillcolor=\"#4ea3e0\", fontcolor=\"#ffffff\", label=\"{0x540f57fffe8ddb52|0x540f57fffe8ddb52 (0xdee6)|Lidl Livarno outdoor LED light chain (HG08383B)|13 minutes, 52 seconds ago}\"];;\n  \"0x540f57fffe8ddb52\" -> \"0x8cf681fffeee358e\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"151\"]\n  \"0x540f57fffe8ddb52\" -> \"0x3425b4fffedaba46\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"112\"]\n  \"0x00158d00032b45ca\" [style=\"rounded, filled\", fillcolor=\"#4ea3e0\", fontcolor=\"#ffffff\", label=\"{0x00158d00032b45ca|0x00158d00032b45ca (0x5eca)|Müller Licht Tint LED bulb GU10/E14/E27 350/470/806 lumen, dimmable, opal white (404006/404008/404004)|47 seconds ago}\"];;\n  \"0x00158d00032b45ca\" -> \"0x00212effff07570b\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"44\"]\n  \"0x00158d00032b45ca\" -> \"0x00158d0003274a6c\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"51\"]\n  \"0x00158d00032b45ca\" -> \"0x00158d0003602b8a\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"64\"]\n  \"0x00158d00032b45ca\" -> \"0x8cf681fffeee358e\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"46\"]\n  \"0xf082c0fffe0a24fe\" [style=\"rounded, dashed, filled\", fillcolor=\"#fff8ce\", fontcolor=\"#000000\", label=\"{0xf082c0fffe0a24fe|0xf082c0fffe0a24fe (0x17ba)|IKEA STYRBAR remote control (E2001/E2002)|36 minutes, 13 seconds ago}\"];;\n  \"0xf082c0fffe0a24fe\" -> \"0x540f57fffe8ddb52\" [penwidth=1, weight=0, color=\"#994444\", label=\"94\"]\n  \"0x3425b4fffedaba46\" [style=\"rounded, filled\", fillcolor=\"#4ea3e0\", fontcolor=\"#ffffff\", label=\"{0x3425b4fffedaba46|0x3425b4fffedaba46 (0xfbd9)|IKEA TRADFRI control outlet (E1603/E1702/E1708)|7 minutes, 19 seconds ago}\"];;\n  \"0x3425b4fffedaba46\" -> \"0x8cf681fffeee358e\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"155\"]\n  \"0x3425b4fffedaba46\" -> \"0x540f57fffe8ddb52\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"119\"]\n  \"0xa4c138c69fe78f45\" [style=\"rounded, dashed, filled\", fillcolor=\"#fff8ce\", fontcolor=\"#000000\", label=\"{0xa4c138c69fe78f45|0xa4c138c69fe78f45 (0x807b)|Tuya Door sensor (TS0203)|19 minutes, 44 seconds ago}\"];;\n  \"0xa4c138c69fe78f45\" -> \"0x00158d0002fde5ce\" [penwidth=1, weight=0, color=\"#994444\", label=\"132\"]\n  \"0xa4c1380b558e4006\" [style=\"rounded, dashed, filled\", fillcolor=\"#fff8ce\", fontcolor=\"#000000\", label=\"{0xa4c1380b558e4006|0xa4c1380b558e4006 (0x3583)|Tuya Door sensor (TS0203)|7 hours, 57 minutes ago}\"];;\n  \"0xa4c13866c4784982\" [style=\"rounded, filled\", fillcolor=\"#4ea3e0\", fontcolor=\"#ffffff\", label=\"{0xa4c13866c4784982|0xa4c13866c4784982 (0x89aa)failed: lqi|Lonsonho Curtain/blind motor controller (QS-Zigbee-C03)|7 hours, 14 minutes ago}\"];;\n  \"0xa4c13866c4784982\" -> \"0x04cd15fffedb3a26\" [penwidth=0.5, weight=0, color=\"#994444\", label=\"34\"]\n  \"0xa4c138fd91718732\" [style=\"rounded, dashed, filled\", fillcolor=\"#fff8ce\", fontcolor=\"#000000\", label=\"{0xa4c138fd91718732|0xa4c138fd91718732 (0xb380)|Tuya Temperature & humidity LCD sensor (ZG-227ZL)|5 months, 1 week ago}\"];;\n}
.../www/deviceimages/mqtt2/ ist leer.

Zitathttps://www.zigbee2mqtt.io/images/devices/<Image>
OK, die funzt, an der URL liegts nicht.

rudolfkoenig

Korrektur: graphvis ist nur fuer die "Pfeile" zustaendig, fuer Bildnamen braucht man noch ein devices oder .devices Reading, und dessen model Wert (siehe verlinktes Thema).

Die fuer die Readings notwendigen get Befehle sind im Template als networkmap_raw und networkmap_graphviz hinterlegt.

Irgendwannmal gab es eine leichte Formataenderung (https://forum.fhem.de/index.php?topic=126970), womoeglich ist das schon wieder der Fall.

TomLee

ieeeAddr hat sich zu ieee_address geändert und der Json ist anders.

devices-Reading gekürzt:
[{"definition":null,"disabled":false,"endpoints":{"1":{"bindings":[],"clusters":{"input":["genBasic","genTime","genOta"],"output":["genPowerCfg","genPollCtrl","ssIasZone"]},"configured_reportings":[],"scenes":[]},"242":{"bindings":[],"clusters":{"input":[],"output":["greenPower"]},"configured_reportings":[],"scenes":[]}},"friendly_name":"Coordinator","ieee_address":"0x00212effff07570b","interview_completed":true,"interviewing":false,"network_address":0,"supported":true,"type":"Coordinator"},{"definition":{"description":"Mi motion sensor","exposes":[{"access":1,"category":"diagnostic","description":"Remaining battery in %, can take up to 24 hours before reported","label":"Battery","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":1,"description":"Indicates whether the device detected occupancy","label":"Occupancy","name":"occupancy","property":"occupancy","type":"binary","value_off":false,"value_on":true},{"access":1,"category":"diagnostic","description":"Voltage of the battery in millivolts","label":"Voltage","name":"voltage","property":"voltage","type":"numeric","unit":"mV"},{"access":1,"category":"diagnostic","description":"Number of power outages","label":"Power outage count","name":"power_outage_count","property":"power_outage_count","type":"numeric"},{"access":1,"category":"diagnostic","description":"Link quality (signal strength)","label":"Linkquality","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"RTCGQ01LM","options":[{"access":2,"description":"Time in seconds after which occupancy is cleared after detecting it (default 90 seconds).","label":"Occupancy timeout","name":"occupancy_timeout","property":"occupancy_timeout","type":"numeric","value_min":0},{"access":2,"description":"Sends a message the last time occupancy (occupancy: true) was detected. When setting this for example to [10, 60] a `{\"no_occupancy_since\": 10}` will be send after 10 seconds and a `{\"no_occupancy_since\": 60}` after 60 seconds.","item_type":{"access":3,"label":"Time","name":"time","type":"numeric"},"label":"No occupancy since","name":"no_occupancy_since","property":"no_occupancy_since","type":"list"}],"supports_ota":false,"vendor":"Xiaomi"},"disabled":false,"endpoints":{"1":{"bindings":[],"clusters":{"input":[],"output":[]},"configured_reportings":[],"scenes":[]}},"friendly_name":"0x00158d00031c22fa","ieee_address":"0x00158d00031c22fa","interview_completed":true,"interviewing":false,"manufacturer":"LUMI","model_id":"lumi.sensor_motion","network_address":52719,"power_source":"Battery","supported":true,"type":"EndDevice"},
laut regex101 passt ieee_address":"([^"]+)"[^}].+"model":"([^"]+)Das hab ich auch in Zeile 747 mal so geändert.
$dv =~ s@ieee_address":"([^"]+)"[^}].+"model":"([^"]+)@;Nach einem restart gibts aber weiterhin keine Bildchen.

Es muss noch eine andere Stelle geben wo es hakt.

Ich würd ja ein List zeigen, wenn es nicht abgeschnitten würde.



Eigentlich interessiert es mich gar nicht ob die Bildchen angezeigt werden, wollte es bloss erwähnen. Spannend ist es auf jedenfall wie es umgesetzt ist, da muss man ja übel tief drin sein um alles zu verstehen.

rudolfkoenig

model kommt in deinem gekuerzten device Beispiel vor ieee_address.
Eigentlich muss man hier mit einem JSON Parser (oder json2nameValue) arbeiten.
Ich werde es anschauen, kann aber sein, dass ich erst am Wochenende dazu komme.

Zum Testen waere es praktisch ein ungekuerztes device Reading zu bekommen, was zum graphviz Reading passt.

TomLee

#9
Im Anhang (nur für heute Abend noch !) ein Copy for forum.fhem.de meiner Bridge.

TomLee

Sry, blöde Idee gewesen mit dem Copy for Forum  ::)
Ich hab jetzt ein Raw-List angehangen.

rudolfkoenig


rudolfkoenig

Hab was gebaut und eingecheckt, bitte testen.

TomLee

Ich meine es so verstanden zu haben das ohne weiteres zu tun, nur beim Aufruf der Sub MQTT2_DEVICE_Initialize, das alles passiert.
Muss es doch irgendwie angestossen werden ?

Mit der Änderung und einem anschliessenden restart sind die Icons nämlich immer noch nicht da.

.../www/deviceimages/mqtt2/<Image> ist leer.

Im Logfile seh ich auch nix.

Klappt es bei dir mit meiner Bridge-Definition? Nicht das ich noch irgendwas ausgeknipst hab und übersehe das vlt. die ganze Zeit ?


TomLee

Ah, jetzt hab ich es. Show neighbor map ist der Auslöser, es funzt dann doch wie Du es vorgesehen hast. Cool und danke das dich da gleich ran gemacht hast.