Giter Club home page Giter Club logo

Comments (6)

RobHofmann avatar RobHofmann commented on September 18, 2024

I'm not sure what you mean.

I own 2 Cooper Hunter AC's myself and I built this component specifically to support those.

What isn't working for you?

from homeassistant-greeclimatecomponent.

T-REX-XP avatar T-REX-XP commented on September 18, 2024

Yes, Unfortunately, your component is not working for me. I have got AC C&H Nordic Evo 2(Ch-s09ftn-e2wf), with different discovery port (12414) and a different communication port(12416)

I have tried to use all available ports, but no one climate device isn't presented.

It is Looks like encryption key is the same, but response and request is different.

All js sources are presented in my repository.

Thanks

from homeassistant-greeclimatecomponent.

RobHofmann avatar RobHofmann commented on September 18, 2024

can you share what kind of errors you receive (if any)? maybe share logs with debug as well.

from homeassistant-greeclimatecomponent.

T-REX-XP avatar T-REX-XP commented on September 18, 2024

Hi. Thanks for the support.
As I understand, my AC has a different port and has UDP proto instead of TCP

Please find below the part of the code of the connect method.

/**
     * Initialize connection
     * @param {string} address - IP/host address 
     */
    _connectToDevice(address) {
        try {
            socket.bind(() => {
                const bufView = new Buffer(9);
                bufView[0] = 0xAA;
                bufView[1] = 0xAA;
                bufView[2] = 0x06;
                bufView[3] = 0x02;
                bufView[4] = 0xFF;
                bufView[5] = 0xFF;
                bufView[6] = 0xFF;
                bufView[7] = 0x00;
                bufView[8] = 0x59;

                socket.setBroadcast(true);
                socket.send(bufView, 0, bufView.length, this.defaultPort, address);

                console.log('[UDP] Connected to device at %s', address);
            });
        } catch (err) {
            const timeout = 60;

            console.log('[UDP] Unable to connect (' + err.message + '). Retrying in ' + timeout + 's...');
            setTimeout(() => {
                this._connectToDevice(address);
            }, timeout * 1000);
        }
    }

from homeassistant-greeclimatecomponent.

RobHofmann avatar RobHofmann commented on September 18, 2024

Hmm this seems a bit different yes.

Feel free to make a PR with support for this AC.

from homeassistant-greeclimatecomponent.

RobHofmann avatar RobHofmann commented on September 18, 2024

Closing this since different protocol implementations are not supported by this integration. Feel free to make a PR adding support for your model.

from homeassistant-greeclimatecomponent.

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.