Update for Nix and add router firmware
This commit is contained in:
@@ -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
|
||||
```
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
default = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
esphome
|
||||
cc2538-bsl
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
|
||||
@@ -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}"
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user