Hi,
I am running HA as docker on a Pi3. I want to use Enocean binary switches as user interaction for i.e. lights and other automations. I got most of the stuff running except the automation on a button press event.
I actually see the button press events in the HA logs, when using enocean debug. I created an automation with mqtt to just send a text if a button was pressed. Pretty simple, check five time by me, but it seems I am blind to my own word…
Both, automations and mqtt are working in general, tested with an other automation.
Now I hope, that you have an idea what I could test or how to fix is. I will leave you (hopefully) all interesting parts of my configurations:
Docker-compose:
services:
homeassistant:
container_name: home-assistant
image: homeassistant/home-assistant:stable
volumes:
- /home/pi/homeassistant/config:/config
devices:
- /dev/ttyUSB0:/dev/ttyUSB0
configuration.yaml:
...
# enocean
enocean:
device: /dev/ttyUSB0
...
binary_sensor: !include_dir_list binary_sensors/
...
logger:
default: error
logs:
homeassistant.components.enocean: debug
binary_sensors/enocean:
platform: enocean
name: test-sensor
id: [0xFE,0xEF,0xD8,0xB8]
automations:
# Automation
# this is working fine
- alias: 'Test mqtt Automation'
trigger:
platform: mqtt
topic: trigger/test
payload: "on"
encoding: "utf-8"
action:
- service: mqtt.publish
data:
topic: trigger/response
payload: done
# this is not working
- alias: 'Test Enocean'
trigger:
platform: event
event_type: button_pressed
event_data:
onoff: 1
devname: binary_sensor.test-sensor
action:
- service: mqtt.publish
data:
topic: trigger/response
payload: enocean
home-assistant.log:
2020-10-17 15:27:15 DEBUG (Thread-3) [homeassistant.components.enocean.dongle] Received radio packet: FE:EF:D8:B8->FF:FF:FF:FF (-92 dBm): 0x01 ['0xf6', '0x70', '0xfe', '0xef', '0xd8', '0xb8', '0x30'] ['0x0', '0xff', '0xff', '0xff', '0xff', '0x5c', '0x0'] OrderedDict()
2020-10-17 15:27:15 DEBUG (Thread-3) [homeassistant.components.enocean.dongle] Received radio packet: FE:EF:D8:B8->FF:FF:FF:FF (-95 dBm): 0x01 ['0xf6', '0x0', '0xfe', '0xef', '0xd8', '0xb8', '0x20'] ['0x0', '0xff', '0xff', '0xff', '0xff', '0x5f', '0x0'] OrderedDict()
2020-10-17 15:27:16 DEBUG (Thread-3) [homeassistant.components.enocean.dongle] Received radio packet: FE:EF:D8:B8->FF:FF:FF:FF (-91 dBm): 0x01 ['0xf6', '0x0', '0xfe', '0xef', '0xd8', '0xb8', '0x20'] ['0x0', '0xff', '0xff', '0xff', '0xff', '0x5b', '0x0'] OrderedDict()
2020-10-17 15:27:16 DEBUG (Thread-3) [homeassistant.components.enocean.dongle] Received radio packet: FE:EF:D8:B8->FF:FF:FF:FF (-95 dBm): 0x01 ['0xf6', '0x10', '0xfe', '0xef', '0xd8', '0xb8', '0x30'] ['0x0', '0xff', '0xff', '0xff', '0xff', '0x5f', '0x0'] OrderedDict()
Thank you all for this project, your work and support!
Best,
nic