Homematic Button Trigger automation

Hi,

i just integrated a Homematic CCU with an HM-PB-6-WM55 Switch.
I do get the events in the logs:

2019-08-21 21:47:11 INFO (Thread-3) [pyhomematic.devicetypes.generic] HMGeneric.event: address=PEQ1922306:1, interface_id=homeassistant-rf, key=PRESS_SHORT, value=True

But i fail to make it trigger a light toggle.
This is the code i added in automation.yaml:

- id: '1566422569266'
  alias: Test
  trigger:
  - event_data: {channel: [1],
      name: [PEQ1922306],
      param: [PRESS_SHORT]}
    event_type: 'homematic.keypress'
    platform: event
  condition: []
  action:
  - alias: ''
    data:
      entity_id:
      - light.gateway_light_34ce008a83db
    service: light.toggle

Can anyone help please? Im not sure where the issue lies?

Best regards,

Zapfmeister

Any idea would be appreciated.

Got it not.
It works with the following code:

- id: '1566422569266'
  alias: Test
  trigger:
  - event_data:
      channel: 1
      param: PRESS_SHORT
      address: PEQ1922306
    event_type: 'homematic.keypress'
    platform: event
  action:
  - data:
      entity_id:
      - light.gateway_light_34ce008a83db
    service: light.toggle

Hi,

I’m struggling have my Homematic HmIP-WRC6 integrated in HA. to be honest, I don’t know how to set up the automation. I don’t even know if I’m getting the homematic.keypress events.

In your configuration, is PEQ1922306 the name of the device?

Thanks!

Hi,

yes, exactly. I think the easiest way to get the relevant data is to go into the Developertools -> Events section, add * and then click “Start listening”. This should show you which events are received.
Not sure if those show up there as well, but its worth a try i guess.
I did read the data from the logs. Therefore i set the logger setting in the config file to debug and then checked the logs on the home assistant host.

1 Like

So, I’ve got it running after a hint I’ve read in a different forum.
I created a small program for a button of the HmIP-WRC6, saved it and after pressing it, it worked.
Afterwards I could even delete the program and go on to the next button.

To be honest, I don’t understand why that is so. Maybe anyone can explain?

Thanks!