[HA Discovery] Auto Off timer (#1541)
* [HA Discovery] Auto Off timer Auto deactivate discovery after 30min from the last activation, goal is to avoid unwanted entities created
This commit is contained in:
1 parent
9219ff928c
commit
3f92e14ba6
3 files changed
+14
-1
No files matched your search
@@ -121,6 +121,10 @@ void announceDeviceTrigger(bool use_gateway_info,
|
||||
# define discovery_republish_on_reconnect false
|
||||
#endif
|
||||
|
||||
#ifndef DiscoveryAutoOffTimer
|
||||
# define DiscoveryAutoOffTimer 1800000 // Timer (ms) that trigger auto discovery to off after activation, the goal is to avoid the discovery of entities that are not expected
|
||||
#endif
|
||||
|
||||
#ifndef GATEWAY_MANUFACTURER
|
||||
# define GATEWAY_MANUFACTURER "OMG_community"
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user