Giter Site home page Giter Site logo

Comments (6)

kloknibor avatar kloknibor commented on June 24, 2024

Hi @SteffenWilberg I just took a second look at the Miele API but I can't seem to find this ProgramID on this API list. Could you either mail me your .miele token (preferred) or send me/post here the complete output after calling the /devices endpoint from here : https://www.miele.com/developer/swagger-ui/swagger.html#/Information/get_devices I'm open to implement this and add this state as a sensor to Home assistant

from home-assistant-miele.

SteffenWilberg avatar SteffenWilberg commented on June 24, 2024

It‘s mentioned on https://www.miele.com/developer/capabilities.html and
https://www.miele.com/developer/assets/API_V1.x.x_capabilities_by_device.pdf

Here‘s the swagger output:

{
  "000103956939": {
    "ident": {
      "type": {
        "key_localized": "Devicetype",
        "value_raw": 7,
        "value_localized": "Dishwasher"
      },
      "deviceName": "",
      "deviceIdentLabel": {
        "fabNumber": "000103956939",
        "fabIndex": "63",
        "techType": "G6895-W",
        "matNumber": "10345070",
        "swids": [
          "3893",
          "20201",
          "20124",
          "4055",
          "20221",
          "20181",
          "3273"
        ]
      },
      "xkmIdentLabel": {
        "techType": "EK039W",
        "releaseVersion": "02.72"
      }
    },
    "state": {
      "ProgramID": {
        "value_raw": 28,
        "value_localized": "Economy",
        "key_localized": "Program Id"
      },
      "status": {
        "value_raw": 3,
        "value_localized": "Program selected",
        "key_localized": "State"
      },
      "programType": {
        "value_raw": 2,
        "value_localized": "Automatic program",
        "key_localized": "Program type"
      },
      "programPhase": {
        "value_raw": 1792,
        "value_localized": "",
        "key_localized": "Phase"
      },
      "remainingTime": [
        3,
        35
      ],
      "startTime": [
        0,
        0
      ],
      "targetTemperature": [
        {
          "value_raw": -32768,
          "value_localized": null,
          "unit": "Celsius"
        }
      ],
      "temperature": [
        {
          "value_raw": -32768,
          "value_localized": null,
          "unit": "Celsius"
        },
        {
          "value_raw": -32768,
          "value_localized": null,
          "unit": "Celsius"
        },
        {
          "value_raw": -32768,
          "value_localized": null,
          "unit": "Celsius"
        }
      ],
      "signalInfo": true,
      "signalFailure": false,
      "signalDoor": false,
      "remoteEnable": {
        "fullRemoteControl": true,
        "smartGrid": false,
        "mobileStart": false
      },
      "light": 0,
      "elapsedTime": [
        0,
        0
      ],
      "spinningSpeed": {
        "unit": "rpm",
        "value_raw": null,
        "value_localized": null,
        "key_localized": "Spinning Speed"
      },
      "dryingStep": {
        "value_raw": null,
        "value_localized": "",
        "key_localized": "Drying level"
      },
      "ventilationStep": {
        "value_raw": null,
        "value_localized": "",
        "key_localized": "Power Level"
      },
      "plateStep": [],
      "ecoFeedback": null,
      "batteryLevel": null
    }
  }
}

from home-assistant-miele.

kloknibor avatar kloknibor commented on June 24, 2024

I think I prefer to put the ProgramID under a status sensor. Instead of it's own programID text sensor. Was there a specific reason you want this to be a seperate sensor?

from home-assistant-miele.

SteffenWilberg avatar SteffenWilberg commented on June 24, 2024

Yes, a separate sensor shows up everywhere in HomeAssistant like History and Logbook, so I can gather which programs run how often, or when a certain program was run for the last time. This seems much more interesting like sensors like the door status, or the failure sensor (which doesn‘t tell you which failure), or the 4 temperature sensors which don‘t display anything for my dishwasher.

from home-assistant-miele.

kloknibor avatar kloknibor commented on June 24, 2024

Allright, than I understand the reason. In that case I'll leave it like this. I'll try to merge it to master before the end of the year :-)! Thanks for your effort!

from home-assistant-miele.

kloknibor avatar kloknibor commented on June 24, 2024

PR is pulled into the main branch

from home-assistant-miele.

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.