Giter Club home page Giter Club logo

Comments (9)

CoMPaTech avatar CoMPaTech commented on September 15, 2024

Hi @danieldotnl

Let me look into that, a colleague of mine also started using it and was wondering the same. In all fairness and honesty, I used a different setup earlier so I didn't have to relearn.

What you could try though is unplug/replug the unit itself and immediately send a command - that used to work on the older devices.

I'll look into it the coming days!

from esphome_c1101.

danieldotnl avatar danieldotnl commented on September 15, 2024

Wow, thanks for your incredibly fast reply :)
I just found out that the sensors (fan speed and timer) do receive updates when I just my itho remotes! So the cc1101 seems to be working.

I did try what you suggested (to unplug/replug) but I will try it again.

from esphome_c1101.

CoMPaTech avatar CoMPaTech commented on September 15, 2024

from esphome_c1101.

danieldotnl avatar danieldotnl commented on September 15, 2024

Yes, but in the espeasy solution, one needs to send a join command during this period: https://docs.google.com/document/d/e/2PACX-1vRoO1TfkUKkyQlgzsmm7XzI3xyUXMBMrqwF6NJXVwQmykP6gMtsJWp-x2vYiHDEwyScqhsPkJHGGYs-/pub (you can read Dutch, right?)

from esphome_c1101.

CoMPaTech avatar CoMPaTech commented on September 15, 2024

I see (and yes, native Dutch) :)

I think if you add (c1101.h at line 150) another chunk like below it should work. The library (https://github.com/supersjimmie/IthoEcoFanRFT/blob/master/Master/Itho/IthoPacket.h) has the packets defined so it should work.

class FanSendIthoJoin : public Component, public Switch {
  public:

    void write_state(bool state) override {
      if ( state ) {
        rf.sendCommand(IthoJoin);
        State = "Join";
        Timer = 0;
        publish_state(!state);
      }
    }
};

And an accompanying (itho.yaml at line 43)

- platform: custom
  lambda: |-
    auto fansendjoin = new FanSendJoin();
    App.register_component(fansendjoin);
    return {fansendjoin};
  switches:
    name: "FanSendJoin"

from esphome_c1101.

danieldotnl avatar danieldotnl commented on September 15, 2024

Tom, it works!! It's a amazing, I owe you a big beer! :)

Note that there was a small error in the yaml you mentioned above, this:
auto fansendjoin = new FanSendJoin();
should be:
auto fansendjoin = new FanSendIthoJoin();

Off-topic:
I don't know esphome very well, but can't we make a service out of this in HA, instead of all the switches? I guess that would be more appropriate, especially since the switches immediately switch off once the command has been sent.

from esphome_c1101.

CoMPaTech avatar CoMPaTech commented on September 15, 2024

from esphome_c1101.

CoMPaTech avatar CoMPaTech commented on September 15, 2024

Applied fix, tnx (and notice to @tomduijf to try this as well :))

from esphome_c1101.

CoMPaTech avatar CoMPaTech commented on September 15, 2024

As per the comments on https://community.home-assistant.io/t/itho-daalderop-fan-rf-remote-with-c1101-and-esp8266/38710/17 please have a look at the updated code (including timers and HA fan example)

from esphome_c1101.

Related Issues (10)

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.