As if i press button from my espressif board (Router mode and Server Cluster) and call the following function,
esp_zb_zcl_status_t status = esp_zb_zcl_set_attribute_val(
g_device_ctx[index].on_off_light.endpoint,
ESP_ZB_ZCL_CLUSTER_ID_ON_OFF,
ESP_ZB_ZCL_CLUSTER_SERVER_ROLE,
ESP_ZB_ZCL_ATTR_ON_OFF_ON_OFF_ID,
(bool*)&light_state[index],
false
);
then this is working with Tuya gateway (Switch toggles in app) but not working with Sonoff gateway (Switch is NOT toggles in app).
Can anybody help me.
Question
As if i press button from my espressif board (Router mode and Server Cluster) and call the following function, esp_zb_zcl_status_t status = esp_zb_zcl_set_attribute_val( g_device_ctx[index].on_off_light.endpoint, ESP_ZB_ZCL_CLUSTER_ID_ON_OFF, ESP_ZB_ZCL_CLUSTER_SERVER_ROLE, ESP_ZB_ZCL_ATTR_ON_OFF_ON_OFF_ID, (bool*)&light_state[index], false );
then this is working with Tuya gateway (Switch toggles in app) but not working with Sonoff gateway (Switch is NOT toggles in app). Can anybody help me.
Additional context.
No response