-
Notifications
You must be signed in to change notification settings - Fork 33
/
homematicip_local_show_device_error.yaml
33 lines (30 loc) · 1.13 KB
/
homematicip_local_show_device_error.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
blueprint:
name: Homematic(IP) Local Show device error
description:
Display errors emitted by devices. This is an unfiltered blueprint. More filters should be added to the trigger.
v2022-12-21
domain: automation
source_url: https://github.com/sukramj/custom_homematic/blob/devel/blueprints/automation/homematicip_local_show_device_error.yaml
mode: restart
max_exceeded: silent
trigger:
- platform: event
event_type: homematic.device_error
action:
- choose:
- conditions:
- condition: template
value_template: "{{trigger.event.data.error == true }}"
sequence:
- service: persistent_notification.create
data:
notification_id: "{{ trigger.event.data.identifier }}"
title: "{{ trigger.event.data.title }}"
message: "{{ trigger.event.data.message }}"
- conditions:
- condition: template
value_template: "{{trigger.event.data.error == false }}"
sequence:
- service: persistent_notification.dismiss
data:
notification_id: "{{ trigger.event.data.identifier }}"