zigpy / zha

Zigbee Home Automation
Apache License 2.0
20 stars 15 forks source link

support for auto discover of genBinaryOutput #194

Open tomaszduda23 opened 1 week ago

tomaszduda23 commented 1 week ago

https://github.com/esphome/esphome/pull/7340 adds zigbee support to esphome on nrf52840. genBinaryOutput clusters were implemented in hope that it would be discovered automatically. Auto discovery works for genBinaryInput but it does not for output https://github.com/esphome/esphome/pull/7340#issuecomment-2325216093. genBinaryOutput was implemented instead of genOnOff since it support description which could be used to distinguished clusters after https://github.com/zigpy/zha/issues/160 gets implemented.

puddly commented 1 week ago

Can you provide sample firmware for something like the nRF52840 to test this out?

tomaszduda23 commented 1 week ago

How would you like to flash it? nRF52840 supports two boot loaders MCUboot and Adafruit (https://deploy-preview-4111--esphome.netlify.app/components/nrf52).

For testing you would also need factory reset. There are few possibilities:

  1. if you have SWD you can just erase memory and re-flash
  2. factory reset by GPIO (I need pin number based on your board)
  3. I could factory reset each time when power on