Use MQTT Service

Yes now it appears.

So the initial question is still there. I found this on reddit as an example how to do what i want to do (forward a message):

alias: 'test'
trigger:
 platform: mqtt
 topic: home/buzzer1
 payload: PRESSED
action:
 service:mqtt.publish
 data:
  topic: home/test
  payload: "test"

This seems to do what i want to do. But where do i put it?
When i put it in configuration.yaml it shows errors. Same with automation.yaml

What is the right file to choose? Does this even do what i try to do?

1 Like