Giter Club home page Giter Club logo

ha-voltalis's People

Contributors

dependabot[bot] avatar jdelahayes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ha-voltalis's Issues

Water heater support

Checklist

  • I have filled out the template to the best of my ability.
  • This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
  • This issue is not a duplicate feature request of previous feature requests.

Is your feature request related to a problem? Please describe.

I have a water heater controlled by a Voltalis controller, and it's appearing as a "WATER_HEATER" appliance type.
The problem is that it returns a "NORMAL" preset mode, wich is not in the defined consts, and this triggers an error when retrieving all the appliances

Describe the solution you'd like

The ideal solution would be that the water heater is considered as a water heater entity. I don't have any experience writing custom intergrations but I could help if you don't have a water heater controlled by voltalis to test.

Describe alternatives you've considered

For now, I just added the "NORMAL" HA_PRESET_MODE in the voltalis/const.py file to avoid getting an error when retrieving all appliances :

HA_PRESET_MODES = {
    "ECO": PRESET_ECO,
    "CONFORT": PRESET_COMFORT,
    "TEMPERATURE": PRESET_HOME,
    "HORS_GEL": PRESET_AWAY,
    "NORMAL": "normal"
}

Additional context

Here is the json of the water heater returned by the managed-appliance route :

{
        "id": 12345678,
        "name": "Chauffe-eau",
        "applianceType": "WATER_HEATER",
        "modulatorType": "VX_RELAY",
        "availableModes": [
            "NORMAL"
        ],
        "voltalisVersion": "Vx",
        "programming": {
            "progType": "USER",
            "progName": "Chauffe eau",
            "idManualSetting": null,
            "isOn": false,
            "untilFurtherNotice": null,
            "mode": "NORMAL",
            "idPlanning": 478170,
            "endDate": null,
            "temperatureTarget": 19.0,
            "defaultTemperature": 18.0
        },
        "heatingLevel": 2
    }

Power Consumption Metrics

Checklist

  • I have filled out the template to the best of my ability.
  • This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
  • This issue is not a duplicate feature request of previous feature requests.

Is your feature request related to a problem? Please describe.

Nice to have

Describe the solution you'd like

On myvoltalis web site, I have access to consumption metric (per heater and for the whole home). Would it be possible to have these with this plugin ?

Describe alternatives you've considered

I am willing to help.

Additional context

I am willing to help.

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.