kom er niet uit,Septillion schreef op woensdag 12 februari 2025 @ 18:58:
@gazzzman61 Er zit een error in de blueprint. Model wat teruggegeven wordt is niet "AWTRIX Light" maar "AWTRIX 3". Maar ik zou de hele model regel uit de blueprint halen. En daarna yaml herladen.
ik heb de model regel gedisabled, en alle services (actions) goed gezet op de juiste awtrix service,
maar alle zoekacties en aanpassingen hebben geen effect.
krijg steeds deze foutmelding:
Message malformed: invalid template (TemplateSyntaxError: unexpected char '\\' at 20) for dictionary value @ data['actions'][1]['if'][0]['value_template']
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
| blueprint: name: AWTRIX now playing description: Show the current playing track domain: automation input: media_player: name: Media player description: Media player what you want to control. selector: entity: filter: - domain: media_player multiple: false awtrix_device: name: AWTRIX device description: The AWTRIX device for show playing status. selector: device: integration: mqtt manufacturer: Blueforcer # model: AWTRIX 3 multiple: false triggers: - trigger: state entity_id: !input media_player variables: awtrix: !input awtrix_device awtrix_device_name: "{{ if( device_attr(awtrix, 'name_by_user') != none, device_attr(awtrix, 'name_by_user'), device_attr(awtrix, 'name') ) }}" action: - variables: playing_state: "{{ states(trigger.entity_id) }}" title_template: "{{ state_attr(trigger.entity_id, 'media_title') }}" album_template: "{{ state_attr(trigger.entity_id, 'media_album_name') }}" artist_template: "{{ state_attr(trigger.entity_id, 'media_artist') }}" - if: - condition: template value_template: '{{ playing_state != \"playing\" }}' then: - action: awtrix_5930c8_push_app_data data: device: "{{awtrix_device_name}}" name: sonos data: {} else: - action: awtrix_5930c8_push_app_data data: device: "{{awtrix_device_name}}" name: sonos data: text: "{{ playing_state }}: {{ artist_template }} - {{ title_template }}" rainbow: true duration: 10 icon: >- (heel veel tekst) repeat: 1 lifetime: 900 |
Canon 5dMkIV
/f/image/r0ui51obXh9OKymHWw9jeirb.png?f=fotoalbum_large)
:strip_exif()/f/image/WY4zfVu57IMY275gWSFe0cg3.jpg?f=fotoalbum_large)
:strip_exif()/f/image/Ekp2WpMUJepcjjtHDFgjIetZ.jpg?f=fotoalbum_large)
:strip_exif()/f/image/Mrn9NLhBX8EZCdsEkWo83uSL.jpg?f=fotoalbum_large)
:strip_exif()/f/image/F2ykxJswerOwF6nBQNlGgGyJ.jpg?f=fotoalbum_large)
/f/image/rhWvHSCCCuccDoUwKLZRWibU.png?f=fotoalbum_large)
:strip_exif()/f/image/eQttuN29Gop6APN65ix1o5su.jpg?f=fotoalbum_medium)
:strip_exif()/f/image/okjapltskJTaCFL8wTwzKzEm.jpg?f=fotoalbum_medium)
:strip_exif()/f/image/yUusdsHFhdSCYBoTxNlfsyip.jpg?f=fotoalbum_medium)
:strip_exif()/f/image/tMeighxCll6Fc3oXR9hLGhHn.jpg?f=fotoalbum_medium)
:strip_exif()/f/image/wTSgjqJqdlKt5IORO4UPKPuf.jpg?f=fotoalbum_medium)
:strip_exif()/f/image/g2eauYsyZOcouUXMoQsO8hE4.jpg?f=fotoalbum_medium)
:strip_exif()/f/image/lEXGJIOdunr3Ou4wqrxxGQGL.jpg?f=fotoalbum_medium)
:strip_exif()/f/image/ETDvbTcWQofWZoZEriKPcatk.jpg?f=fotoalbum_medium)
:strip_exif()/f/image/cVhu775AL6Iyc9q46t2QnExx.jpg?f=fotoalbum_medium)
:strip_exif()/f/image/ORow8oiw9x7fe38ZmK3pfpac.jpg?f=fotoalbum_medium)
:strip_exif()/f/image/JIoMB66GZEVRDX29ZOIjrVlQ.jpg?f=fotoalbum_medium)
:strip_exif()/f/image/2wBezV4FCnXVtKUx12YCqql4.png?f=user_large)
/f/image/MRRX1FJOPLcqhg8XN0lKxGjc.png?f=fotoalbum_large)
:strip_exif()/f/image/y7vQ6M6CubkloaueUcmeo19c.jpg?f=fotoalbum_large)