Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Homematic HmIP-RCV-50 not working with virtual key #48658

Closed
DanielTheCoder opened this issue Apr 3, 2021 · 1 comment · Fixed by #48659
Closed

Homematic HmIP-RCV-50 not working with virtual key #48658

DanielTheCoder opened this issue Apr 3, 2021 · 1 comment · Fixed by #48659

Comments

@DanielTheCoder
Copy link
Contributor

DanielTheCoder commented Apr 3, 2021

The problem

Currently it's not possible to trigger/invoke HmIP-RCV-50 virtual buttons/key's on CCU2/3.

I'm using CCU2 version 2.57.4.

What is version of Home Assistant Core has the issue?

core-2021.3.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Homematic

Link to integration documentation on our website

https://www.home-assistant.io/integrations/homematic

Example YAML snippet

service: homematic.virtualkey
data:
  address: HmIP-RCV-50
  channel: 1
  param: PRESS_SHORT

Anything in the logs that might be useful for us?

[homeassistant.components.homematic] HMIP-RCV-50 not found for service virtualkey!

Additional info's can be found in the forum and on pyhomematic

As mentioned in pyhomematic issue 368, a solution is to handle case-sensitivity like how it is solved with BidCos-RF.

def _device_from_servicecall(hass, service):
    """Extract HomeMatic device from service call."""
    address = service.data.get(ATTR_ADDRESS)
    interface = service.data.get(ATTR_INTERFACE)
    if address == "BIDCOS-RF":
        address = "BidCoS-RF"
    if address == "HMIP-RCV-1":
        address = "HmIP-RCV-1"

    if interface:
        return hass.data[DATA_HOMEMATIC].devices[interface].get(address)

    for devices in hass.data[DATA_HOMEMATIC].devices.values():
        if address in devices:
            return devices[address]
@probot-home-assistant
Copy link

homematic documentation
homematic source
(message by IssueLinks)

@github-actions github-actions bot locked and limited conversation to collaborators May 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants