Giter VIP home page Giter VIP logo

Comments (1)

stefanbode avatar stefanbode commented on July 20, 2024

Hi, let me answer in English, so other subscribers can follow. In general a good idea and looks not be that complicated. Pulse width and length is easy to adjust and will work. Also start always with 30 pulses to "OFF" and then send the temperature is also quite easy to implement.
Now the tricky part: What is your use case?
If the ESP is always on and you just send the new temperature to the thermostat than this an easy task. This will also work nice with the increments because you may already know the current temperature. With deepsleep this is a completely different story. You need to store the "to be" temperature as a retained value into the MQTT server. With many clients it easy to process, but the ESP has some nasty limitations. on a subscribe to a topic you get only ONE message (if in good luck), sometimes nothing, but for sure not 2 or 3 messages if you e.g. subscribe to the wildcard topic like cmd/esp/#. I already tried to enhance the pubsublient but the problem seems to be deeper in the ESP espressif code.
Finally: There is no garantee that after a wakeup the temperature is read and set correctly because of the problem with the pubsubclient.

from sonoff-tasmota.

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.