mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-12 03:15:49 +00:00
header fx, comment
This commit is contained in:
@ -88,6 +88,7 @@ HassDeviceInfo* hass_init_relay_device_info(int index, ENTITY_TYPE type);
|
||||
HassDeviceInfo* hass_init_device_info(ENTITY_TYPE type, int index, char* payload_on, char* payload_off);
|
||||
HassDeviceInfo* hass_init_light_device_info(ENTITY_TYPE type);
|
||||
HassDeviceInfo* hass_init_power_sensor_device_info(int index);
|
||||
HassDeviceInfo* hass_init_light_singleColor_onChannels(int toggle, int dimmer, int brightness_scale);
|
||||
HassDeviceInfo* hass_init_binary_sensor_device_info(int index, bool bInverse);
|
||||
HassDeviceInfo* hass_init_sensor_device_info(ENTITY_TYPE type, int channel, int decPlaces, int decOffset);
|
||||
const char* hass_build_discovery_json(HassDeviceInfo* info);
|
||||
|
||||
@ -1603,7 +1603,9 @@ void doHomeAssistantDiscovery(const char* topic, http_request_t* request) {
|
||||
cJSON_InitHooks(&hooks);
|
||||
|
||||
|
||||
// try to pair toggles with dimmers
|
||||
// try to pair toggles with dimmers. This is needed only for TuyaMCU,
|
||||
// where custom channel types are used. This is NOT used for simple
|
||||
// CW/RGB/RGBCW/etc lights.
|
||||
while (true) {
|
||||
// find first dimmer
|
||||
dimmer = -1;
|
||||
|
||||
Reference in New Issue
Block a user