A light that has a network only ever rejoins that one, so there was no way
to re-pair it or move it to another coordinator without reflashing.
Holding the encoder button for 10 seconds now makes the light flash green
twice, forget its Zigbee network (saved to flash) and restart, after which
it looks for a network with an open pairing window, in ZHA with Add device.
The coordinator is not told, so Home Assistant keeps the device and
recognises it by its IEEE address when it joins again.
While the light is looking for a network the on-board LED blinks fast
instead of once a second, so a waiting pairing window can be seen to be
picked up, and the change between joined and searching is logged.
The README documents the gesture and how pairing works, and notes that the
extended PAN ID is broadcast by the network and is not a secret.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add animated effects to the light, controlled from Home Assistant.
* Identify Trigger Effect (ZCL 3.5.2.3.3): the light plays Blink, Breathe,
Okay and Channel change as overlays on its current state, and returns to
exactly what it was showing (src/effect.rs). Home Assistant's flash
option uses this.
* Scenes: Rainbow, Pulse and Comet run continuously and use the light's own
colour and brightness, so on/off, level and colour keep working while one
plays (src/scene.rs). The strip is redrawn every 20 ms while anything
animates.
* A manufacturer-specific effects cluster (0xfd00) selects the scene and
tunes its speed and intensity (src/effects_cluster.rs). It uses 0xc0de as
a development manufacturer code, which is also what the node descriptor
now reports instead of the NXP code it had borrowed.
* A ZHA quirk exposes the cluster as a select and two number entities
(ha/zha_quirks/smart_light.py). Copy it to a folder set as ZHA's
custom_quirks_path.
* Ignore Python bytecode.
vendor/zigbee-rs is not vendored here: it stays a submodule, now tracking
feature/lighting-effects-integration on the fork. That branch adds the
manufacturer-specific cluster support and Identify Trigger Effect on top of
the RGB colour control work, each of which is also on its own branch for
upstream.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The default espflash layout hands the whole 0x10000..0x400000 span to the
app partition, so the storage range sat inside it. Shrink the app and
reserve a dedicated storage partition above it.