Xinyuan-LilyGO / T-ZigBee

Zigbee Ultra Low Power IOT Development Board
GNU Affero General Public License v3.0
72 stars 18 forks source link

Create light control with 2 endpoint #26

Open settler-mar opened 1 year ago

settler-mar commented 1 year ago

I create firmware and send status of 2 channel to zigbee2mqtt

I create config file with 2 endpoint In zigbee2mqtt UI interface: image

Endpoint l1 work normal (send to/from device) Endpoint l2 send only from device to UI. Whern I click to swich button in UI I get error after 1s image Publish 'set' 'state' to '0xa4c138c681c6b987' failed: 'Error: Command 0xa4c138c681c6b987/2 genOnOff.on({}, {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Timeout - 51948 - 2 - 6 - 6 - 11 after 10000ms)'

lbuque commented 1 year ago

@settler-mar Because the firmware of tlsr8258 only exists endpoint1, endpoint2 is not defined.

Only endpoint1 is defined here: https://github.com/Xinyuan-LilyGO/telink-zigbee-sdk/blob/master/tl_zigbee_sdk/apps/hciDevice/sampleGateway.c#L172

settler-mar commented 1 year ago

How can i fix it?