- Format everything properly.
YAML (and some other coding languages) rely heavily on whitespace. If you are sharing your code in your post, be sure to use triple ` (backticks) tags at the beginning and ending of your code snippet. Example - when you use the backticks followed by the language name, it will post with markdown colors for easier reading (on some Discord clients).
- alias: 'Rule 2 - Away Mode'
trigger:
platform: state
entity_id: group.all_devices
to: 'not_home'
action:
service: light.turn_off
entity_id: group.all_lights```
If you want things to be tidy and feel that your message may be too long (for example, your code or logs have 20 lines or more), we highly suggest using <https://dpaste.org/> or <https://paste.debian.net/> to share code or logs in your post.
-# * Being familiar with [Discord Markdown Text](<https://support.discord.com/hc/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline>) in general will help you format your messages.