GithubHelp home page GithubHelp logo

mill1000 / esphome-winix-c545 Goto Github PK

View Code? Open in Web Editor NEW
14.0 2.0 1.0 12.72 MB

An ESPHome external component for the Winix C545 air purifier.

License: MIT License

Python 22.35% C++ 77.65%
esphome esphome-component esphome-devices home-assistant home-automation

esphome-winix-c545's People

Contributors

ad3m3r5 avatar mill1000 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ad3m3r5

esphome-winix-c545's Issues

Different board revision

Hello, I looks like I have a different board revision than what is in the tutorial (although they are both v1). Below are some images of the board and info.
I was able to trace the RX and TX to a empty through hole (labeled MCU_TP) which I soldered screw terminals to. Unfortunately, I was unable to figure out how to pull the RST pin for the wifi down. The rst pin now heads into an unlabeled chip. Luckily the code works on this board revision and I had no trouble with anything else.

Board:

  • Revision: 1.0
  • Name: C545 PBA DISPLAY_WFM50
  • Production date: 2021

MCU:

WiFi:

  • Manufactuer I&C Technonolgy
  • Model: WFM50-SFC201
  • Product Page
Front Images

IMG_0139
IMG_0124
IMG_0125
IMG_0127

Back Images

IMG_0128
IMG_0129
IMG_0130
IMG_0131

Optimize code executed in loop to eliminate warnings

The component current causes the warnings in the following form to be generated when packets are received.

[00:00:00][W][component:204]: Component xxxxxx took a long time for an operation (x.xx s).
[00:00:00][W][component:205]: Components should block for at most 20-30ms.

Some targets for optimization are:

  • Reduce buffer sizes for max sentence length
  • Don't zero-init buffers
  • Reduce std::string allocation
  • Reduce logging

Feature Request: Control of LEDs?

Hi, thanks for putting this together. I haven't opened up the C545 yet but is there any possibility for control over the leds as well? Would love to be able to disable the "sleep" mode light entirely or after a few seconds/minute after this mode is enabled.

Code Crashes Pico W

Thanks to some back and forth info exchange with @mill1000, I was able to narrow it down to an issue with sscanf and %3d for uint16_t api_code.

The issue appears to be completely fixed (#6 ), but might need to be tested on an ESP32 just to make sure it doesn't cause issues there.

Unable to send/receive data

New to ESPHome so not sure if I configured everything correctly but I followed the wiring as referenced in the photos.
I see all the controls in Home Assistant but they don't actually change the state of the machine.
Also sensor data like AQI or light intensity show up as Unknown.

Am I missing something?
winix_c545.txt

esphomeHAControls
PXL_20240108_193306512

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.