Skip to content
Discussion options

You must be logged in to vote

@knuti1960 Use three backquotes on their own line before and after the code block, or select the section of code and click Code in the menu bar (<>).

alias: Luftfeuchtigkeitsabrage Badezimmer
sequence:
  - data: {}
    enabled: true
    action: alexa_media.update_last_called
  - delay:
      hours: 0
      minutes: 0
      seconds: 0
      milliseconds: 2
  - data:
      target: "{{ states('sensor.last_alexa') }}"
      message: >
        {% set alexa_text = [ "Die Luftfeuchtigkeit im Badezimmer beträgt ",
                              "Im Badezimmer sind es ", 
                              "Im Moment herscht im Badezimmer eine Luftfeuchte von " ] | random %}
        {{ '{} {} Prozent.'.…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by t0bst4r
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants