dresden-elektronik / deconz-rest-plugin

deCONZ REST-API plugin to control ZigBee devices
BSD 3-Clause "New" or "Revised" License
1.9k stars 498 forks source link

Costum ESP32-C6 Switch #7942

Open dark-squirrel opened 2 days ago

dark-squirrel commented 2 days ago

Hello, I have a costum ESP-32 switch and would like to integrate it into Deconz. Thanks in advance.

Is there already an existing issue for this?

Product name

ESP32-C6

Manufacturer

Espressif

Model identifier

C6

Device type to add

Switch

Node info

Endpoints and clusters

Basic

ebaauw commented 2 days ago

Is this a wireless switch (controlling smart devices) or a dumb switch (smartifying dumb devices)? From the fingerprint, I would guess the first. What On/Off commands does it send when the switch button is pressed? On, Off, Toggle? Does it also send Scenes commands, or only On/Off.

Did you read the attributes of the Basic cluster? The switch needs to expose values for Manufacturer Name and Model Identifier to be recognised (and exposed) by the REST API. I'm guessing you can define these somewhere in the switch firmware.

dark-squirrel commented 2 days ago

This is only a dumb switch device,you can press a button and it sends a Toogle On/Off. And the Attributes are not correct, here are the correct values: