Code Monkey home page Code Monkey logo

Comments (6)

ntcong avatar ntcong commented on August 14, 2024 1

isn't that in rytilahti/python-miio@5d87415 temperature was renamed to target_temperature?

from xiaomi_airconditioningcompanion.

syssi avatar syssi commented on August 14, 2024

Please update the custom component and use the latest version of the develop branch:

https://github.com/syssi/xiaomi_airconditioningcompanion/archive/develop.zip

from xiaomi_airconditioningcompanion.

nutinshell avatar nutinshell commented on August 14, 2024

Please update the custom component and use the latest version of the develop branch:

https://github.com/syssi/xiaomi_airconditioningcompanion/archive/develop.zip

still same error, any idea?

from xiaomi_airconditioningcompanion.

syssi avatar syssi commented on August 14, 2024

It was my fault. I missed a piece of code. :-)

@liorm0505 You must provide a target_sensor for the room temperature. Without this sensor the loop isn't closed and the thermostat cannot work.

from xiaomi_airconditioningcompanion.

nutinshell avatar nutinshell commented on August 14, 2024

hmm, comes new error like:

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/homeassistant/helpers/entity_platform.py", line 188, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/local/lib/python3.5/dist-packages/homeassistant/helpers/entity.py", line 325, in async_device_update
    yield from self.async_update()
  File "/var/opt/homeassistant/custom_components/climate/xiaomi_miio.py", line 205, in async_update
    ATTR_SWING_MODE: state.swing_mode.name,
  File "/var/opt/homeassistant/deps/lib/python3.5/site-packages/miio/airconditioningcompanion.py", line 126, in swing_mode
    return SwingMode(mode)
  File "/usr/lib/python3.5/enum.py", line 241, in __call__
    return cls.__new__(cls, value)
  File "/usr/lib/python3.5/enum.py", line 476, in __new__
    raise ValueError("%r is not a valid %s" % (value, cls.__name__))
ValueError: 2 is not a valid SwingMode
INFO:homeassistant.core:Bus:Handling <Event system_log_event[L]: level=ERROR, exception=Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/homeassistant/helpers/entity_platform.py", line 188, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/local/lib/python3.5/dist-packages/homeassistant/helpers/entity.py", line 325, in async_device_update
    yield from self.async_update()
  File "/var/opt/homeassistant/custom_components/climate/xiaomi_miio.py", line 205, in async_update
    ATTR_SWING_MODE: state.swing_mode.name,
  File "/var/opt/homeassistant/deps/lib/python3.5/site-packages/miio/airconditioningcompanion.py", line 126, in swing_mode
    return SwingMode(mode)
  File "/usr/lib/python3.5/enum.py", line 241, in __call__
    return cls.__new__(cls, value)
  File "/usr/lib/python3.5/enum.py", line 476, in __new__
    raise ValueError("%r is not a valid %s" % (value, cls.__name__))
ValueError: 2 is not a valid SwingMode
, timestamp=1522652863.6614914, message=xiaomi_miio: Error on device update!, source=deps/lib/python3.5/site-packages/miio/airconditioningcompanion.py>```

from xiaomi_airconditioningcompanion.

syssi avatar syssi commented on August 14, 2024

This is a new discovery. I thought the swing mode can be just on and off. It looks like your device supports additional swing modes. Could you describe the swing modes of your AC and the meaning of the current setting ("2")? Thanks in advance!

from xiaomi_airconditioningcompanion.

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.