How to see log files - when sending msg in home assistant

How can I see the message send when I e.g change a color of a bulb.
When using the visuel editor or other features in Home assistant. Where can I see what yaml code the instruction have send ?
When I can find this I can copy some or all of the yaml code and use it :slight_smile:

and
The Home Assistant Cookbook - Index.