ben423423n32j14e / zigbee2mqttadminpanel

Node-Red-Dashboard web interface for controlling Zigbee2MQTT
GNU General Public License v3.0
111 stars 70 forks source link

GraphViz broken with ' in device description #16

Open ptath opened 4 years ago

ptath commented 4 years ago
var graphData = 'digraph G {node[shape=record];  "0x00124b0018e1e995" [style="bold, filled", fillcolor="#e04e5d", fontcolor="#ffffff", label="{0x00124b0018e1e995|0x0 |No model information available|online (2019-08-04T11:49:02+04:00)}"];  "0x00124b0018e1e995" -> "0x00124b001d3b0628" [penwidth=0.5, weight=0, color="#994444", label="42"]  "0x00124b0018e1e995" -> "0x00158d00031421a9" [penwidth=0.5, weight=0, color="#994444", label="105"]  "0x00124b0018e1e995" -> "0x00158d0002c00bd7" [penwidth=0.5, weight=0, color="#994444", label="50"]  "0x00124b0018e1e995" -> "0x00158d000257b860" [penwidth=0.5, weight=0, color="#994444", label="56"]  "0x00124b0018e1e995" -> "0x00158d0002e69749" [penwidth=0.5, weight=0, color="#994444", label="58"]  "0x00124b0018e1e995" -> "0x00158d0002ead0f9" [penwidth=0.5, weight=0, color="#994444", label="42"]  "0x00158d00031421a9" [style="rounded, dashed, filled", fillcolor="#fff8ce", fontcolor="#000000", label="{light_zal|0x2db7 |Xiaomi Aqara single key wired wall switch without neutral wire. Doesn't work as a router and doesn't support power meter (QBKG04LM)|online (00:04:02s ago)}"];  "0x00158d00031421a9" -> "0x00124b0018e1e995" [penwidth=1, weight=0, color="#994444", label="104"]  "0x00158d0002c00bd7" [style="rounded, dashed, filled", fillcolor="#fff8ce", fontcolor="#000000", label="{light_wc1|0xe776 |Xiaomi Aqara double key wired wall switch without neutral wire. Doesn't work as a router and doesn't support power meter (QBKG03LM)|online (00:04:42s ago)}"];  "0x00158d0002c00bd7" -> "0x00124b0018e1e995" [penwidth=1, weight=0, color="#994444", label="46"]  "0x00158d0002e69749" [style="rounded, dashed, filled", fillcolor="#fff8ce", fontcolor="#000000", label="{light_kitchen|0x8f1c |Xiaomi Aqara double key wired wall switch without neutral wire. Doesn't work as a router and doesn't support power meter (QBKG03LM)|online (00:01:21s ago)}"];  "0x00158d0002e69749" -> "0x00124b0018e1e995" [penwidth=1, weight=0, color="#994444", label="53"]  "0x00158d000257b860" [style="rounded, dashed, filled", fillcolor="#fff8ce", fontcolor="#000000", label="{light_guest1|0xfd88 |Xiaomi Aqara single key wired wall switch without neutral wire. Doesn't work as a router and doesn't support power meter (QBKG04LM)|online (00:04:55s ago)}"];  "0x00158d000257b860" -> "0x00124b0018e1e995" [penwidth=1, weight=0, color="#994444", label="53"]  "0x00158d00031de635" [style="rounded, dashed, filled", fillcolor="#fff8ce", fontcolor="#000000", label="{light_hall2|0x9806 |Xiaomi Aqara double key wired wall switch without neutral wire. Doesn't work as a router and doesn't support power meter (QBKG03LM)|online (00:00:06s ago)}"];  "0x00158d00031de635" -> "0x00124b001d3b0628" [penwidth=1, weight=0, color="#994444", label="90"]  "0x00124b001d3b0628" [style="rounded, filled", fillcolor="#4ea3e0", fontcolor="#ffffff", label="{0x00124b001d3b0628|0x8de2 |Custom devices (DiY) [CC2530 router](http://ptvo.info/cc2530-based-zigbee-coordinator-and-router-112/) (CC2530.ROUTER)|online (00:00:16s ago)}"];  "0x00124b001d3b0628" -> "0x00124b0018e1e995" [penwidth=0.5, weight=0, color="#994444", label="47"]  "0x00124b001d3b0628" -> "0x00158d00031de635" [penwidth=0.5, weight=0, color="#994444", label="94"]  "0x00124b001d3b0628" -> "0x00158d00031dd5a0" [penwidth=0.5, weight=0, color="#994444", label="66"]  "0x00124b001d3b0628" -> "0x00158d0002e69495" [penwidth=0.5, weight=0, color="#994444", label="74"]  "0x00158d00031dd5a0" [style="rounded, dashed, filled", fillcolor="#fff8ce", fontcolor="#000000", label="{light_bedroom|0x3459 |Xiaomi Aqara double key wired wall switch without neutral wire. Doesn't work as a router and doesn't support power meter (QBKG03LM)|online (00:02:51s ago)}"];  "0x00158d00031dd5a0" -> "0x00124b001d3b0628" [penwidth=1, weight=0, color="#994444", label="62"]  "0x00158d0002e69495" [style="rounded, dashed, filled", fillcolor="#fff8ce", fontcolor="#000000", label="{light_mama|0xf734 |Xiaomi Aqara double key wired wall switch without neutral wire. Doesn't work as a router and doesn't support power meter (QBKG03LM)|online (00:04:09s ago)}"];  "0x00158d0002e69495" -> "0x00124b001d3b0628" [penwidth=1, weight=0, color="#994444", label="70"]  "0x00158d0002ead0f9" [style="rounded, dashed, filled", fillcolor="#fff8ce", fontcolor="#000000", label="{light_hall1|0x9b16 |Xiaomi Aqara double key wired wall switch without neutral wire. Doesn't work as a router and doesn't support power meter (QBKG03LM)|online (00:02:30s ago)}"];  "0x00158d0002ead0f9" -> "0x00124b0018e1e995" [penwidth=1, weight=0, color="#994444", label="38"]}';

The problem with Xiaomi Aqara double key wired wall switch without neutral wire. Doesn't work as a router and doesn't support power meter (QBKG03LM)|online:

Снимок экрана 2019-08-04 в 11 52 47