Git Product home page Git Product logo

Comments (13)

Krocko avatar Krocko commented on September 24, 2024 1

But the problem still persist. The states don‘t update after some time.

Edit: You are right. This problem belong to DavidMStraub/homeconnect#3

from homeassistant-homeconnect.

DavidMStraub avatar DavidMStraub commented on September 24, 2024

Details please. Which device? This is expected e.g. for hobs since the API doesn't support it.

from homeassistant-homeconnect.

immert20 avatar immert20 commented on September 24, 2024

How do you mean? It's an Bosch Coffee machine. So On switching works fine and off works also but will niet display in the switch in HASS.

from homeassistant-homeconnect.

DavidMStraub avatar DavidMStraub commented on September 24, 2024

It depends on the type of machine whether switching on or off via the API is supported. I don't have a HC coffee machine, so I cannot test it, but "not writeable" usually means that it is not supported. Are you sure that remote start is enabled?

from homeassistant-homeconnect.

immert20 avatar immert20 commented on September 24, 2024

Remote start is enabled. I can switch the coffee machine on and off but the switch will not retain the status.

from homeassistant-homeconnect.

DavidMStraub avatar DavidMStraub commented on September 24, 2024

You mean switching on and off works in Home Assistant but the switch goes back immediately?

Can you please enable debug logging and check what values of PowerState and OperationState are reported before and after switching, respectively?

By the way: that HA might not pick up a change in power state that is effected directly on the machine is a separate issue.

from homeassistant-homeconnect.

MarcusKapun avatar MarcusKapun commented on September 24, 2024

David,

I had somehow the same problem (appliance was starting, but switch was switching back to "off" immediately) and not updating automatically ("listening" to API) if something changed directly on the device. I've tried (&error) some things and changed the switch.py as following - both working now with my appliances (coffee machine, oven, dishwasher) w/o any issues.

`async def async_setup_entry(hass, config_entry, async_add_entities):
"""Set up the Home Connect switch."""

def get_entities():
    """Get a list of entities."""
    entities = []
    data = hass.data[DOMAIN]
    for device_dict in data.get(DEVICES, []):
        entity_dicts = device_dict.get("entities", {}).get("switch", [])
        entity_list = [HomeConnectProgramSwitch(**d) for d in entity_dicts] + [HomeConnectPowerSwitch(device_dict["device"])]
        device = device_dict["device"]
        device.entities += entity_list
        entities += entity_list
    return entities

async_add_entities(await hass.async_add_executor_job(get_entities), True)

`
Please let me know if helpful for the project, thanks.

from homeassistant-homeconnect.

immert20 avatar immert20 commented on September 24, 2024

Maybe you can make an pull request for the new code?

from homeassistant-homeconnect.

DavidMStraub avatar DavidMStraub commented on September 24, 2024

Yes, that would be useful, also to see more easily what has changed. Thanks

from homeassistant-homeconnect.

Krocko avatar Krocko commented on September 24, 2024

I have the same problem with a coffee maschine.
But if I turn the coffee maschine on with the developer tools it stays on.

from homeassistant-homeconnect.

duftstenen avatar duftstenen commented on September 24, 2024

I had similar issues, then updated to version 2.0.4, and everything seems to work with no problems. I was happy. After about two days, it stopped working again. Neither did a reboot of HA work. What changes do a version update do, to make it work a couple of days, and then stop working again?

from homeassistant-homeconnect.

Krocko avatar Krocko commented on September 24, 2024

Hello. Are there any news for this?
@DavidMStraub is there any useful for us in this plugin code?
https://github.com/thoukydides/homebridge-homeconnect

from homeassistant-homeconnect.

DavidMStraub avatar DavidMStraub commented on September 24, 2024

Actually I think this issue is fixed by @MarcusKapun's pull request #45, we just forgot to close it.

The problems mentioned in the recent comments are probably related to DavidMStraub/homeconnect#3, which is still not fixed.

Thanks for the link @Krocko, but I looked into it some time ago and don't think I found anything to reuse (but let me know in case you did).

from homeassistant-homeconnect.

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.