mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-09 18:36:51 +00:00
Document how to obtain device logs for ESPHome (#37739)
Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
This commit is contained in:
parent
3e33e65ce3
commit
08716ff29c
@ -95,3 +95,18 @@ sensor:
|
||||
```
|
||||
|
||||
The entity will be named `Temperature` and will default to having an entity_id of `sensor.temperature`.
|
||||
|
||||
## Obtaining logs from the device
|
||||
|
||||
1. To have the device send logs to Home Assistant, in the [options flow](#options), enable `Subscribe to logs from the device`.
|
||||
- They are logged under the `homeassistant.components.esphome` logger at the equivalent level.
|
||||
|
||||
2. To adjust the logging level, there are two options:
|
||||
- enable [debug logging](/docs/configuration/troubleshooting/#debug-logs-and-diagnostics),
|
||||
- or use the [Developer Tools](/docs/tools/dev-tools/#actions-tab) to call the [`logger.set_level`](/integrations/logger/#action-set_level) action to specify the desired level:
|
||||
|
||||
```yaml
|
||||
action: logger.set_level
|
||||
data:
|
||||
homeassistant.components.esphome: debug
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user