[DISC] Ram usage and flash size optimization (#2223)
Fix duplicate W and keep units and classes in flash Use macro for discovery classes and units [BREAKING] change gateway sensor unique id module - parameter Standardize the use of createDiscoveryFromList Co-authored-by: Florian <1technophile@users.noreply.github.com>
This commit is contained in:
1 parent
51bdc2d080
commit
6e6b54b05e
6 files changed
+588
-909
No files matched your search
@@ -162,7 +162,7 @@ void launchRTL_433Discovery(bool overrideDiscovery) {
|
||||
createDiscovery("sensor", //set Type
|
||||
(char*)topic.c_str(), parameters[i][1], pdevice->uniqueId, //set state_topic,name,uniqueId
|
||||
"", parameters[i][3], (char*)value_template.c_str(), //set availability_topic,device_class,value_template,
|
||||
"", "", "%", //set,payload_on,payload_off,unit_of_meas,
|
||||
"", "", HASS_UNIT_PERCENT, //set,payload_on,payload_off,unit_of_meas,
|
||||
0, //set off_delay
|
||||
"", "", false, "", //set,payload_available,payload_not available ,is a gateway entity, command topic
|
||||
(char*)idWoKey.c_str(), "", pdevice->modelName, (char*)idWoKey.c_str(), false, // device name, device manufacturer, device model, device ID, retain
|
||||
|
||||
Reference in new issue
Block a user