diff --git a/README.md b/README.md index 3b3bcf9..1f42220 100644 --- a/README.md +++ b/README.md @@ -2,22 +2,11 @@ ## Installation -Recommended: [venv](https://docs.python.org/3/library/venv.html). - -```shell -# Optional -$ python3 -m venv .venv -$ source .venv/bin/activate - -$ pip3 install -r requirements.txt -``` +1. https://nixos.org/download/ +2. direnv Your PC timezone is important for esphome schedules, as they will use compiler's -timezone when syncing the clock (NTP). Consider changing it to your home TZ: - -``` -# dpkg-reconfigure tzdata -``` +timezone when syncing the clock (NTP). ## Compiling @@ -27,27 +16,18 @@ $ cp -i templates/secrets.yaml{.sample,} # Edit both secrets.yaml files. -# Optional -$ source .venv/bin/activate - $ ./reflash.sh compile '' ``` ## Running ``` -# Optional -$ source .venv/bin/activate - $ ./reflash.sh ``` or ``` -# Optional -$ source .venv/bin/activate - $ esphome run file.yaml ``` diff --git a/flake.nix b/flake.nix index 5b6f748..278ea1c 100644 --- a/flake.nix +++ b/flake.nix @@ -16,6 +16,7 @@ default = pkgs.mkShell { buildInputs = with pkgs; [ esphome + cc2538-bsl ]; shellHook = '' diff --git a/templates/tubeszb-coordinator.yaml b/templates/tubeszb-coordinator.yaml index ec15378..af8c5e1 100644 --- a/templates/tubeszb-coordinator.yaml +++ b/templates/tubeszb-coordinator.yaml @@ -6,13 +6,13 @@ # # Binary files can be found at: # https://github.com/Koenkk/Z-Stack-firmware/releases -# Latest flashed copy can be found in zigbee-coordinator directory. +# Latest flashed copy can be found in tubeszb/ directory. # -# Firmware flashing tool: -# https://github.com/JelmerT/cc2538-bsl -# -# Consider using Docker for flashing: +# Coordinator flashing instructions: # https://www.zigbee2mqtt.io/guide/adapters/flashing/flashing_via_cc2538-bsl.html +# +# Router flashing instructions: +# https://github.com/tube0013/tube_gateways/tree/8cf2d2998602d0d89ff2cd9ce06dbd98997e223d/models/current/tubeszb-router#flashing-the-router esphome: name: "zigbee-coordinator-ch${channel}" diff --git a/zigbee-coordinator/CC1352P2_CC2652P_launchpad_coordinator_20230507.zip b/tubeszb/CC1352P2_CC2652P_launchpad_coordinator_20230507.zip similarity index 100% rename from zigbee-coordinator/CC1352P2_CC2652P_launchpad_coordinator_20230507.zip rename to tubeszb/CC1352P2_CC2652P_launchpad_coordinator_20230507.zip diff --git a/tubeszb/CC1352P2_CC2652P_launchpad_router_20221102.zip b/tubeszb/CC1352P2_CC2652P_launchpad_router_20221102.zip new file mode 100644 index 0000000..19628ba Binary files /dev/null and b/tubeszb/CC1352P2_CC2652P_launchpad_router_20221102.zip differ