Miele@home, miele@mobile component

Hi,

I still have the error with the fan component, I opened am issue on Git (ISSUE #43) 3 months ago, but at the moment any resolution.

Do you have any suggestion?

Thanks
Luca

Yeah, the fan integration still doesn’t work for me either, unfortunately i don’t have any suggested resolution to the problem.

Hi all,
I am a new to HA and have tested it for a while. I have installed the Home Assistant support for Miele@home connected appliances. Following the instructions were easy and it works great :+1: The support discovered my coffee machine but there was only support to switch on and off the light.

One of my goals was to integrate my CVA6805 Miele coffee machine (XKM3100W module ver. 2.72) to HomeKit.

I wanted to add a Power ON/OFF switch for my Miele coffee machine so that I could ask Siri to turn the machine on or off. I managed to use the “RESTful Switch” option and configured it my yaml file, configuration below:

miele:
client_id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
client_secret: XxxxxxXxxxxxxXxxxxxxXXxxxxxxxxxx
lang: en
#cache_path: ‘/config/.miele-token-cache’

Test Power ON/OFF Miele CVA6805

switch:

Screenshot 2021-07-19 at 20.12.31

The switch is working fine, so do Siri :sweat_smile:

My issue now is to get the token refreshed (Authorization:), as it is only valid for 30 days.

Does anyone know how to add a variable to the above?

Or is it possible to add the Power switch itself to the H A support for Miele@home plug in itself like the light switch, this since it refreshes the token automatically?

(Note: Latest version of Miele@home app - version 4.0.0 now support Power ON/OFF but not by using Siri)

rgds Jan

1 Like

Will it be possible to see the energy consumption of my Miele washing machine in HA?

3 Likes

According to the documentation the API offers something called “eco feedback” which should represent the energy consumption.
But I’ve never seen this attribute in HA.

1 Like

can anybody connect Miele hob with Connectivity to AEG hood with Hob2Hood?

I’ve installed the hacs integration but nothing is showing up after restarting HA. :sleepy:

I’ve gotten a notification:

The following integrations and platforms could not be set up:

Please check your config and [logs]

1 Like
Error during setup of component miele

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 248, in _async_setup_component
    result = await task
  File "/config/custom_components/miele/__init__.py", line 121, in async_setup
    callback_url = "{}{}".format(get_url(hass), AUTH_CALLBACK_PATH)
  File "/usr/src/homeassistant/homeassistant/helpers/network.py", line 83, in get_url
    request_host = _get_request_host()
  File "/usr/src/homeassistant/homeassistant/helpers/network.py", line 123, in _get_request_host
    raise NoURLAvailableError
homeassistant.helpers.network.NoURLAvailableError
2 Likes

Try deleting the file “.miele-token-cache” located in the config-directory (the same directory where configuration.yaml is located). Restart.

BR
Dieter

I have already deleted “.miele-token-cache” file

Logger: homeassistant.setup
Source: helpers/network.py:123 
First occurred: 9:15:33 AM (1 occurrences) 
Last logged: 9:15:33 AM

Error during setup of component miele
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 255, in _async_setup_component
    result = await task
  File "/config/custom_components/miele/__init__.py", line 121, in async_setup
    callback_url = "{}{}".format(get_url(hass), AUTH_CALLBACK_PATH)
  File "/usr/src/homeassistant/homeassistant/helpers/network.py", line 83, in get_url
    request_host = _get_request_host()
  File "/usr/src/homeassistant/homeassistant/helpers/network.py", line 123, in _get_request_host
    raise NoURLAvailableError
homeassistant.helpers.network.NoURLAvailableError

System Info

version core-2021.9.3
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.9.6
os_name Linux
os_version 5.10.61
arch x86_64
timezone Europe/Amsterdam

Solved by https://github.com/HomeAssistant-Mods/home-assistant-miele/issues/56

Follow https://github.com/HomeAssistant-Mods/home-assistant-miele/issues/58 for updates on this.

It is available under e.g. the Washing Machine Status sensor as a separate attribute. But it needs to be a separate sensor to show up in the Energy dashboard.

The fan integration seems to have been fixed, that is great news! I am very happy with that. But my automation has broken. I can turn the fan off, but this earlier automation doesn’t work anymore. I guess the syntax has changed now with the new way fans are handlede?

- alias: 'Fan kitchen'
  id: 'id_kjo4'
  trigger:
    - platform: state
      entity_id: binary_sensor.kjokken_vindu_lt
      to: 'on'
  action:
    - choose:
        - conditions:
            - condition: template
              value_template: "{{ state_attr('fan.ventilation_hood', 'speed') == 2 }}"
          sequence:
            - service: fan.set_speed
              data:
                entity_id: fan.ventilation_hood
                speed: 3
        - conditions:
            - condition: template
              value_template: "{{ state_attr('fan.ventilation_hood', 'speed') == 3 }}"
          sequence:
            - service: fan.set_speed
              data:
                entity_id: fan.ventilation_hood
                speed: 4
        - conditions:
            - condition: template
              value_template: "{{ state_attr('fan.ventilation_hood', 'speed') == 4 }}"
          sequence:
            - service: fan.set_speed
              data:
                entity_id: fan.ventilation_hood
                speed: 1
      default:      
        - service: fan.set_speed
          data:
            entity_id: fan.ventilation_hood
            speed: 2

Hi @slovdahl

Did you have any complete examples to get this working in HA? I tried with my limited knowledge of HA and yaml but so far failed to get any working results.

Thanx for any guidance.

I have not set it up with a YAML template sensor myself, but I opened a PR that adds a proper sensor for it. Currently running the PR version locally and it works fine. Just waiting for review, merge and release :slight_smile:

Hi, have problem with authorization, thru integration.
Password is ok, as I can login to Miele 3rd Party API page.

Be sure to set up the component using the external IP adress of your HA installation. Otherwise the callback does not work.

1 Like

The integration is working fine with my dishwasher but when I added a dryer, it does not show up in HA. Both appliances show up in the Miele app.

thank you. Finaly made it somehow.

Hi,

I have installed miele integration on HACS. After writing my id and secret into config.yaml I’ve restarted Home Assistant and I have this error:

Error during setup of component miele

18:30:25 – (ERROR) helpers/network.py

On log:

Logger: homeassistant.setup
Source: helpers/network.py:123
First occurred: 18:30:25 (1 occurrences)
Last logged: 18:30:25

Error during setup of component miele
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 254, in _async_setup_component
    result = await task
  File "/config/custom_components/miele/__init__.py", line 123, in async_setup
    network.get_url(hass, allow_external=True, prefer_external=True),
  File "/usr/src/homeassistant/homeassistant/helpers/network.py", line 83, in get_url
    request_host = _get_request_host()
  File "/usr/src/homeassistant/homeassistant/helpers/network.py", line 123, in _get_request_host
    raise NoURLAvailableError
homeassistant.helpers.network.NoURLAvailableError

I don’t have any miele token file on config dir, so I don’t know how to continue.

Thank you,