diff --git a/README.md b/README.md index 1ef1ffe7f..4d82a1c5b 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ [![Travis](https://img.shields.io/travis/Koenkk/zigbee2mqtt.svg)](https://api.travis-ci.org/Koenkk/zigbee2mqtt.svg) # zigbee2mqtt :bridge_at_night: :honeybee: -![Thumbs up or down?](header.png) +![Thumbs up or down?](images/header.png) Allows you to use your Zigbee devices **without** the vendors (Xiaomi/TRADFRI/Hue) bridge or gateway. @@ -30,7 +30,7 @@ Zigbee2mqtt integrates well with (almost) every home automation solution because - Integration implemented in [domoticz-zigbee2mqtt-plugin](https://github.com/stas-demydiuk/domoticz-zigbee2mqtt-plugin) ## Architecture -![Architecture](architecture.png) +![Architecture](images/architecture.png) ## Supported devices See [Supported devices](https://github.com/Koenkk/zigbee2mqtt/wiki/Supported-devices) to check whether your device is supported. There is quite an extensive list, including devices from vendors like Xiaomi, Ikea, Philips, OSRAM and more. diff --git a/architecture.png b/images/architecture.png similarity index 100% rename from architecture.png rename to images/architecture.png diff --git a/images/devices/22670.jpg b/images/devices/22670.jpg new file mode 100644 index 000000000..fe031d422 Binary files /dev/null and b/images/devices/22670.jpg differ diff --git a/images/devices/3210-L.jpg b/images/devices/3210-L.jpg new file mode 100644 index 000000000..f1787d56d Binary files /dev/null and b/images/devices/3210-L.jpg differ diff --git a/images/devices/324131092621.jpg b/images/devices/324131092621.jpg new file mode 100644 index 000000000..ff78bbf4d Binary files /dev/null and b/images/devices/324131092621.jpg differ diff --git a/images/devices/3261030P7.jpg b/images/devices/3261030P7.jpg new file mode 100644 index 000000000..3aa3a9230 Binary files /dev/null and b/images/devices/3261030P7.jpg differ diff --git a/images/devices/4052899926110.jpg b/images/devices/4052899926110.jpg new file mode 100644 index 000000000..7a40b28be Binary files /dev/null and b/images/devices/4052899926110.jpg differ diff --git a/images/devices/4052899926158.jpg b/images/devices/4052899926158.jpg new file mode 100644 index 000000000..05ce7757c Binary files /dev/null and b/images/devices/4052899926158.jpg differ diff --git a/images/devices/4058075036147.jpg b/images/devices/4058075036147.jpg new file mode 100644 index 000000000..590f91d03 Binary files /dev/null and b/images/devices/4058075036147.jpg differ diff --git a/images/devices/4058075816718.jpg b/images/devices/4058075816718.jpg new file mode 100644 index 000000000..90cca5a15 Binary files /dev/null and b/images/devices/4058075816718.jpg differ diff --git a/images/devices/433714.jpg b/images/devices/433714.jpg new file mode 100644 index 000000000..938fe3258 Binary files /dev/null and b/images/devices/433714.jpg differ diff --git a/images/devices/45852GE.jpg b/images/devices/45852GE.jpg new file mode 100644 index 000000000..59fc8ccc9 Binary files /dev/null and b/images/devices/45852GE.jpg differ diff --git a/images/devices/45857GE.jpg b/images/devices/45857GE.jpg new file mode 100644 index 000000000..173531426 Binary files /dev/null and b/images/devices/45857GE.jpg differ diff --git a/images/devices/50045.jpg b/images/devices/50045.jpg new file mode 100644 index 000000000..efd2a2987 Binary files /dev/null and b/images/devices/50045.jpg differ diff --git a/images/devices/53170161.jpg b/images/devices/53170161.jpg new file mode 100644 index 000000000..a4afaaa58 Binary files /dev/null and b/images/devices/53170161.jpg differ diff --git a/images/devices/7146060PH.jpg b/images/devices/7146060PH.jpg new file mode 100644 index 000000000..3168e327f Binary files /dev/null and b/images/devices/7146060PH.jpg differ diff --git a/images/devices/7199960PH.jpg b/images/devices/7199960PH.jpg new file mode 100644 index 000000000..84b9fb8ee Binary files /dev/null and b/images/devices/7199960PH.jpg differ diff --git a/images/devices/72922-A.jpg b/images/devices/72922-A.jpg new file mode 100644 index 000000000..4ec35a2fe Binary files /dev/null and b/images/devices/72922-A.jpg differ diff --git a/images/devices/7299355PH.jpg b/images/devices/7299355PH.jpg new file mode 100644 index 000000000..7273f743e Binary files /dev/null and b/images/devices/7299355PH.jpg differ diff --git a/images/devices/7299760PH.jpg b/images/devices/7299760PH.jpg new file mode 100644 index 000000000..8762abbe1 Binary files /dev/null and b/images/devices/7299760PH.jpg differ diff --git a/images/devices/73693.jpg b/images/devices/73693.jpg new file mode 100644 index 000000000..fce2981f5 Binary files /dev/null and b/images/devices/73693.jpg differ diff --git a/images/devices/73740.jpg b/images/devices/73740.jpg new file mode 100644 index 000000000..1f6c9340b Binary files /dev/null and b/images/devices/73740.jpg differ diff --git a/images/devices/73742.jpg b/images/devices/73742.jpg new file mode 100644 index 000000000..57d6c2560 Binary files /dev/null and b/images/devices/73742.jpg differ diff --git a/images/devices/74282.jpg b/images/devices/74282.jpg new file mode 100644 index 000000000..67b78c3c2 Binary files /dev/null and b/images/devices/74282.jpg differ diff --git a/images/devices/74283.jpg b/images/devices/74283.jpg new file mode 100644 index 000000000..75b9c457b Binary files /dev/null and b/images/devices/74283.jpg differ diff --git a/images/devices/74696.jpg b/images/devices/74696.jpg new file mode 100644 index 000000000..cbdb852d4 Binary files /dev/null and b/images/devices/74696.jpg differ diff --git a/images/devices/8718696449691.jpg b/images/devices/8718696449691.jpg new file mode 100644 index 000000000..14b881423 Binary files /dev/null and b/images/devices/8718696449691.jpg differ diff --git a/images/devices/8718696485880.jpg b/images/devices/8718696485880.jpg new file mode 100644 index 000000000..f1999f87f Binary files /dev/null and b/images/devices/8718696485880.jpg differ diff --git a/images/devices/8718696548738.jpg b/images/devices/8718696548738.jpg new file mode 100644 index 000000000..b05420e04 Binary files /dev/null and b/images/devices/8718696548738.jpg differ diff --git a/images/devices/8718696598283.jpg b/images/devices/8718696598283.jpg new file mode 100644 index 000000000..35fd450d5 Binary files /dev/null and b/images/devices/8718696598283.jpg differ diff --git a/images/devices/8718696695203.jpg b/images/devices/8718696695203.jpg new file mode 100644 index 000000000..9562ea933 Binary files /dev/null and b/images/devices/8718696695203.jpg differ diff --git a/images/devices/915005106701.jpg b/images/devices/915005106701.jpg new file mode 100644 index 000000000..fec85c27e Binary files /dev/null and b/images/devices/915005106701.jpg differ diff --git a/images/devices/9290011370.jpg b/images/devices/9290011370.jpg new file mode 100644 index 000000000..71d2f57b3 Binary files /dev/null and b/images/devices/9290011370.jpg differ diff --git a/images/devices/9290012573A.jpg b/images/devices/9290012573A.jpg new file mode 100644 index 000000000..22ba1a037 Binary files /dev/null and b/images/devices/9290012573A.jpg differ diff --git a/images/devices/9290012607.jpg b/images/devices/9290012607.jpg new file mode 100644 index 000000000..89762d1e1 Binary files /dev/null and b/images/devices/9290012607.jpg differ diff --git a/images/devices/A6121.jpg b/images/devices/A6121.jpg new file mode 100644 index 000000000..ea2488fe0 Binary files /dev/null and b/images/devices/A6121.jpg differ diff --git a/images/devices/AA68199.jpg b/images/devices/AA68199.jpg new file mode 100644 index 000000000..5af7f11c9 Binary files /dev/null and b/images/devices/AA68199.jpg differ diff --git a/images/devices/AA69697.jpg b/images/devices/AA69697.jpg new file mode 100644 index 000000000..abbdc8937 Binary files /dev/null and b/images/devices/AA69697.jpg differ diff --git a/images/devices/AA70155.jpg b/images/devices/AA70155.jpg new file mode 100644 index 000000000..826239088 Binary files /dev/null and b/images/devices/AA70155.jpg differ diff --git a/images/devices/AB3257001NJ.jpg b/images/devices/AB3257001NJ.jpg new file mode 100644 index 000000000..508bce407 Binary files /dev/null and b/images/devices/AB3257001NJ.jpg differ diff --git a/images/devices/AB32840.jpg b/images/devices/AB32840.jpg new file mode 100644 index 000000000..b6a0d7044 Binary files /dev/null and b/images/devices/AB32840.jpg differ diff --git a/images/devices/AB35996.jpg b/images/devices/AB35996.jpg new file mode 100644 index 000000000..2b76958f7 Binary files /dev/null and b/images/devices/AB35996.jpg differ diff --git a/images/devices/AB401130055.jpg b/images/devices/AB401130055.jpg new file mode 100644 index 000000000..fbb9bf27c Binary files /dev/null and b/images/devices/AB401130055.jpg differ diff --git a/images/devices/AC03641.jpg b/images/devices/AC03641.jpg new file mode 100644 index 000000000..d86e19757 Binary files /dev/null and b/images/devices/AC03641.jpg differ diff --git a/images/devices/AC03642.jpg b/images/devices/AC03642.jpg new file mode 100644 index 000000000..d7428efab Binary files /dev/null and b/images/devices/AC03642.jpg differ diff --git a/images/devices/AC03645.jpg b/images/devices/AC03645.jpg new file mode 100644 index 000000000..d13af7e7f Binary files /dev/null and b/images/devices/AC03645.jpg differ diff --git a/images/devices/AC03845.jpg b/images/devices/AC03845.jpg new file mode 100644 index 000000000..f98131674 Binary files /dev/null and b/images/devices/AC03845.jpg differ diff --git a/images/devices/AV2010-22.jpg b/images/devices/AV2010-22.jpg new file mode 100644 index 000000000..80436f32e Binary files /dev/null and b/images/devices/AV2010-22.jpg differ diff --git a/images/devices/BY-165.jpg b/images/devices/BY-165.jpg new file mode 100644 index 000000000..0eab667d0 Binary files /dev/null and b/images/devices/BY-165.jpg differ diff --git a/images/devices/CC2530.ROUTER.jpg b/images/devices/CC2530.ROUTER.jpg new file mode 100644 index 000000000..f8d2f5132 Binary files /dev/null and b/images/devices/CC2530.ROUTER.jpg differ diff --git a/images/devices/DJT11LM.jpg b/images/devices/DJT11LM.jpg new file mode 100644 index 000000000..2d58b3262 Binary files /dev/null and b/images/devices/DJT11LM.jpg differ diff --git a/images/devices/DL-110-N.jpg b/images/devices/DL-110-N.jpg new file mode 100644 index 000000000..2a6184d39 Binary files /dev/null and b/images/devices/DL-110-N.jpg differ diff --git a/images/devices/DL-110-W.jpg b/images/devices/DL-110-W.jpg new file mode 100644 index 000000000..2a6184d39 Binary files /dev/null and b/images/devices/DL-110-W.jpg differ diff --git a/images/devices/DNCKATSW001.jpg b/images/devices/DNCKATSW001.jpg new file mode 100644 index 000000000..48e8fbe1b Binary files /dev/null and b/images/devices/DNCKATSW001.jpg differ diff --git a/images/devices/DNCKATSW002.jpg b/images/devices/DNCKATSW002.jpg new file mode 100644 index 000000000..48e8fbe1b Binary files /dev/null and b/images/devices/DNCKATSW002.jpg differ diff --git a/images/devices/DNCKATSW003.jpg b/images/devices/DNCKATSW003.jpg new file mode 100644 index 000000000..48e8fbe1b Binary files /dev/null and b/images/devices/DNCKATSW003.jpg differ diff --git a/images/devices/DNCKATSW004.jpg b/images/devices/DNCKATSW004.jpg new file mode 100644 index 000000000..48e8fbe1b Binary files /dev/null and b/images/devices/DNCKATSW004.jpg differ diff --git a/images/devices/E11-G13.jpg b/images/devices/E11-G13.jpg new file mode 100644 index 000000000..a9f600569 Binary files /dev/null and b/images/devices/E11-G13.jpg differ diff --git a/images/devices/E11-G23.jpg b/images/devices/E11-G23.jpg new file mode 100644 index 000000000..f5216578c Binary files /dev/null and b/images/devices/E11-G23.jpg differ diff --git a/images/devices/E11-N1EA.jpg b/images/devices/E11-N1EA.jpg new file mode 100644 index 000000000..23c7b216e Binary files /dev/null and b/images/devices/E11-N1EA.jpg differ diff --git a/images/devices/E1603.jpg b/images/devices/E1603.jpg new file mode 100644 index 000000000..47456f6c9 Binary files /dev/null and b/images/devices/E1603.jpg differ diff --git a/images/devices/F7C033.jpg b/images/devices/F7C033.jpg new file mode 100644 index 000000000..df2f4f0a9 Binary files /dev/null and b/images/devices/F7C033.jpg differ diff --git a/images/devices/FB56+ZSW05HG1.2.jpg b/images/devices/FB56+ZSW05HG1.2.jpg new file mode 100644 index 000000000..da69311b2 Binary files /dev/null and b/images/devices/FB56+ZSW05HG1.2.jpg differ diff --git a/images/devices/GL-C-008.jpg b/images/devices/GL-C-008.jpg new file mode 100644 index 000000000..7ba03e621 Binary files /dev/null and b/images/devices/GL-C-008.jpg differ diff --git a/images/devices/HALIGHTDIMWWE27.jpg b/images/devices/HALIGHTDIMWWE27.jpg new file mode 100644 index 000000000..f94fb2400 Binary files /dev/null and b/images/devices/HALIGHTDIMWWE27.jpg differ diff --git a/images/devices/ICPSHC24-10EU-IL-1.jpg b/images/devices/ICPSHC24-10EU-IL-1.jpg new file mode 100644 index 000000000..04e9dc8be Binary files /dev/null and b/images/devices/ICPSHC24-10EU-IL-1.jpg differ diff --git a/images/devices/ICPSHC24-30EU-IL-1.jpg b/images/devices/ICPSHC24-30EU-IL-1.jpg new file mode 100644 index 000000000..15516822f Binary files /dev/null and b/images/devices/ICPSHC24-30EU-IL-1.jpg differ diff --git a/images/devices/ICTC-G-1.jpg b/images/devices/ICTC-G-1.jpg new file mode 100644 index 000000000..49051e233 Binary files /dev/null and b/images/devices/ICTC-G-1.jpg differ diff --git a/images/devices/JTQJ-BF-01LM-BW.jpg b/images/devices/JTQJ-BF-01LM-BW.jpg new file mode 100644 index 000000000..3f74ae62d Binary files /dev/null and b/images/devices/JTQJ-BF-01LM-BW.jpg differ diff --git a/images/devices/JTYJ-GD-01LM-BW.jpg b/images/devices/JTYJ-GD-01LM-BW.jpg new file mode 100644 index 000000000..030ad5132 Binary files /dev/null and b/images/devices/JTYJ-GD-01LM-BW.jpg differ diff --git a/images/devices/K2RGBW01.jpg b/images/devices/K2RGBW01.jpg new file mode 100644 index 000000000..83d43d027 Binary files /dev/null and b/images/devices/K2RGBW01.jpg differ diff --git a/images/devices/KS-SM001.jpg b/images/devices/KS-SM001.jpg new file mode 100644 index 000000000..b80c7fbd8 Binary files /dev/null and b/images/devices/KS-SM001.jpg differ diff --git a/images/devices/KTBL01LM.jpg b/images/devices/KTBL01LM.jpg new file mode 100644 index 000000000..9ee2bfd78 Binary files /dev/null and b/images/devices/KTBL01LM.jpg differ diff --git a/images/devices/KTBL02LM.jpg b/images/devices/KTBL02LM.jpg new file mode 100644 index 000000000..993840ee7 Binary files /dev/null and b/images/devices/KTBL02LM.jpg differ diff --git a/images/devices/L1527.jpg b/images/devices/L1527.jpg new file mode 100644 index 000000000..362a7a1e7 Binary files /dev/null and b/images/devices/L1527.jpg differ diff --git a/images/devices/L1528.jpg b/images/devices/L1528.jpg new file mode 100644 index 000000000..cce687b34 Binary files /dev/null and b/images/devices/L1528.jpg differ diff --git a/images/devices/L1529.jpg b/images/devices/L1529.jpg new file mode 100644 index 000000000..fec26c922 Binary files /dev/null and b/images/devices/L1529.jpg differ diff --git a/images/devices/LED1536G5.jpg b/images/devices/LED1536G5.jpg new file mode 100644 index 000000000..ea0cabaa8 Binary files /dev/null and b/images/devices/LED1536G5.jpg differ diff --git a/images/devices/LED1537R6.jpg b/images/devices/LED1537R6.jpg new file mode 100644 index 000000000..670f98432 Binary files /dev/null and b/images/devices/LED1537R6.jpg differ diff --git a/images/devices/LED1545G12.jpg b/images/devices/LED1545G12.jpg new file mode 100644 index 000000000..48bcd3e1a Binary files /dev/null and b/images/devices/LED1545G12.jpg differ diff --git a/images/devices/LED1546G12.jpg b/images/devices/LED1546G12.jpg new file mode 100644 index 000000000..147a99ce9 Binary files /dev/null and b/images/devices/LED1546G12.jpg differ diff --git a/images/devices/LED1622G12.jpg b/images/devices/LED1622G12.jpg new file mode 100644 index 000000000..652a167af Binary files /dev/null and b/images/devices/LED1622G12.jpg differ diff --git a/images/devices/LED1623G12.jpg b/images/devices/LED1623G12.jpg new file mode 100644 index 000000000..f7f6ac1b0 Binary files /dev/null and b/images/devices/LED1623G12.jpg differ diff --git a/images/devices/LED1624G9.jpg b/images/devices/LED1624G9.jpg new file mode 100644 index 000000000..f7f6ac1b0 Binary files /dev/null and b/images/devices/LED1624G9.jpg differ diff --git a/images/devices/LED1649C5.1.jpg b/images/devices/LED1649C5.1.jpg new file mode 100644 index 000000000..9932a6e07 Binary files /dev/null and b/images/devices/LED1649C5.1.jpg differ diff --git a/images/devices/LED1649C5.jpg b/images/devices/LED1649C5.jpg new file mode 100644 index 000000000..9932a6e07 Binary files /dev/null and b/images/devices/LED1649C5.jpg differ diff --git a/images/devices/LED1650R5.jpg b/images/devices/LED1650R5.jpg new file mode 100644 index 000000000..0b3375380 Binary files /dev/null and b/images/devices/LED1650R5.jpg differ diff --git a/images/devices/MCCGQ01LM.jpg b/images/devices/MCCGQ01LM.jpg new file mode 100644 index 000000000..d25b3c83a Binary files /dev/null and b/images/devices/MCCGQ01LM.jpg differ diff --git a/images/devices/MCCGQ11LM.jpg b/images/devices/MCCGQ11LM.jpg new file mode 100644 index 000000000..7663d7a81 Binary files /dev/null and b/images/devices/MCCGQ11LM.jpg differ diff --git a/images/devices/MFKZQ01LM.jpg b/images/devices/MFKZQ01LM.jpg new file mode 100644 index 000000000..6ce8ef562 Binary files /dev/null and b/images/devices/MFKZQ01LM.jpg differ diff --git a/images/devices/NL08-0800.jpg b/images/devices/NL08-0800.jpg new file mode 100644 index 000000000..f503371c1 Binary files /dev/null and b/images/devices/NL08-0800.jpg differ diff --git a/images/devices/PL-110.jpg b/images/devices/PL-110.jpg new file mode 100644 index 000000000..6b92dd714 Binary files /dev/null and b/images/devices/PL-110.jpg differ diff --git a/images/devices/PLUG-EDP-RE-DY.jpg b/images/devices/PLUG-EDP-RE-DY.jpg new file mode 100644 index 000000000..b9e13ff6d Binary files /dev/null and b/images/devices/PLUG-EDP-RE-DY.jpg differ diff --git a/images/devices/QBCZ11LM.jpg b/images/devices/QBCZ11LM.jpg new file mode 100644 index 000000000..52cfa3ec5 Binary files /dev/null and b/images/devices/QBCZ11LM.jpg differ diff --git a/images/devices/QBKG03LM.jpg b/images/devices/QBKG03LM.jpg new file mode 100644 index 000000000..093c52622 Binary files /dev/null and b/images/devices/QBKG03LM.jpg differ diff --git a/images/devices/QBKG04LM.jpg b/images/devices/QBKG04LM.jpg new file mode 100644 index 000000000..7515e77a0 Binary files /dev/null and b/images/devices/QBKG04LM.jpg differ diff --git a/images/devices/QBKG11LM.jpg b/images/devices/QBKG11LM.jpg new file mode 100644 index 000000000..7515e77a0 Binary files /dev/null and b/images/devices/QBKG11LM.jpg differ diff --git a/images/devices/QBKG12LM.jpg b/images/devices/QBKG12LM.jpg new file mode 100644 index 000000000..093c52622 Binary files /dev/null and b/images/devices/QBKG12LM.jpg differ diff --git a/images/devices/RB-145.jpg b/images/devices/RB-145.jpg new file mode 100644 index 000000000..d77af8b22 Binary files /dev/null and b/images/devices/RB-145.jpg differ diff --git a/images/devices/RB-165.jpg b/images/devices/RB-165.jpg new file mode 100644 index 000000000..8d5830392 Binary files /dev/null and b/images/devices/RB-165.jpg differ diff --git a/images/devices/RB-175-W.jpg b/images/devices/RB-175-W.jpg new file mode 100644 index 000000000..c1535598d Binary files /dev/null and b/images/devices/RB-175-W.jpg differ diff --git a/images/devices/RB-185-C.jpg b/images/devices/RB-185-C.jpg new file mode 100644 index 000000000..b852fa642 Binary files /dev/null and b/images/devices/RB-185-C.jpg differ diff --git a/images/devices/RS-125.jpg b/images/devices/RS-125.jpg new file mode 100644 index 000000000..432ee6bac Binary files /dev/null and b/images/devices/RS-125.jpg differ diff --git a/images/devices/RS-128-T.jpg b/images/devices/RS-128-T.jpg new file mode 100644 index 000000000..786ce9037 Binary files /dev/null and b/images/devices/RS-128-T.jpg differ diff --git a/images/devices/RTCGQ01LM.jpg b/images/devices/RTCGQ01LM.jpg new file mode 100644 index 000000000..82f6241d0 Binary files /dev/null and b/images/devices/RTCGQ01LM.jpg differ diff --git a/images/devices/RTCGQ11LM.jpg b/images/devices/RTCGQ11LM.jpg new file mode 100644 index 000000000..be207cb6b Binary files /dev/null and b/images/devices/RTCGQ11LM.jpg differ diff --git a/images/devices/SJCGQ11LM.jpg b/images/devices/SJCGQ11LM.jpg new file mode 100644 index 000000000..9e5f91333 Binary files /dev/null and b/images/devices/SJCGQ11LM.jpg differ diff --git a/images/devices/SL-110-M.jpg b/images/devices/SL-110-M.jpg new file mode 100644 index 000000000..c1a357538 Binary files /dev/null and b/images/devices/SL-110-M.jpg differ diff --git a/images/devices/SL-110-N.jpg b/images/devices/SL-110-N.jpg new file mode 100644 index 000000000..c1a357538 Binary files /dev/null and b/images/devices/SL-110-N.jpg differ diff --git a/images/devices/SL-110-W.jpg b/images/devices/SL-110-W.jpg new file mode 100644 index 000000000..c1a357538 Binary files /dev/null and b/images/devices/SL-110-W.jpg differ diff --git a/images/devices/ST-110.jpg b/images/devices/ST-110.jpg new file mode 100644 index 000000000..53306a2cd Binary files /dev/null and b/images/devices/ST-110.jpg differ diff --git a/images/devices/STSS-MULT-001.jpg b/images/devices/STSS-MULT-001.jpg new file mode 100644 index 000000000..8529c8941 Binary files /dev/null and b/images/devices/STSS-MULT-001.jpg differ diff --git a/images/devices/UC-110.jpg b/images/devices/UC-110.jpg new file mode 100644 index 000000000..30cd07b66 Binary files /dev/null and b/images/devices/UC-110.jpg differ diff --git a/images/devices/WSDCGQ01LM.jpg b/images/devices/WSDCGQ01LM.jpg new file mode 100644 index 000000000..223f8dd02 Binary files /dev/null and b/images/devices/WSDCGQ01LM.jpg differ diff --git a/images/devices/WSDCGQ11LM.jpg b/images/devices/WSDCGQ11LM.jpg new file mode 100644 index 000000000..af9957de9 Binary files /dev/null and b/images/devices/WSDCGQ11LM.jpg differ diff --git a/images/devices/WXKG01LM.jpg b/images/devices/WXKG01LM.jpg new file mode 100644 index 000000000..3b16fed03 Binary files /dev/null and b/images/devices/WXKG01LM.jpg differ diff --git a/images/devices/WXKG02LM.jpg b/images/devices/WXKG02LM.jpg new file mode 100644 index 000000000..81091138b Binary files /dev/null and b/images/devices/WXKG02LM.jpg differ diff --git a/images/devices/WXKG03LM.jpg b/images/devices/WXKG03LM.jpg new file mode 100644 index 000000000..deda0caff Binary files /dev/null and b/images/devices/WXKG03LM.jpg differ diff --git a/images/devices/WXKG11LM.jpg b/images/devices/WXKG11LM.jpg new file mode 100644 index 000000000..7044bfe1d Binary files /dev/null and b/images/devices/WXKG11LM.jpg differ diff --git a/images/devices/WXKG12LM.jpg b/images/devices/WXKG12LM.jpg new file mode 100644 index 000000000..7044bfe1d Binary files /dev/null and b/images/devices/WXKG12LM.jpg differ diff --git a/images/devices/Z01-CIA19NAE26.jpg b/images/devices/Z01-CIA19NAE26.jpg new file mode 100644 index 000000000..cba2c8ee7 Binary files /dev/null and b/images/devices/Z01-CIA19NAE26.jpg differ diff --git a/images/devices/Z809A.jpg b/images/devices/Z809A.jpg new file mode 100644 index 000000000..eda5a51ec Binary files /dev/null and b/images/devices/Z809A.jpg differ diff --git a/images/devices/ZLED-2709.jpg b/images/devices/ZLED-2709.jpg new file mode 100644 index 000000000..4525b8e41 Binary files /dev/null and b/images/devices/ZLED-2709.jpg differ diff --git a/images/devices/ZNCZ02LM.jpg b/images/devices/ZNCZ02LM.jpg new file mode 100644 index 000000000..fcf3762ea Binary files /dev/null and b/images/devices/ZNCZ02LM.jpg differ diff --git a/header.png b/images/header.png similarity index 100% rename from header.png rename to images/header.png diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index eccda673c..3d1d25d08 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -1538,6 +1538,12 @@ "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", "dev": true }, + "image-size": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/image-size/-/image-size-0.6.3.tgz", + "integrity": "sha512-47xSUiQioGaB96nqtp5/q55m0aBQSQdyIloMOc/x+QVTDZLNmXE892IIDrJ0hM1A5vcNUDD5tDffkSP5lCaIIA==", + "dev": true + }, "immediate": { "version": "3.0.6", "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz", @@ -1948,7 +1954,7 @@ }, "log-utils": { "version": "0.2.1", - "resolved": "https://registry.npmjs.org/log-utils/-/log-utils-0.2.1.tgz", + "resolved": "http://registry.npmjs.org/log-utils/-/log-utils-0.2.1.tgz", "integrity": "sha1-pMIXoN2aUFFdm5ICBgkas9TgMc8=", "requires": { "ansi-colors": "^0.2.0", diff --git a/package.json b/package.json index 25df3b2cc..0f2828bc2 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,7 @@ "eslint": "*", "eslint-config-google": "*", "eslint-plugin-mocha": "*", + "image-size": "*", "mocha": "*", "nyc": "*", "proxyquire": "*", diff --git a/test/images.test.js b/test/images.test.js new file mode 100644 index 000000000..688c4455e --- /dev/null +++ b/test/images.test.js @@ -0,0 +1,40 @@ +const devices = require('zigbee-shepherd-converters').devices; +const chai = require('chai'); +const fs = require('fs'); +const path = require('path'); +const sizeOf = require('image-size'); + +const imageBase = path.join(__dirname, '..', 'images', 'devices'); +const replaceByDash = [new RegExp('/', 'g'), new RegExp(':', 'g'), new RegExp(' ', 'g')]; + +describe('Device images', () => { + it('All devices should have an image in jpg format', () => { + const missing = []; + + devices.forEach((d) => { + let image = d.model; + replaceByDash.forEach((r) => image = image.replace(r, '-')); + image = `${image}.jpg`; + + if (!fs.existsSync(path.join(imageBase, image))) { + missing.push(image); + } + }); + + chai.assert.strictEqual(missing.length, 0, `Missing device images: ${missing.join(', ')}`); + }); + + it('All device images should have a dimension of 150x150', () => { + const invalid = []; + + fs.readdirSync(imageBase).forEach((file) => { + const dimensions = sizeOf(path.join(imageBase, file)); + + if (dimensions.width != 150 || dimensions.height != 150) { + invalid.push(file); + } + }); + + chai.assert.strictEqual(invalid.length, 0, `Invalid device image dimensions: ${invalid.join(', ')}`); + }); +});