Skip to content

Unable to set up "read_message" #439

Answered by Ludy87
Eigeplackter asked this question in Q&A
Discussion options

You must be logged in to vote

Dann mach die auf dem Dashboard eine Seite und dort fügst du eine Markdown ein und dann nimmst du den Code und fügst ihn ein (mit deinen Anpassungen)

{% set lists = state_attr("sensor.*********", "list") %}
{% for item in lists %}
  {% set data = item.data %}
  {% set sender = item.sender %}
  {% set receiver = item.receiver %}
  {% set type = item.type %}
  {% if type == "SOS" -%}
    <ha-alert title="Type: {{ type }}" alert-type="error">***{{ (data.tm / 1000) | timestamp_custom('%Y-%m-%d %H:%M:%S') }}***</ha-alert>
    Sender: {{ sender.name }}
    Empfänger: {{ receiver.name }}
    <details>
    <summary>{{ type }}</summary>
    {{ data.poi }}
    {{ data.city }}
    {{ data.province }…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@Ludy87
Comment options

@Ludy87
Comment options

@Eigeplackter
Comment options

@Ludy87
Comment options

Answer selected by Eigeplackter
@Eigeplackter
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants