Update for Nix and add router firmware
This commit is contained in:
@@ -2,22 +2,11 @@
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
Recommended: [venv](https://docs.python.org/3/library/venv.html).
|
1. https://nixos.org/download/
|
||||||
|
2. direnv
|
||||||
```shell
|
|
||||||
# Optional
|
|
||||||
$ python3 -m venv .venv
|
|
||||||
$ source .venv/bin/activate
|
|
||||||
|
|
||||||
$ pip3 install -r requirements.txt
|
|
||||||
```
|
|
||||||
|
|
||||||
Your PC timezone is important for esphome schedules, as they will use compiler's
|
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:
|
timezone when syncing the clock (NTP).
|
||||||
|
|
||||||
```
|
|
||||||
# dpkg-reconfigure tzdata
|
|
||||||
```
|
|
||||||
|
|
||||||
## Compiling
|
## Compiling
|
||||||
|
|
||||||
@@ -27,27 +16,18 @@ $ cp -i templates/secrets.yaml{.sample,}
|
|||||||
|
|
||||||
# Edit both secrets.yaml files.
|
# Edit both secrets.yaml files.
|
||||||
|
|
||||||
# Optional
|
|
||||||
$ source .venv/bin/activate
|
|
||||||
|
|
||||||
$ ./reflash.sh compile ''
|
$ ./reflash.sh compile ''
|
||||||
```
|
```
|
||||||
|
|
||||||
## Running
|
## Running
|
||||||
|
|
||||||
```
|
```
|
||||||
# Optional
|
|
||||||
$ source .venv/bin/activate
|
|
||||||
|
|
||||||
$ ./reflash.sh
|
$ ./reflash.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
or
|
or
|
||||||
|
|
||||||
```
|
```
|
||||||
# Optional
|
|
||||||
$ source .venv/bin/activate
|
|
||||||
|
|
||||||
$ esphome run file.yaml
|
$ esphome run file.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
default = pkgs.mkShell {
|
default = pkgs.mkShell {
|
||||||
buildInputs = with pkgs; [
|
buildInputs = with pkgs; [
|
||||||
esphome
|
esphome
|
||||||
|
cc2538-bsl
|
||||||
];
|
];
|
||||||
|
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
|
|||||||
@@ -6,13 +6,13 @@
|
|||||||
#
|
#
|
||||||
# Binary files can be found at:
|
# Binary files can be found at:
|
||||||
# https://github.com/Koenkk/Z-Stack-firmware/releases
|
# 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:
|
# Coordinator flashing instructions:
|
||||||
# https://github.com/JelmerT/cc2538-bsl
|
|
||||||
#
|
|
||||||
# Consider using Docker for flashing:
|
|
||||||
# https://www.zigbee2mqtt.io/guide/adapters/flashing/flashing_via_cc2538-bsl.html
|
# 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:
|
esphome:
|
||||||
name: "zigbee-coordinator-ch${channel}"
|
name: "zigbee-coordinator-ch${channel}"
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user