Giter Club home page Giter Club logo

Comments (10)

zxdavb avatar zxdavb commented on September 23, 2024

Set a hint for the 30:071287 in the known list - it is of class FAN, not RFG.

Do you have the 4-way switch already bound, and you're simply trying to impersonate it?

The must be exactly one command to learn is a known bug - use the other version of ramses_cc.

But you should need to learn anything... as long as the switch is already bound.

As on the forum - others have got this working... as long as a switch is already bound, and you simply impersonate it.

A fix is coming for fully-faked switches...

from ramses_cc.

ingus16 avatar ingus16 commented on September 23, 2024

Set a hint for the 30:071287 in the known list - it is of class FAN, not RFG.

Do you have the 4-way switch already bound, and you're simply trying to impersonate it?

The must be exactly one command to learn is a known bug - use the other version of ramses_cc.

But you should need to learn anything... as long as the switch is already bound.

As on the forum - others have got this working... as long as a switch is already bound, and you simply impersonate it.

A fix is coming for fully-faked switches...
Thanks for the reply
No matter which version I download Ramses_cc it always shows "TypeError: must be exactly one command to learn" when I send or use learn a command to test if impersonated or faked remote work.
How can I properly impersonate the switch and use it via HA Please? Maybe I am doing something wrong ?
My config now
image

Folowed manual etc... nothing working with brand new install.

from ramses_cc.

ingus16 avatar ingus16 commented on September 23, 2024

Bought two controllers and had no luck .
Literary nothing works, tried any available ramses version and downgrade HA
image

from ramses_cc.

ingus16 avatar ingus16 commented on September 23, 2024

Tried to bind , as well no luck
image

from ramses_cc.

ingus16 avatar ingus16 commented on September 23, 2024

If need any further logs details tests just let here know

from ramses_cc.

mogusbi avatar mogusbi commented on September 23, 2024

Having the same issue with the Drimaster PIV. Trying to impersonate an already bound remote

[547168192448] Error handling message: Unknown error (unknown_error) Mo Gusbi from 2a00:23c7:e48d:f301:4868:70e4:4669:5a55 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 26, in _handle_async_response
    await func(hass, connection, msg)
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 731, in handle_execute_script
    script_result = await script_obj.async_run(msg.get("variables"), context=context)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1578, in async_run
    return await asyncio.shield(run.async_run())
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 420, in async_run
    await self._async_step(log_exceptions=False)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 470, in _async_step
    self._handle_exception(
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 493, in _handle_exception
    raise exception
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 468, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 704, in _async_call_service_step
    response_data = await self._async_run_long_action(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 666, in _async_run_long_action
    return long_task.result()
           ^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2035, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2072, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 830, in handle_service
    await service.entity_service_call(
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 876, in entity_service_call
    response_data = await _handle_entity_call(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 948, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/config/custom_components/ramses_cc/remote.py", line 216, in svc_send_command
    await self.async_learn_command(*args, **kwargs)
  File "/config/custom_components/ramses_cc/remote.py", line 135, in async_learn_command
    raise TypeError("must be exactly one command to learn")
TypeError: must be exactly one command to learn

Edit: Here's my config

ramses_cc:
  serial_port: /dev/ttyACM0

  ramses_rf:
    enforce_known_list: true

  known_list:
    18:074254:
      class: FAN
      _note: Nuaire PIV
    30:071138:
      class: REM
      faked: true
      commands:
        normal: " I --- 30:071138 18:074254 --:------ 22F1 003 00020A"
        boost: " I --- 30:071138 18:074254 --:------ 22F1 003 00030A"
        heater_auto: " I --- 30:071138 18:074254 --:------ 22F1 003 000A0A"
        heater_off: " I --- 30:071138 18:074254 --:------ 22F1 003 00090A"
      _note: Nuaire DRI-ECO-4S (4-way switch)

from ramses_cc.

zxdavb avatar zxdavb commented on September 23, 2024

https://community.home-assistant.io/t/honeywell-ch-dhw-via-rf-evohome-sundial-hometronics-chronotherm/151584/3080

from ramses_cc.

ingus16 avatar ingus16 commented on September 23, 2024

Hi, Unfortunately, there was no success in binding a fake ar impersonating the existing one. The same error always: "TypeError: must be exactly one command to learn."

from ramses_cc.

ingus16 avatar ingus16 commented on September 23, 2024

This can be closed. Please see the response to my question.
At the current date, for at least NUAIRE I should use system service calls and not ramses_cc service calls
https://community.home-assistant.io/t/honeywell-ch-dhw-via-rf-evohome-sundial-hometronics-chronotherm/151584/3578?u=ingus16

Thanks developer for this tool

from ramses_cc.

zxdavb avatar zxdavb commented on September 23, 2024

The solution for v0.20.x and v0.21.x is to use:

service: remote.send_command

... instead of:

service: ramses_cc.send_command

from ramses_cc.

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.