Code Monkey home page Code Monkey logo

Comments (6)

lanwin avatar lanwin commented on September 13, 2024

Hi @failMode isnt there a way to use the esphome configuration to trigger that?

from esphome_samsung_ac.

failMode avatar failMode commented on September 13, 2024

Thank you for the suggestion @lanwin, I hadn't thought of that. I've done some fiddling:
First thought was to try to commandeer the UART debug function, but the earliest it will execute a sequence is after the first byte is sent (which is obviously too late). ChatGPT suggests using a UART on_data: function but I tested that and doesn't exist so the AI is hallucinating.

In short, I'm all ears if you can suggest another way to do it! :D A flow control pin on this component though, like on the esphome modbus component would be awesome.

from esphome_samsung_ac.

lanwin avatar lanwin commented on September 13, 2024

Can you please first try to get help on ESPHomes discord for that? I am sure that this should be possible without building it into this project.

from esphome_samsung_ac.

lanwin avatar lanwin commented on September 13, 2024

Did you got any answers there?

from esphome_samsung_ac.

brazoayeye avatar brazoayeye commented on September 13, 2024

Bumping that topic. I'm going to use a ST485EBDR already present in my device, I have two pins connected to the same GPIO:

If GPIO is low: reciver is enabled, transmitter is disabled (high resistance for the bus)
If GPI is hig: reciver is disabled, transmitter is enabled (low resistance)

When I programmed the device using esp-idf (no esperience with esp-home) i simply set =1 the TransmitEnable pin, than i revert to 0 after the command has been sent.

Now, trying to setup uart zone i can't find a settings for this behaviour.

@lanwin is the uart settings standard for espHome so i must go there to have infos?

from esphome_samsung_ac.

failMode avatar failMode commented on September 13, 2024

@lanwin I'm so sorry, I didn't see your second reply. I did end up on the home assistant discord and spent a lot of time working through using the modbus component and the uart debug flag but didn't get good results. I did end up grabbing the suggested hardware of an M5 Stack and the RS485 hat which works fantastically - basically any RS485 breakout board with auto flow control will do the job, it's just that the 'cheaper' UART->RS485 breakouts do rely on an extra input (high or low on TX) to handle the flow control. I'll take some time to try to code that feature with a pull request unless someone else beats me to it... Thank you for such a great, clean project!

from esphome_samsung_ac.

Related Issues (20)

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.