Seperate ring from lockstate
This commit is contained in:
@@ -1219,14 +1219,14 @@ void Network::publishHASSConfigRingDetect(char *deviceType, const char *baseTopi
|
||||
"Ring detect",
|
||||
name,
|
||||
baseTopic,
|
||||
String("~") + mqtt_topic_lock_state,
|
||||
String("~") + mqtt_topic_lock_binary_ring,
|
||||
deviceType,
|
||||
"sound",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
{{"pl_on", "ring"},
|
||||
{"pl_off", "locked"}});
|
||||
{"pl_off", "standby"}});
|
||||
|
||||
DynamicJsonDocument json(_bufferSize);
|
||||
json = createHassJson(uidString, "_ring_event", "Ring", name, baseTopic, String("~") + mqtt_topic_lock_ring, deviceType, "doorbell", "", "", "", {{"value_template", "{ \"event_type\": \"{{ value }}\" }"}});
|
||||
|
||||
Reference in New Issue
Block a user