Giter Site home page Giter Site logo

Comments (6)

tadasdanielius avatar tadasdanielius commented on June 14, 2024

So all working fine now? If yes I am going to close this issue.

from daikin_altherma.

nicopieterse avatar nicopieterse commented on June 14, 2024

from daikin_altherma.

tadasdanielius avatar tadasdanielius commented on June 14, 2024

There are some similar projects written in other languages. That was my starting point. Most important part was to get the unit profile info. That json data helped to see all "at least publicly exposed" operations and sensors. Using that info the query methods follows common pattern. Then, lot of trial and error experimentations :) helped to get there it is now. One thing what is not yet covered is schedules, but since we can integrate well with HA schedules are low priority, IMHO.

If you want to "get your hands dirty" you can uncomment some lines in the integration and see what your units are exposing. In the custom_components/daikin_altherma folder look for the file init.py. Uncomment the lines from 37 up to 44.

From:

    #try:
    #    for profile in unit_profiles:
    #        filepath: str = os.path.join(hass.config.config_dir, f'daikin_altherma_{profile["idx"]}.json')
    #        with open(filepath, 'w') as f:
    #            f.write(json.dumps(profile['profile']))
    #except Exception as e:
    #    _LOGGER.warning(f'Failed to save profile state to file {filepath}. It does not affect the operation of the integration.', exc_info=True)

To

    try:
        for profile in unit_profiles:
            filepath: str = os.path.join(hass.config.config_dir, f'daikin_altherma_{profile["idx"]}.json')
            with open(filepath, 'w') as f:
                f.write(json.dumps(profile['profile']))
    except Exception as e:
        _LOGGER.warning(f'Failed to save profile state to file {filepath}. It does not affect the operation of the integration.', exc_info=True)

(just remove #)

Restart the HA and check the config/ folder. If everything went well, you should see daikin_altherma_*.json check them out if there are anything interesting in there.

But, honestly, I think it is covered majority of the functionality and that adapter does not provide anything more. Another interesting project is ESPAltherma which provides much more info (but only read-only) and you actually need to open your device and connect ESP32.

from daikin_altherma.

nicopieterse avatar nicopieterse commented on June 14, 2024

from daikin_altherma.

tadasdanielius avatar tadasdanielius commented on June 14, 2024

Instead of using A62, probably it would be easier to build your own controller. Something like arduino or ESP32 based devices and stik to P1/P2. It seems like the A62 "do not ask much" from the device and does not expose to the public all that good stuff. I wonder if we could get hands on the firmware file of the A62 maybe we could find some hidden gems, but that is just my wishful thinking :)

from daikin_altherma.

nicopieterse avatar nicopieterse commented on June 14, 2024

from daikin_altherma.

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.