Add log messages for API client connect/disconnect
This commit is contained in:
parent
6c32edc9a9
commit
1eb8e2134f
@ -255,6 +255,9 @@ logger:
|
|||||||
api:
|
api:
|
||||||
reboot_timeout: 15min
|
reboot_timeout: 15min
|
||||||
on_client_connected:
|
on_client_connected:
|
||||||
|
- logger.log:
|
||||||
|
format: "Client %s (IP %s) connected to API"
|
||||||
|
args: ["client_info.c_str()", "client_address.c_str()"]
|
||||||
- script.execute: light_off
|
- script.execute: light_off
|
||||||
- if:
|
- if:
|
||||||
condition:
|
condition:
|
||||||
@ -262,6 +265,9 @@ api:
|
|||||||
then:
|
then:
|
||||||
- micro_wake_word.start:
|
- micro_wake_word.start:
|
||||||
on_client_disconnected:
|
on_client_disconnected:
|
||||||
|
- logger.log:
|
||||||
|
format: "Client %s (IP %s) disconnected from API"
|
||||||
|
args: ["client_info.c_str()", "client_address.c_str()"]
|
||||||
- light.turn_on:
|
- light.turn_on:
|
||||||
id: output_led
|
id: output_led
|
||||||
effect: flash_white
|
effect: flash_white
|
||||||
|
Loading…
x
Reference in New Issue
Block a user