├── .gitignore ├── LICENSE ├── README.md ├── documentation ├── .gitignore ├── README.md ├── docs │ ├── assets │ │ ├── images │ │ │ ├── bmc-button.svg │ │ │ ├── radio-docs │ │ │ │ ├── Resistor-Swap.jpg │ │ │ │ ├── ch340-port-windows.png │ │ │ │ ├── ch340c-bsl.png │ │ │ │ ├── ch340e-bsl.png │ │ │ │ ├── esp-home │ │ │ │ │ ├── esp-home-install.png │ │ │ │ │ ├── esp-home-manual-download.png │ │ │ │ │ ├── esp-home-manual-success.png │ │ │ │ │ ├── esp-home-manual-wirelles.png │ │ │ │ │ ├── esp-home-method-m.png │ │ │ │ │ ├── esp-home-method-w.png │ │ │ │ │ ├── esp-home-static.png │ │ │ │ │ ├── esp-home-sub.png │ │ │ │ │ └── esp-home-update.png │ │ │ │ ├── flash-esp32 │ │ │ │ │ ├── NodeMCU-Step1.png │ │ │ │ │ ├── NodeMCU-Step2.png │ │ │ │ │ ├── NodeMCU-Step3.png │ │ │ │ │ ├── Press&Hold-BOOT.png │ │ │ │ │ ├── Update-firmware-1.png │ │ │ │ │ ├── Update-firmware-2.png │ │ │ │ │ └── Update-firmware-3.png │ │ │ │ ├── flash-prog-device.png │ │ │ │ ├── flash-prog-fail.png │ │ │ │ ├── flash-prog-ok.png │ │ │ │ ├── flash-prog-port.png │ │ │ │ ├── flash-prog.png │ │ │ │ ├── multitool │ │ │ │ │ ├── multitool-1.png │ │ │ │ │ ├── multitool-2.png │ │ │ │ │ └── multitool-3.png │ │ │ │ ├── shield-bsl.png │ │ │ │ ├── web-gw │ │ │ │ │ ├── web-gw-1.png │ │ │ │ │ └── web-gw-2.png │ │ │ │ └── zha-setup │ │ │ │ │ ├── zha-0.png │ │ │ │ │ ├── zha-1.1.png │ │ │ │ │ ├── zha-1.png │ │ │ │ │ ├── zha-2.png │ │ │ │ │ ├── zha-3.1.png │ │ │ │ │ └── zha-3.png │ │ │ ├── zigbee-gw-lan │ │ │ │ ├── ZSL - 3DCase.png │ │ │ │ ├── ZSL - Main.png │ │ │ │ ├── ZSL - Sample.png │ │ │ │ ├── dip-zig.png │ │ │ │ └── jumper-zig.png │ │ │ ├── zigbee-lilyzig │ │ │ │ ├── Photo 1.jpg │ │ │ │ ├── Photo 2.jpg │ │ │ │ ├── Photo 3.jpg │ │ │ │ └── Photo 4.jpg │ │ │ ├── zigbee-olizig │ │ │ │ ├── Olimex POE - 1.png │ │ │ │ ├── Olimex POE - 2.png │ │ │ │ ├── Olimex POE - 3.png │ │ │ │ └── Olimex POE - 4.png │ │ │ ├── zigbee-shield │ │ │ │ └── 3DDefault.png │ │ │ ├── zigbee-stick-v4 │ │ │ │ ├── ZigStar Stick - Bottom.png │ │ │ │ └── ZigStar Stick - Top.png │ │ │ ├── zigbee-zigihat │ │ │ │ ├── ZigiHAT-1.png │ │ │ │ ├── ZigiHAT-2.png │ │ │ │ └── ZigiHAT-3.png │ │ │ ├── zigstar-black.png │ │ │ ├── zigstar-orig.png │ │ │ ├── zigstar-white.png │ │ │ └── zigstar.png │ │ ├── javascripts │ │ │ ├── swiper.js │ │ │ └── tables.js │ │ └── stylesheets │ │ │ ├── 404.css │ │ │ └── zigstar.css │ ├── index.md │ ├── projects │ │ ├── zigbee-gw-lan.md │ │ ├── zigbee-shield.md │ │ ├── zigbee-stick-v4.md │ │ ├── zigbee-zigihat.md │ │ ├── zigstar-lilyzig.md │ │ └── zigstar-olizig.md │ └── radio-docs │ │ ├── esp-home.md │ │ ├── flash-cc-bsl.md │ │ ├── flash-ti-flash-prog.md │ │ ├── flash-zigstargw.md │ │ ├── quick-start.md │ │ ├── z2m-zha.md │ │ └── zigstar-multi-tool.md ├── init_setup.sh ├── mkdocs.yml ├── overrides │ ├── 404.html │ └── home.html └── requirements.txt └── files ├── BOM ├── BOM_Olimex_RF-BM-2652P2.xlsx ├── BOM_TTGO_RF-BM-2652P2.csv └── BOM_WT32_RF-BM-2652P2.csv ├── ESP-HOME ├── zigstar-gw-lan.bin ├── zigstar-gw-lan.yaml ├── zigstar-gw-lan │ ├── langw-btproxy-factory.bin │ ├── langw-btproxy.json │ ├── langw-btproxy.yaml │ ├── langw-mixed-factory.bin │ ├── langw-mixed.json │ ├── langw-mixed.yaml │ ├── langw-zigbee-factory.bin │ ├── langw-zigbee.json │ └── langw-zigbee.yaml ├── zigstar-lilyzig │ ├── lilyzig-btproxy-factory.bin │ ├── lilyzig-btproxy.json │ ├── lilyzig-btproxy.yaml │ ├── lilyzig-mixed-factory.bin │ ├── lilyzig-mixed.json │ ├── lilyzig-mixed.yaml │ ├── lilyzig-zigbee-factory.bin │ ├── lilyzig-zigbee.json │ └── lilyzig-zigbee.yaml ├── zigstar-olizig │ ├── olizig-btproxy-factory.bin │ ├── olizig-btproxy.json │ ├── olizig-btproxy.yaml │ ├── olizig-mixed-factory.bin │ ├── olizig-mixed.json │ ├── olizig-mixed.yaml │ ├── olizig-zigbee-factory.bin │ ├── olizig-zigbee.json │ └── olizig-zigbee.yaml └── zigstar-uzg-01 │ ├── uzg01-btproxy-firmware-factory.bin │ ├── uzg01-btproxy.json │ ├── uzg01-btproxy.yaml │ ├── uzg01-mixed-firmware-factory.bin │ ├── uzg01-mixed.json │ ├── uzg01-mixed.yaml │ ├── uzg01-zigbee-firmware-factory.bin │ ├── uzg01-zigbee.json │ └── uzg01-zigbee.yaml ├── Firmware ├── CC1352P7_Router.zip ├── CC2652P7 Firmwares │ ├── CC1352P7_20231213.zip │ ├── CC1352P7_20240315.zip │ ├── CC1352P7_20240318.zip │ └── CC1352P7_20240321.zip ├── ZigStarGW.bin └── ZigStarGW_v0.6.8.full.bin ├── Gerbers ├── LAN Gateway │ ├── Gerber_WT32_E72-2G4M05S1F.zip │ ├── Gerber_WT32_E72-2G4M20S1E.zip │ └── Gerber_WT32_RF-BM-2652P2.zip ├── LilyZig │ ├── Gerber_TTGO_E72-2G4M20S1E.zip │ └── Gerber_TTGO_RF-BM-2652P2.zip └── Olizig │ └── Gerber_Olizig_RF-BM-2652P2.zip ├── STL ├── LilyZig_POE_Gateway │ ├── TTGO_case_v2.stl │ └── TTGO_cover_v2.stl └── WT32-ETH01_LAN_Gateway │ ├── Body by Alex.F.stl │ ├── Cover 1.2mm PCB by Alex.F_sales.stl │ └── Cover 1.6mm PCB by Alex.F_self_assembly.stl ├── Schematics ├── Schematic_LilyZig_POE_Gateway.pdf ├── Schematic_Olizig_POE_Gateway.pdf └── Schematic_WT32-ETH01_LAN_Gateway.pdf └── Tools ├── Scripts ├── Flasher.sh ├── Pi_Flasher_CC2538.sh ├── Pi_Flasher_JTAG.sh ├── Pi_Starter.sh └── banner.txt ├── ZigStarGW-MT-x64.exe.zip ├── ZigStarGW-MT-x86.exe.zip ├── ZigStarGW-MT.app.zip └── ZigStarGW-MT.exec.zip /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | bower_components/ 3 | *.log 4 | 5 | build/ 6 | dist/ 7 | documentation/venv 8 | venv 9 | docs 10 | mkdocs.yml -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ZigStar Zigbee Gateways 2 | Information and documentation on ZigStar gateways is available on [Website](https://zig-star.com)
3 | Pre-assembed hardware devices can be purchased from [https://zig-star.com](https://zig-star.com) and on [Tindie](https://www.tindie.com/stores/zigstar/)
4 | 5 | I sell on Tindie 6 | 7 | ZigStar Zigbee Gateways have next features: 8 | 9 | - It's using CC2652P TI chip from TI, the most powerful (+20dB) 10 | - **2 WORKING MODES:** LAN Coordinator or USB Coordinator/Router 11 | - Required buttons are on board (BOOT,FLASH,RESET) 12 | - 2 LED for indication of network 13 | - Communicates via USB or LAN network with [Z2M](https://www.zigbee2mqtt.io/) and [ZHA](https://www.home-assistant.io/integrations/zha/) 14 | - SMA port for an external antenna 15 | - Easy programming with [ZigStar Multi Tool](https://zig-star.com/radio-docs/zigstar-multi-tool/#zigstar-multi-tool).No external programmer needed! 16 | - All boards are OpenSource,ready for self assembly 17 | 18 | ## Active Devices 19 | | Picture | Device | Description | Working Mode | 20 | |------------------------------------------------------------------------------------------------------------------------------------------------------ |--------------------- |------------------------------------ |-------------- | 21 | | uzg-01 | [UZG-01](https://uzg.zig-star.com/) | Custom device without modules | USB/LAN/WIFI | 22 | | lan-gateway | [ZigStar LAN Gateway](https://zig-star.com/projects/zigbee-gw-lan/) | CC2652P2 & WT32-ETH01 ESP32 | USB/LAN | 23 | | usb-stick | [ZigStar Stick v4](https://zig-star.com/projects/zigbee-stick-v4/) | CC2652P2 | USB | 24 | 25 | 26 | ## Retired devices 27 | | Picture | Device | Description | Working Mode | 28 | |------------------------------------------------------------------------------------------------------------------------------------------------------ |--------------------- |------------------------------------ |-------------- | 29 | | poe-gateway | [ZigStar OliZig PoE](https://zig-star.com/projects/zigstar-olizig/) | CC2652P2 & Olimex ESP32-PoE | USB/LAN/POE | 30 | | poe-gateway | [ZigStar LilyZig PoE](https://zig-star.com/projects/zigstar-lilyzig/) | CC2652P2 & TTGO T-Internet-POE | USB/LAN/POE | 31 | 32 | ## Development 33 | 34 | For all documentation,description and instructions visit: [ZIG-STAR.COM](https://zig-star.com)
35 | In case you want to help us improve documentation please check documentation subfolder. 36 | 37 | ## Contact 38 | 39 | For general enquiries, suggestions and errors spotted contact me using: 40 | 41 | - [Telegram Chat](https://t.me/zig_starting) 42 | 43 | - [Telegram News](https://t.me/zigstar) 44 | 45 | - [Twitter](https://twitter.com/zig_star4u) 46 | 47 | - [Discord](https://discord.gg/zPMT3GvvdC) 48 | 49 | - [support@zig-star.com](mailto:support@zig-star.com) 50 | 51 | ### License 52 | zigstar-gateways is designed by ZigStar / Grecu Radu and licensed under the [GPL-3.0 License](https://opensource.org/licenses/GPL-3.0). 53 | -------------------------------------------------------------------------------- /documentation/.gitignore: -------------------------------------------------------------------------------- 1 | # Byte-compiled / optimized / DLL files 2 | __pycache__/ 3 | *.py[cod] 4 | *$py.class 5 | 6 | # C extensions 7 | *.so 8 | 9 | # Distribution / packaging 10 | .Python 11 | build/ 12 | develop-eggs/ 13 | dist/ 14 | downloads/ 15 | eggs/ 16 | .eggs/ 17 | lib/ 18 | lib64/ 19 | parts/ 20 | sdist/ 21 | var/ 22 | wheels/ 23 | pip-wheel-metadata/ 24 | share/python-wheels/ 25 | *.egg-info/ 26 | .installed.cfg 27 | *.egg 28 | MANIFEST 29 | 30 | # PyInstaller 31 | # Usually these files are written by a python script from a template 32 | # before PyInstaller builds the exe, so as to inject date/other infos into it. 33 | *.manifest 34 | *.spec 35 | 36 | # Installer logs 37 | pip-log.txt 38 | pip-delete-this-directory.txt 39 | 40 | # Unit test / coverage reports 41 | htmlcov/ 42 | .tox/ 43 | .nox/ 44 | .coverage 45 | .coverage.* 46 | .cache 47 | nosetests.xml 48 | coverage.xml 49 | *.cover 50 | *.py,cover 51 | .hypothesis/ 52 | .pytest_cache/ 53 | 54 | # Translations 55 | *.mo 56 | *.pot 57 | 58 | # Django stuff: 59 | *.log 60 | local_settings.py 61 | db.sqlite3 62 | db.sqlite3-journal 63 | 64 | # Flask stuff: 65 | instance/ 66 | .webassets-cache 67 | 68 | # Scrapy stuff: 69 | .scrapy 70 | 71 | # Sphinx documentation 72 | docs/_build/ 73 | 74 | # PyBuilder 75 | target/ 76 | 77 | # Jupyter Notebook 78 | .ipynb_checkpoints 79 | 80 | # IPython 81 | profile_default/ 82 | ipython_config.py 83 | 84 | # pyenv 85 | .python-version 86 | 87 | # pipenv 88 | # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. 89 | # However, in case of collaboration, if having platform-specific dependencies or dependencies 90 | # having no cross-platform support, pipenv may install dependencies that don't work, or not 91 | # install all needed dependencies. 92 | #Pipfile.lock 93 | 94 | # PEP 582; used by e.g. github.com/David-OConnor/pyflow 95 | __pypackages__/ 96 | 97 | # Celery stuff 98 | celerybeat-schedule 99 | celerybeat.pid 100 | 101 | # SageMath parsed files 102 | *.sage.py 103 | 104 | # Environments 105 | .env 106 | .venv 107 | env/ 108 | venv/ 109 | ENV/ 110 | env.bak/ 111 | venv.bak/ 112 | 113 | # Spyder project settings 114 | .spyderproject 115 | .spyproject 116 | 117 | # Rope project settings 118 | .ropeproject 119 | 120 | # mkdocs documentation 121 | /site 122 | 123 | # mypy 124 | .mypy_cache/ 125 | .dmypy.json 126 | dmypy.json 127 | 128 | # Pyre type checker 129 | .pyre/ 130 | -------------------------------------------------------------------------------- /documentation/README.md: -------------------------------------------------------------------------------- 1 | # ZigStar Gateways - Documentation 2 | 3 | This subfolder contains the [zig-star.com](https://zig-star.com) documentation. 4 | It is based on [Mkdocs](https://www.mkdocs.org/) & [Material for MkDocs](https://squidfunk.github.io/mkdocs-material/) 5 | 6 | You are very welcome to help on improving documentation. 7 | 8 | ## Directory-Structure 9 | 10 | * `docs`: The actual documentation. 11 | * `overrides`: MkDocs enhancements. 12 | * `mkdocs.yaml`: MkDocs config file 13 | * `init_setup.sh`: Prepare venv enviroment 14 | * `requirements.txt`: Mkdocs requirements 15 | 16 | ## Mkdocs installation 17 | 18 | ```bash 19 | # Install MkDocs dependencies Linux 20 | bash init_setup.sh 21 | ``` 22 | 23 | Manual installation: 24 | ```bash 25 | # Install MkDocs dependencies Windows 26 | python3 -m venv venv 27 | . venv/Scripts/activate 28 | pip install mkdocs-material 29 | ``` 30 | 31 | ## Live preview of changes 32 | 33 | From documentation folder run next commands: 34 | ```bash 35 | # Enter in virtual enviroment 36 | . venv/bin/activate ##For Linux 37 | . venv/Scripts/activate ## For windows 38 | # Run mkdocs serve command to generate live preview 39 | mkdocs serve 40 | ``` 41 | 42 | ## Requirements: 43 | 44 | - Python 3.8+ 45 | - pip -------------------------------------------------------------------------------- /documentation/docs/assets/images/radio-docs/Resistor-Swap.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/radio-docs/Resistor-Swap.jpg -------------------------------------------------------------------------------- /documentation/docs/assets/images/radio-docs/ch340-port-windows.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/radio-docs/ch340-port-windows.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/radio-docs/ch340c-bsl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/radio-docs/ch340c-bsl.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/radio-docs/ch340e-bsl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/radio-docs/ch340e-bsl.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/radio-docs/esp-home/esp-home-install.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/radio-docs/esp-home/esp-home-install.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/radio-docs/esp-home/esp-home-manual-download.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/radio-docs/esp-home/esp-home-manual-download.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/radio-docs/esp-home/esp-home-manual-success.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/radio-docs/esp-home/esp-home-manual-success.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/radio-docs/esp-home/esp-home-manual-wirelles.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/radio-docs/esp-home/esp-home-manual-wirelles.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/radio-docs/esp-home/esp-home-method-m.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/radio-docs/esp-home/esp-home-method-m.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/radio-docs/esp-home/esp-home-method-w.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/radio-docs/esp-home/esp-home-method-w.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/radio-docs/esp-home/esp-home-static.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/radio-docs/esp-home/esp-home-static.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/radio-docs/esp-home/esp-home-sub.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/radio-docs/esp-home/esp-home-sub.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/radio-docs/esp-home/esp-home-update.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/radio-docs/esp-home/esp-home-update.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/radio-docs/flash-esp32/NodeMCU-Step1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/radio-docs/flash-esp32/NodeMCU-Step1.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/radio-docs/flash-esp32/NodeMCU-Step2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/radio-docs/flash-esp32/NodeMCU-Step2.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/radio-docs/flash-esp32/NodeMCU-Step3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/radio-docs/flash-esp32/NodeMCU-Step3.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/radio-docs/flash-esp32/Press&Hold-BOOT.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/radio-docs/flash-esp32/Press&Hold-BOOT.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/radio-docs/flash-esp32/Update-firmware-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/radio-docs/flash-esp32/Update-firmware-1.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/radio-docs/flash-esp32/Update-firmware-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/radio-docs/flash-esp32/Update-firmware-2.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/radio-docs/flash-esp32/Update-firmware-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/radio-docs/flash-esp32/Update-firmware-3.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/radio-docs/flash-prog-device.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/radio-docs/flash-prog-device.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/radio-docs/flash-prog-fail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/radio-docs/flash-prog-fail.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/radio-docs/flash-prog-ok.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/radio-docs/flash-prog-ok.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/radio-docs/flash-prog-port.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/radio-docs/flash-prog-port.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/radio-docs/flash-prog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/radio-docs/flash-prog.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/radio-docs/multitool/multitool-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/radio-docs/multitool/multitool-1.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/radio-docs/multitool/multitool-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/radio-docs/multitool/multitool-2.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/radio-docs/multitool/multitool-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/radio-docs/multitool/multitool-3.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/radio-docs/shield-bsl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/radio-docs/shield-bsl.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/radio-docs/web-gw/web-gw-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/radio-docs/web-gw/web-gw-1.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/radio-docs/web-gw/web-gw-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/radio-docs/web-gw/web-gw-2.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/radio-docs/zha-setup/zha-0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/radio-docs/zha-setup/zha-0.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/radio-docs/zha-setup/zha-1.1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/radio-docs/zha-setup/zha-1.1.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/radio-docs/zha-setup/zha-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/radio-docs/zha-setup/zha-1.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/radio-docs/zha-setup/zha-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/radio-docs/zha-setup/zha-2.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/radio-docs/zha-setup/zha-3.1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/radio-docs/zha-setup/zha-3.1.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/radio-docs/zha-setup/zha-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/radio-docs/zha-setup/zha-3.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/zigbee-gw-lan/ZSL - 3DCase.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/zigbee-gw-lan/ZSL - 3DCase.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/zigbee-gw-lan/ZSL - Main.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/zigbee-gw-lan/ZSL - Main.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/zigbee-gw-lan/ZSL - Sample.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/zigbee-gw-lan/ZSL - Sample.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/zigbee-gw-lan/dip-zig.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/zigbee-gw-lan/dip-zig.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/zigbee-gw-lan/jumper-zig.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/zigbee-gw-lan/jumper-zig.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/zigbee-lilyzig/Photo 1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/zigbee-lilyzig/Photo 1.jpg -------------------------------------------------------------------------------- /documentation/docs/assets/images/zigbee-lilyzig/Photo 2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/zigbee-lilyzig/Photo 2.jpg -------------------------------------------------------------------------------- /documentation/docs/assets/images/zigbee-lilyzig/Photo 3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/zigbee-lilyzig/Photo 3.jpg -------------------------------------------------------------------------------- /documentation/docs/assets/images/zigbee-lilyzig/Photo 4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/zigbee-lilyzig/Photo 4.jpg -------------------------------------------------------------------------------- /documentation/docs/assets/images/zigbee-olizig/Olimex POE - 1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/zigbee-olizig/Olimex POE - 1.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/zigbee-olizig/Olimex POE - 2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/zigbee-olizig/Olimex POE - 2.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/zigbee-olizig/Olimex POE - 3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/zigbee-olizig/Olimex POE - 3.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/zigbee-olizig/Olimex POE - 4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/zigbee-olizig/Olimex POE - 4.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/zigbee-shield/3DDefault.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/zigbee-shield/3DDefault.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/zigbee-stick-v4/ZigStar Stick - Bottom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/zigbee-stick-v4/ZigStar Stick - Bottom.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/zigbee-stick-v4/ZigStar Stick - Top.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/zigbee-stick-v4/ZigStar Stick - Top.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/zigbee-zigihat/ZigiHAT-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/zigbee-zigihat/ZigiHAT-1.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/zigbee-zigihat/ZigiHAT-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/zigbee-zigihat/ZigiHAT-2.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/zigbee-zigihat/ZigiHAT-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/zigbee-zigihat/ZigiHAT-3.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/zigstar-black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/zigstar-black.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/zigstar-orig.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/zigstar-orig.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/zigstar-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/zigstar-white.png -------------------------------------------------------------------------------- /documentation/docs/assets/images/zigstar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/documentation/docs/assets/images/zigstar.png -------------------------------------------------------------------------------- /documentation/docs/assets/javascripts/swiper.js: -------------------------------------------------------------------------------- 1 | var swiper = new Swiper(".stick", { 2 | direction: "horizontal", 3 | slidesPerView: 1, 4 | spaceBetween: 30, 5 | loop: true, 6 | effect: "fade", 7 | centeredSlides: true, 8 | autoplay: { 9 | delay: 3500, 10 | disableOnInteraction: false, 11 | }, 12 | pagination: { 13 | el: ".swiper-pagination", 14 | clickable: true, 15 | }, 16 | navigation: { 17 | nextEl: ".swiper-button-next", 18 | prevEl: ".swiper-button-prev", 19 | }, 20 | scrollbar: { 21 | el: '.swiper-scrollbar', 22 | }, 23 | }); -------------------------------------------------------------------------------- /documentation/docs/assets/javascripts/tables.js: -------------------------------------------------------------------------------- 1 | document$.subscribe(function() { 2 | var tables = document.querySelectorAll("article table") 3 | tables.forEach(function(table) { 4 | new Tablesort(table) 5 | }) 6 | }) -------------------------------------------------------------------------------- /documentation/docs/assets/stylesheets/404.css: -------------------------------------------------------------------------------- 1 | @import url('https://fonts.googleapis.com/css?family=Merriweather+Sans') 2 | main 3 | height: 100vh 4 | width: 100vw 5 | background: #fff 6 | display: flex 7 | flex-direction: column 8 | justify-content: center 9 | align-items: center 10 | font-family: 'Merriweather Sans', sans-serif 11 | #errorText 12 | font-size: 22px 13 | margin: 14px 0 14 | #errorLink 15 | font-size: 20px 16 | padding: 12px 17 | border: 1px solid 18 | color: #000 19 | background-color: transparent 20 | text-decoration: none 21 | transition: all 0.5s ease-in-out 22 | &:hover, &:active 23 | color: #fff 24 | background: #000 25 | #g6219 26 | transform-origin: 85px 4px 27 | animation: an1 12s .5s infinite ease-out 28 | @keyframes an1 29 | 0% 30 | transform: rotate(0) 31 | 5% 32 | transform: rotate(3deg) 33 | 15% 34 | transform: rotate(-2.5deg) 35 | 25% 36 | transform: rotate(2deg) 37 | 35% 38 | transform: rotate(-1.5deg) 39 | 45% 40 | transform: rotate(1deg) 41 | 55% 42 | transform: rotate(-1.5deg) 43 | 65% 44 | transform: rotate(2deg) 45 | 75% 46 | transform: rotate(-2deg) 47 | 85% 48 | transform: rotate(2.5deg) 49 | 95% 50 | transform: rotate(-3deg) 51 | 100% 52 | transform: rotate(0) -------------------------------------------------------------------------------- /documentation/docs/assets/stylesheets/zigstar.css: -------------------------------------------------------------------------------- 1 | @-webkit-keyframes mdx-heart{0%,40%,80%,to{transform:scale(1)}20%,60%{transform:scale(1.15)}}@keyframes mdx-heart{0%,40%,80%,to{transform:scale(1)}20%,60%{transform:scale(1.15)}}.md-typeset .twitter{color:#00acee}.md-typeset .mdx-video{width:auto}.md-typeset .mdx-video__inner{height:0;padding-bottom:56.138%;position:relative;width:100%}.md-typeset .mdx-video iframe{border:none;height:100%;left:0;overflow:hidden;position:absolute;top:0;width:100%}.md-typeset .mdx-heart{-webkit-animation:mdx-heart 1s infinite;animation:mdx-heart 1s infinite}.md-typeset .mdx-insiders{color:#e91e63}.md-typeset .mdx-switch button{cursor:pointer;transition:opacity .25s}.md-typeset .mdx-switch button:focus,.md-typeset .mdx-switch button:hover{opacity:.75}.md-typeset .mdx-switch button>code{background-color:var(--md-primary-fg-color);color:var(--md-primary-bg-color);display:block}.md-typeset .mdx-deprecated{opacity:.5;transition:opacity .25s}.md-typeset .mdx-deprecated:focus-within,.md-typeset .mdx-deprecated:hover{opacity:1}.md-typeset .mdx-columns ol,.md-typeset .mdx-columns ul{-moz-columns:2;column-count:2}@media screen and (max-width:29.9375em){.md-typeset .mdx-columns ol,.md-typeset .mdx-columns ul{-moz-columns:initial;columns:initial}}.md-typeset .mdx-columns li{-moz-column-break-inside:avoid;break-inside:avoid}.md-typeset .mdx-author{display:flex;font-size:.68rem}.md-typeset .mdx-author img{border-radius:100%;height:2rem}.md-typeset .mdx-author p:first-child{flex-shrink:0;margin-right:.8rem}.md-typeset .mdx-author p>span{display:block}.md-banner a,.md-banner a:focus,.md-banner a:hover{color:currentColor}.md-banner strong{white-space:nowrap}.md-banner .twitter{margin-left:.2em}.mdx-container{background:url("data:image/svg+xml;utf8,") no-repeat bottom,linear-gradient(to bottom,var(--md-primary-fg-color),#a63fd9 99%,var(--md-default-bg-color) 99%);padding-top:1rem}[data-md-color-scheme=slate] .mdx-container{background:url("data:image/svg+xml;utf8,") no-repeat bottom,linear-gradient(to bottom,var(--md-primary-fg-color),#a63fd9 99%,var(--md-default-bg-color) 99%)}.mdx-hero{color:var(--md-primary-bg-color);margin:0 .8rem}.mdx-hero h1{color:currentColor;font-weight:700;margin-bottom:1rem}@media screen and (max-width:29.9375em){.mdx-hero h1{font-size:1.4rem}}.mdx-hero__content{padding-bottom:6rem}@media screen and (min-width:60em){.mdx-hero{align-items:stretch;display:flex}.mdx-hero__content{margin-top:3.5rem;max-width:19rem;padding-bottom:14vw}.mdx-hero__image{order:1;transform:translateX(4rem);width:38rem}}@media screen and (min-width:76.25em){.mdx-hero__image{transform:translateX(8rem)}}.mdx-hero .md-button{color:var(--md-primary-bg-color);margin-right:.5rem;margin-top:.5rem}.mdx-hero .md-button:focus,.mdx-hero .md-button:hover{background-color:var(--md-accent-fg-color);border-color:var(--md-accent-fg-color);color:var(--md-accent-bg-color)}.mdx-hero .md-button--primary{background-color:var(--md-primary-bg-color);border-color:var(--md-primary-bg-color);color:#894da8}.md-typeset .mdx-iconsearch{background-color:var(--md-default-bg-color);border-radius:.1rem;box-shadow:0 .2rem .5rem rgba(0,0,0,.1),0 .025rem .05rem rgba(0,0,0,.1);position:relative;transition:box-shadow 125ms}.md-typeset .mdx-iconsearch:focus-within,.md-typeset .mdx-iconsearch:hover{box-shadow:0 .4rem 1rem rgba(0,0,0,.15),0 .025rem .05rem rgba(0,0,0,.15)}.md-typeset .mdx-iconsearch .md-input{background:var(--md-default-bg-color);box-shadow:0 0 .6rem rgba(0,0,0,.07)}[data-md-color-scheme=slate] .md-typeset .mdx-iconsearch .md-input{background:var(--md-code-bg-color)}.md-typeset .mdx-iconsearch-result{-webkit-backface-visibility:hidden;backface-visibility:hidden;max-height:50vh;overflow-y:auto;scrollbar-color:var(--md-default-fg-color--lighter) transparent;scrollbar-width:thin;touch-action:pan-y}.md-typeset .mdx-iconsearch-result::-webkit-scrollbar{height:.2rem;width:.2rem}.md-typeset .mdx-iconsearch-result::-webkit-scrollbar-thumb{background-color:var(--md-default-fg-color--lighter)}.md-typeset .mdx-iconsearch-result::-webkit-scrollbar-thumb:hover{background-color:var(--md-accent-fg-color)}.md-typeset .mdx-iconsearch-result__meta{color:var(--md-default-fg-color--lighter);font-size:.64rem;position:absolute;right:.6rem;top:.4rem}.md-typeset .mdx-iconsearch-result__list{list-style:none;margin:0;padding:0}.md-typeset .mdx-iconsearch-result__item{border-bottom:.05rem solid var(--md-default-fg-color--lightest);margin:0;padding:.2rem .6rem}.md-typeset .mdx-iconsearch-result__item:last-child{border-bottom:none}.md-typeset .mdx-iconsearch-result__item>*{margin-right:.6rem}.md-typeset .mdx-iconsearch-result__item img{height:.9rem;width:.9rem}[data-md-color-scheme=slate] .md-typeset .mdx-iconsearch-result__item img[src*=squidfunk]{filter:invert(1)}.md-typeset .mdx-premium p{margin:2em 0;text-align:center}.md-typeset .mdx-premium img{height:3.25rem}.md-typeset .mdx-premium p:last-child{display:flex;flex-wrap:wrap;justify-content:center}.md-typeset .mdx-premium p:last-child>a{display:block;flex-shrink:0}.md-typeset .mdx-sponsorship__list{margin:2em 0}.md-typeset .mdx-sponsorship__list:after{clear:both;content:"";display:block}.md-typeset .mdx-sponsorship__item{border-radius:100%;display:block;float:left;height:1.6rem;margin:.2rem;overflow:hidden;transform:scale(1);transition:color 125ms,transform 125ms;width:1.6rem}.md-typeset .mdx-sponsorship__item:focus,.md-typeset .mdx-sponsorship__item:hover{transform:scale(1.1)}.md-typeset .mdx-sponsorship__item:focus img,.md-typeset .mdx-sponsorship__item:hover img{filter:grayscale(0)}.md-typeset .mdx-sponsorship__item--private{background:var(--md-default-fg-color--lightest);color:var(--md-default-fg-color--lighter);font-size:.6rem;font-weight:700;line-height:1.6rem;text-align:center}.md-typeset .mdx-sponsorship__item img{display:block;filter:grayscale(100%) opacity(75%);height:auto;transition:filter 125ms;width:100%}.md-typeset .mdx-sponsorship-button{font-weight:400}.md-typeset .mdx-sponsorship-count,.md-typeset .mdx-sponsorship-total{font-weight:700} 2 | # Swipper JS Plugin 3 | .swiper { 4 | width: 100%; 5 | height: 100%; 6 | } 7 | 8 | .swiper-slide { 9 | text-align: center; 10 | font-size: 18px; 11 | background: #FFFFFF; 12 | } 13 | .swiper-slide img { 14 | width: 100%; 15 | height: auto; 16 | max-width: 100%; 17 | max-height: 100%; 18 | } 19 | .md-typeset h1 { 20 | color: var(--md-default-fg-color--light); 21 | font-size: 2em; 22 | line-height: 1.3; 23 | margin: 0 0 0.75em; 24 | } 25 | # Swipper JS Plugin 26 | .swiper { 27 | width: 70%; 28 | height: 70%; 29 | } 30 | 31 | .swiper-slide { 32 | text-align: center; 33 | font-size: 18px; 34 | background: #FFFFFF; 35 | } 36 | .swiper-slide img { 37 | width: 70%; 38 | height: auto; 39 | max-width: 70%; 40 | max-height: 100%; 41 | } 42 | .snipcart-checkout_price { 43 | color: white; 44 | text-align: center; 45 | display: inline-block; 46 | font-size: 16px; 47 | cursor: pointer; 48 | font-weight:bold; 49 | } 50 | .swiper-button-next { 51 | color: rgb(37, 197, 218); 52 | } 53 | .swiper-button-prev { 54 | color: rgb(37, 197, 218); 55 | } 56 | .swiper-slide .title { 57 | float: down; 58 | color: black; 59 | font-size: 24px; 60 | font-weight:bold; 61 | margin-bottom: 40px; 62 | } 63 | -------------------------------------------------------------------------------- /documentation/docs/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | template: home.html 3 | description: ZigStar DIY Projects. Zigbee Stick, LAN Zigbee Coordinator. 4 | --- 5 | -------------------------------------------------------------------------------- /documentation/docs/projects/zigbee-gw-lan.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: ZigStar LAN Gateway 3 | description: Zigbee LAN Coordinator based on CC2652P 4 | tags: 5 | - zigbee gateway lan 6 | - zigbee ethernet gateway 7 | - zigbee lan bridge 8 | - ethernet zigbee 9 | - zigbee ethernet 10 | - lan coordinator 11 | hide: 12 | - tags 13 | - toc 14 | --- 15 | 16 |
17 |
18 |
19 | ”zigbee 20 |
21 |
22 | ”zigbee 23 |
24 |
25 | ”ethernet 26 |
27 |
28 |
29 |
30 |
31 |
32 | 33 | ## Features 34 | 35 | - Wide range of Zigbee Modules (CC2652P, CC2652RB, etc) 36 | - 2 WORKING MODES: LAN Coordinator or USB Coordinator/Router 37 | - BOOT,FLASH,RESET Buttons 38 | - 2 LED for indication [Custom firmware](https://github.com/jethome-ru/zigbee-firmware/tree/master/ti/coordinator/cc2652) 39 | - Communicates via USB or LAN network with [Z2M](https://www.zigbee2mqtt.io/) and [ZHA](https://www.home-assistant.io/integrations/zha/) 40 | - SMA port for an external antenna 41 | - Easy programming with [ZigStar Multi Tool](/radio-docs/zigstar-multi-tool/#zigstar-multi-tool).No external programmer needed!
42 | - Plug & Play, comes pre-flashed 43 | 44 | ## Revisions 45 | 46 | There are 3 version of Zigbee LAN Gateway,what are tested:
47 | - [RF-STAR RF-BM-2652P2 - 20dBm](https://github.com/mercenaruss/zigstar_gateways/raw/main/files/Gerbers/LAN%20Gateway/Gerber_WT32_RF-BM-2652P2.zip)
48 | - [Ebyte E72-2G4M20S1E - 20dBm](https://github.com/mercenaruss/zigstar_gateways/raw/main/files/Gerbers/LAN%20Gateway/Gerber_WT32_E72-2G4M20S1E.zip)
49 | - [Ebyte E72-2G4M05S1F - 5dBm](https://github.com/mercenaruss/zigstar_gateways/raw/main/files/Gerbers/LAN%20Gateway/Gerber_WT32_E72-2G4M05S1F.zip)[^1]
50 | 51 | 52 | !!! INFO 53 | - RF-STAR RF-BM-2652P2 recommended 54 | - PCB thickness 1.2mm is recommended 55 | 56 | 57 | ## Bill of Materials 58 | 59 | EasyEDA Generated BOM,you can order on [LCSC](https://lcsc.com) directly - [BOM](https://github.com/mercenaruss/zigstar_gateways/blob/main/files/BOM/BOM_WT32_RF-BM-2652P2.csv) 60 | 61 | | Designator | Name | Footprint | Quantity | 62 | | :------------|:---------------|:-----|:--------:| 63 | | U1|[RF-BM-2652P1/P2](https://letyshops.com/r/aliexpress-c83c7878b18b)| | 1 | 64 | | U2|[WT32-ETH01](https://letyshops.com/r/aliexpress-73b6cc1c03c9) |N/A| 1 | 65 | | U3 | CH340C|SOP-16 |1| 66 | | U4 | AMS1117-3.3|SOT-223 |1| 67 | | R1 | 10 kohm|SMD 0805 |1| 68 | | R2,R3 | 1 kohm|SMD 0805 |2| 69 | | R4,R5 | 5.1 kohm|SMD 0805 |2| 70 | | R6,R7 | 22 ohm|SMD 0805 |2| 71 | | C1| 10uF|SMD_L3.5-W2.8|1| 72 | | C2,C4| 100nF|SMD 0805|2| 73 | | C3| 22uF|SMD_L3.5-W2.8|1| 74 | | L1,L2| RED/GREEN LED|SMD 0805|2| 75 | | SBL,RST,BOOT|PUSH BUTTON |SMD_L3.9-W3.0-P4.45|3| 76 | | USB| TYPE-C|USB-C_SMD-TYPE-C-31-M-12|1| 77 | | CON| [STACKABLE HEADER 13 PIN](https://letyshops.com/r/aliexpress-09c274fbb012) |2.54x13P|1| 78 | | ANT| [SMA ANTENNA PORT 1.2mm](https://letyshops.com/r/aliexpress-e6704ce906c0)|SMA EDGE|1| 79 | 80 | Next items are not available on LCSC,you can get them on Aliexpress: 81 | 82 | | Name | Shop 1 | Shop 2 | 83 | | :------------|:---------------|:-----| 84 | | WT32-ETH01| [CLICK](https://letyshops.com/r/aliexpress-a4dd8609c8d4)| [CLICK](https://letyshops.com/r/aliexpress-401d07dc02d1) | 85 | | RF-STAR RF-BM-2652P1/P2|[CLICK](https://letyshops.com/r/aliexpress-dbe513b72282) | [CLICK](https://letyshops.com/r/aliexpress-1f3e1a35e82d) | 86 | | Ebyte E72-2G4M20S1E | [CLICK](https://letyshops.com/r/aliexpress-b25ea4b8642a)| [CLICK](https://letyshops.com/r/aliexpress-00563b7dcf47) | 87 | | Ebyte E72-2G4M05S1F | [CLICK](https://letyshops.com/r/aliexpress-dd63f3c1afdc)| [CLICK](https://letyshops.com/r/aliexpress-c8b5adc0e26c) | 88 | | RP-SMA Antenna PCB Connector 1.2mm | [CLICK](https://letyshops.com/r/aliexpress-7507f61580c3)| N/A | 89 | | RP-SMA Antenna Female - Inner hole |[CLICK](https://letyshops.com/r/aliexpress-81d294a1360f)| [CLICK](https://letyshops.com/r/aliexpress-5ebae68206ac) | 90 | | STACKABLE FEMALE HEADER 13 PIN| [CLICK](https://letyshops.com/r/aliexpress-fb2fa1673785) | [CLICK](https://letyshops.com/r/aliexpress-09c274fbb012) | 91 | 92 | ## Options 93 | 94 | In order to use your LAN Gateway in USB Mode(without connection to WT32-ETH01):
95 | Solder jumpers, labeled J1/USB or change default DIP switch position 96 | 97 | !!! danger "DIP Switch Positions" 98 | - ON for USB Mode 99 | - OFF for LAN Mode
100 | 101 | Both switches should be in the same position. 102 | 103 | ![Jumper-Zigbee](../assets/images/zigbee-gw-lan/jumper-zig.png){: style="height:20%;width:20%" loading=lazy} ![Jumper-Zigbee](../assets/images/zigbee-gw-lan/dip-zig.png){: style="height:15%;width:15%" loading=lazy} 104 | 105 | ## Firmware 106 | 107 | Help on choosing correct firmware for your device is located [HERE](/radio-docs/quick-start/#step-2-download-the-correct-firmware-for-your-device) 108 | 109 | ## Flashing 110 | 111 | * [YAML Config](https://github.com/mercenaruss/zigstar_gateways/blob/main/files/ESP-HOME/zigstar-gw-lan.yaml)
112 | * [WT32-ETH01 Firmware ESP-Home](https://github.com/mercenaruss/zigstar_gateways/raw/main/files/ESP-HOME/zigstar-gw-lan.bin)
113 | * [ZigStar Firmware](https://github.com/xyzroe/ZigStarGW-FW/releases)[^2]
114 | * ESP-HOME flashing guide - [ESP-HOME](/radio-docs/esp-home/)
115 | * ZigStar flashing guide - [ZigStar Firmware](/radio-docs/flash-zigstargw/)
116 | * Zigbee Module flashing guide - [ZigStar Multi Tool](/radio-docs/zigstar-multi-tool/#zigstar-multi-tool))
117 | 118 | ## Downloads 119 | - [Gerbers](https://github.com/mercenaruss/zigstar_gateways/tree/main/files/Gerbers) 120 | - [STL Case](https://github.com/mercenaruss/zigstar_gateways/tree/main/files/STL) 121 | - [Schematics (pdf)](https://github.com/mercenaruss/zigstar_gateways/tree/main/files/Schematics) 122 | - [LCSC BOM File](https://github.com/mercenaruss/zigstar_gateways/tree/main/files/BOM) 123 | 124 | ## Video 125 | 126 | *English subtitles available 127 | 128 | 1. Ethernet Zigbee ZigStar Gateway, installing multiple zigbee2mqtt
129 | 130 | 131 | 132 | 2. Server redundancy with Zigbee2MQTT on Zigbee LAN Coordinator Zigstar
133 | 134 | 135 | 136 | [^1]: **Not recommended for new assembly.** 137 | [^2]: **All forces will be used for this firmware, ESPHOME debugging and development is depreceated** -------------------------------------------------------------------------------- /documentation/docs/projects/zigbee-shield.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: ZigStar Shield 3 | description: Zigbee Shield (CC2652P Zigbee Coordinator) Design Files and Description, working with Zigbee2Mqtt (Z2M) and ZHA 4 | --- 5 | 6 | ![](../assets/images/zigbee-shield/3DDefault.png){: style="height:60%;width:60%" loading=lazy} 7 | 8 | ## Features 9 | 10 | - [TI CC2652P](https://www.ti.com/product/CC2652P)SimpleLink™ 2.4 GHz Multiprotocol Wireless MCU targeting Zigbee,Bluetooth 5.1 Low Energy,Thread + 19.5-dBm high-power amplifier 11 | - Support RF-BM-2652P1 and RF-BM-2652P2 Module from RF-STAR,with CC2652P on board 12 | - BSL,RST Buttons 13 | - 2 LED for indication 14 | - Compatible with [Z2M](https://www.zigbee2mqtt.io/) and [ZHA](https://www.home-assistant.io/integrations/zha/) 15 | - IPX port for an external antenna 16 | - Self-programming via [cc2538-bsl](https://github.com/JelmerT/cc2538-bsl). No external programmer needed! Push BSL button to trigger this mode. 17 | 18 | ## Bill of Materials: 19 | 20 | EasyEDA Generated Boom,you can order on [LCSC](https://lcsc.com)directly - [BOOM](https://github.com/mercenaruss/zigbee-stick-v4/blob/main/files/BOM_ZigStar_Shield.csv) 21 | 22 | | Designator | Name | Footprint | Quantity | 23 | | :------------|:---------------|:-----|:--------:| 24 | | U1| RF-BM-2652P1/P2| | 1 | 25 | | U2|AMS1117-3.3 |SOT-223| 1 | 26 | | R1 | 10 kohm|SMD 0805 |1| 27 | | R2,R3 | 1 kohm|SMD 0805 |2| 28 | | C1| 10uF|SMD_L3.5-W2.8-R-RD|1| 29 | | C2| 22uF|SMD_L3.5-W2.8-R-RD|1| 30 | | C3| 100nF|SMD 0805|1| 31 | | L1,L2| RED/GREEN LED|SMD 0805|2| 32 | | SBL,RST|PUSH BUTTON |SMD_L3.9-W3.0-P4.45|2| 33 | | JTAG| PIN HEADER 5 PIN|2.54x5P|1| 34 | | H1| FEMALE HEADER 2x5 PIN|2.54 2x5P|1| 35 | 36 | Next item is not available on LCSC,you can get it on Aliexpress: 37 | 38 | - [RF-BM-2652P1/P2](https://letyshops.com/r/aliexpress-f6e2c6d280d5) 39 | 40 | ## Firmware 41 | 42 | Module is compatible with [Z2M](https://www.zigbee2mqtt.io/). 43 | Firmware [CC1352P2_CC2652P_launchpad_*.zip](https://github.com/Koenkk/Z-Stack-firmware/tree/master/coordinator/Z-Stack_3.x.0/bin).
44 | Default TX Power is 5dbm. It can be adjusted in Z2M config section: 45 | 46 | experimental: 47 | transmit_power: 5 48 | 49 | Available TX power values: -20,-18,-15,-12,-10,-9,-6,-5,-3,0,1..5,14..20 50 | 51 | ## Downloads 52 | - [Gerber](https://github.com/mercenaruss/zigbee-stick-v4/tree/main/files/gerber) 53 | - [Schematics (pdf), Revision 1](https://github.com/mercenaruss/zigbee-stick-v4/tree/main/files/schematics) 54 | - [LCSC Boom File](https://github.com/mercenaruss/zigbee-stick-v4/blob/main/files/BOM_ZigStar_Shield.csv) 55 | -------------------------------------------------------------------------------- /documentation/docs/projects/zigbee-stick-v4.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: ZigStar Stick v4 3 | description: Zigbee USB Stick - CC2652P Zigbee Coordinator 4 | tags: 5 | - zigbee stick 6 | - zigbee usb-stick 7 | - usb zigbee gateway 8 | - zigbee dongle 9 | - zigbee coordinator 10 | hide: 11 | - tags 12 | - toc 13 | --- 14 |
15 |
16 |
17 | ”zigbee 18 |
ZigStar Stick - Top
19 |
20 |
21 | ”cc2652p 22 |
ZigStar Stick - Bottom
23 |
24 |
25 |
26 |
27 |
28 |
29 | 30 | ## Features 31 | 32 | - [TI CC2652P](https://www.ti.com/product/CC2652P) SimpleLink™ 2.4 GHz Multiprotocol Wireless MCU targeting Zigbee,Bluetooth 5.1 Low Energy,Thread + 19.5-dBm high-power amplifier
33 | - Support RF-BM-2652P1 and RF-BM-2652P2 Module from RF-STAR,with CC2652P on board
34 | - BSL,RST Buttons
35 | - 2 LED for indication
36 | - Compatible with [Z2M](https://www.zigbee2mqtt.io/)and [ZHA](https://www.home-assistant.io/integrations/zha/)
37 | - SMA antenna port for an external antenna
38 | - Easy programming with [ZigStar Multi Tool](/radio-docs/zigstar-multi-tool/#zigstar-multi-tool).No external programmer needed!
39 | - Communicates via the common CH340E/CH340C USB-UART Bridge
40 | - Plug & Play, comes pre-flashed
41 | 42 | ## Purchase 43 | 44 | Assembled versions of Zigbee Stick v4 is available for purchase.
45 | Shiping is done from Germany
46 | Each order contains a fully assembled and tested PCBA along with a plastic enclosure and a small +3dBi antenna. 47 | 48 | ## Revisions 49 | 50 | There are 2 versions of stick,both of them tested:
51 | - [CH340C 3D Printed Case version](https://github.com/mercenaruss/zigbee-stick-v4/raw/main/files/gerber/Gerber_Zigbee%20Stick%20v4.0%20-%20CH340C.zip), more easy to solder,Auto-BSL enabled and includes ESD protection.[^1]
52 | - [CH340C Factory Case version](https://github.com/mercenaruss/zigbee-stick-v4/raw/main/files/gerber/Gerber_Zigbee%20Stick%20v4.0%20-%20CH340C%20-%20Factory%20VG-S48_AK-N-12.zip),[^2] fits in this factory cases [VG-S48](https://letyshops.com/r/aliexpress-5891f3cb4a88)/[AK-N-12](https://letyshops.com/r/aliexpress-0f3a529a9464)
53 | 54 | CH340C versions use this [3D Model Case](https://github.com/mercenaruss/zigbee-stick-v4/blob/main/files/STL)
55 | Factory cases are found on Aliexpress: [VG-S48](https://letyshops.com/r/aliexpress-5891f3cb4a88)/[AK-N-12](https://letyshops.com/r/aliexpress-0f3a529a9464) 56 | 57 | ## Bill of Materials: 58 | 59 | EasyEDA Generated Boom,you can order on [LCSC](https://lcsc.com)directly - [BOM](https://github.com/mercenaruss/zigbee-stick-v4/blob/main/files/BOM_Zigbee%20Stick%204.0%20CH340E-C.csv) 60 | 61 | | Designator | Name | Footprint | Quantity | 62 | | :------------|:---------------|:-----|:--------:| 63 | | U1| RF-BM-2652P1/P2| | 1 | 64 | | U2|AMS1117-3.3 |SOT-223| 1 | 65 | | U3 | CH340E/CH340C|MSOP-10/SOP-16 |1| 66 | | R1 | 10 kohm|SMD 0805 |1| 67 | | R2,R3 | 1 kohm|SMD 0805 |2| 68 | | R4 | 100 ohm|SMD 0805 |1| 69 | | C1| 10uF|SMD_L3.2-W1.6|1| 70 | | C2,C4| 100nF|SMD 0805|2| 71 | | C3| 22uF|SMD_L3.2-W1.6|1| 72 | | L1,L2| RED/GREEN LED|SMD 0805|2| 73 | | SBL,RST|PUSH BUTTON |SMD_L3.9-W3.0-P4.45|2| 74 | | USB| USB A MALE|USB-A-SMD_USB-A-1-TH|1| 75 | | JTAG| PIN HEADER 5 PIN|2.54x5P|1| 76 | | ANT| SMA ANTENNA PORT 1.6mm||1| 77 | | D1| ESD USBLC6-2SC6|SOT-23-6|1| 78 | 79 | **WARNING** D1 is used only for CH340C and Factory Case sticks.
80 | Next items are not available on LCSC,you can get them on Aliexpress:
81 | - [RF-BM-2652P1/P2](https://letyshops.com/r/aliexpress-c83c7878b18b)
82 | - [RP-SMA Antenna PCB Connector 1.2/1.6mm](https://letyshops.com/r/aliexpress-7507f61580c3)
83 | - [RP-SMA Antenna Female - Inner hole](https://letyshops.com/r/aliexpress-81d294a1360f)
84 | - Cases [VG-S48](https://letyshops.com/r/aliexpress-5891f3cb4a88)/[AK-N-12](https://letyshops.com/r/aliexpress-0f3a529a9464)
85 | 86 | ## Firmware 87 | 88 | Module is compatible with [Z2M](https://www.zigbee2mqtt.io/). 89 | Firmware [CC1352P2_CC2652P_launchpad_*.zip](https://github.com/Koenkk/Z-Stack-firmware/tree/master/coordinator/Z-Stack_3.x.0/bin).
90 | Default TX Power is 9dbm. It can be adjusted in Z2M config section: 91 | 92 | experimental: 93 | transmit_power: 10 94 | 95 | Available TX power values: -20,-18,-15,-12,-10,-9,-6,-5,-3,0,1..5,14..20 [^3] 96 | 97 | ## Downloads 98 | - [Gerbers](https://github.com/mercenaruss/zigbee-stick-v4/tree/main/files/gerber)
99 | - [STL Case](https://github.com/mercenaruss/zigbee-stick-v4/tree/main/files/STL)
100 | - [Schematics (pdf), Revision 1](https://github.com/mercenaruss/zigbee-stick-v4/tree/main/files/schematics)
101 | - [LCSC Boom File](https://github.com/mercenaruss/zigbee-stick-v4/blob/main/files/BOM_Zigbee%20Stick%204.0%20CH340E-C.csv)
102 | 103 | ## Video 104 | 105 | *English subtitles available 106 | 107 | 108 | 109 | [^1]: **Not recomended for new assembly.** 110 | [^2]: **Recomended version for assembly.** 111 | [^3]: **After many tests recomended value is 10dbm, depending on your environment.** 112 | -------------------------------------------------------------------------------- /documentation/docs/projects/zigbee-zigihat.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: ZigStar ZigiHAT 3 | description: Raspberry HAT - Zigbee Coordinator 4 | tags: 5 | - raspberry coordinator 6 | - raspberry zigbee shield 7 | - raspberry hat 8 | - zigihat 9 | hide: 10 | - tags 11 | - toc 12 | --- 13 | 14 |
15 |
16 |
17 | ”zigbee 18 |
19 |
20 | ”zigbee 21 |
22 |
23 | ”ethernet 24 |
25 |
26 |
27 |
28 |
29 |
30 | 31 | ## Features 32 | - [CC2652P](https://www.ti.com/product/CC2652P)chip from Texas Instruments, using the [RF-BM-2652P2](https://letyshops.com/r/aliexpress-c83c7878b18b)module: 33 | - Max. RF Power: 20dBm 34 | - Built-in ROM serial bootloader - no external programmer/debugger needed 35 | - SMA antenna for 2.4GHz(ZigBee) 36 | - PoE IEEE 802.3af or passive 48V PoE support 37 | - RTC with backup battery for offline timekeeping 38 | - ID EEEPROM (firmware still under development) 39 | - Easy programming using [CC2538-BSL](https://github.com/JelmerT/cc2538-bsl)or [OpenOCD](https://openocd.org/)JTAG([scripts provided](#flashing)) 40 | - QWIIC/Stemma QT compatible I2C expansion header 41 | - BSL,RESET Buttons 42 | 43 | 44 | ## What is included: 45 | - ZigiHAT Addon board - 1 pcs 46 | - Standoff - 4 pcs 47 | - Plastic screws - 4 pcs 48 | 49 | ## Flashing 50 | 51 | To make setup and flashing procedure more pleasant for end-user,we make some scripts to be used for setup of ZigiHAT
52 | 53 | - Pi_Flasher_CC2538 - Run to flash last [Koenkk firmware](https://github.com/Koenkk/Z-Stack-firmware)using [CC2538-BSL](https://github.com/JelmerT/cc2538-bsl)
54 | ``` 55 | curl -s https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/main/files/Tools/Scripts/Pi_Flasher_CC2538.sh > Pi_Flasher_CC2538.sh && chmod +x ./Pi_Flasher_CC2538.sh && ./Pi_Flasher_CC2538.sh 56 | ``` 57 | - Pi_Flasher_JTAG - Run to flash over JTAG the last [Koenkk firmware](https://github.com/Koenkk/Z-Stack-firmware)using [OpenOCD](https://openocd.org/) 58 | ``` 59 | curl -s https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/main/files/Tools/Scripts/Pi_Flasher_JTAG.sh > Pi_Flasher_JTAG.sh && chmod +x ./Pi_Flasher_JTAG.sh && ./Pi_Flasher_JTAG.sh 60 | ``` 61 | - Pi_Starter - Run to setup your Raspberry Pi Wifi/Bluetooth, RTC and I2C,what is available on board of ZigiHAT 62 | ``` 63 | curl -s https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/main/files/Tools/Scripts/Pi_Starter.sh > Pi_Starter.sh && chmod +x ./Pi_Starter.sh && ./Pi_Starter.sh 64 | ``` 65 | 66 | !!! tip 67 | 68 | Wifi and Bluetooth is recomended to disable in case in not used by system,when Pi_Starter ask you. 69 | 70 | ??? danger "Flashing settings" 71 | In order to use any of flashing methods(Pi_Flasher_CC2538 or Pi_Flasher_JTAG),all swithes from DIP switch(FLASH) should be in ON position. 72 | 73 | ## Downloads 74 | 75 | - [Gerbers](https://github.com/mercenaruss/zigstar_gateways/tree/main/files/Gerbers) 76 | - [Schematics](https://github.com/mercenaruss/zigstar_gateways/tree/main/files/Schematics) 77 | - [LCSC BOM File](https://github.com/mercenaruss/zigstar_gateways/tree/main/files/BOM) -------------------------------------------------------------------------------- /documentation/docs/projects/zigstar-lilyzig.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: ZigStar LilyZig 3 | description: ZigStar Zigbee POE Coordinator based on CC2652P. 4 | tags: 5 | - zigbee gateway poe 6 | - zigbee poe coordinator 7 | - zigbee ethernet gateway 8 | - zigbee poe bridge 9 | - ethernet zigbee 10 | - zigbee ethernet 11 | hide: 12 | - tags 13 | - toc 14 | --- 15 | 16 |
17 |
18 |
19 | ”zigbee 20 |
21 |
22 | ”zigbee 23 |
24 |
25 | ”zigbee 26 |
27 |
28 | ”zigbee 29 |
30 |
31 |
32 |
33 |
34 |
35 | 36 | !!! note 37 | 38 | **LiliZig is retired** Not anymore on sale. Available only for self assembly. 39 | 40 | ## Features 41 | 42 | - 802.3af PoE or USB C-Type [^1] 43 | - CC2652P TI chip, the most powerful (+20dB) 44 | - 2 WORKING MODES: LAN/POE Coordinator or USB Coordinator/Router 45 | - 2 LED for indication [KoenK Firmware](https://github.com/Koenkk/Z-Stack-firmware/tree/master/coordinator/Z-Stack_3.x.0/bin) 46 | - Communicates via USB or LAN network with [Z2M](https://www.zigbee2mqtt.io/) and [ZHA](https://www.home-assistant.io/integrations/zha/) 47 | - SMA port for an external antenna 48 | - Easy programming with [ZigStar Multi Tool](/radio-docs/zigstar-multi-tool/#zigstar-multi-tool). No external programmer needed!
49 | 50 | !!! danger "Important notice" 51 | **USB and PoE is forbidden to use simultaneously!**
52 | LilyZig has **no galvano isolation** from Ethernet's power supply, when you program the board via the USB-C connector the Ethernet cable should be disconnected. 53 | 54 | ## Revisions 55 | 56 | There are 2 version of LilyZig POE Gateway,what are tested:
57 | - [RF-STAR RF-BM-2652P2 - 20dBm](https://github.com/mercenaruss/zigstar_gateways/raw/main/files/Gerbers/LilyZig/Gerber_TTGO_RF-BM-2652P2.zip)
58 | - [Ebyte E72-2G4M20S1E - 20dBm](https://github.com/mercenaruss/zigstar_gateways/raw/main/files/Gerbers/LilyZig/Gerber_TTGO_E72-2G4M20S1E.zip)
59 | 60 | 61 | !!! INFO 62 | - RF-STAR RF-BM-2652P2 recommended 63 | - PCB thickness 1.2mm is recommended 64 | 65 | 66 | ## Bill of Materials 67 | 68 | EasyEDA Generated BOM,you can order on [LCSC](https://lcsc.com) directly - [BOM](https://github.com/mercenaruss/zigstar_gateways/blob/main/files/BOM/BOM_TTGO_RF-BM-2652P2.csv) 69 | 70 | Next items are not available on LCSC,you can get them on Aliexpress: 71 | 72 | | Name | Shop 1 | Shop 2 | 73 | | :------------|:---------------|:-----| 74 | | LILYGO® TTGO T-Internet-POE| [CLICK](https://letyshops.com/r/aliexpress-69affae66921)| [CLICK](https://letyshops.com/r/aliexpress-95230416106d)| 75 | | RF-STAR RF-BM-2652P1/P2|[CLICK](https://letyshops.com/r/aliexpress-c83c7878b18b) | [CLICK](https://letyshops.com/r/aliexpress-dbe513b72282) | 76 | | Ebyte E72-2G4M20S1E | [CLICK](https://letyshops.com/r/aliexpress-b25ea4b8642a)| [CLICK](https://letyshops.com/r/aliexpress-00563b7dcf47) | 77 | | RP-SMA Antenna PCB Connector 1.2mm | [CLICK](https://letyshops.com/r/aliexpress-7507f61580c3)| N/A | 78 | | RP-SMA Antenna Female - Inner hole |[CLICK](https://letyshops.com/r/aliexpress-81d294a1360f)| [CLICK](https://letyshops.com/r/aliexpress-5ebae68206ac) | 79 | 80 | ## Firmware 81 | 82 | Help on choosing correct firmware for your device is located [HERE](/radio-docs/quick-start/#step-2-download-the-correct-firmware-for-your-device) 83 | 84 | ## Flashing 85 | 86 | * [ZigStar ESP Firmware!](https://github.com/xyzroe/ZigStarGW-FW/releases)[^2]
87 | * Zigbee Module flashing guide - [ZigStar Multi Tool](/radio-docs/zigstar-multi-tool/#zigstar-multi-tool))
88 | 89 | ## Downloads 90 | - [Gerbers](https://github.com/mercenaruss/zigstar_gateways/tree/main/files/Gerbers) 91 | - [STL Case](https://github.com/mercenaruss/zigstar_gateways/tree/main/files/STL) 92 | - [Schematics (pdf)](https://github.com/mercenaruss/zigstar_gateways/tree/main/files/Schematics) 93 | - [LCSC Boom File](https://github.com/mercenaruss/zigstar_gateways/tree/main/files/BOM) 94 | 95 | ## Video 96 | 97 | *English subtitles available 98 | 99 | 100 | 101 | [^1]: **USB and PoE is forbidden to use simultaneously** 102 | [^2]: **All forces will be used for this firmware, ESPHOME debugging and development is depreceated** -------------------------------------------------------------------------------- /documentation/docs/projects/zigstar-olizig.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: ZigStar Olizig 3 | description: Zigbee POE Coordinator based on CC2652P. 4 | tags: 5 | - zigbee gateway poe 6 | - zigbee poe coordinator 7 | - zigbee ethernet gateway 8 | - zigbee poe bridge 9 | - ethernet zigbee 10 | - zigbee ethernet 11 | hide: 12 | - tags 13 | - toc 14 | --- 15 | 16 |
17 |
18 |
19 | ”zigbee 20 |
21 |
22 | ”zigbee 23 |
24 |
25 | ”ethernet 26 |
27 |
28 | ”olimex 29 |
30 |
31 |
32 |
33 |
34 |
35 | 36 | ## Features 37 | 38 | - 802.3af PoE or USB C-Type 39 | - CC2652P TI chip, the most powerful (+20dB) 40 | - 2 WORKING MODES: LAN/POE Coordinator or USB Coordinator/Router 41 | - 2 LED for indication [KoenK Firmware](https://github.com/Koenkk/Z-Stack-firmware/tree/master/coordinator/Z-Stack_3.x.0/bin) 42 | - Communicates via USB or LAN network with [Z2M](https://www.zigbee2mqtt.io/) and [ZHA](https://www.home-assistant.io/integrations/zha/) 43 | - DS18B20 temperature sensor for extra safety 44 | - Power Switch beetween POE and USB power 45 | - SMA port for an external antenna 46 | - Easy programming with [ZigStar Multi Tool](/radio-docs/zigstar-multi-tool/#zigstar-multi-tool). No external programmer needed!
47 | 48 | ## Flashing 49 | 50 | * [ZigStar ESP Firmware!](https://github.com/xyzroe/ZigStarGW-FW/releases)[^1]
51 | * Zigbee Module flashing guide - [ZigStar Multi Tool](/radio-docs/zigstar-multi-tool/#zigstar-multi-tool))
52 | 53 | ## Downloads 54 | 55 | - [Gerbers](https://github.com/mercenaruss/zigstar_gateways/tree/main/files/Gerbers) 56 | - [Schematics](https://github.com/mercenaruss/zigstar_gateways/tree/main/files/Schematics) 57 | - [LCSC BOM File](https://github.com/mercenaruss/zigstar_gateways/tree/main/files/BOM) 58 | 59 | [^1]: **All forces will be used for this firmware, ESPHOME debugging and development is depreceated** -------------------------------------------------------------------------------- /documentation/docs/radio-docs/esp-home.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Configuration ESP-HOME 3 | description: ZigStar LAN Coordinator Setup Documentation 4 | hide: 5 | - tags 6 | tags: 7 | - ESP-HOME 8 | - LAN 9 | - WEB 10 | --- 11 | 12 | # ESP-HOME 13 | 14 | In order to change default setting for ESP-HOME firmware, please follow next guides. 15 | 16 | ## Install ESP-HOME 17 | 18 | Choose from 2 optional avalaible at the moment: 19 | 20 | === "HA Supervised" 21 | 22 | It's using Home Assistant add-on, install instruction are found [HERE](https://esphome.io/guides/getting_started_hassio.html) 23 | 24 | === "Standalone" 25 | 26 | It can be installed barematel or using docker( personally using on windows ), follow instructions from [HERE](https://esphome.io/guides/getting_started_command_line.html) 27 | 28 | !!! info 29 | For both cases is required to download .yaml for your PCB 30 | 31 | ## Substitutions 32 | 33 | For example you want to change gateway hostname, friendly name in HA, your API and OTA passwords. 34 | 35 | In this case edit just next items,at the beggining of .yaml file: 36 | 37 | ![Esp-Home-Edit](../assets/images/radio-docs/esp-home/esp-home-sub.png){ loading=lazy } 38 | 39 | ## Static IP 40 | 41 | In order to make your device have the same IP each time after reboot, you have 2 ways to achieve this: 42 | 43 | - setup static ip in your router config 44 | - modify .yaml file. 45 | 46 | ![Esp-Home-Static IP](../assets/images/radio-docs/esp-home/esp-home-static.png){ loading=lazy } 47 | 48 | ## Generate and install updated firmware 49 | 50 | ![Esp-Home-Install](../assets/images/radio-docs/esp-home/esp-home-install.png){ loading=lazy } 51 | 52 | 53 | !!! danger 54 | Any error in ip configuration could cause the gw to not connect and require to be flashed with Serial to USB converter( applies to Wifi Gateway) 55 | !!! danger 56 | After changing IP parameters, OTA update it's not gonna work,until firmware is flashed to ESP module,using Manual Download. 57 | 58 | === "Wirelessly" 59 | 60 | If you made changes only in subtitutions section,then just press Install button in ESP-HOME interface,followed by Wirelessly. 61 | 62 | ![Esp-Home-Install Wirelles1](../assets/images/radio-docs/esp-home/esp-home-method-w.png){ loading=lazy } 63 | 64 | ![Esp-Home-Install Wirelles2](../assets/images/radio-docs/esp-home/esp-home-manual-wirelles.png){ loading=lazy } 65 | 66 | === "Manual Download" 67 | 68 | After changing IP parameters, OTA update it's not gonna work,until firmware is flashed to ESP module manually. 69 | 70 | 1. Press Manual Download 71 | 72 | ![Esp-Home-Manual Download](../assets/images/radio-docs/esp-home/esp-home-method-m.png){ loading=lazy } 73 | 74 | 2. Debug console confirm that firmware was built and Download button appear in righ bottom corner. 75 | 76 | ![Esp-Home-Debug](../assets/images/radio-docs/esp-home/esp-home-manual-success.png){ loading=lazy } ![Sub](../assets/images/radio-docs/esp-home/esp-home-manual-download.png){ loading=lazy } 77 | 78 | 3. Open your gateway address in browser and update firmware: 79 | 80 | ![Esp-Home-OTA Update](../assets/images/radio-docs/esp-home/esp-home-update.png){ loading=lazy } 81 | 82 | 83 | -------------------------------------------------------------------------------- /documentation/docs/radio-docs/flash-cc-bsl.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: ZigStar Flashing Instructions 3 | description: Instructions for flashing ZigBee Stick using cc2538-bsl 4 | hide: 5 | - tags 6 | tags: 7 | - cc2538-bsl 8 | - flashing 9 | - bsl 10 | - erase 11 | --- 12 | 13 | # Flash Firmware using JelmerT's serial bootload tool 14 | 15 | [JelmerT's serial bootload tool](https://github.com/JelmerT/cc2538-bsl)is a cross-platform Python script that allows you to flash firmware on TI's newer chips.
16 | All ZigStar boards are supported by cc2538-bsl.py. 17 | 18 | ## Installation 19 | 20 | - Install [python](https://www.python.org/downloads/) 21 | - Use ```python --version``` to be sure, that you are running python 3 or above! 22 | - If you are **NOT** running **3.4** or higher, you need to install `pip`, too. 23 | - Install dependencies with ```pip install pyserial intelhex``` 24 | - Download the [cc2538-bsl.py] file or just clone the repo.
25 | 26 | Copy and paste the command into your terminal. 27 | 28 | === "Linux(Debian/Ubuntu)" 29 | ``` 30 | sudo apt update && sudo apt-get install python3-pip 31 | ``` 32 | ``` 33 | wget -O cc2538-bsl.zip https://codeload.github.com/JelmerT/cc2538-bsl/zip/master && unzip cc2538-bsl.zip 34 | ``` 35 | ``` 36 | sudo pip3 install pyserial intelhex 37 | ``` 38 | === "MacOS" 39 | Python3 should already be shipped with macOS,if no then follow below procedure: 40 | 41 | Download and extract cc2538-bsl: 42 | ``` 43 | curl --output cc2538-bsl.zip https://codeload.github.com/JelmerT/cc2538-bsl/zip/master && unzip cc2538-bsl.zip 44 | ``` 45 | Install required dependencies: 46 | ``` 47 | /usr/bin/python3 -m pip install --user pyserial intelhex 48 | ``` 49 | === "Windows" 50 | 51 | Download [Python for Windows](https://www.python.org/downloads/)and install. After installation verify Python if its installed by running `python -V` in Command Prompt. 52 | 53 | If you receive a message similar to `Python is not recognized as an internal or external command, operable program or batch file.`, this means Python is either not installed or the system variable PATH hasn’t been set. You’ll need to launch Python from the folder in which it is installed or adjust your system variables to allow it to be launched from any location. 54 | 55 | Download the [zipped code](https://github.com/JelmerT/cc2538-bsl/archive/master.zip)and extract to a folder. 56 | 57 | Install required dependencies: 58 | ``` 59 | pip install pyserial intelhex 60 | ``` 61 | !!! tip 62 | Please use the [Power Shell](https://docs.microsoft.com/en-us/powershell/)to have the best user experience. If you encounter permissions issues, ensure that you are running your terminal as an administrator. 63 | 64 | ## Determine the USB port/ IP address 65 | 66 | Plug your device in and ensure that device is recognised by your OS: 67 | 68 | === "Linux(Debian/Ubuntu)" 69 | 70 | On linux, use this: 71 | ``` 72 | ls -l /dev/serial/by-id 73 | ``` 74 | Issue `dmesg` and observe the device enumeration: 75 | 76 | ```Shell 77 | [152343.203201] usb 1-1.4: new full-speed USB device number 5 using dwc_otg 78 | [152343.336384] usb 1-1.4: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.62 79 | [152343.336400] usb 1-1.4: New USB device strings: Mfr=0, Product=2, SerialNumber=0 80 | [152343.336409] usb 1-1.4: Product: USB2.0-Serial 81 | [152343.338315] ch341 1-1.4:1.0: ch341-uart converter detected 82 | [152343.341440] usb 1-1.4: ch341-uart converter now attached to ttyUSB0 83 | ``` 84 | 85 | === "MacOS" 86 | 87 | On macOS find the device using: 88 | ``` 89 | ls /dev/tty.* 90 | ``` 91 | Issue `dmesg` and observe the device enumeration: 92 | ``` 93 | IOUserSerial::AppleUSBCHCOM::: 127 0x6000013e4058 94 | IOUserSerial::: 456 0x6000013e4058 95 | IOUserSerial::: 41 0x6000013e4058 96 | DK: AppleUSBCHCOM-0x1000030ea::start(IOUSBHostInterface-0x1000030e5) ok 97 | ``` 98 | 99 | === "Windows" 100 | 101 | On windows, use this in a Powershell or go to Device Manager 102 | 103 | ``` 104 | $comports = Get-WMIObject Win32_SerialPort; $comports | Get-PnpDeviceProperty -InstanceId {$_.pnpdeviceid} -Keyname DEVPKEY_Device_BusReportedDeviceDesc | ForEach-Object { foreach($comport in $comports) { if ($comport.pnpdeviceid -eq $_.instanceid) { new-object psobject -property @{COMPORT = $comport.deviceid; 'Device-Name' = $_.data} } } } 105 | ``` 106 | The drivers for CH340 should be automatically be picked up,check under "Ports (COM & LPT)" in Device Manager: 107 | 108 | ![BSL Button](../assets/images/radio-docs/ch340-port-windows.png){ loading=lazy } 109 | 110 | If you need to install the drivers manually, go [HERE](http://www.wch.cn/downloads/CH341SER_ZIP.html)for official drivers. 111 | 112 | !!! TIP 113 | Double-check by undocking the device again. 114 | 115 | !!! info 116 | For network device find out IP or hostname. 117 | 118 | ## Put your device in BSL mode 119 | 120 | Please follow the following instructions to put your device in BSL mode: 121 | 122 | === "USB Coordinator" 123 | 124 | - Unplug your stick from the host 125 | - Press the `BSL/FLASH` pushbutton and keep holding while plugging the device back into the host 126 | 127 | ![BSL Button](../assets/images/radio-docs/ch340c-bsl.png){: style="height:15%;width:15%" loading=lazy} ![BSL Button](../assets/images/radio-docs/ch340e-bsl.png){: style="height:15%;width:15%" loading=lazy} 128 | 129 | - Give it a few seconds for the device to settle and set up and release the BSL button 130 | - Your stick should now be in ROM bootloader mode 131 | 132 | It's very important that you press and hold the BSL button **before** plugging it in to the host and release it **after a few seconds**. 133 | !!! note 134 | cc2538-bsl.py and .exe supports "Auto-BSL", now you can skip the BSL pushbutton press for flashing boards. 135 | 136 | Just follow normal firmware procedure using cc2538-bsl.py or cc2538-bsl.exe. ( Boards using CH340E does not support Auto-BSL! ) 137 | 138 | === "Network Coordinator " 139 | 140 | - Access device by IP or hostname using your browser 141 | - Click Firmware Update initiate the bootloader (BSL) mode for the module: 142 | 143 | ![BSL Button](../assets/images/radio-docs/web-gw/web-gw-1.png){ loading=lazy } 144 | 145 | - Watch the Debug output and when promted go to next step. 146 | 147 | ![BSL Button](../assets/images/radio-docs/web-gw/web-gw-2.png){ loading=lazy } 148 | 149 | ## Flash firmware 150 | 151 | To flash firmware, run: 152 | 153 | === "Option 1 - cc2538-bsl.exe" 154 | 155 | ``` 156 | ./cc2538-bsl.exe -p PORT -evw FIRMWARE 157 | ``` 158 | ...where `PORT` is the serial port your board is connected to. 159 | ``` 160 | ./cc2538-bsl.exe -p socket://ip_or_localdns_name:6638 -evw FIRMWARE 161 | ``` 162 | 163 | === "Option 2 - Python" 164 | 165 | ``` 166 | python cc2538-bsl.py -p PORT -evw FIRMWARE 167 | ``` 168 | ...where `PORT` is the serial port your board is connected to 169 | ``` 170 | python cc2538-bsl.py -p socket://ip_or_localdns_name:6638 -evw FIRMWARE 171 | ``` 172 | 173 | (see [above](#determine-the-usb-port)) and `FIRMWARE` is the hex file you want to flash (see [here](/radio-docs/quick-start/#step-2-download-the-correct-firmware-for-your-device) for help on choosing firmware). 174 | 175 | !!! INFO 176 | -p: will select the port
177 | -evw: will erase,write and check firmware 178 | 179 | !!! warning 180 | It is crucial that you download the correct firmware for your stick as using the wrong firmware will disable the BSL and you will need an external debugger / programmer to flash your stick again.

181 | 182 | ## Additional: 183 | 184 | ### Erase device 185 | 186 | To completely erase the device flash, run: 187 | 188 | === "Option 1 - cc2538-bsl.exe" 189 | 190 | ``` 191 | ./cc2538-bsl.exe -p PORT -e 192 | ``` 193 | ...where `PORT` is the serial port your board is connected to. 194 | ``` 195 | ./cc2538-bsl.exe -p socket://ip_or_localdns_name:6638 -e 196 | ``` 197 | 198 | === "Option 2 - Python" 199 | 200 | ``` 201 | python cc2538-bsl.py -p PORT -e 202 | ``` 203 | ...where `PORT` is the serial port your board is connected to. 204 | ``` 205 | python cc2538-bsl.py -p socket://ip_or_localdns_name:6638 -e 206 | ``` 207 | 208 | 209 | ### Clearing NVRAM 210 | 211 | During the flashing process, the coordinator's memory (NVMEM) may contain arbitrary data, which may in some cases prevent NVMEM recovery from the backup. 212 | 213 | === "Zigbee2MQTT" 214 | The coordinator's memory is cleared by the `zStackEraseAllNvMem.js` script, which is usually located in this directory: 215 | ``` 216 | /opt/zigbee2mqtt/scripts 217 | ``` 218 | The command line will look something like this: 219 | ``` 220 | node zStackEraseAllNvMem.js /dev/ttyUSB0 221 | ``` 222 | ``` 223 | node zStackEraseAllNvMem.js socket://ip_or_localdns_name:6638 224 | ``` 225 | === "Zigpy-ZNP" 226 | 227 | Download and install zigpy-znp: 228 | ``` 229 | pip install zigpy-znp 230 | ``` 231 | Erase your device's NVRAM entries to fully reset it: 232 | ``` 233 | python -m zigpy_znp.tools.nvram_reset /dev/serial/by-id/your-radio 234 | ``` 235 | ``` 236 | python -m zigpy_znp.tools.nvram_reset socket://ip_or_localdns_name:6638 237 | ``` 238 | Some warnings are normal, as not all entries will be present in every device. 239 | 240 | !!! info 241 | At the end of the flashing, you may need to unplug-plug your device or press RST. -------------------------------------------------------------------------------- /documentation/docs/radio-docs/flash-ti-flash-prog.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Smart RF Flash Programmer 2 3 | description: Flashing Zigbee Modules using Smart RF Flash Programmer 2 4 | hide: 5 | - tags 6 | tags: 7 | - flashing 8 | - bsl 9 | - erase 10 | --- 11 | 12 | # Flash Firmware using TI SmartRF Flash Programmer v2 13 | 14 | Go to [TI's Website](https://www.ti.com/tool/FLASH-PROGRAMMER)and download SmartRF Flash Programmer v2. 15 | 16 | Make sure you download and install FLASH-PROGRAMMER-2. 17 | 18 | ## Determine the USB port 19 | 20 | Plug your device in and ensure that device is recognised by your OS: 21 | 22 | On windows, use this in a Powershell or go to Device Manager 23 | 24 | $comports = Get-WMIObject Win32_SerialPort; $comports | Get-PnpDeviceProperty -InstanceId {$_.pnpdeviceid} -Keyname DEVPKEY_Device_BusReportedDeviceDesc | ForEach-Object { foreach($comport in $comports) { if ($comport.pnpdeviceid -eq $_.instanceid) { new-object psobject -property @{COMPORT = $comport.deviceid; 'Device-Name' = $_.data} } } } 25 | 26 | The drivers for CH340 should be automatically be picked up,check under "Ports (COM & LPT)" in Device Manager: 27 | 28 | ![BSL Button](../assets/images/radio-docs/ch340-port-windows.png){ loading=lazy } 29 | 30 | If you need to install the drivers manually, go [HERE](http://www.wch.cn/downloads/CH341SER_ZIP.html)for official drivers. 31 | 32 | !!! TIP 33 | Double-check by undocking the device again. 34 | 35 | ## Put your stick in BSL mode 36 | 37 | Please follow the following instructions to put your stick in BSL mode: 38 | 39 | - Unplug your stick from the host 40 | - Press the `BSL` pushbutton and keep holding while plugging the device back into the host: 41 | 42 | ![BSL Button](../assets/images/radio-docs/ch340c-bsl.png){: style="height:15%;width:15%" loading=lazy} ![BSL Button](../assets/images/radio-docs/ch340e-bsl.png){: style="height:15%;width:15%" loading=lazy} 43 | 44 | - Give it a few seconds for the device to settle and set up and release the BSL button 45 | - Your stick should now be in ROM bootloader mode 46 | 47 | It's very important that you press and hold the BSL button **before** plugging it in to the host and release it **after a few seconds**. If you don't follow this, your stick will not enter BSL mode and flashing will fail. 48 | 49 | 50 | ## Select correct device 51 | 52 | We need to tell SmartRF Flash Programmer v2 what target device we have on our stick. Select "CC2652P": 53 | 54 | ![Select correct chip](../assets/images/radio-docs/flash-prog-device.png){: style="height:15%;width:15%" loading=lazy} 55 | 56 | 57 | ## Select firmware file and flash device 58 | 59 | With the correct serial port chosen and target device selected, click "Browse" and select the firmware you want to flash (see [here](/radio-docs/quick-start/#step-2-download-the-correct-firmware-for-your-device) for help on choosing firmware). 60 | 61 | !!! warning 62 | It is crucial that you download the correct firmware for your stick as using the wrong firmware will disable the BSL and you will need an external debugger / programmer to flash your stick again.

63 | 64 | With the correct firmware chosen, make sure that "Erase", "Program" and "Verify" are all chosen under "Actions" and press the blue button to start flashing: 65 | 66 | ![Flash windows](../assets/images/radio-docs/flash-prog.png){: style="height:70%;width:70%" loading=lazy} 67 | 68 | If all goes to plan, after a few seconds you should see a green bar confirming that the flashing operating suceeded: 69 | 70 | ![Flash succesful](../assets/images/radio-docs/flash-prog-ok.png){: style="height:70%;width:70%" loading=lazy} 71 | 72 | You can now proceed to configuring your software of choice see [HERE](/radio-docs/z2m-zha/). 73 | 74 | If your stick is not in BSL mode or you have not chosen the correct serial port, you will get the following error message: 75 | 76 | ![Flash failed](../assets/images/radio-docs/flash-prog-fail.png){: style="height:70%;width:70%" loading=lazy} 77 | 78 | Unplug your stick and try again according the instructions. -------------------------------------------------------------------------------- /documentation/docs/radio-docs/flash-zigstargw.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Flash ZigStar LAN Gateway 3 | description: Flashing Procedure for ZigStar LAN/POE Gateway 4 | hide: 5 | - tags 6 | tags: 7 | - esp32 8 | - firmware 9 | - WT32-ETH01 10 | - TTGO 11 | - LAN 12 | - gateway 13 | --- 14 | 15 | # Flash ZigStar LAN Gateway Firmware 16 | 17 | ## Requirements 18 | 19 | - [NodeMCU PyFlasher](https://github.com/marcelstoer/nodemcu-pyflasher/releases/latest/download/NodeMCU-PyFlasher.exe) 20 | - [ZigStarGW-FW](https://github.com/xyzroe/ZigStarGW-FW/releases/latest/)[^1] 21 | - USB-C Type Cable 22 | 23 | ## Flash firmware 24 | 25 | ### Step 1: Activate Flash Mode 26 | 27 | To enable flash mode on ESP32, BOOT button/switch should be pressed before you plug in your USB cable.
28 | Press and HOLD for 5 seconds after you plugged in your USB cable to PC. 29 | 30 | *Be sure DIP switch is in ESP Mode( or jumpers are not soldered) 31 | 32 | ![Press&Hold-BOOT](../assets/images/radio-docs/flash-esp32/Press&Hold-BOOT.png){: style="height:50%;width:50%" loading=lazy} 33 | 34 | ### Step 2: Firmware flashing 35 | 36 | Start the previously loaded NodeMCU pyFlasher Tool, and select the identified serial port from the list, as well as the downloaded firmware file. 37 | 38 |
39 |
40 |
41 | ”NodeMCU-Step1” 42 |
43 |
44 | ”NodeMCU-Step2” 45 |
46 |
47 | ”NodeMCU-Step3” 48 |
49 |
50 |
51 |
52 |
53 |
54 | 55 | ???+ done 56 | 57 | At this point you are up and running.
58 | Access your device by IP or hostname using your browser. 59 | 60 | ???+ note 61 | 62 | Flashing is required only once if you assembly device yourself or move from ESP-HOME. 63 | Use [ZigStarGW_vx.x.x.full.bin](https://github.com/xyzroe/ZigStarGW-FW/releases/latest/)for [NodeMCU PyFlasher](https://github.com/marcelstoer/nodemcu-pyflasher/releases/latest/download/NodeMCU-PyFlasher.exe) 64 | 65 | ### Step 3: ZigBee Firmware Update ( Optional ) 66 | 67 | In case you want to update/install your Zigbee Firmware, follow [ZigStar MultiTool Instructions](/radio-docs/zigstar-multi-tool/) 68 | 69 | 70 | [^1]: Download [ZigStarGW_vx.x.x.full.bin](https://github.com/xyzroe/ZigStarGW-FW/releases/latest/)if you are using [NodeMCU PyFlasher](https://github.com/marcelstoer/nodemcu-pyflasher/releases/latest/download/NodeMCU-PyFlasher.exe) 71 | [^2]: Will be downloaded .bin , is specially for OTA update. 72 | 73 | ## Update your firmware 74 | 75 | To update your existing firmware[^2] just go to your browser and access your device by IP or hostname. 76 | 77 | 78 |
79 |
80 |
81 | ”Acces 82 |
83 |
84 | ”Download 85 |
86 |
87 | ”Update 88 |
89 |
90 |
91 |
92 |
93 |
94 | 95 | ???+ done 96 | 97 | Congratulations, you are on last firmware.[^2] 98 | 99 | 100 | -------------------------------------------------------------------------------- /documentation/docs/radio-docs/quick-start.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Quick Start 3 | description: Quick Start for ZigStar Projects 4 | hide: 5 | - tags 6 | tags: 7 | - Quickstart 8 | - ZHA 9 | - Zigbee2MQTT 10 | - Z2M 11 | - Home Assistant 12 | - HA 13 | --- 14 | 15 | # Quick Start for ZigStar Projects 16 | 17 | This page provides a overview of what you'll need to do to set up your USB/LAN Coordinator to be used with the great collection of open-source home automation software, [Z2M(Zigbee2MQTT)](https://www.zigbee2mqtt.io/)or [ZHA](https://www.home-assistant.io/integrations/zha/) 18 | 19 | ## 1.Plug your device in 20 | 21 | First step in getting your coordinator working is to ensure that your computer, server or Raspberry Pi recognises the device plugged in (specifically, the "USB to Serial Converter" chip) and installs the drivers needed. 22 | 23 | For network devices that they are reachable by network, using IP address or hostname. 24 | 25 | Each coordinator is compatible by default with [Z2M(Zigbee2MQTT)](https://www.zigbee2mqtt.io/)and [ZHA](https://www.home-assistant.io/integrations/zha/) 26 | 27 | ## 2.Download firmware 28 | 29 | If you are using correct firmware,you dont need an external debugger/programmer as the chips used have a built-in bootloader (BSL)! 30 | 31 | There are two ways you can use your device, either as a **coordinator** or a **router**. 32 | 33 | === "**Coordinator**" 34 | This is the firmware you need if you're going to be using your coordinator with [Z2M(Zigbee2MQTT)](https://www.zigbee2mqtt.io/), [ZHA(Home Assistant)](https://www.home-assistant.io/integrations/zha/)or any other ZNP-firmware-compliant software. 35 | 36 | | RF-STAR RF-BM-2652P2 | Ebyte E72-2G4M20S1E 37 | |----------------------|--------------------| 38 | | [CC1352P2_CC2652P_launchpad_*.zip](https://github.com/Koenkk/Z-Stack-firmware/tree/master/coordinator/Z-Stack_3.x.0/bin)| [CC1352P2_CC2652P_other_*.zip](https://github.com/Koenkk/Z-Stack-firmware/tree/master/coordinator/Z-Stack_3.x.0/bin)| 39 | 40 | !!! info 41 | CC1352P2_CC2652P_launchpad_*.zip - RF-BM-2652P1/P2 modules
42 | CC1352P2_CC2652P_other_*.zip - E72-2G4M20S1E module 43 | 44 | === "**Router**" 45 | If you're looking to extend the range of your network, flash your coordinator with the router firmware and plug it into a power source somewhere central in your home for stand-alone operation. Refer to the [README](https://github.com/Koenkk/Z-Stack-firmware/blob/master/router/Z-Stack_3.x.0/bin/README.md)for setup instructions. 46 | 47 | | RF-STAR RF-BM-2652P2 | Ebyte E72-2G4M20S1E 48 | |----------------------|--------------------| 49 | | [CC1352P2_CC2652P_launchpad_router_*.zip](https://github.com/Koenkk/Z-Stack-firmware/tree/master/coordinator/Z-Stack_3.x.0/bin)| [CC1352P2_CC2652P_other_router_*.zip](https://github.com/Koenkk/Z-Stack-firmware/tree/master/coordinator/Z-Stack_3.x.0/bin)| 50 | 51 | !!! info 52 | CC1352P2_CC2652P_launchpad_router_*.zip - RF-BM-2652P1/P2 modules
53 | CC1352P2_CC2652P_other_router*.zip - E72-2G4M20S1E module 54 | 55 | !!! danger 56 | It is crucial that you download the correct firmware for your coordinator as using the wrong firmware will disable the BSL and you will need an external debugger / programmer to flash your coordinator again.

57 | 58 | ## 3.Flash the firmware 59 | 60 | With the firmware of your choice downloaded and unziped, you should end up with a single .hex file that will need to be flashed to your coordinator. Three options for that: 61 | 62 | - The beginner friendly option: [ZigStar Multi Tool](/radio-docs/zigstar-multi-tool/#zigstar-multi-tool) 63 | - Windows-only option: [Flash firmware using TI's Flash Programmer 2](/radio-docs/flash-ti-flash-prog/) 64 | - Cross-platform option using Python: [Flash firmware using cc2538-bsl](/radio-docs/flash-cc-bsl/) 65 | 66 | ## 4.Setup Zigbee2MQTT or ZHA 67 | 68 | Configure your choice of software so that it can talk to your coordinator. 69 | For instruction go [HERE](/radio-docs/z2m-zha/) 70 | 71 | ## 5.Have fun! 72 | 73 | With your coordinator flashed and the software of your choice configured, you can start to pair your devices and start exploring the world of open-source Home Automation!
74 | A significant amount of effort goes to developing, maintaining and supporting the open source home automation ecosystem so if you can, please consider donating to the great software projects that are mentioned in these pages.
75 | 76 | A portion of each sale of ZigStar radio boards will be donated to [@Koenkk](https://github.com/Koenkk/) to support his work on [Zigbee2mqtt](https://github.com/Koenkk/zigbee2mqtt). 77 | -------------------------------------------------------------------------------- /documentation/docs/radio-docs/z2m-zha.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Configuration Z2M/ZHA 3 | description: Zigbee2MQTT and ZHA Setup Documentation ZigStar 4 | hide: 5 | - tags 6 | tags: 7 | - Z2M 8 | - ZHA 9 | - Zigbee2MQTT 10 | - Home Assistant 11 | --- 12 | 13 | # Choose your side 14 | 15 | [Zigbee2MQTT](https://www.zigbee2mqtt.io/) has support for TI CC2652P/CC2652RB chips used on this boards.
16 | ZHA Supports both TI and SiLabs chips. 17 | 18 | ## First Steps 19 | 20 | Choose your device instructions: 21 | 22 | === "USB Stick v4" 23 | 24 | 1. Power on your USB Stick 25 | 2. Make sure that the USB-serial bridge drivers are installed and your device is recognised (instructions [here](/radio-docs/flash-cc-bsl/#determine-the-usb-port-ip-address)). 26 | 3. Configure your software to access the device. 27 | 28 | === "Zigbee2MQTT" 29 | 30 | Currently only TI Chips are supported by Z2M( CC2652P/CC2652RB ). 31 | 32 | With the correct serial port identified, edit your Zigbee2MQTT `configuration.yaml` : 33 | ``` 34 | serial: 35 | port: /dev/ttyUSB0 (change this if it is different on your machine) 36 | ``` 37 | 38 | === "ZHA" 39 | 3.1. Add the ZHA Integration via the Add Integrations option: 40 | 41 | ![ZHA-0](../assets/images/radio-docs/zha-setup/zha-0.png){: style="height:50%;width:50%" loading=lazy} 42 | 43 | 3.2. From dropdown menu select your stick: 44 | 45 | ![ZHA-1](../assets/images/radio-docs/zha-setup/zha-1.1.png){: style="height:50%;width:50%" loading=lazy} 46 | 47 | 3.3. Choose the device path of USB Stick and wait for installation to complete. 48 | 49 | - In case the autodetection fails,a manual setup menu will be displayed. 50 | 51 | !!! info 52 | Enter device path and Port Speed:115200 and Software Flow Control leave empty. 53 | 54 | ![ZHA-3](../assets/images/radio-docs/zha-setup/zha-3.1.png){: style="height:50%;width:50%" loading=lazy} 55 | 56 | !!! info 57 | If ZHA is unable to connect to the USB adapter then try re-plugging in the USB adapter or try moving it to another USB-port. 58 | 59 | === "LAN/PoE Gateway" 60 | 61 | 1. Connect the gateway to a ethernet cable which has access to your local network. 62 | 2. Power on the gateway with a Type C cable. 63 | 3. Determine the device's ip address,if your local network supports .local mdns addresses, the devices can be reached that way: 64 | ``` 65 | zigstargw.local 66 | ``` 67 | or by static ip. 68 | 69 | !!! info 70 | If its used Static IP Address - be sure it is reserved in your router,so will not change after reboot. 71 | 72 | 4. Configure your software to access the device.
73 | 74 | === "Zigbee2MQTT" 75 | 76 | Currently only TI Chips are supported by Z2M( CC2652P/CC2652RB ). 77 | 78 | With the correct IP or hostname identified, edit your Zigbee2MQTT `configuration.yaml`: 79 | ``` 80 | serial: 81 | port: 'tcp://ip_or_hostname:6638' 82 | ``` 83 | 84 | 85 | === "ZHA" 86 | 4.1. Add the ZHA Integration via the Add Integrations option: 87 | 88 | ![ZHA-0](../assets/images/radio-docs/zha-setup/zha-0.png){: style="height:50%;width:50%" loading=lazy} 89 | 90 | 4.2. From dropdown menu select Manual: 91 | 92 | ![ZHA-1](../assets/images/radio-docs/zha-setup/zha-1.png){: style="height:50%;width:50%" loading=lazy} 93 | 94 | 4.3. Select the Radio type for your chip: 95 | 96 | ![ZHA-2](../assets/images/radio-docs/zha-setup/zha-2.png){: style="height:50%;width:50%" loading=lazy} 97 | 98 | !!! info 99 | For TI based gateways select ZNP
100 | For SiLabs based gateways select EZSP 101 | 102 | 4.4. Enter socket://ip_or_hostname:6638 and Port Speed:115200 and Software Flow Control leave empty. 103 | 104 | ![ZHA-3](../assets/images/radio-docs/zha-setup/zha-3.png){: style="height:50%;width:50%" loading=lazy} 105 | 106 | ## Troubleshooting 107 | 108 | ### Zigbee2MQTT: Error Network Commissioning Timeout (panID or extendedPanID already exists nearby) 109 | This error is discussed in these two threads: [first](https://github.com/Koenkk/zigbee2mqtt/issues/10858) and [second](https://github.com/tube0013/tube_gateways/issues/95). 110 | According to the first thread, the most possible issue cause this error is: `zigbee2mqtt will always use the same, default extendedPanId unless you set it to something else in the config file` 111 | ```yaml 112 | advanced: 113 | pan_id: GENERATE 114 | ext_pan_id: [0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08] 115 | network_key: GENERATE 116 | ``` 117 | According to the second thread, the users propose to start without antennas or routers nearby: `Try unscrewing the antenna during startup or unplug any near by routers temporarily.` 118 | 119 | Try to do abovementioned as well as start ZHA just to test your device: 120 | 121 | 1. Go to Home Assistant 122 | 2. Click `Settings` 123 | 3. Go to `Devices & Services` 124 | 4. Click `Add integration` (right bottom corner) 125 | 5. Find «Zigbee Home Automation», click on it; 126 | 6. Between two options «Add Zigbee device» and «Zigbee Home Automation» choose `Zigbee Home Automation`; 127 | 7. Select serial port window - `Enter manually` 128 | 8. Radio type window - `ZNP = Texas Instruments Z-Stack ZNP … ` 129 | 9. Serial port settings window: 130 | - Serial device path: « socket://192.168.1.105:6638 », where 192.168.1.105 is IP address of your ZigStar Adapter; 131 | - port speed left by default 115200; 132 | - data flow control undefined (it does not matter for LAN adapters) 133 | 10. Press `Submit`. 134 | 11. Network formation window - `Erase network settings and form a new network` 135 | 12. Wait for Zigbee network and try to add some Zigbee end-device (e.g. sensor etc) 136 | 137 | If ZHA starts - means that the problem in communication between Zigbee2MQTT and Z-Stack firmware, flashed to the adapter. To solve it - try steps above ZHA part. 138 | 139 | 140 | -------------------------------------------------------------------------------- /documentation/docs/radio-docs/zigstar-multi-tool.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: ZigStar Multi Tool 3 | description: Instructions for ZigStar Multi Tool 4 | hide: 5 | - tags 6 | tags: 7 | - cc2538-bsl 8 | - flashing 9 | - bsl 10 | - erase 11 | - nvram 12 | - multi tool 13 | --- 14 | 15 | # ZigStar Multi Tool 16 | 17 | [ZigStar Multi Tool](https://github.com/xyzroe/ZigStarGW-MT)is GUI tool designed for easy work with ZigStar LAN GW and USB Stick and packed into single executable file.
18 | You can get started without installing Python and the required modules - just download and open. 19 | 20 | *All ZigStar boards( LAN or USB) are supported by Multi Tool.(now also supports sticks, regardless of the manufacturer) 21 | 22 | [Download](https://github.com/xyzroe/ZigStarGW-MT/releases/){ .md-button , target=_blank} 23 | 24 | ## Features 25 | - Read / Write / Erase NVRAM memory of Zigbee module 26 | - Write / Verify / Erase firmware of Zigbee module 27 | - Backdoor Serial Loader turns on automatically 28 | - Manual restart of Zigbee module or ESP32 is available 29 | - Comaptible with OS X, Windows and Ubuntu 30 | 31 | ## Screenshots 32 | 33 | 34 | 35 | 40 | 45 | 46 |
36 | 37 | Windows 38 | 39 | 41 | 42 | OS X 43 | 44 |
47 | 48 | ## Instructions: 49 | 50 | ### Identify Port 51 | 52 | On main ap window press refresh button in order to identify your USB Stick port or LAN GW address.
53 | and choose your device from drop-down list: 54 | 55 | ![ZigStar GW Multi Tool](../assets/images/radio-docs/multitool/multitool-1.png){: style="height:50%;width:50%" loading=lazy} 56 | 57 | ### Firmware update 58 | 59 | 1. Choose your .hex file from you PC 60 | 2. Choose required options,usually is Erase,Write and Verify 61 | 3. Press Start for flashing process(not all USB dongle entering BSL mode,depending on manufacturer)* 62 | 63 | ![Multi Tool FLASH](../assets/images/radio-docs/multitool/multitool-2.png){: style="height:50%;width:50%" loading=lazy} 64 | 65 | *All ZigStar Sticks and LAN GW are automaticaly entering BSL mode 66 | 67 | ### NVRAM Tools 68 | 69 | When is coming to firmware bugs,problems with zigbee network NVRAM tool come at help. 70 | 71 | 1. Backup your ZigBee NVRAM for future use or restore to another Dongle/LAN Coordinator 72 | 2. Write you existing backup back to Dongle/LAN Coordinator 73 | 3. Erase you Dongle/LAN Coordinator NVRAM for a fresh install 74 | 75 | ![Multi Tool NVRAM](../assets/images/radio-docs/multitool/multitool-3.png){: style="height:50%;width:50%" loading=lazy} 76 | 77 | ## Video description 78 | 79 | *English subtitles available 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /documentation/init_setup.sh: -------------------------------------------------------------------------------- 1 | python3 -m venv venv 2 | ## Linux Python Enviroment 3 | . venv/bin/activate ##Linux 4 | ## Windows Python Enviroment 5 | # . venv/Scripts/activate 6 | pip install -r requirements.txt 7 | -------------------------------------------------------------------------------- /documentation/mkdocs.yml: -------------------------------------------------------------------------------- 1 | site_name: ZigStar 2 | site_author: ZigStar 3 | site_url: https://zig-star.com/ 4 | site_description: ZigStar DIY Projects 5 | repo_url: https://github.com/mercenaruss/zigstar_gateways 6 | repo_name: zigstar_gateways 7 | edit_uri: edit/main/documentation/docs/ 8 | copyright: Copyright © 2019-2023 ZigStar 9 | theme: 10 | name: material 11 | custom_dir: overrides 12 | static_templates: 13 | - 404.html 14 | language: en 15 | features: 16 | - navigation.tracking 17 | - navigation.tabs 18 | - navigation.sections 19 | - navigation.expand 20 | - navigation.path 21 | - navigation.prune 22 | - navigation.indexes 23 | - navigation.path 24 | - toc.integrate 25 | - navigation.top 26 | - search.suggest 27 | - search.highlight 28 | - search.share 29 | - header.autohide 30 | - announce.dismiss 31 | - content.tabs.link 32 | - content.code.select 33 | - content.code.copy 34 | - content.tooltips 35 | - content.action.edit 36 | - content.action.view 37 | palette: 38 | primary: cyan 39 | accent: cyan 40 | font: 41 | text: Roboto 42 | code: Roboto Mono 43 | favicon: ../assets/images/zigstar-black.png 44 | logo: ../assets/images/zigstar-white.png 45 | icon: 46 | logo: logo 47 | 48 | # Extensions 49 | markdown_extensions: 50 | - abbr 51 | - admonition 52 | - attr_list 53 | - def_list 54 | - footnotes 55 | - md_in_html 56 | - toc: 57 | permalink: true 58 | - tables 59 | - pymdownx.highlight: 60 | anchor_linenums: true 61 | use_pygments: true 62 | pygments_lang_class: true 63 | anchor_linenums: true 64 | line_spans: __span 65 | - pymdownx.inlinehilite 66 | - pymdownx.snippets 67 | - pymdownx.superfences 68 | - pymdownx.arithmatex: 69 | generic: true 70 | - pymdownx.betterem: 71 | smart_enable: all 72 | - pymdownx.caret 73 | - pymdownx.mark 74 | - pymdownx.tilde 75 | - pymdownx.critic 76 | - pymdownx.details 77 | - pymdownx.emoji: 78 | emoji_index: !!python/name:materialx.emoji.twemoji 79 | emoji_generator: !!python/name:materialx.emoji.to_svg 80 | - pymdownx.keys 81 | - pymdownx.magiclink: 82 | repo_url_shorthand: true 83 | user: mercenaruss 84 | repo: zigstar_test 85 | - pymdownx.smartsymbols 86 | - pymdownx.tabbed: 87 | alternate_style: true 88 | - pymdownx.tasklist: 89 | custom_checkbox: true 90 | clickable_checkbox: true 91 | 92 | # Plugins 93 | plugins: 94 | - search: 95 | separator: '[\s\u200b\-,:!=\[\]()"`/]+|\.(?!\d)|&[lg]t;|(?!\b)(?=[A-Z][a-z])' 96 | 97 | extra: 98 | social: 99 | - icon: fontawesome/brands/github 100 | link: https://github.com/mercenaruss 101 | - icon: fontawesome/solid/paper-plane 102 | link: https://t.me/zig_starting 103 | 104 | extra_javascript: 105 | - https://cdn.jsdelivr.net/npm/swiper@9/swiper-bundle.min.js 106 | - https://cdnjs.cloudflare.com/ajax/libs/tablesort/5.2.1/tablesort.min.js 107 | - assets/javascripts/tables.js 108 | - assets/javascripts/swiper.js 109 | 110 | extra_css: 111 | - https://cdn.jsdelivr.net/npm/swiper@9/swiper-bundle.min.css 112 | - assets/stylesheets/zigstar.css 113 | - assets/stylesheets/404.css 114 | 115 | # Page tree 116 | nav: 117 | - Home: index.md 118 | - Projects: 119 | - LAN Gateway: projects/zigbee-gw-lan.md 120 | - Olizig POE: projects/zigstar-olizig.md 121 | - Stick v4: projects/zigbee-stick-v4.md 122 | - ZigiHAT POE: projects/zigbee-zigihat.md 123 | - RPI Shield: projects/zigbee-shield.md 124 | - LilyZig POE: projects/zigstar-lilyzig.md 125 | - Instructions: 126 | - Quick Start: radio-docs/quick-start.md 127 | - Flash ZigBee: 128 | - ZigStar Multi Tool: radio-docs/zigstar-multi-tool.md 129 | - Flashing with cc2538-bsl: radio-docs/flash-cc-bsl.md 130 | - Flashing with Smart RF: radio-docs/flash-ti-flash-prog.md 131 | - Flash ESP-32: 132 | - LAN GW Flashing: radio-docs/flash-zigstargw.md 133 | - ESPHOME Firmware: radio-docs/esp-home.md 134 | - Config Z2M/ZHA: radio-docs/z2m-zha.md 135 | -------------------------------------------------------------------------------- /documentation/overrides/404.html: -------------------------------------------------------------------------------- 1 | {% extends "main.html" %} 2 | {% block content %} 3 |
4 | 10 | 12 | 13 | 15 | 21 | 28 | 29 | 32 | 36 | 37 | 38 | 41 | 44 | 49 | 51 | 58 | 62 | 66 | 74 | 78 | 82 | 86 | 90 | 94 | 98 | 102 | 106 | 110 | 114 | 118 | 122 | 129 | 136 | 144 | 149 | 154 | 159 | 164 | 169 | 173 | 177 | 181 | 182 | 183 | 184 | 186 | 191 | 195 | 196 | 201 | 205 | 206 | 207 | 208 | 209 |

O-o-oh! Something broke.

210 | Go Back 211 |
212 | 213 | 214 | {% endblock %} 215 | {% block disqus %}{% endblock %} 216 | -------------------------------------------------------------------------------- /documentation/overrides/home.html: -------------------------------------------------------------------------------- 1 | {#- 2 | This file was automatically generated - do not edit 3 | -#} 4 | {% extends "main.html" %} 5 | {% block tabs %} 6 | {{ super() }} 7 | 8 |
9 |
10 |
11 |
12 | 13 |
14 |
15 |

ZigBee Coordinators

16 |

{{ config.site_description }}. Do it yourself!

17 | 18 | Quick start 19 | 20 | 21 | Go to GitHub 22 | 23 |
24 |
25 |
26 |
27 | {% endblock %} 28 | {% block content %}{% endblock %} 29 | {% block footer %}{% endblock %} 30 | -------------------------------------------------------------------------------- /documentation/requirements.txt: -------------------------------------------------------------------------------- 1 | mkdocs-material -------------------------------------------------------------------------------- /files/BOM/BOM_Olimex_RF-BM-2652P2.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/files/BOM/BOM_Olimex_RF-BM-2652P2.xlsx -------------------------------------------------------------------------------- /files/BOM/BOM_TTGO_RF-BM-2652P2.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/files/BOM/BOM_TTGO_RF-BM-2652P2.csv -------------------------------------------------------------------------------- /files/BOM/BOM_WT32_RF-BM-2652P2.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/files/BOM/BOM_WT32_RF-BM-2652P2.csv -------------------------------------------------------------------------------- /files/ESP-HOME/zigstar-gw-lan.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/files/ESP-HOME/zigstar-gw-lan.bin -------------------------------------------------------------------------------- /files/ESP-HOME/zigstar-gw-lan.yaml: -------------------------------------------------------------------------------- 1 | substitutions: 2 | #Name your Gateway 3 | device_name: zigstar-gw-lan 4 | #Home Assistant Name 5 | friendly_name: ZS Gateway 6 | #Secret YAML is used for next data: 7 | api_pw: !secret api_password 8 | ota_pw: !secret ota_password 9 | 10 | esphome: 11 | name: ${device_name} 12 | platform: ESP32 13 | board: esp-wrover-kit 14 | 15 | ethernet: 16 | type: LAN8720 17 | mdc_pin: GPIO23 18 | mdio_pin: GPIO18 19 | clk_mode: GPIO0_IN 20 | phy_addr: 1 21 | power_pin: GPIO16 22 | 23 | # Enable logging 24 | logger: 25 | level: DEBUG 26 | 27 | # Enable Home Assistant API 28 | api: 29 | password: ${api_pw} 30 | reboot_timeout: 0s 31 | 32 | # Enable OTA 33 | ota: 34 | password: ${ota_pw} 35 | 36 | #Enable WEB 37 | web_server: 38 | port: 80 39 | 40 | # Enable HA Time 41 | time: 42 | - platform: homeassistant 43 | id: homeassistant_time 44 | 45 | #External component Stream Server 46 | external_components: 47 | - source: github://oxan/esphome-stream-server 48 | 49 | # Extra sensor to keep track of gateway uptime 50 | text_sensor: 51 | - platform: template 52 | name: "${friendly_name} Uptime" 53 | lambda: |- 54 | uint32_t dur = id(uptime_s).state; 55 | int dys = 0; 56 | int hrs = 0; 57 | int mnts = 0; 58 | if (dur > 86399) { 59 | dys = trunc(dur / 86400); 60 | dur = dur - (dys * 86400); 61 | } 62 | if (dur > 3599) { 63 | hrs = trunc(dur / 3600); 64 | dur = dur - (hrs * 3600); 65 | } 66 | if (dur > 59) { 67 | mnts = trunc(dur / 60); 68 | dur = dur - (mnts * 60); 69 | } 70 | char buffer[17]; 71 | sprintf(buffer, "%ud %02uh %02um %02us", dys, hrs, mnts, dur); 72 | return {buffer}; 73 | icon: mdi:clock-start 74 | update_interval: 60s 75 | 76 | #Uptime 77 | sensor: 78 | - platform: uptime 79 | id: uptime_s 80 | update_interval: 60s 81 | 82 | # Device functions: 83 | switch: 84 | - platform: restart 85 | name: "Gateway Restart" 86 | 87 | - platform: gpio 88 | pin: 33 89 | id: zRST_gpio 90 | inverted: yes 91 | restore_mode: ALWAYS_OFF 92 | - platform: template 93 | name: "Zigbee RST" 94 | icon: mdi:toggle-switch 95 | id: zRST 96 | turn_on_action: 97 | - switch.turn_on: zRST_gpio 98 | - delay: 15ms 99 | - switch.turn_off: zRST_gpio 100 | 101 | - platform: gpio 102 | pin: 32 103 | name: "Zigbee BSL" 104 | icon: mdi:toggle-switch 105 | id: zBSL 106 | inverted: yes 107 | restore_mode: ALWAYS_OFF 108 | internal: true 109 | 110 | - platform: template 111 | name: "Firmware Update" 112 | icon: mdi:cellphone-arrow-down 113 | turn_on_action: 114 | - script.execute: fw_update_mode 115 | turn_off_action: 116 | - switch.toggle: zRST 117 | 118 | #Update CC2652P/CC2652RB Firmware 119 | script: 120 | - id: fw_update_mode 121 | then: 122 | - switch.turn_on: zBSL 123 | - delay: 1s 124 | - switch.turn_on: zRST_gpio 125 | - delay: 1s 126 | - switch.turn_off: zRST_gpio 127 | - logger.log: "Delaying ~10 seconds for TI chip to be ready" 128 | - delay: 10s 129 | - switch.turn_off: zBSL 130 | - logger.log: "Update with cc2538-bsl tool now!" 131 | - logger.log: "Usage: cc2538-bsl.py -p socket://ip_or_hostname:6638 -evw firmware.hex" 132 | 133 | #UART Settings 134 | uart: 135 | id: uart_bus 136 | rx_pin: GPIO5 137 | tx_pin: GPIO17 138 | baud_rate: 115200 139 | 140 | #Serial Bridge Settings,uncomment #port to change default 6638 TCP port 141 | stream_server: 142 | uart_id: uart_bus 143 | # port: 1234 -------------------------------------------------------------------------------- /files/ESP-HOME/zigstar-gw-lan/langw-btproxy-factory.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/files/ESP-HOME/zigstar-gw-lan/langw-btproxy-factory.bin -------------------------------------------------------------------------------- /files/ESP-HOME/zigstar-gw-lan/langw-btproxy.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ZS Gateway - BTProxy", 3 | "funding_url": "https://zig-star.com/about/", 4 | "new_install_prompt_erase": true, 5 | "new_install_improv_wait_time": 0, 6 | "builds": [ 7 | { 8 | "chipFamily": "ESP32", 9 | "parts": [ 10 | { "path": "langw-btproxy-factory.bin", "offset": 0 } 11 | ] 12 | } 13 | ] 14 | } -------------------------------------------------------------------------------- /files/ESP-HOME/zigstar-gw-lan/langw-btproxy.yaml: -------------------------------------------------------------------------------- 1 | substitutions: 2 | #Name your Gateway 3 | device_name: langw-btproxy 4 | #Home Assistant Name 5 | friendly_name: ZS Gateway - BTProxy 6 | #Secret YAML is used for next data: 7 | #pi_pw: !secret api_password 8 | #ota_pw: !secret ota_password 9 | 10 | esphome: 11 | name: "${device_name}" 12 | name_add_mac_suffix: true 13 | project: 14 | name: langw.btproxy 15 | version: "1.0" 16 | 17 | esp32: 18 | board: esp32dev 19 | framework: 20 | type: arduino 21 | 22 | #Ethernet connection information 23 | ethernet: 24 | type: LAN8720 25 | mdc_pin: GPIO23 26 | mdio_pin: GPIO18 27 | clk_mode: GPIO0_IN 28 | phy_addr: 1 29 | power_pin: GPIO16 30 | 31 | ## General ESPHome settings 32 | # Home Assistant API is enabled 33 | api: 34 | #password: ${api_pw} 35 | reboot_timeout: 0s 36 | # Logger is enabled 37 | logger: 38 | level: DEBUG 39 | # Enable OTA 40 | ota: 41 | #password: ${ota_pw} 42 | # Enable WEB 43 | web_server: 44 | port: 80 45 | # Enable HA Time 46 | time: 47 | - platform: homeassistant 48 | id: homeassistant_time 49 | 50 | #ESPHome Bluetooth_proxy settings 51 | dashboard_import: 52 | package_import_url: github://mercenaruss/zigstar_gateways//files/ESP-HOME/zigstar-gw-lan/langw-btproxy.yaml@main 53 | 54 | esp32_ble_tracker: 55 | scan_parameters: 56 | interval: 1100ms 57 | window: 1100ms 58 | active: true 59 | 60 | bluetooth_proxy: 61 | active: true 62 | 63 | ## Safe Mode 64 | button: 65 | - platform: safe_mode 66 | name: Safe Mode Boot 67 | entity_category: diagnostic 68 | 69 | ## ESP32 Restart 70 | switch: 71 | - platform: restart 72 | name: "${friendly_name} Restart" 73 | 74 | # Extra sensor to keep track of gateway uptime 75 | text_sensor: 76 | - platform: template 77 | name: "${friendly_name} Uptime" 78 | lambda: |- 79 | uint32_t dur = id(uptime_s).state; 80 | int dys = 0; 81 | int hrs = 0; 82 | int mnts = 0; 83 | if (dur > 86399) { 84 | dys = trunc(dur / 86400); 85 | dur = dur - (dys * 86400); 86 | } 87 | if (dur > 3599) { 88 | hrs = trunc(dur / 3600); 89 | dur = dur - (hrs * 3600); 90 | } 91 | if (dur > 59) { 92 | mnts = trunc(dur / 60); 93 | dur = dur - (mnts * 60); 94 | } 95 | char buffer[17]; 96 | sprintf(buffer, "%ud %02uh %02um %02us", dys, hrs, mnts, dur); 97 | return {buffer}; 98 | icon: mdi:clock-start 99 | update_interval: 60s 100 | 101 | #Uptime 102 | sensor: 103 | - platform: uptime 104 | id: uptime_s 105 | update_interval: 60s 106 | -------------------------------------------------------------------------------- /files/ESP-HOME/zigstar-gw-lan/langw-mixed-factory.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/files/ESP-HOME/zigstar-gw-lan/langw-mixed-factory.bin -------------------------------------------------------------------------------- /files/ESP-HOME/zigstar-gw-lan/langw-mixed.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ZS Gateway - Mixed", 3 | "funding_url": "https://zig-star.com/about/", 4 | "new_install_prompt_erase": true, 5 | "new_install_improv_wait_time": 0, 6 | "builds": [ 7 | { 8 | "chipFamily": "ESP32", 9 | "parts": [ 10 | { "path": "langw-mixed-factory.bin", "offset": 0 } 11 | ] 12 | } 13 | ] 14 | } -------------------------------------------------------------------------------- /files/ESP-HOME/zigstar-gw-lan/langw-mixed.yaml: -------------------------------------------------------------------------------- 1 | substitutions: 2 | #Name your Gateway 3 | device_name: langw-mixed 4 | #Home Assistant Name 5 | friendly_name: ZS Gateway - Zigbee & BTProxy 6 | #Secret YAML is used for next data: 7 | #pi_pw: !secret api_password 8 | #ota_pw: !secret ota_password 9 | 10 | esphome: 11 | name: "${device_name}" 12 | name_add_mac_suffix: true 13 | project: 14 | name: langw.mixed 15 | version: "1.0" 16 | 17 | esp32: 18 | board: esp32dev 19 | framework: 20 | type: arduino 21 | 22 | #Ethernet connection information 23 | ethernet: 24 | type: LAN8720 25 | mdc_pin: GPIO23 26 | mdio_pin: GPIO18 27 | clk_mode: GPIO0_IN 28 | phy_addr: 1 29 | power_pin: GPIO16 30 | 31 | ## General ESPHome settings 32 | # Home Assistant API is enabled 33 | api: 34 | #password: ${api_pw} 35 | reboot_timeout: 0s 36 | # Logger is enabled 37 | logger: 38 | level: DEBUG 39 | # Enable OTA 40 | ota: 41 | #password: ${ota_pw} 42 | # Enable WEB 43 | web_server: 44 | port: 80 45 | 46 | #ESPHome Bluetooth_proxy settings 47 | dashboard_import: 48 | package_import_url: github://mercenaruss/zigstar_gateways//files/ESP-HOME/zigstar-gw-lan/langw-mixed.yaml@main 49 | 50 | esp32_ble_tracker: 51 | scan_parameters: 52 | interval: 1100ms 53 | window: 1100ms 54 | active: true 55 | 56 | bluetooth_proxy: 57 | active: true 58 | 59 | #External component Stream Server 60 | external_components: 61 | - source: github://mercenaruss/esphome-stream-server 62 | 63 | ## Safe Mode 64 | button: 65 | - platform: safe_mode 66 | name: Safe Mode Boot 67 | entity_category: diagnostic 68 | 69 | # Enable HA Time 70 | time: 71 | - platform: homeassistant 72 | id: homeassistant_time 73 | 74 | # Extra sensor to keep track of gateway uptime 75 | text_sensor: 76 | - platform: template 77 | name: "${friendly_name} Uptime" 78 | lambda: |- 79 | uint32_t dur = id(uptime_s).state; 80 | int dys = 0; 81 | int hrs = 0; 82 | int mnts = 0; 83 | if (dur > 86399) { 84 | dys = trunc(dur / 86400); 85 | dur = dur - (dys * 86400); 86 | } 87 | if (dur > 3599) { 88 | hrs = trunc(dur / 3600); 89 | dur = dur - (hrs * 3600); 90 | } 91 | if (dur > 59) { 92 | mnts = trunc(dur / 60); 93 | dur = dur - (mnts * 60); 94 | } 95 | char buffer[17]; 96 | sprintf(buffer, "%ud %02uh %02um %02us", dys, hrs, mnts, dur); 97 | return {buffer}; 98 | icon: mdi:clock-start 99 | update_interval: 60s 100 | 101 | #Uptime 102 | sensor: 103 | - platform: uptime 104 | id: uptime_s 105 | update_interval: 60s 106 | 107 | # Device functions: 108 | switch: 109 | - platform: restart 110 | name: "Gateway Restart" 111 | 112 | - platform: gpio 113 | pin: 33 114 | id: zRST_gpio 115 | inverted: yes 116 | restore_mode: ALWAYS_OFF 117 | - platform: template 118 | name: "Zigbee RST" 119 | icon: mdi:toggle-switch 120 | id: zRST 121 | turn_on_action: 122 | - switch.turn_on: zRST_gpio 123 | - delay: 15ms 124 | - switch.turn_off: zRST_gpio 125 | 126 | - platform: gpio 127 | pin: 32 128 | name: "Zigbee BSL" 129 | icon: mdi:toggle-switch 130 | id: zBSL 131 | inverted: yes 132 | restore_mode: ALWAYS_OFF 133 | internal: true 134 | 135 | - platform: template 136 | name: "Firmware Update" 137 | icon: mdi:cellphone-arrow-down 138 | turn_on_action: 139 | - script.execute: fw_update_mode 140 | turn_off_action: 141 | - switch.toggle: zRST 142 | 143 | #Update CC2652 Firmware 144 | script: 145 | - id: fw_update_mode 146 | then: 147 | - switch.turn_on: zBSL 148 | - delay: 1s 149 | - switch.turn_on: zRST_gpio 150 | - delay: 1s 151 | - switch.turn_off: zRST_gpio 152 | - logger.log: "Delaying ~5 seconds for TI chip to be ready" 153 | - delay: 5s 154 | - switch.turn_off: zBSL 155 | - logger.log: "Update with cc2538-bsl tool now!" 156 | - logger.log: "Usage: cc2538-bsl.py -p socket://ip_or_hostname:6638 -evw firmware.hex" 157 | 158 | #UART Settings 159 | uart: 160 | id: uart_bus 161 | rx_pin: GPIO5 162 | tx_pin: GPIO17 163 | baud_rate: 115200 164 | 165 | #Serial Bridge Settings,uncomment #port to change default 6638 TCP port 166 | stream_server: 167 | uart_id: uart_bus 168 | # port: 1234 -------------------------------------------------------------------------------- /files/ESP-HOME/zigstar-gw-lan/langw-zigbee-factory.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/files/ESP-HOME/zigstar-gw-lan/langw-zigbee-factory.bin -------------------------------------------------------------------------------- /files/ESP-HOME/zigstar-gw-lan/langw-zigbee.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ZS Gateway - Zigbee", 3 | "funding_url": "https://zig-star.com/about/", 4 | "new_install_prompt_erase": true, 5 | "new_install_improv_wait_time": 0, 6 | "builds": [ 7 | { 8 | "chipFamily": "ESP32", 9 | "parts": [ 10 | { "path": "langw-zigbee-factory.bin", "offset": 0 } 11 | ] 12 | } 13 | ] 14 | } -------------------------------------------------------------------------------- /files/ESP-HOME/zigstar-gw-lan/langw-zigbee.yaml: -------------------------------------------------------------------------------- 1 | substitutions: 2 | #Name your Gateway 3 | device_name: langw-zigbee 4 | #Home Assistant Name 5 | friendly_name: ZS Gateway - Zigbee 6 | #Secret YAML is used for next data: 7 | #pi_pw: !secret api_password 8 | #ota_pw: !secret ota_password 9 | 10 | esphome: 11 | name: "${device_name}" 12 | name_add_mac_suffix: true 13 | project: 14 | name: langw.zigbee 15 | version: "1.0" 16 | 17 | esp32: 18 | board: esp32dev 19 | framework: 20 | type: arduino 21 | 22 | #Ethernet connection information 23 | ethernet: 24 | type: LAN8720 25 | mdc_pin: GPIO23 26 | mdio_pin: GPIO18 27 | clk_mode: GPIO0_IN 28 | phy_addr: 1 29 | power_pin: GPIO16 30 | 31 | ## General ESPHome settings 32 | # Home Assistant API is enabled 33 | api: 34 | #password: ${api_pw} 35 | reboot_timeout: 0s 36 | # Logger is enabled 37 | logger: 38 | level: DEBUG 39 | # Enable OTA 40 | ota: 41 | #password: ${ota_pw} 42 | # Enable WEB 43 | web_server: 44 | port: 80 45 | # Enable HA Time 46 | time: 47 | - platform: homeassistant 48 | id: homeassistant_time 49 | 50 | #External component Stream Server 51 | external_components: 52 | - source: github://mercenaruss/esphome-stream-server 53 | 54 | # Extra sensor to keep track of gateway uptime 55 | text_sensor: 56 | - platform: template 57 | name: "${friendly_name} Uptime" 58 | lambda: |- 59 | uint32_t dur = id(uptime_s).state; 60 | int dys = 0; 61 | int hrs = 0; 62 | int mnts = 0; 63 | if (dur > 86399) { 64 | dys = trunc(dur / 86400); 65 | dur = dur - (dys * 86400); 66 | } 67 | if (dur > 3599) { 68 | hrs = trunc(dur / 3600); 69 | dur = dur - (hrs * 3600); 70 | } 71 | if (dur > 59) { 72 | mnts = trunc(dur / 60); 73 | dur = dur - (mnts * 60); 74 | } 75 | char buffer[17]; 76 | sprintf(buffer, "%ud %02uh %02um %02us", dys, hrs, mnts, dur); 77 | return {buffer}; 78 | icon: mdi:clock-start 79 | update_interval: 60s 80 | 81 | #Uptime 82 | sensor: 83 | - platform: uptime 84 | id: uptime_s 85 | update_interval: 60s 86 | 87 | # Device functions: 88 | switch: 89 | - platform: restart 90 | name: "Gateway Restart" 91 | 92 | - platform: gpio 93 | pin: 33 94 | id: zRST_gpio 95 | inverted: yes 96 | restore_mode: ALWAYS_OFF 97 | - platform: template 98 | name: "Zigbee RST" 99 | icon: mdi:toggle-switch 100 | id: zRST 101 | turn_on_action: 102 | - switch.turn_on: zRST_gpio 103 | - delay: 15ms 104 | - switch.turn_off: zRST_gpio 105 | 106 | - platform: gpio 107 | pin: 32 108 | name: "Zigbee BSL" 109 | icon: mdi:toggle-switch 110 | id: zBSL 111 | inverted: yes 112 | restore_mode: ALWAYS_OFF 113 | internal: true 114 | 115 | - platform: template 116 | name: "Firmware Update" 117 | icon: mdi:cellphone-arrow-down 118 | turn_on_action: 119 | - script.execute: fw_update_mode 120 | turn_off_action: 121 | - switch.toggle: zRST 122 | 123 | #Update CC2652 Firmware 124 | script: 125 | - id: fw_update_mode 126 | then: 127 | - switch.turn_on: zBSL 128 | - delay: 1s 129 | - switch.turn_on: zRST_gpio 130 | - delay: 1s 131 | - switch.turn_off: zRST_gpio 132 | - logger.log: "Delaying ~5 seconds for TI chip to be ready" 133 | - delay: 5s 134 | - switch.turn_off: zBSL 135 | - logger.log: "Update with cc2538-bsl tool now!" 136 | - logger.log: "Usage: cc2538-bsl.py -p socket://ip_or_hostname:6638 -evw firmware.hex" 137 | 138 | #UART Settings 139 | uart: 140 | id: uart_bus 141 | rx_pin: GPIO5 142 | tx_pin: GPIO17 143 | baud_rate: 115200 144 | 145 | #Serial Bridge Settings,uncomment #port to change default 6638 TCP port 146 | stream_server: 147 | uart_id: uart_bus 148 | # port: 1234 -------------------------------------------------------------------------------- /files/ESP-HOME/zigstar-lilyzig/lilyzig-btproxy-factory.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/files/ESP-HOME/zigstar-lilyzig/lilyzig-btproxy-factory.bin -------------------------------------------------------------------------------- /files/ESP-HOME/zigstar-lilyzig/lilyzig-btproxy.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ZS Gateway - BTPRoxy", 3 | "funding_url": "https://zig-star.com/about/", 4 | "new_install_prompt_erase": true, 5 | "new_install_improv_wait_time": 0, 6 | "builds": [ 7 | { 8 | "chipFamily": "ESP32", 9 | "parts": [ 10 | { "path": "lilyzig-btproxy-factory.bin", "offset": 0 } 11 | ] 12 | } 13 | ] 14 | } -------------------------------------------------------------------------------- /files/ESP-HOME/zigstar-lilyzig/lilyzig-btproxy.yaml: -------------------------------------------------------------------------------- 1 | substitutions: 2 | #Name your Gateway 3 | device_name: lilyzig-btproxy 4 | #Home Assistant Name 5 | friendly_name: ZS Gateway - BTProxy 6 | #Secret YAML is used for next data: 7 | #pi_pw: !secret api_password 8 | #ota_pw: !secret ota_password 9 | 10 | esphome: 11 | name: "${device_name}" 12 | name_add_mac_suffix: true 13 | project: 14 | name: lilyzig.btproxy 15 | version: "1.0" 16 | 17 | esp32: 18 | board: esp32dev 19 | framework: 20 | type: arduino 21 | 22 | #Ethernet connection information 23 | ethernet: 24 | type: LAN8720 25 | mdc_pin: GPIO23 26 | mdio_pin: GPIO18 27 | clk_mode: GPIO17_OUT 28 | phy_addr: 0 29 | 30 | ## General ESPHome settings 31 | # Home Assistant API is enabled 32 | api: 33 | #password: ${api_pw} 34 | reboot_timeout: 0s 35 | # Logger is enabled 36 | logger: 37 | level: DEBUG 38 | # Enable OTA 39 | ota: 40 | #password: ${ota_pw} 41 | # Enable WEB 42 | web_server: 43 | port: 80 44 | # Enable HA Time 45 | time: 46 | - platform: homeassistant 47 | id: homeassistant_time 48 | 49 | #ESPHome Bluetooth_proxy settings 50 | dashboard_import: 51 | package_import_url: github://mercenaruss/zigstar_gateways//files/ESP-HOME/zigstar-lilyzig/lilyzig-btproxy.yaml@main 52 | 53 | esp32_ble_tracker: 54 | scan_parameters: 55 | interval: 1100ms 56 | window: 1100ms 57 | active: true 58 | 59 | bluetooth_proxy: 60 | active: true 61 | 62 | ## Safe Mode 63 | button: 64 | - platform: safe_mode 65 | name: Safe Mode Boot 66 | entity_category: diagnostic 67 | 68 | ## ESP32 Restart 69 | switch: 70 | - platform: restart 71 | name: "${friendly_name} Restart" 72 | 73 | # Extra sensor to keep track of gateway uptime 74 | text_sensor: 75 | - platform: template 76 | name: "${friendly_name} Uptime" 77 | lambda: |- 78 | uint32_t dur = id(uptime_s).state; 79 | int dys = 0; 80 | int hrs = 0; 81 | int mnts = 0; 82 | if (dur > 86399) { 83 | dys = trunc(dur / 86400); 84 | dur = dur - (dys * 86400); 85 | } 86 | if (dur > 3599) { 87 | hrs = trunc(dur / 3600); 88 | dur = dur - (hrs * 3600); 89 | } 90 | if (dur > 59) { 91 | mnts = trunc(dur / 60); 92 | dur = dur - (mnts * 60); 93 | } 94 | char buffer[17]; 95 | sprintf(buffer, "%ud %02uh %02um %02us", dys, hrs, mnts, dur); 96 | return {buffer}; 97 | icon: mdi:clock-start 98 | update_interval: 60s 99 | 100 | #Uptime 101 | sensor: 102 | - platform: uptime 103 | id: uptime_s 104 | update_interval: 60s 105 | -------------------------------------------------------------------------------- /files/ESP-HOME/zigstar-lilyzig/lilyzig-mixed-factory.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/files/ESP-HOME/zigstar-lilyzig/lilyzig-mixed-factory.bin -------------------------------------------------------------------------------- /files/ESP-HOME/zigstar-lilyzig/lilyzig-mixed.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ZS Gateway - Mixed", 3 | "funding_url": "https://zig-star.com/about/", 4 | "new_install_prompt_erase": true, 5 | "new_install_improv_wait_time": 0, 6 | "builds": [ 7 | { 8 | "chipFamily": "ESP32", 9 | "parts": [ 10 | { "path": "lilyzig-mixed-factory.bin", "offset": 0 } 11 | ] 12 | } 13 | ] 14 | } -------------------------------------------------------------------------------- /files/ESP-HOME/zigstar-lilyzig/lilyzig-mixed.yaml: -------------------------------------------------------------------------------- 1 | substitutions: 2 | #Name your Gateway 3 | device_name: lilyzig-mixed 4 | #Home Assistant Name 5 | friendly_name: ZS Gateway - Zigbee & BTProxy 6 | #Secret YAML is used for next data: 7 | #pi_pw: !secret api_password 8 | #ota_pw: !secret ota_password 9 | 10 | esphome: 11 | name: "${device_name}" 12 | name_add_mac_suffix: true 13 | project: 14 | name: lilyzig.mixed 15 | version: "1.0" 16 | 17 | esp32: 18 | board: esp32dev 19 | framework: 20 | type: arduino 21 | 22 | #Ethernet connection information 23 | ethernet: 24 | type: LAN8720 25 | mdc_pin: GPIO23 26 | mdio_pin: GPIO18 27 | clk_mode: GPIO17_OUT 28 | phy_addr: 0 29 | 30 | ## General ESPHome settings 31 | # Home Assistant API is enabled 32 | api: 33 | #password: ${api_pw} 34 | reboot_timeout: 0s 35 | # Logger is enabled 36 | logger: 37 | level: DEBUG 38 | # Enable OTA 39 | ota: 40 | #password: ${ota_pw} 41 | # Enable WEB 42 | web_server: 43 | port: 80 44 | # Enable HA Time 45 | time: 46 | - platform: homeassistant 47 | id: homeassistant_time 48 | 49 | #ESPHome Bluetooth_proxy settings 50 | dashboard_import: 51 | package_import_url: github://mercenaruss/zigstar_gateways//files/ESP-HOME/zigstar-lilyzig/lilyzig-mixed.yaml@main 52 | 53 | esp32_ble_tracker: 54 | scan_parameters: 55 | interval: 1100ms 56 | window: 1100ms 57 | active: true 58 | 59 | bluetooth_proxy: 60 | active: true 61 | 62 | ## Safe Mode 63 | button: 64 | - platform: safe_mode 65 | name: Safe Mode Boot 66 | entity_category: diagnostic 67 | 68 | #External component Stream Server 69 | external_components: 70 | - source: github://mercenaruss/esphome-stream-server 71 | 72 | # Extra sensor to keep track of gateway uptime 73 | text_sensor: 74 | - platform: template 75 | name: "${friendly_name} Uptime" 76 | lambda: |- 77 | uint32_t dur = id(uptime_s).state; 78 | int dys = 0; 79 | int hrs = 0; 80 | int mnts = 0; 81 | if (dur > 86399) { 82 | dys = trunc(dur / 86400); 83 | dur = dur - (dys * 86400); 84 | } 85 | if (dur > 3599) { 86 | hrs = trunc(dur / 3600); 87 | dur = dur - (hrs * 3600); 88 | } 89 | if (dur > 59) { 90 | mnts = trunc(dur / 60); 91 | dur = dur - (mnts * 60); 92 | } 93 | char buffer[17]; 94 | sprintf(buffer, "%ud %02uh %02um %02us", dys, hrs, mnts, dur); 95 | return {buffer}; 96 | icon: mdi:clock-start 97 | update_interval: 60s 98 | 99 | #Uptime 100 | sensor: 101 | - platform: uptime 102 | id: uptime_s 103 | update_interval: 60s 104 | 105 | # Device functions: 106 | switch: 107 | - platform: restart 108 | name: "Gateway Restart" 109 | 110 | - platform: gpio 111 | pin: 16 112 | id: zRST_gpio 113 | inverted: yes 114 | restore_mode: ALWAYS_OFF 115 | - platform: template 116 | name: "Zigbee RST" 117 | icon: mdi:toggle-switch 118 | id: zRST 119 | turn_on_action: 120 | - switch.turn_on: zRST_gpio 121 | - delay: 15ms 122 | - switch.turn_off: zRST_gpio 123 | 124 | - platform: gpio 125 | pin: 32 126 | name: "Zigbee BSL" 127 | icon: mdi:toggle-switch 128 | id: zBSL 129 | inverted: yes 130 | restore_mode: ALWAYS_OFF 131 | internal: true 132 | 133 | - platform: template 134 | name: "Firmware Update" 135 | icon: mdi:cellphone-arrow-down 136 | turn_on_action: 137 | - script.execute: fw_update_mode 138 | turn_off_action: 139 | - switch.toggle: zRST 140 | 141 | #Update CC2652 Firmware 142 | script: 143 | - id: fw_update_mode 144 | then: 145 | - switch.turn_on: zBSL 146 | - delay: 1s 147 | - switch.turn_on: zRST_gpio 148 | - delay: 1s 149 | - switch.turn_off: zRST_gpio 150 | - logger.log: "Delaying ~5 seconds for TI chip to be ready" 151 | - delay: 5s 152 | - switch.turn_off: zBSL 153 | - logger.log: "Update with cc2538-bsl tool now!" 154 | - logger.log: "Usage: cc2538-bsl.py -p socket://ip_or_hostname:6638 -evw firmware.hex" 155 | 156 | #UART Settings 157 | uart: 158 | id: uart_bus 159 | rx_pin: GPIO36 160 | tx_pin: GPIO4 161 | baud_rate: 115200 162 | 163 | #Serial Bridge Settings,uncomment #port to change default 6638 TCP port 164 | stream_server: 165 | uart_id: uart_bus 166 | # port: 1234 -------------------------------------------------------------------------------- /files/ESP-HOME/zigstar-lilyzig/lilyzig-zigbee-factory.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/files/ESP-HOME/zigstar-lilyzig/lilyzig-zigbee-factory.bin -------------------------------------------------------------------------------- /files/ESP-HOME/zigstar-lilyzig/lilyzig-zigbee.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ZS Gateway - Zigbee", 3 | "funding_url": "https://zig-star.com/about/", 4 | "new_install_prompt_erase": true, 5 | "new_install_improv_wait_time": 0, 6 | "builds": [ 7 | { 8 | "chipFamily": "ESP32", 9 | "parts": [ 10 | { "path": "lilyzig-zigbee-factory.bin", "offset": 0 } 11 | ] 12 | } 13 | ] 14 | } -------------------------------------------------------------------------------- /files/ESP-HOME/zigstar-lilyzig/lilyzig-zigbee.yaml: -------------------------------------------------------------------------------- 1 | substitutions: 2 | #Name your Gateway 3 | device_name: lilyzig-zigbee 4 | #Home Assistant Name 5 | friendly_name: ZS Gateway - Zigbee 6 | #Secret YAML is used for next data: 7 | #pi_pw: !secret api_password 8 | #ota_pw: !secret ota_password 9 | 10 | esphome: 11 | name: "${device_name}" 12 | name_add_mac_suffix: true 13 | project: 14 | name: lilyzig.zigbee 15 | version: "1.0" 16 | 17 | esp32: 18 | board: esp32dev 19 | framework: 20 | type: arduino 21 | 22 | #Ethernet connection information 23 | ethernet: 24 | type: LAN8720 25 | mdc_pin: GPIO23 26 | mdio_pin: GPIO18 27 | clk_mode: GPIO17_OUT 28 | phy_addr: 0 29 | 30 | ## General ESPHome settings 31 | # Home Assistant API is enabled 32 | api: 33 | #password: ${api_pw} 34 | reboot_timeout: 0s 35 | # Logger is enabled 36 | logger: 37 | level: DEBUG 38 | # Enable OTA 39 | ota: 40 | #password: ${ota_pw} 41 | # Enable WEB 42 | web_server: 43 | port: 80 44 | # Enable HA Time 45 | time: 46 | - platform: homeassistant 47 | id: homeassistant_time 48 | 49 | #External component Stream Server 50 | external_components: 51 | - source: github://mercenaruss/esphome-stream-server 52 | 53 | # Extra sensor to keep track of gateway uptime 54 | text_sensor: 55 | - platform: template 56 | name: "${friendly_name} Uptime" 57 | lambda: |- 58 | uint32_t dur = id(uptime_s).state; 59 | int dys = 0; 60 | int hrs = 0; 61 | int mnts = 0; 62 | if (dur > 86399) { 63 | dys = trunc(dur / 86400); 64 | dur = dur - (dys * 86400); 65 | } 66 | if (dur > 3599) { 67 | hrs = trunc(dur / 3600); 68 | dur = dur - (hrs * 3600); 69 | } 70 | if (dur > 59) { 71 | mnts = trunc(dur / 60); 72 | dur = dur - (mnts * 60); 73 | } 74 | char buffer[17]; 75 | sprintf(buffer, "%ud %02uh %02um %02us", dys, hrs, mnts, dur); 76 | return {buffer}; 77 | icon: mdi:clock-start 78 | update_interval: 60s 79 | 80 | #Uptime 81 | sensor: 82 | - platform: uptime 83 | id: uptime_s 84 | update_interval: 60s 85 | 86 | # Device functions: 87 | switch: 88 | - platform: restart 89 | name: "Gateway Restart" 90 | 91 | - platform: gpio 92 | pin: 16 93 | id: zRST_gpio 94 | inverted: yes 95 | restore_mode: ALWAYS_OFF 96 | - platform: template 97 | name: "Zigbee RST" 98 | icon: mdi:toggle-switch 99 | id: zRST 100 | turn_on_action: 101 | - switch.turn_on: zRST_gpio 102 | - delay: 15ms 103 | - switch.turn_off: zRST_gpio 104 | 105 | - platform: gpio 106 | pin: 32 107 | name: "Zigbee BSL" 108 | icon: mdi:toggle-switch 109 | id: zBSL 110 | inverted: yes 111 | restore_mode: ALWAYS_OFF 112 | internal: true 113 | 114 | - platform: template 115 | name: "Firmware Update" 116 | icon: mdi:cellphone-arrow-down 117 | turn_on_action: 118 | - script.execute: fw_update_mode 119 | turn_off_action: 120 | - switch.toggle: zRST 121 | 122 | #Update CC2652 Firmware 123 | script: 124 | - id: fw_update_mode 125 | then: 126 | - switch.turn_on: zBSL 127 | - delay: 1s 128 | - switch.turn_on: zRST_gpio 129 | - delay: 1s 130 | - switch.turn_off: zRST_gpio 131 | - logger.log: "Delaying ~5 seconds for TI chip to be ready" 132 | - delay: 5s 133 | - switch.turn_off: zBSL 134 | - logger.log: "Update with cc2538-bsl tool now!" 135 | - logger.log: "Usage: cc2538-bsl.py -p socket://ip_or_hostname:6638 -evw firmware.hex" 136 | 137 | #UART Settings 138 | uart: 139 | id: uart_bus 140 | rx_pin: GPIO36 141 | tx_pin: GPIO4 142 | baud_rate: 115200 143 | 144 | #Serial Bridge Settings,uncomment #port to change default 6638 TCP port 145 | stream_server: 146 | uart_id: uart_bus 147 | # port: 1234 -------------------------------------------------------------------------------- /files/ESP-HOME/zigstar-olizig/olizig-btproxy-factory.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/files/ESP-HOME/zigstar-olizig/olizig-btproxy-factory.bin -------------------------------------------------------------------------------- /files/ESP-HOME/zigstar-olizig/olizig-btproxy.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ZS Gateway - BTProxy", 3 | "funding_url": "https://zig-star.com/about/", 4 | "new_install_prompt_erase": true, 5 | "new_install_improv_wait_time": 0, 6 | "builds": [ 7 | { 8 | "chipFamily": "ESP32", 9 | "parts": [ 10 | { "path": "olizig-btproxy-factory.bin", "offset": 0 } 11 | ] 12 | } 13 | ] 14 | } -------------------------------------------------------------------------------- /files/ESP-HOME/zigstar-olizig/olizig-btproxy.yaml: -------------------------------------------------------------------------------- 1 | substitutions: 2 | #Name your Gateway 3 | device_name: olizig-btproxy 4 | #Home Assistant Name 5 | friendly_name: ZS Gateway - BTProxy 6 | #Secret YAML is used for next data: 7 | #pi_pw: !secret api_password 8 | #ota_pw: !secret ota_password 9 | 10 | esphome: 11 | name: "${device_name}" 12 | name_add_mac_suffix: true 13 | project: 14 | name: olizig.btproxy 15 | version: "1.0" 16 | 17 | esp32: 18 | board: esp32dev 19 | framework: 20 | type: arduino 21 | 22 | #Ethernet connection information 23 | ethernet: 24 | type: LAN8720 25 | mdc_pin: GPIO23 26 | mdio_pin: GPIO18 27 | clk_mode: GPIO17_OUT 28 | phy_addr: 0 29 | power_pin: GPIO12 30 | 31 | ## General ESPHome settings 32 | # Home Assistant API is enabled 33 | api: 34 | #password: ${api_pw} 35 | reboot_timeout: 0s 36 | # Logger is enabled 37 | logger: 38 | level: DEBUG 39 | # Enable OTA 40 | ota: 41 | #password: ${ota_pw} 42 | # Enable WEB 43 | web_server: 44 | port: 80 45 | # Enable HA Time 46 | time: 47 | - platform: homeassistant 48 | id: homeassistant_time 49 | 50 | #ESPHome Bluetooth_proxy settings 51 | dashboard_import: 52 | package_import_url: github://mercenaruss/zigstar_gateways//files/ESP-HOME/zigstar-olizig/olizig-btproxy.yaml@main 53 | 54 | esp32_ble_tracker: 55 | scan_parameters: 56 | interval: 1100ms 57 | window: 1100ms 58 | active: true 59 | 60 | bluetooth_proxy: 61 | active: true 62 | 63 | ## Safe Mode 64 | button: 65 | - platform: safe_mode 66 | name: Safe Mode Boot 67 | entity_category: diagnostic 68 | 69 | ## ESP32 Restart 70 | switch: 71 | - platform: restart 72 | name: "${friendly_name} Restart" 73 | 74 | # Extra sensor to keep track of gateway uptime 75 | text_sensor: 76 | - platform: template 77 | name: "${friendly_name} Uptime" 78 | lambda: |- 79 | uint32_t dur = id(uptime_s).state; 80 | int dys = 0; 81 | int hrs = 0; 82 | int mnts = 0; 83 | if (dur > 86399) { 84 | dys = trunc(dur / 86400); 85 | dur = dur - (dys * 86400); 86 | } 87 | if (dur > 3599) { 88 | hrs = trunc(dur / 3600); 89 | dur = dur - (hrs * 3600); 90 | } 91 | if (dur > 59) { 92 | mnts = trunc(dur / 60); 93 | dur = dur - (mnts * 60); 94 | } 95 | char buffer[17]; 96 | sprintf(buffer, "%ud %02uh %02um %02us", dys, hrs, mnts, dur); 97 | return {buffer}; 98 | icon: mdi:clock-start 99 | update_interval: 60s 100 | 101 | #Uptime 102 | sensor: 103 | - platform: uptime 104 | id: uptime_s 105 | update_interval: 60s 106 | -------------------------------------------------------------------------------- /files/ESP-HOME/zigstar-olizig/olizig-mixed-factory.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/files/ESP-HOME/zigstar-olizig/olizig-mixed-factory.bin -------------------------------------------------------------------------------- /files/ESP-HOME/zigstar-olizig/olizig-mixed.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ZS Gateway - Mixed", 3 | "funding_url": "https://zig-star.com/about/", 4 | "new_install_prompt_erase": true, 5 | "new_install_improv_wait_time": 0, 6 | "builds": [ 7 | { 8 | "chipFamily": "ESP32", 9 | "parts": [ 10 | { "path": "olizig-mixed-factory.bin", "offset": 0 } 11 | ] 12 | } 13 | ] 14 | } -------------------------------------------------------------------------------- /files/ESP-HOME/zigstar-olizig/olizig-mixed.yaml: -------------------------------------------------------------------------------- 1 | substitutions: 2 | #Name your Gateway 3 | device_name: olizig-mixed 4 | #Home Assistant Name 5 | friendly_name: ZS Gateway - Zigbee & BTProxy 6 | #Secret YAML is used for next data: 7 | #pi_pw: !secret api_password 8 | #ota_pw: !secret ota_password 9 | 10 | esphome: 11 | name: "${device_name}" 12 | name_add_mac_suffix: true 13 | project: 14 | name: olizig.mixed 15 | version: "1.0" 16 | 17 | esp32: 18 | board: esp32dev 19 | framework: 20 | type: arduino 21 | 22 | #Ethernet connection information 23 | ethernet: 24 | type: LAN8720 25 | mdc_pin: GPIO23 26 | mdio_pin: GPIO18 27 | clk_mode: GPIO17_OUT 28 | phy_addr: 0 29 | power_pin: GPIO12 30 | 31 | ## General ESPHome settings 32 | # Home Assistant API is enabled 33 | api: 34 | #password: ${api_pw} 35 | reboot_timeout: 0s 36 | # Logger is enabled 37 | logger: 38 | level: DEBUG 39 | # Enable OTA 40 | ota: 41 | #password: ${ota_pw} 42 | # Enable WEB 43 | web_server: 44 | port: 80 45 | # Enable HA Time 46 | time: 47 | - platform: homeassistant 48 | id: homeassistant_time 49 | 50 | #ESPHome Bluetooth_proxy settings 51 | dashboard_import: 52 | package_import_url: github://mercenaruss/zigstar_gateways//files/ESP-HOME/zigstar-olizig/olizig-mixed.yaml@main 53 | 54 | esp32_ble_tracker: 55 | scan_parameters: 56 | interval: 1100ms 57 | window: 1100ms 58 | active: true 59 | 60 | bluetooth_proxy: 61 | active: true 62 | 63 | ## Safe Mode 64 | button: 65 | - platform: safe_mode 66 | name: Safe Mode Boot 67 | entity_category: diagnostic 68 | 69 | #External component Stream Server 70 | external_components: 71 | - source: github://mercenaruss/esphome-stream-server 72 | 73 | # Extra sensor to keep track of gateway uptime 74 | text_sensor: 75 | - platform: template 76 | name: "${friendly_name} Uptime" 77 | lambda: |- 78 | uint32_t dur = id(uptime_s).state; 79 | int dys = 0; 80 | int hrs = 0; 81 | int mnts = 0; 82 | if (dur > 86399) { 83 | dys = trunc(dur / 86400); 84 | dur = dur - (dys * 86400); 85 | } 86 | if (dur > 3599) { 87 | hrs = trunc(dur / 3600); 88 | dur = dur - (hrs * 3600); 89 | } 90 | if (dur > 59) { 91 | mnts = trunc(dur / 60); 92 | dur = dur - (mnts * 60); 93 | } 94 | char buffer[17]; 95 | sprintf(buffer, "%ud %02uh %02um %02us", dys, hrs, mnts, dur); 96 | return {buffer}; 97 | icon: mdi:clock-start 98 | update_interval: 60s 99 | 100 | #Uptime 101 | sensor: 102 | - platform: uptime 103 | id: uptime_s 104 | update_interval: 60s 105 | 106 | # Device functions: 107 | switch: 108 | - platform: restart 109 | name: "Gateway Restart" 110 | 111 | - platform: gpio 112 | pin: 16 113 | id: zRST_gpio 114 | inverted: yes 115 | restore_mode: ALWAYS_OFF 116 | - platform: template 117 | name: "Zigbee RST" 118 | icon: mdi:toggle-switch 119 | id: zRST 120 | turn_on_action: 121 | - switch.turn_on: zRST_gpio 122 | - delay: 15ms 123 | - switch.turn_off: zRST_gpio 124 | 125 | - platform: gpio 126 | pin: 32 127 | name: "Zigbee BSL" 128 | icon: mdi:toggle-switch 129 | id: zBSL 130 | inverted: yes 131 | restore_mode: ALWAYS_OFF 132 | internal: true 133 | 134 | - platform: template 135 | name: "Firmware Update" 136 | icon: mdi:cellphone-arrow-down 137 | turn_on_action: 138 | - script.execute: fw_update_mode 139 | turn_off_action: 140 | - switch.toggle: zRST 141 | 142 | #Update CC2652 Firmware 143 | script: 144 | - id: fw_update_mode 145 | then: 146 | - switch.turn_on: zBSL 147 | - delay: 1s 148 | - switch.turn_on: zRST_gpio 149 | - delay: 1s 150 | - switch.turn_off: zRST_gpio 151 | - logger.log: "Delaying ~5 seconds for TI chip to be ready" 152 | - delay: 5s 153 | - switch.turn_off: zBSL 154 | - logger.log: "Update with cc2538-bsl tool now!" 155 | - logger.log: "Usage: cc2538-bsl.py -p socket://ip_or_hostname:6638 -evw firmware.hex" 156 | 157 | #UART Settings 158 | uart: 159 | id: uart_bus 160 | rx_pin: GPIO36 161 | tx_pin: GPIO4 162 | baud_rate: 115200 163 | 164 | #Serial Bridge Settings,uncomment #port to change default 6638 TCP port 165 | stream_server: 166 | uart_id: uart_bus 167 | # port: 1234 -------------------------------------------------------------------------------- /files/ESP-HOME/zigstar-olizig/olizig-zigbee-factory.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/files/ESP-HOME/zigstar-olizig/olizig-zigbee-factory.bin -------------------------------------------------------------------------------- /files/ESP-HOME/zigstar-olizig/olizig-zigbee.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ZS Gateway - Zigbee", 3 | "funding_url": "https://zig-star.com/about/", 4 | "new_install_prompt_erase": true, 5 | "new_install_improv_wait_time": 0, 6 | "builds": [ 7 | { 8 | "chipFamily": "ESP32", 9 | "parts": [ 10 | { "path": "olizig-zigbee-factory.bin", "offset": 0 } 11 | ] 12 | } 13 | ] 14 | } -------------------------------------------------------------------------------- /files/ESP-HOME/zigstar-olizig/olizig-zigbee.yaml: -------------------------------------------------------------------------------- 1 | substitutions: 2 | #Name your Gateway 3 | device_name: olizig-zigbee 4 | #Home Assistant Name 5 | friendly_name: ZS Gateway - Zigbee 6 | #Secret YAML is used for next data: 7 | #pi_pw: !secret api_password 8 | #ota_pw: !secret ota_password 9 | 10 | esphome: 11 | name: "${device_name}" 12 | name_add_mac_suffix: true 13 | project: 14 | name: olizig.zigbee 15 | version: "1.0" 16 | 17 | esp32: 18 | board: esp32dev 19 | framework: 20 | type: arduino 21 | 22 | #Ethernet connection information 23 | ethernet: 24 | type: LAN8720 25 | mdc_pin: GPIO23 26 | mdio_pin: GPIO18 27 | clk_mode: GPIO17_OUT 28 | phy_addr: 0 29 | power_pin: GPIO12 30 | 31 | ## General ESPHome settings 32 | # Home Assistant API is enabled 33 | api: 34 | #password: ${api_pw} 35 | reboot_timeout: 0s 36 | # Logger is enabled 37 | logger: 38 | level: DEBUG 39 | # Enable OTA 40 | ota: 41 | #password: ${ota_pw} 42 | # Enable WEB 43 | web_server: 44 | port: 80 45 | # Enable HA Time 46 | time: 47 | - platform: homeassistant 48 | id: homeassistant_time 49 | 50 | #External component Stream Server 51 | external_components: 52 | - source: github://mercenaruss/esphome-stream-server 53 | 54 | # Extra sensor to keep track of gateway uptime 55 | text_sensor: 56 | - platform: template 57 | name: "${friendly_name} Uptime" 58 | lambda: |- 59 | uint32_t dur = id(uptime_s).state; 60 | int dys = 0; 61 | int hrs = 0; 62 | int mnts = 0; 63 | if (dur > 86399) { 64 | dys = trunc(dur / 86400); 65 | dur = dur - (dys * 86400); 66 | } 67 | if (dur > 3599) { 68 | hrs = trunc(dur / 3600); 69 | dur = dur - (hrs * 3600); 70 | } 71 | if (dur > 59) { 72 | mnts = trunc(dur / 60); 73 | dur = dur - (mnts * 60); 74 | } 75 | char buffer[17]; 76 | sprintf(buffer, "%ud %02uh %02um %02us", dys, hrs, mnts, dur); 77 | return {buffer}; 78 | icon: mdi:clock-start 79 | update_interval: 60s 80 | 81 | #Uptime 82 | sensor: 83 | - platform: uptime 84 | id: uptime_s 85 | update_interval: 60s 86 | 87 | # Device functions: 88 | switch: 89 | - platform: restart 90 | name: "Gateway Restart" 91 | 92 | - platform: gpio 93 | pin: 16 94 | id: zRST_gpio 95 | inverted: yes 96 | restore_mode: ALWAYS_OFF 97 | - platform: template 98 | name: "Zigbee RST" 99 | icon: mdi:toggle-switch 100 | id: zRST 101 | turn_on_action: 102 | - switch.turn_on: zRST_gpio 103 | - delay: 15ms 104 | - switch.turn_off: zRST_gpio 105 | 106 | - platform: gpio 107 | pin: 32 108 | name: "Zigbee BSL" 109 | icon: mdi:toggle-switch 110 | id: zBSL 111 | inverted: yes 112 | restore_mode: ALWAYS_OFF 113 | internal: true 114 | 115 | - platform: template 116 | name: "Firmware Update" 117 | icon: mdi:cellphone-arrow-down 118 | turn_on_action: 119 | - script.execute: fw_update_mode 120 | turn_off_action: 121 | - switch.toggle: zRST 122 | 123 | #Update CC2652 Firmware 124 | script: 125 | - id: fw_update_mode 126 | then: 127 | - switch.turn_on: zBSL 128 | - delay: 1s 129 | - switch.turn_on: zRST_gpio 130 | - delay: 1s 131 | - switch.turn_off: zRST_gpio 132 | - logger.log: "Delaying ~5 seconds for TI chip to be ready" 133 | - delay: 5s 134 | - switch.turn_off: zBSL 135 | - logger.log: "Update with cc2538-bsl tool now!" 136 | - logger.log: "Usage: cc2538-bsl.py -p socket://ip_or_hostname:6638 -evw firmware.hex" 137 | 138 | #UART Settings 139 | uart: 140 | id: uart_bus 141 | rx_pin: GPIO36 142 | tx_pin: GPIO4 143 | baud_rate: 115200 144 | 145 | #Serial Bridge Settings,uncomment #port to change default 6638 TCP port 146 | stream_server: 147 | uart_id: uart_bus 148 | # port: 1234 -------------------------------------------------------------------------------- /files/ESP-HOME/zigstar-uzg-01/uzg01-btproxy-firmware-factory.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/files/ESP-HOME/zigstar-uzg-01/uzg01-btproxy-firmware-factory.bin -------------------------------------------------------------------------------- /files/ESP-HOME/zigstar-uzg-01/uzg01-btproxy.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "UZG Gateway - BTProxy", 3 | "funding_url": "https://zig-star.com/about/", 4 | "new_install_prompt_erase": true, 5 | "new_install_improv_wait_time": 0, 6 | "builds": [ 7 | { 8 | "chipFamily": "ESP32", 9 | "parts": [ 10 | { "path": "uzg01-btproxy-firmware-factory.bin", "offset": 0 } 11 | ] 12 | } 13 | ] 14 | } -------------------------------------------------------------------------------- /files/ESP-HOME/zigstar-uzg-01/uzg01-btproxy.yaml: -------------------------------------------------------------------------------- 1 | substitutions: 2 | #Name your Gateway 3 | device_name: uzg01-btproxy 4 | #Home Assistant Name 5 | friendly_name: UZG Gateway - BTProxy 6 | #Secret YAML is used for next data: 7 | #pi_pw: !secret api_password 8 | #ota_pw: !secret ota_password 9 | 10 | esphome: 11 | name: "${device_name}" 12 | name_add_mac_suffix: false 13 | project: 14 | name: ZigStar.UZG01-BTProxy 15 | version: "1.0" 16 | 17 | esp32: 18 | board: esp32dev 19 | framework: 20 | type: esp-idf 21 | sdkconfig_options: 22 | CONFIG_FREERTOS_UNICORE: y 23 | CONFIG_ESP_TASK_WDT_TIMEOUT_S: "10" 24 | 25 | ethernet: 26 | type: LAN8720 27 | mdc_pin: GPIO23 28 | mdio_pin: GPIO18 29 | clk_mode: GPIO17_OUT 30 | phy_addr: 0 31 | power_pin: GPIO05 32 | 33 | ## General ESPHome settings 34 | # Home Assistant API is enabled 35 | api: 36 | #password: ${api_pw} 37 | reboot_timeout: 0s 38 | # Logger is enabled 39 | logger: 40 | level: DEBUG 41 | # Enable OTA 42 | ota: 43 | #password: ${ota_pw} 44 | # Enable WEB 45 | web_server: 46 | port: 80 47 | 48 | dashboard_import: 49 | package_import_url: github://mercenaruss/zigstar_gateways/files/ESP-HOME/zigstar-uzg-01/uzg01-btproxy.yaml@main 50 | import_full_config: true 51 | 52 | # BTProxy 53 | esp32_ble_tracker: 54 | scan_parameters: 55 | interval: 1100ms 56 | window: 1100ms 57 | active: true 58 | 59 | bluetooth_proxy: 60 | active: true 61 | 62 | ##Uptime generic sensor 63 | sensor: 64 | - platform: uptime 65 | id: uptime_sec 66 | update_interval: 60s 67 | - platform: template 68 | id: uptime_timestamp 69 | name: "$devicename Uptime" 70 | device_class: timestamp 71 | entity_category: diagnostic 72 | accuracy_decimals: 0 73 | update_interval: never 74 | lambda: |- 75 | static float timestamp = ( 76 | id(current_time).utcnow().timestamp - id(uptime_sec).state 77 | ); 78 | return timestamp; 79 | 80 | time: 81 | - platform: homeassistant 82 | id: current_time 83 | on_time_sync: 84 | - component.update: uptime_timestamp 85 | 86 | #CONTROL SETTINGS 87 | 88 | ## Buttons 89 | button: 90 | - platform: safe_mode 91 | name: Safe Mode Reboot 92 | entity_category: diagnostic 93 | ### ESP32 Restart 94 | - platform: restart 95 | name: "ESP32 - Restart" 96 | 97 | ##Status of physical button - sensor 98 | binary_sensor: 99 | - platform: gpio 100 | name: "Physical button status" 101 | icon: mdi:toggle-switch 102 | id: gpio35btn1 103 | pin: 104 | number: GPIO35 105 | mode: 106 | input: true 107 | inverted: yes 108 | ##LEDs swithces 109 | switch: 110 | - platform: gpio 111 | name: "LED (RED)" 112 | restore_mode: ALWAYS_OFF 113 | icon: mdi:toggle-switch 114 | id: gpio12LED1 115 | pin: 116 | number: GPIO12 117 | 118 | - platform: gpio 119 | name: "LED (BLUE)" 120 | restore_mode: ALWAYS_ON 121 | icon: mdi:toggle-switch 122 | id: gpio14LED2 123 | pin: 124 | number: GPIO14 -------------------------------------------------------------------------------- /files/ESP-HOME/zigstar-uzg-01/uzg01-mixed-firmware-factory.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/files/ESP-HOME/zigstar-uzg-01/uzg01-mixed-firmware-factory.bin -------------------------------------------------------------------------------- /files/ESP-HOME/zigstar-uzg-01/uzg01-mixed.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "UZG Gateway - Mixed", 3 | "funding_url": "https://zig-star.com/about/", 4 | "new_install_prompt_erase": true, 5 | "new_install_improv_wait_time": 0, 6 | "builds": [ 7 | { 8 | "chipFamily": "ESP32", 9 | "parts": [ 10 | { "path": "uzg01-mixed-firmware-factory.bin", "offset": 0 } 11 | ] 12 | } 13 | ] 14 | } -------------------------------------------------------------------------------- /files/ESP-HOME/zigstar-uzg-01/uzg01-mixed.yaml: -------------------------------------------------------------------------------- 1 | substitutions: 2 | #Name your Gateway 3 | device_name: uzg01-mixed 4 | #Home Assistant Name 5 | friendly_name: UZG Gateway - Mixed 6 | #Secret YAML is used for next data: 7 | #pi_pw: !secret api_password 8 | #ota_pw: !secret ota_password 9 | 10 | esphome: 11 | name: "${device_name}" 12 | name_add_mac_suffix: false 13 | project: 14 | name: ZigStar.UZG01-Mixed 15 | version: "1.0" 16 | on_boot: 17 | priority: 600 18 | then: 19 | - switch.turn_on: zRST_gpio 20 | - delay: 15ms 21 | - switch.turn_off: zRST_gpio 22 | 23 | esp32: 24 | board: esp32dev 25 | framework: 26 | type: esp-idf 27 | sdkconfig_options: 28 | CONFIG_FREERTOS_UNICORE: y 29 | CONFIG_ESP_TASK_WDT_TIMEOUT_S: "10" 30 | 31 | ethernet: 32 | type: LAN8720 33 | mdc_pin: GPIO23 34 | mdio_pin: GPIO18 35 | clk_mode: GPIO17_OUT 36 | phy_addr: 0 37 | power_pin: GPIO05 38 | 39 | ## General ESPHome settings 40 | # Home Assistant API is enabled 41 | api: 42 | #password: ${api_pw} 43 | reboot_timeout: 0s 44 | # Logger is enabled 45 | logger: 46 | level: DEBUG 47 | # Enable OTA 48 | ota: 49 | #password: ${ota_pw} 50 | # Enable WEB 51 | web_server: 52 | port: 80 53 | 54 | dashboard_import: 55 | package_import_url: github://mercenaruss/zigstar_gateways/files/ESP-HOME/zigstar-uzg-01/uzg01-mixed.yaml@main 56 | import_full_config: true 57 | 58 | # BTProxy 59 | esp32_ble_tracker: 60 | scan_parameters: 61 | interval: 1100ms 62 | window: 1100ms 63 | active: true 64 | 65 | bluetooth_proxy: 66 | active: true 67 | 68 | ##Uptime generic sensor 69 | sensor: 70 | - platform: uptime 71 | id: uptime_s 72 | update_interval: 60s 73 | # Enable HA Time 74 | time: 75 | - platform: homeassistant 76 | id: homeassistant_time 77 | 78 | #External component Stream Server 79 | external_components: 80 | - source: github://tube0013/esphome-stream-server-v2 81 | 82 | #CONTROL SETTINGS 83 | 84 | ## Buttons 85 | button: 86 | - platform: safe_mode 87 | name: 3.3.Safe Mode Reboot 88 | entity_category: diagnostic 89 | ### Zigbee Restart 90 | - platform: template 91 | name: "3.2.Zigbee - Restart" 92 | icon: mdi:restart 93 | id: zRST 94 | on_press: 95 | - switch.turn_on: zRST_gpio 96 | - delay: 15ms 97 | - switch.turn_off: zRST_gpio 98 | ### ESP32 Restart 99 | - platform: restart 100 | name: "3.1.ESP32 - Restart" 101 | ### Zigbee Flash Mode 102 | - platform: template 103 | name: "2.1.Zigbee - Flash Mode" 104 | icon: mdi:cellphone-arrow-down 105 | on_press: 106 | - script.execute: fw_update_mode 107 | 108 | ##Status of physical button - sensor 109 | binary_sensor: 110 | - platform: gpio 111 | name: "4.1.Physical button status" 112 | icon: mdi:toggle-switch 113 | id: gpio35btn1 114 | pin: 115 | number: GPIO35 116 | mode: 117 | input: true 118 | inverted: yes 119 | on_press: 120 | then: 121 | - switch.toggle: modeSwitchTemplate 122 | ## Socket connection status 123 | - platform: stream_server 124 | stream_server: s_s 125 | name: "4.2.Z2M/ZHA Connected" 126 | 127 | ## Switches 128 | switch: 129 | ### CC2652P Restart 130 | - platform: gpio 131 | pin: 16 132 | id: zRST_gpio 133 | inverted: yes 134 | restore_mode: ALWAYS_OFF 135 | 136 | ### Zigbee CC2652P to flash mode switch 137 | - platform: gpio 138 | pin: 32 139 | name: "Zigbee Flash Mode internal" 140 | icon: mdi:toggle-switch 141 | id: zBSL 142 | inverted: yes 143 | restore_mode: ALWAYS_OFF 144 | internal: true 145 | 146 | ### Mode LAN/USB switch 147 | - platform: template 148 | name: "1.0.UZG-01 MODE SWITCH (LAN|OFF| / USB|ON|)" 149 | id: modeSwitchTemplate 150 | turn_on_action: 151 | - switch.turn_on: gpio12LED1 152 | - switch.turn_on: gpio4Select 153 | - switch.template.publish: 154 | id: modeSwitchTemplate 155 | state: ON 156 | turn_off_action: 157 | - switch.turn_off: gpio12LED1 158 | - switch.turn_off: gpio4Select 159 | - switch.template.publish: 160 | id: modeSwitchTemplate 161 | state: OFF 162 | 163 | - platform: gpio 164 | name: "DEVICE MODE SWITCH (LAN|OFF| / USB|ON|)" 165 | restore_mode: ALWAYS_OFF 166 | icon: mdi:toggle-switch 167 | internal: true 168 | id: gpio4Select 169 | pin: 170 | number: GPIO33 171 | 172 | ### LEDs swithces 173 | - platform: gpio 174 | name: "2.3.Mode LED (RED)" 175 | restore_mode: ALWAYS_OFF 176 | icon: mdi:toggle-switch 177 | id: gpio12LED1 178 | pin: 179 | number: GPIO12 180 | 181 | - platform: gpio 182 | name: "2.2.Power LED (BLUE)" 183 | restore_mode: ALWAYS_ON 184 | icon: mdi:toggle-switch 185 | id: gpio14LED2 186 | pin: 187 | number: GPIO14 188 | 189 | #Update CC2652 Firmware 190 | script: 191 | - id: fw_update_mode 192 | then: 193 | - switch.turn_on: zBSL 194 | - delay: 1s 195 | - switch.turn_on: zRST_gpio 196 | - delay: 1s 197 | - switch.turn_off: zRST_gpio 198 | - logger.log: "Delaying 4 seconds for TI chip to be ready" 199 | - delay: 4s 200 | - switch.turn_off: zBSL 201 | - logger.log: "Update with cc2538-bsl tool now!" 202 | - logger.log: "Usage: cc2538-bsl.py -p socket://ip_or_hostname:6638 -evw firmware.hex" 203 | 204 | #UART Settings 205 | uart: 206 | id: uart_bus 207 | rx_pin: GPIO36 208 | tx_pin: GPIO04 209 | baud_rate: 115200 210 | 211 | #Serial Bridge Settings,uncomment #port to change default 6638 TCP port 212 | stream_server: 213 | uart_id: uart_bus 214 | id: s_s 215 | # port: 1234 216 | 217 | mdns: 218 | services: 219 | - service: "_uzg-01" 220 | protocol: "_tcp" 221 | port: 6638 222 | txt: 223 | version: 1.0 224 | name: UZG-01 225 | radio_type: znp 226 | baud_rate: 115200 227 | data_flow_control: software -------------------------------------------------------------------------------- /files/ESP-HOME/zigstar-uzg-01/uzg01-zigbee-firmware-factory.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/files/ESP-HOME/zigstar-uzg-01/uzg01-zigbee-firmware-factory.bin -------------------------------------------------------------------------------- /files/ESP-HOME/zigstar-uzg-01/uzg01-zigbee.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "UZG Gateway - Zigbee", 3 | "funding_url": "https://zig-star.com/about/", 4 | "new_install_prompt_erase": true, 5 | "new_install_improv_wait_time": 0, 6 | "builds": [ 7 | { 8 | "chipFamily": "ESP32", 9 | "parts": [ 10 | { "path": "uzg01-zigbee-firmware-factory.bin", "offset": 0 } 11 | ] 12 | } 13 | ] 14 | } -------------------------------------------------------------------------------- /files/ESP-HOME/zigstar-uzg-01/uzg01-zigbee.yaml: -------------------------------------------------------------------------------- 1 | substitutions: 2 | #Name your Gateway 3 | device_name: uzg01-zigbee 4 | #Home Assistant Name 5 | friendly_name: UZG Gateway - Zigbee 6 | #Secret YAML is used for next data: 7 | #pi_pw: !secret api_password 8 | #ota_pw: !secret ota_password 9 | 10 | esphome: 11 | name: "${device_name}" 12 | name_add_mac_suffix: false 13 | project: 14 | name: ZigStar.UZG01-Zigbee 15 | version: "1.0" 16 | on_boot: 17 | priority: 600 18 | then: 19 | - switch.turn_on: zRST_gpio 20 | - delay: 15ms 21 | - switch.turn_off: zRST_gpio 22 | 23 | esp32: 24 | board: esp32dev 25 | framework: 26 | type: esp-idf 27 | sdkconfig_options: 28 | CONFIG_FREERTOS_UNICORE: y 29 | CONFIG_ESP_TASK_WDT_TIMEOUT_S: "10" 30 | 31 | ethernet: 32 | type: LAN8720 33 | mdc_pin: GPIO23 34 | mdio_pin: GPIO18 35 | clk_mode: GPIO17_OUT 36 | phy_addr: 0 37 | power_pin: GPIO05 38 | 39 | ## General ESPHome settings 40 | # Home Assistant API is enabled 41 | api: 42 | #password: ${api_pw} 43 | reboot_timeout: 0s 44 | # Logger is enabled 45 | logger: 46 | level: DEBUG 47 | # Enable OTA 48 | ota: 49 | #password: ${ota_pw} 50 | # Enable WEB 51 | web_server: 52 | port: 80 53 | 54 | dashboard_import: 55 | package_import_url: github://mercenaruss/zigstar_gateways/files/ESP-HOME/zigstar-uzg-01/uzg01-zigbee.yaml@main 56 | import_full_config: true 57 | 58 | ##Uptime generic sensor 59 | sensor: 60 | - platform: uptime 61 | id: uptime_s 62 | update_interval: 60s 63 | # Enable HA Time 64 | time: 65 | - platform: homeassistant 66 | id: homeassistant_time 67 | 68 | #External component Stream Server 69 | external_components: 70 | - source: github://tube0013/esphome-stream-server-v2 71 | 72 | #CONTROL SETTINGS 73 | 74 | ## Buttons 75 | button: 76 | - platform: safe_mode 77 | name: 3.3.Safe Mode Reboot 78 | entity_category: diagnostic 79 | ### Zigbee Restart 80 | - platform: template 81 | name: "3.2.Zigbee - Restart" 82 | icon: mdi:restart 83 | id: zRST 84 | on_press: 85 | - switch.turn_on: zRST_gpio 86 | - delay: 15ms 87 | - switch.turn_off: zRST_gpio 88 | ### ESP32 Restart 89 | - platform: restart 90 | name: "3.1.ESP32 - Restart" 91 | ### Zigbee Flash Mode 92 | - platform: template 93 | name: "2.1.Zigbee - Flash Mode" 94 | icon: mdi:cellphone-arrow-down 95 | on_press: 96 | - script.execute: fw_update_mode 97 | 98 | ##Status of physical button - sensor 99 | binary_sensor: 100 | - platform: gpio 101 | name: "4.1.Physical button status" 102 | icon: mdi:toggle-switch 103 | id: gpio35btn1 104 | pin: 105 | number: GPIO35 106 | mode: 107 | input: true 108 | inverted: yes 109 | on_press: 110 | then: 111 | - switch.toggle: modeSwitchTemplate 112 | ## Socket connection status 113 | - platform: stream_server 114 | stream_server: s_s 115 | name: "4.2.Z2M/ZHA Connected" 116 | 117 | ## Switches 118 | switch: 119 | ### CC2652P Restart 120 | - platform: gpio 121 | pin: 16 122 | id: zRST_gpio 123 | inverted: yes 124 | restore_mode: ALWAYS_OFF 125 | 126 | ### Zigbee CC2652P to flash mode switch 127 | - platform: gpio 128 | pin: 32 129 | name: "Zigbee Flash Mode internal" 130 | icon: mdi:toggle-switch 131 | id: zBSL 132 | inverted: yes 133 | restore_mode: ALWAYS_OFF 134 | internal: true 135 | 136 | ### Mode LAN/USB switch 137 | - platform: template 138 | name: "1.0.UZG-01 MODE SWITCH (LAN|OFF| / USB|ON|)" 139 | id: modeSwitchTemplate 140 | turn_on_action: 141 | - switch.turn_on: gpio12LED1 142 | - switch.turn_on: gpio4Select 143 | - switch.template.publish: 144 | id: modeSwitchTemplate 145 | state: ON 146 | turn_off_action: 147 | - switch.turn_off: gpio12LED1 148 | - switch.turn_off: gpio4Select 149 | - switch.template.publish: 150 | id: modeSwitchTemplate 151 | state: OFF 152 | 153 | - platform: gpio 154 | name: "DEVICE MODE SWITCH (LAN|OFF| / USB|ON|)" 155 | restore_mode: ALWAYS_OFF 156 | icon: mdi:toggle-switch 157 | internal: true 158 | id: gpio4Select 159 | pin: 160 | number: GPIO33 161 | 162 | ### LEDs swithces 163 | - platform: gpio 164 | name: "2.3.Mode LED (RED)" 165 | restore_mode: ALWAYS_OFF 166 | icon: mdi:toggle-switch 167 | id: gpio12LED1 168 | pin: 169 | number: GPIO12 170 | 171 | - platform: gpio 172 | name: "2.2.Power LED (BLUE)" 173 | restore_mode: ALWAYS_ON 174 | icon: mdi:toggle-switch 175 | id: gpio14LED2 176 | pin: 177 | number: GPIO14 178 | 179 | #Update CC2652 Firmware 180 | script: 181 | - id: fw_update_mode 182 | then: 183 | - switch.turn_on: zBSL 184 | - delay: 1s 185 | - switch.turn_on: zRST_gpio 186 | - delay: 1s 187 | - switch.turn_off: zRST_gpio 188 | - logger.log: "Delaying 4 seconds for TI chip to be ready" 189 | - delay: 4s 190 | - switch.turn_off: zBSL 191 | - logger.log: "Update with cc2538-bsl tool now!" 192 | - logger.log: "Usage: cc2538-bsl.py -p socket://ip_or_hostname:6638 -evw firmware.hex" 193 | 194 | #UART Settings 195 | uart: 196 | id: uart_bus 197 | rx_pin: GPIO36 198 | tx_pin: GPIO04 199 | baud_rate: 115200 200 | 201 | #Serial Bridge Settings,uncomment #port to change default 6638 TCP port 202 | stream_server: 203 | uart_id: uart_bus 204 | id: s_s 205 | # port: 1234 206 | 207 | mdns: 208 | services: 209 | - service: "_uzg-01" 210 | protocol: "_tcp" 211 | port: 6638 212 | txt: 213 | version: 1.0 214 | name: UZG-01 215 | radio_type: znp 216 | baud_rate: 115200 217 | data_flow_control: software -------------------------------------------------------------------------------- /files/Firmware/CC1352P7_Router.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/files/Firmware/CC1352P7_Router.zip -------------------------------------------------------------------------------- /files/Firmware/CC2652P7 Firmwares/CC1352P7_20231213.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/files/Firmware/CC2652P7 Firmwares/CC1352P7_20231213.zip -------------------------------------------------------------------------------- /files/Firmware/CC2652P7 Firmwares/CC1352P7_20240315.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/files/Firmware/CC2652P7 Firmwares/CC1352P7_20240315.zip -------------------------------------------------------------------------------- /files/Firmware/CC2652P7 Firmwares/CC1352P7_20240318.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/files/Firmware/CC2652P7 Firmwares/CC1352P7_20240318.zip -------------------------------------------------------------------------------- /files/Firmware/CC2652P7 Firmwares/CC1352P7_20240321.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/files/Firmware/CC2652P7 Firmwares/CC1352P7_20240321.zip -------------------------------------------------------------------------------- /files/Firmware/ZigStarGW.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/files/Firmware/ZigStarGW.bin -------------------------------------------------------------------------------- /files/Firmware/ZigStarGW_v0.6.8.full.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/files/Firmware/ZigStarGW_v0.6.8.full.bin -------------------------------------------------------------------------------- /files/Gerbers/LAN Gateway/Gerber_WT32_E72-2G4M05S1F.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/files/Gerbers/LAN Gateway/Gerber_WT32_E72-2G4M05S1F.zip -------------------------------------------------------------------------------- /files/Gerbers/LAN Gateway/Gerber_WT32_E72-2G4M20S1E.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/files/Gerbers/LAN Gateway/Gerber_WT32_E72-2G4M20S1E.zip -------------------------------------------------------------------------------- /files/Gerbers/LAN Gateway/Gerber_WT32_RF-BM-2652P2.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/files/Gerbers/LAN Gateway/Gerber_WT32_RF-BM-2652P2.zip -------------------------------------------------------------------------------- /files/Gerbers/LilyZig/Gerber_TTGO_E72-2G4M20S1E.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/files/Gerbers/LilyZig/Gerber_TTGO_E72-2G4M20S1E.zip -------------------------------------------------------------------------------- /files/Gerbers/LilyZig/Gerber_TTGO_RF-BM-2652P2.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/files/Gerbers/LilyZig/Gerber_TTGO_RF-BM-2652P2.zip -------------------------------------------------------------------------------- /files/Gerbers/Olizig/Gerber_Olizig_RF-BM-2652P2.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/files/Gerbers/Olizig/Gerber_Olizig_RF-BM-2652P2.zip -------------------------------------------------------------------------------- /files/STL/LilyZig_POE_Gateway/TTGO_case_v2.stl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/files/STL/LilyZig_POE_Gateway/TTGO_case_v2.stl -------------------------------------------------------------------------------- /files/STL/LilyZig_POE_Gateway/TTGO_cover_v2.stl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/files/STL/LilyZig_POE_Gateway/TTGO_cover_v2.stl -------------------------------------------------------------------------------- /files/STL/WT32-ETH01_LAN_Gateway/Body by Alex.F.stl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/files/STL/WT32-ETH01_LAN_Gateway/Body by Alex.F.stl -------------------------------------------------------------------------------- /files/STL/WT32-ETH01_LAN_Gateway/Cover 1.2mm PCB by Alex.F_sales.stl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/files/STL/WT32-ETH01_LAN_Gateway/Cover 1.2mm PCB by Alex.F_sales.stl -------------------------------------------------------------------------------- /files/STL/WT32-ETH01_LAN_Gateway/Cover 1.6mm PCB by Alex.F_self_assembly.stl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/files/STL/WT32-ETH01_LAN_Gateway/Cover 1.6mm PCB by Alex.F_self_assembly.stl -------------------------------------------------------------------------------- /files/Schematics/Schematic_LilyZig_POE_Gateway.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/files/Schematics/Schematic_LilyZig_POE_Gateway.pdf -------------------------------------------------------------------------------- /files/Schematics/Schematic_Olizig_POE_Gateway.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/files/Schematics/Schematic_Olizig_POE_Gateway.pdf -------------------------------------------------------------------------------- /files/Schematics/Schematic_WT32-ETH01_LAN_Gateway.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/files/Schematics/Schematic_WT32-ETH01_LAN_Gateway.pdf -------------------------------------------------------------------------------- /files/Tools/Scripts/Flasher.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | PORT_T=/dev/ttyS1 4 | RST_PIN_T=18 5 | BSL_PIN_T=16 6 | PORT_Z=/dev/ttyS2 7 | RST_PIN_Z=11 8 | BSL_PIN_Z=13 9 | 10 | CYAN='\033[1;36m' 11 | RED='\033[0;31m' 12 | GREEN='\033[0;32m' 13 | NC='\033[0m' 14 | 15 | echo -e "${CYAN}Running Flasher_CC2538 script${NC}" 16 | sleep 3 17 | if [ $1 ]; then 18 | PORT_T=$1 19 | fi 20 | echo -e "${CYAN}Flash port for Thread is set to $PORT_T${NC}" 21 | 22 | if [ $2 ]; then 23 | RST_PIN_T=$2 24 | fi 25 | echo -e "${CYAN}RST pin for Thread is set to $RST_PIN_T${NC}" 26 | 27 | if [ $3 ]; then 28 | BSL_PIN_T=$3 29 | fi 30 | echo -e "${CYAN}BSL pin for Thread is set to $BSL_PIN_T${NC}" 31 | if [ $4 ]; then 32 | PORT_Z=$4 33 | fi 34 | echo -e "${CYAN}Flash port for Zigbee is set to $PORT_Z${NC}" 35 | 36 | if [ $5 ]; then 37 | RST_PIN_Z=$5 38 | fi 39 | echo -e "${CYAN}RST pin for Zigbee is set to $RST_PIN_Z${NC}" 40 | 41 | if [ $6 ]; then 42 | BSL_PIN_Z=$6 43 | fi 44 | echo -e "${CYAN}BSL pin for Zigbee is set to $BSL_PIN_Z${NC}" 45 | 46 | echo 47 | echo -e "${CYAN}Clean old filer and directorie${NC}" 48 | sudo rm -rf cc2538-bsl && sudo rm -rf firmware && sudo rm -rf env && sudo rm -rf firmware_*.patch 49 | echo 50 | echo -e "${CYAN}Installing dependencies${NC}" 51 | sudo apt install -y git gpiod unzip python3 python3-pip python3.9-venv 52 | echo 53 | echo -e "${CYAN}Activate Python Enviroment${NC}" 54 | python3 -m venv env 55 | source env/bin/activate 56 | pip3 install pyserial intelhex 57 | echo 58 | echo -e "${CYAN}Cloning flash tool and firmwares${NC}" 59 | git clone https://github.com/JelmerT/cc2538-bsl.git 60 | git clone https://github.com/hoobs-org/firmware.git 61 | 62 | echo 63 | echo -e "${CYAN}Unpacking latest hex file${NC}" 64 | archive_t=$(ls -1 firmware/ti/otbr/cc2652p2/RCP*.zip | sort -r | head -1) 65 | archive_z=$(ls -1 firmware/ti/coordinator/cc2652p2/CC1352P2_CC2652P_launchpad_coordinator*.zip | sort -r | head -1) 66 | unzip -o $archive_t -d . 67 | unzip -o $archive_z -d . 68 | hexfile_t=$(ls -1 RCP*.hex | head -1) 69 | hexfile_z=$(ls -1 CC1352P2_CC2652P_launchpad_coordinator*.hex | head -1) 70 | echo $hexfile_t 71 | echo $hexfile_z 72 | 73 | echo -e "${CYAN}Enable BSL mode and restart Thread${NC}" 74 | gpioset $(gpiofind PIN_$BSL_PIN_T)=0 75 | gpioset $(gpiofind PIN_$RST_PIN_T)=0 76 | sleep 1 77 | gpioset $(gpiofind PIN_$RST_PIN_T)=1 78 | 79 | echo 80 | sudo echo -e "${CYAN}Wait 4 seconds before start${NC}" 81 | sleep 4 82 | 83 | echo 84 | sudo echo -e "${CYAN}Disable BSL mode Thread${NC}" 85 | gpioset $(gpiofind PIN_$BSL_PIN_T)=1 86 | 87 | echo 88 | echo -e "${CYAN}Flashing Thread${NC}" 89 | python3 cc2538-bsl/cc2538-bsl.py -p $PORT_T -ewv $hexfile_t 90 | 91 | echo 92 | echo -e "${CYAN}Restart Zigbee${NC}" 93 | gpioset $(gpiofind PIN_$RST_PIN_T)=0 94 | gpioset $(gpiofind PIN_$RST_PIN_T)=1 95 | echo 96 | echo -e "${CYAN}Enable BSL mode and restart Zigbee${NC}" 97 | gpioset $(gpiofind PIN_$BSL_PIN_Z)=0 98 | gpioset $(gpiofind PIN_$RST_PIN_Z)=0 99 | sleep 1 100 | gpioset $(gpiofind PIN_$RST_PIN_Z)=1 101 | 102 | echo 103 | sudo echo -e "${CYAN}Wait 4 seconds before start${NC}" 104 | sleep 4 105 | 106 | echo 107 | sudo echo -e "${CYAN}Disable BSL mode Zigbee${NC}" 108 | gpioset $(gpiofind PIN_$BSL_PIN_Z)=1 109 | 110 | echo 111 | echo -e "${CYAN}Flashing Zigbee${NC}" 112 | python3 cc2538-bsl/cc2538-bsl.py -p $PORT_Z -ewv $hexfile_z 113 | 114 | echo 115 | echo -e "${CYAN}Restart Zigbee${NC}" 116 | gpioset $(gpiofind PIN_$RST_PIN_Z)=0 117 | gpioset $(gpiofind PIN_$RST_PIN_Z)=1 118 | echo 119 | echo -e "${CYAN}Deactivate Python Enviroment${NC}" 120 | deactivate 121 | echo 122 | echo -e "${RED}Deleting all files${NC}" 123 | sudo rm -rf cc2538-bsl && sudo rm -rf firmware && sudo rm -rf env && sudo rm -rf firmware_*.patch 124 | rm $hexfile_t $hexfile_z 125 | rm -- "$0" 126 | echo 127 | echo -e "${GREEN}Flashing complete${NC}" 128 | -------------------------------------------------------------------------------- /files/Tools/Scripts/Pi_Flasher_CC2538.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | PORT=/dev/ttyAMA0 4 | RST_PIN=24 5 | BSL_PIN=27 6 | 7 | curl -s https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/main/files/Tools/Scripts/banner.txt > logo.txt && cat logo.txt && rm logo.txt 8 | 9 | CYAN='\033[1;36m' 10 | RED='\033[0;31m' 11 | GREEN='\033[0;32m' 12 | NC='\033[0m' 13 | 14 | echo -e "${CYAN}Running Pi_Flasher_CC2538 script${NC}" 15 | sleep 3 16 | if [ $1 ]; then 17 | PORT=$1 18 | fi 19 | echo -e "${CYAN}Flash port set to $PORT${NC}" 20 | 21 | if [ $2 ]; then 22 | RST_PIN=$2 23 | fi 24 | echo -e "${CYAN}RST pin set to $RST_PIN${NC}" 25 | 26 | if [ $3 ]; then 27 | BSL_PIN=$3 28 | fi 29 | echo -e "${CYAN}BSL pin set to $BSL_PIN${NC}" 30 | 31 | echo 32 | echo -e "${CYAN}Installing dependencies${NC}" 33 | sudo apt install -y git unzip python3 python3-pip pigpio python3.11-venv 34 | echo 35 | echo -e "${CYAN}Activate Python Enviroment${NC}" 36 | python -m venv env 37 | source env/bin/activate 38 | pip3 install pyserial intelhex 39 | 40 | 41 | echo 42 | echo -e "${CYAN}Cloning flash tool and firmware${NC}" 43 | sudo rm -rf cc2538-bsl && sudo rm -rf zigbee-firmware 44 | git clone https://github.com/JelmerT/cc2538-bsl.git 45 | git clone https://github.com/jethome-ru/zigbee-firmware.git 46 | 47 | echo 48 | echo -e "${CYAN}Unpacking latest hex file${NC}" 49 | archive=$(ls -1 zigbee-firmware/ti/coordinator/cc2652/*.zip | sort -r | head -1) 50 | unzip -o $archive -d . 51 | hexfile=$(ls -1 *.hex | head -1) 52 | echo $hexfile 53 | 54 | 55 | echo 56 | echo -e "${CYAN}Enable BSL and RST pins${NC}" 57 | if [ ! -e /sys/class/gpio/gpio$BSL_PIN ]; then 58 | sudo echo $BSL_PIN > /sys/class/gpio/export 59 | fi 60 | sleep 2 61 | sudo echo out > /sys/class/gpio/gpio$BSL_PIN/direction 62 | sleep 2 63 | if [ ! -e /sys/class/gpio/gpio$RST_PIN ]; then 64 | sudo echo $RST_PIN > /sys/class/gpio/export 65 | fi 66 | sleep 2 67 | sudo echo out > /sys/class/gpio/gpio$RST_PIN/direction 68 | sleep 2 69 | echo 70 | echo -e "${CYAN}Enable BSL mode and restart ZigBee${NC}" 71 | sudo echo 0 > /sys/class/gpio/gpio$BSL_PIN/value 72 | sudo echo 0 > /sys/class/gpio/gpio$RST_PIN/value 73 | sudo echo 1 > /sys/class/gpio/gpio$RST_PIN/value 74 | 75 | echo 76 | sudo echo -e "${CYAN}Wait 4 seconds before start${NC}" 77 | sleep 4 78 | 79 | echo 80 | sudo echo -e "${CYAN}Disable BSL mode${NC}" 81 | sudo echo 1 > /sys/class/gpio/gpio$BSL_PIN/value 82 | 83 | echo 84 | echo -e "${CYAN}Flashing${NC}" 85 | python3 cc2538-bsl/cc2538-bsl.py -p $PORT -ewv $hexfile 86 | echo 87 | echo -e "${CYAN}Deactivate Python Enviroment${NC}" 88 | deactivate 89 | echo 90 | echo -e "${CYAN}Restart ZigBee${NC}" 91 | sudo echo 0 > /sys/class/gpio/gpio$RST_PIN/value 92 | sudo echo 1 > /sys/class/gpio/gpio$RST_PIN/value 93 | 94 | echo 95 | echo -e "${RED}Deleting all files${NC}" 96 | sudo rm -rf cc2538-bsl && sudo rm -rf zigbee-firmware && sudo rm -rf env && sudo rm -rf firmware_*.patch 97 | rm $hexfile 98 | rm -- "$0" 99 | echo 100 | echo -e "${GREEN}Flashing complete${NC}" -------------------------------------------------------------------------------- /files/Tools/Scripts/Pi_Flasher_JTAG.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | RST_PIN=24 4 | BSL_PIN=27 5 | 6 | curl -s https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/main/files/Scripts/banner.txt > logo.txt && cat logo.txt && rm logo.txt 7 | 8 | CYAN='\033[1;36m' 9 | RED='\033[0;31m' 10 | GREEN='\033[0;32m' 11 | NC='\033[0m' 12 | 13 | echo -e "${CYAN}Running Pi_Flasher_JTAG script${NC}" 14 | sleep 3 15 | if [ $1 ]; then 16 | RST_PIN=$1 17 | fi 18 | echo -e "${CYAN}RST pin set to $RST_PIN${NC}" 19 | 20 | if [ $2 ]; then 21 | BSL_PIN=$2 22 | fi 23 | echo -e "${CYAN}BSL pin set to $BSL_PIN${NC}" 24 | 25 | echo 26 | echo -e "${CYAN}Installing dependencies${NC}" 27 | apt install -y git unzip pigpio openocd 28 | 29 | echo 30 | echo -e "${CYAN}Cloning flash tool and firmware${NC}" 31 | rm -rf zigbee-firmware 32 | git clone https://github.com/jethome-ru/zigbee-firmware.git 33 | 34 | echo 35 | echo -e "${CYAN}Unpacking latest hex file${NC}" 36 | archive=$(ls -1 zigbee-firmware/ti/coordinator/cc2652/*.zip | sort -r | head -1) 37 | unzip -o $archive -d . 38 | hexfile=$(ls -1 *.hex | head -1) 39 | echo $hexfile 40 | 41 | 42 | echo 43 | echo -e "${CYAN}Enable BSL and RST pins${NC}" 44 | if [ ! -e /sys/class/gpio/gpio$BSL_PIN ]; then 45 | echo $BSL_PIN > /sys/class/gpio/export 46 | fi 47 | echo out > /sys/class/gpio/gpio$BSL_PIN/direction 48 | 49 | if [ ! -e /sys/class/gpio/gpio$RST_PIN ]; then 50 | echo $RST_PIN > /sys/class/gpio/export 51 | fi 52 | echo out > /sys/class/gpio/gpio$RST_PIN/direction 53 | 54 | echo 55 | echo -e "${CYAN}Enable BSL mode and restart ZigBee${NC}" 56 | echo 0 > /sys/class/gpio/gpio$BSL_PIN/value 57 | echo 0 > /sys/class/gpio/gpio$RST_PIN/value 58 | echo 1 > /sys/class/gpio/gpio$RST_PIN/value 59 | 60 | echo 61 | echo -e "${CYAN}Wait 4 seconds before start${NC}" 62 | sleep 4 63 | 64 | echo 65 | echo -e "${CYAN}Disable BSL mode${NC}" 66 | echo 1 > /sys/class/gpio/gpio$BSL_PIN/value 67 | 68 | echo 69 | echo -e "${CYAN}Flashing${NC}" 70 | sudo openocd -f interface/raspberrypi2-native.cfg -f target/ti_cc26x2.cfg -c 'transport select jtag' -c 'adapter speed 1000' -c "program $hexfile verify reset exit" 71 | 72 | echo 73 | echo -e "${CYAN}Restart ZigBee${NC}" 74 | echo 0 > /sys/class/gpio/gpio$RST_PIN/value 75 | echo 1 > /sys/class/gpio/gpio$RST_PIN/value 76 | 77 | echo 78 | echo -e "${RED}Deleting all files${NC}" 79 | rm -rf cc2538-bsl 80 | rm -rf zigbee-firmware 81 | rm $hexfile 82 | rm -- "$0" 83 | echo 84 | echo -e "${GREEN}Flashing complete${NC}" -------------------------------------------------------------------------------- /files/Tools/Scripts/Pi_Starter.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | curl -s https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/main/files/Tools/Scripts/banner.txt > logo.txt && cat logo.txt && rm logo.txt 4 | 5 | CYAN='\033[1;36m' 6 | RED='\033[0;31m' 7 | GREEN='\033[0;32m' 8 | NC='\033[0m' 9 | echo -e "${CYAN}Running Pi_Starter script${NC}" 10 | sleep 3 11 | echo 12 | echo -e "${CYAN}Installing sed${NC}" 13 | echo 14 | sudo apt update && sudo apt install -y sed pigpio 15 | 16 | echo 17 | echo -e "${CYAN}Disabling system console${NC}" 18 | echo 19 | sudo sed -i 's/console=serial0,115200 //' /boot/cmdline.txt 20 | sudo sed -i 's/console=serial0,115200 //' /boot/firmware/cmdline.txt 21 | sudo systemctl disable hciuart 22 | echo 23 | echo -e "${CYAN}Enable UART1${NC}" 24 | echo 25 | sudo sh -c "echo 'enable_uart=1' >> /boot/config.txt" 26 | 27 | echo 28 | echo -e "${CYAN}Disabling BT & Wi-Fi${NC}" 29 | echo 30 | read -p "$(echo -e ${RED}"Do you wish to disable BT?(y/n)?"${NC})" choice 31 | case "$choice" in 32 | y|Y ) echo -e "${GREEN}Yes, BT is disabled${NC}"; sudo sh -c "echo 'dtoverlay=disable-bt' >> /boot/config.txt";; 33 | n|N ) echo -e "${RED}No, BT is ON(possible interfercence with ZigBee${NC}";; 34 | * ) echo "invalid";; 35 | esac 36 | echo 37 | read -p "$(echo -e ${RED}"Do you wish to disable WiFi?(y/n)?"${NC})" choice 38 | case "$choice" in 39 | y|Y ) echo -e "${GREEN}Yes, Wifi is disabled${NC}"; sudo sh -c "echo 'dtoverlay=disable-wifi' >> /boot/config.txt";; 40 | n|N ) echo -e "${RED}No, Wifi is ON(possible interfercence with ZigBee${NC}";; 41 | * ) echo "invalid";; 42 | esac 43 | sleep 2 44 | echo 45 | echo -e "${CYAN}Installing i2c-tools${NC}" 46 | sudo apt install -y i2c-tools 47 | 48 | echo 49 | echo -e "${CYAN}Installing ntpdate${NC}" 50 | sudo apt install -y ntpdate && sudo ntpdate -s 0.pool.ntp.org 51 | sleep 1 52 | 53 | echo 54 | echo -e "${CYAN}Enabling RTC(Real Time Clock)${NC}" 55 | echo 56 | sudo raspi-config nonint do_i2c 0 57 | sleep 1 58 | sudo i2cdetect -y 1 59 | sleep 1 60 | echo 'pcf8563 0x51' | sudo tee /sys/class/i2c-adapter/i2c-1/new_device 61 | # sudo echo pcf8563 0x51 > /sys/class/i2c-adapter/i2c-1/new_device 62 | sleep 2 63 | echo 64 | echo -e "${CYAN}RTC write current time${NC}" 65 | sudo hwclock -w 66 | echo 67 | echo -e "${CYAN}Wait 4 seconds before RTC read${NC}" 68 | sleep 2 69 | echo 70 | echo -e "${CYAN}RTC read current time${NC}" 71 | echo 72 | sudo hwclock -r 73 | echo 74 | #Choose to add to init 75 | read -p "$(echo -e ${RED}"Do you want to enable RTC on boot?(y/n)?"${NC})" choice 76 | case "$choice" in 77 | y|Y ) echo -e "${GREEN}Yes, RTC is enabled on boot${NC}"; sudo sed -i 's/exit 0//' /etc/rc.local; sudo sh -c "echo 'sudo echo pcf8563 0x51 > /sys/class/i2c-adapter/i2c-1/new_device' >> /etc/rc.local"; sudo sh -c "echo 'sudo hwclock -s' >> /etc/rc.local"; sudo sh -c "echo 'exit 0' >> /etc/rc.local"; sudo sh -c "echo 'echo RTC Clock is enabled' >> /home/echo "$USER"/.bashrc"; sudo sh -c "echo 'sudo hwclock -r' >> /home/echo "$USER"/.bashrc";; 78 | n|N ) echo -e "${RED}No, you will active manually${NC}";; 79 | * ) echo "invalid";; 80 | esac 81 | echo 82 | echo -e "${CYAN}You are ready to use ZigiHAT${NC}" 83 | echo 84 | read -p "$(echo -e ${RED}"Do you want to reboot?(y/n)?"${NC})" choice 85 | case "$choice" in 86 | y|Y ) echo -e "${GREEN}Reboot in 10 sec${NC}"; sleep 10; sudo rm -- "$0"; sudo reboot;; 87 | n|N ) echo -e "${RED}No, you will need to reboot manually${NC}";; 88 | * ) echo "invalid";; 89 | esac 90 | -------------------------------------------------------------------------------- /files/Tools/Scripts/banner.txt: -------------------------------------------------------------------------------- 1 | ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 2 | ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 3 | ZZZZZZZZZZZZZZZZZZZZZZZZZZZWNXK00OOOOOOOOOO00KXNWZZZZZZZZZZZZZZZZZZZZZZZZZZZ 4 | ZZZZZZZZZZZZZZZZZZZZZZWXOdc;'... ...';cdOXWZZZZZZZZZZZZZZZZZZZZZZ 5 | ZZZZZZZZZZZZZZZZZZZWKd:. .:dKWZZZZZZZZZZZZZZZZZZZ 6 | ZZZZZZZZZZZZZZZZZW0l. .c0WZZZZZZZZZZZZZZZZZ 7 | ZZZZZZZZZZZZZZZZNd. .oNZZZZZZZZZZZZZZZZ 8 | ZZZZZZZZZZZZZZZXl cXZZZZZZZZZZZZZZZ 9 | ZZZZZZZZZZZZZZNl lNZZZZZZZZZZZZZZ 10 | ZZZZZZZZZZZZZZk. .xWZZZZZZZZZZZZZ 11 | ZZZZZZZZZZZZZNc :XZZZZZZZZZZZZZ 12 | ZZZZZZZZZZZZZ0' 'OZZZZZZZZZZZZZ 13 | ZZZZZZZZZZZZZk. .kZZZZZZZZZZZZZ 14 | ZZZZZZZZZZZZZk. .xZZZZZZZZZZZZZ 15 | ZZZZZZZZZZZZZk. .xZZZZZZZZZZZZZ 16 | ZZZZZZZZZZZZZO' .'''.. ..'''. .OZZZZZZZZZZZZZ 17 | ZZZZZZZZZZZZZK; .lkXNNNX0kdl:,. .':ldk0XNNNXOl. ,KZZZZZZZZZZZZZ 18 | ZZZZZZZZZZZZWx':0WZNK000KXNWZWX0xoc;....;cox0XNWWWXK000KNZWK:'dWZZZZZZZZZZZZ 19 | ZZZZZZZZZZZWx'cXZWO::clccccclx0XWZZWNXKXWZZWN0xlccccccc::kWZNl'xWZZZZZZZZZZZ 20 | ZZZZZZZZZZZ0,;KZZ0,:KWZWWNKOdlc:cd0WZZZZW0dc:cldOKNWWWWK:,OZZX:,OZZZZZZZZZZZ 21 | ZZZZZZZZZZNl'kZZZk.oWZZZZZZZZZW0c.;dollox:.:0WZZZZZZZZZWo.xZZZO'cNZZZZZZZZZZ 22 | ZZZZZZZZZZO'cNZZZK;,0WZZZZZZZWKl,:;'cxxl';:,lKWZZZZZZZZ0;;KZZZNc'OZZZZZZZZZZ 23 | ZZZZZZZZZWo'xZZZZNc.,dKNWWWXOl;:OK:'xKKx':KOc;lkXNWWNKd,.:XZZZZk'lWZZZZZZZZZ 24 | ZZZZZZZZZK,;KZZZWd'cxc:ccccccoONZWx..:c'.xWZW0occcccc:cdl'oNZZZX:,0ZZZZZZZZZ 25 | ZZZZZZZZWo'xWZZWk'cXZWNK00KNWZZZZ0;;ONNO;;0ZZZZWNK00KNWZNl'xWZZWx'lWZZZZZZZZ 26 | ZZZZZZZZO':XZZZ0,:KZZZZZZZZZZZZW0;'dNZZNx',OWZZZZZZZZZZZZX:,OZZZNc'kZZZZZZZZ 27 | ZZZZZZZX:,OZZW0;,OWWWWWWWN0xONWO,,,cXZZXc,,,OWNOx0NWWWWWWW0,;0WZZ0,;KZZZZZZZ 28 | ZZZZZZNl'xNOlc,..;:clcccc;. .dk,:k;;KZZX;,kc,xd. .;cclccc:;..,clONx'lNZZZZZZ 29 | ZZZZZWd'lNO';OKl..';lk0KKOdcll':KK;;KZZX;,KXc'llcoO000ko;'..c00:'ONo'dWZZZZZ 30 | ZZZZWk'cXZ0;,dd:'x0dlcllloKWx'cXZX;;KZZX;,KZXc'xNKolllcld0x,;dd,;0ZXc'xWZZZZ 31 | ZWKOd':KZZWXxlld0WZZWXo. .ld',dNZK;;KZZX;,KZNx,'ol. .oKWZZWKdllxKWZZX:'dOKWZ 32 | Kl;c:.:0NNNNNNNNNNNNNNXkdxl';';KZ0,,0ZZK,'0ZK:';'cxokKNNNNNNNNNNNNNNKc.;c;cK 33 | d.oWNc.,ccccccccccccccccdl'c: oXl lXXo lXo. ;c'ldcccccccccccccccc;.cXWd.o 34 | Kc;cc;l0NNNNNNNNNXXNXNO;..,xo,,oOo,,oOOo,,oOo,'lx;..;kXNNNNNNNNNNNNXKl;cc;cK 35 | ZWKOOXWZZZZZZZZZZZZZZZ0;..:cclll-!-xyzroe-!-llcll:..;0ZZZZZZZZZZZZZZZWXOOKWZ 36 | ZZZZZZZZZZZZZZZZZZZZZZZNXXWZWWWWWWWWWZZWWWWWWWWWZWNXNZZZZZZZZZZZZZZZZZZZZZZZ 37 | ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 38 | ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 39 | 40 | ####### ##### # # 41 | # # # # # # # ## ##### 42 | # # # # # # # # # 43 | # # # #### # ####### # # # 44 | # # # # # # # ###### # 45 | # # # # # # # # # # 46 | ####### # ##### # # # # # # 47 | -------------------------------------------------------------------------------- /files/Tools/ZigStarGW-MT-x64.exe.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/files/Tools/ZigStarGW-MT-x64.exe.zip -------------------------------------------------------------------------------- /files/Tools/ZigStarGW-MT-x86.exe.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/files/Tools/ZigStarGW-MT-x86.exe.zip -------------------------------------------------------------------------------- /files/Tools/ZigStarGW-MT.app.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/files/Tools/ZigStarGW-MT.app.zip -------------------------------------------------------------------------------- /files/Tools/ZigStarGW-MT.exec.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mercenaruss/zigstar_gateways/00ddb35e4cfd36ea69d3b93201f4a99546fab4e2/files/Tools/ZigStarGW-MT.exec.zip --------------------------------------------------------------------------------