acvigue / esphome-levoit-air-purifier

ESPHome custom component for Levoit branded smart WiFi air purifiers
https://vigue.me/
Other
32 stars 8 forks source link

Issues with Core 200s #6

Closed jeffreygarc closed 4 months ago

jeffreygarc commented 5 months ago

Hello!

I installed this on my Core 200s and am having a few issues. The esp keeps rebooting and is only online for a couple of seconds.

I get these errors in the logs:

[16:18:18][E][levoit:078]: Received error response, ignoring packet
[16:18:18][W][levoit:233]: ACK response timeout, retry #1
[16:18:19][E][levoit:078]: Received error response, ignoring packet
[16:18:19][W][levoit:233]: ACK response timeout, retry #2
[16:18:19][E][levoit:078]: Received error response, ignoring packet
[16:18:19][W][levoit:233]: ACK response timeout, retry #3
[16:18:19][E][levoit:078]: Received error response, ignoring packet
[16:18:19][W][levoit:233]: ACK response timeout, retry #4
[16:18:19][E][levoit:078]: Received error response, ignoring packet
[16:18:19][E][levoit:238]: Maximum NACKs received, skipping packet

I have also noticed that no matter what speed I change the fan to in HA, the fan speed is always set to three with this in the logs:

[16:47:02][D][fan:021]: 'Levoit Purifier' - Setting:
[16:47:02][D][fan:024]:   State: ON
[16:47:02][D][fan:030]:   Speed: 3

Here is my esphome config

esphome:
  name: main-bedroom-air-purifier
  friendly_name: Main-bedroom-air-purifier

esp32:
  board: esp32dev
  framework:
    type: esp-idf
    sdkconfig_options:
      CONFIG_FREERTOS_UNICORE: y

external_components:
  - source: github://acvigue/esphome-levoit-purifier
    components: [levoit]

# Enable logging
logger:
  baud_rate: 115200
  level: VERBOSE

# Enable Home Assistant API
api:
  encryption:
    key: "..."

ota:
  password: "..."

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Main-Bedroom-Air-Purifier"
    password: "..."
captive_portal:

uart:
  tx_pin: GPIO17
  rx_pin: GPIO16
  baud_rate: 115200

levoit:
  id: levoit1

fan:
  - platform: levoit
    name: Levoit Purifier

sensor:
  # Uptime sensor.
  - platform: uptime
    name: Uptime

  # WiFi Signal sensor.
  - platform: wifi_signal
    name: WiFi Signal
    update_interval: 60s

switch:
  - platform: levoit
    display_lock:
      name: "Display Lock"
    display_on:
      name: "Display On"
    power:
      name: "Master Power"

select:
  - platform: levoit
    fan_mode:
      name: "Fan Mode"

Thanks!

acvigue commented 5 months ago

Please try

levoit:
  id: levoit1
  model: core200s #this line