mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-12 13:08:13 +08:00
TC1-%s_Socket_%d
This commit is contained in:
@@ -471,7 +471,7 @@ void UserMqttHassAuto(char socket_id)
|
||||
{
|
||||
sprintf(topic_buf, "homeassistant/switch/%s/socket_%d/config", str_mac, socket_id);
|
||||
sprintf(send_buf,
|
||||
"{\"name\":\"TC1-Socket-%s-%d\","
|
||||
"{\"name\":\"TC1-%s_Socket_%d\","
|
||||
"\"stat_t\":\"homeassistant/switch/%s/socket_%d/state\","
|
||||
"\"cmd_t\":\"device/ztc1/set\","
|
||||
"\"pl_on\":\"set socket %s %d 1\","
|
||||
|
||||
Reference in New Issue
Block a user