Help needed with binary_sensor.pilight

I read this info https://home-assistant.io/components/binary_sensor.pilight/ and setup my config like this:

binary_sensor:
  - platform: pilight
    name: 'RaamDeur'
    variable: 'state'
    payload:
      unitcode: 21101678
    payload_on: 'on'
    payload_off: 'off'

However nothing changes when I trigger the device.
I do see something in the log:

2017-05-21 22:29:17 INFO (MainThread) [homeassistant.core] Bus:Handling <Event pilight_received[L]: unit=9, protocol=arctech_contact, uuid=0000-b8-27-eb-bf755a, state=closed, id=21101678>
2017-05-21 22:29:23 INFO (MainThread) [homeassistant.core] Bus:Handling <Event pilight_received[L]: unit=9, protocol=arctech_contact, uuid=0000-b8-27-eb-bf755a, state=opened, id=21101678>

So Hass is seeing something.

Question is: how do I need to setup the component to capture this change.
I already tried a few things but none work.

Anyone?
Tried to find the dev zeltom but can’t find a way to contact him/her.

Ok, I again tried all kind of configs and finally got it working!

This is the final config, and working:

binary_sensor:
  - platform: pilight
    name: 'RaamDeur'
    variable: 'state'
    payload:
      id: 21101678
    payload_on: 'opened'
    payload_off: 'closed'

After seeing it I’m like, doesn’t seem very difficult :). And I thought I did try this earlier as well, but probably just not the exact combination.

1 Like