esphome / esphome/feature-requests
Changing from API to MQTT, log error
- Dominant language
- No language data
- Stars
- 450
- Forks
- 29
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the problem you have/What new integration you would like**
I got this error:
ERROR No remote or local logging method configured (api/mqtt/logger)
When i try to upload the code from yaml in esphome to esp32 after the change from using API to MQTT because i want the data persistent in home assistant while esp32 is in deepsleep mode.
**Please describe your use case for this integration and alternatives you've tried:**
This is the code from yaml:
```yaml
esphome:
name: esp-dormitorio
friendly_name: ESP dormitorio
esp32:
board: esp32dev
framework:
type: arduino
mqtt:
broker: 192.168.1.11
username: ''
password: ''
ota:
- platform: esphome
password: xxxxx
# Enable logging
logger:
level: DEBUG
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ap:
ssid: xxxxxx
password: xxxxx
captive_portal:
# I2C para INA219
i2c:
sda: GPIO21
scl: GPIO22
scan: true
# Sensor INA219: voltaje, corriente y potencia
sensor:
- platform: ina219
address: 0x40
shunt_resistance: 0.1 ohm
current:
name: "Corriente batería"
unit_of_measurement: "A"
retain: true
power:
name: "Potencia batería"
unit_of_measurement: "W"
retain: true
bus_voltage:
name: "Voltaje batería"
unit_of_measurement: "V"
retain: true
update_interval: 30s
# Sensor DHT11
- platform: dht
pin: GPIO14
temperature:
name: "Temperatura ambiente"
retain: true
humidity:
name: "Humedad ambiente"
retain: true
model: DHT11
update_interval: 30s
# Sensor PIR
binary_sensor:
- platform: gpio
id: gpio_motion_sensor
pin:
number: GPIO27
allow_other_uses: true
name: "Movimiento PIR"
retain: true
device_class: motion
# Configuración deep sleep
deep_sleep:
id: deep_sleep_1
run_duration: 60s # Tiempo encendido para medir y enviar
sleep_duration: 1h # Despertar cada 1 hora
wakeup_pin:
number: GPIO27 # PIR
allow_other_uses: true
```
**Additional context**
Contributor guide
No contributing guide indexed for this repository
Research direction
The supplied YAML uses the mqtt, logger, and deep_sleep configuration entries on an ESP32; start by reproducing the upload after changing from API to MQTT. Investigate the reported logging error and define the expected behavior for retaining Home Assistant data during deep sleep; no files or tests are identified in the issue.
Written by the indexing model from the issue text.
Assessment
- Domain
- embedded-iot
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100