Hello,
I’ve just paired my new Ikea Blind and the remote with deconz. Remote is recognized successfully on the event bus with the name tradfri_open_close_remote
and fires an event 1002 and 2002 for single button presses:
Event 62 fired 6:36 PM:
{
"event_type": "deconz_event",
"data": {
"id": "tradfri_open_close_remote",
"unique_id": "00:0d:6f:ff:fe:9c:10:dc",
"event": 2002
},
"origin": "LOCAL",
"time_fired": "2019-12-28T17:36:49.321150+00:00",
"context": {
"id": "2a14bf959d27419b8899f068a4cb30fc",
"parent_id": null,
"user_id": null
}
}
Event 61 fired 6:36 PM:
{
"event_type": "deconz_event",
"data": {
"id": "tradfri_open_close_remote",
"unique_id": "00:0d:6f:ff:fe:9c:10:dc",
"event": 1002
},
"origin": "LOCAL",
"time_fired": "2019-12-28T17:36:46.558095+00:00",
"context": {
"id": "42944c8f4dc4472ea7e805730f92e511",
"parent_id": null,
"user_id": null
}
}
The smart blind from Ikea is registered as cover in hass and I’d like to create an automation that reads the 1002 and 2002 values from the event bus and triggers a service template based on each of those two event. So far I have got the following automation but it doesn’t seem to work:
- alias: Rollo Schlafzimmer Remote
trigger:
- platform: event
event_type: deconz_event
event_data:
id: tradfri_open_close_remote
action:
- service_template: >
{% if trigger.event.data == 1002 %}
cover.open_cover
{% elif trigger.event.data == 2002 %}
cover.close_cover
{% endif %}
entity_id: cover.rollo_schlafzimmer
In the logs I’ll find an error complaining that the service template doesn’t match the domain.service scheme:
Error while executing automation automation.rollo_schlafzimmer_remote. Invalid data for call_service at pos 1: Service does not match format <domain>.<name>
Can anyone help out?