MQTT trigger is fired at startup, when automation is turned on without a new payload

I’m using the text payload in the automation so I assume this shouldn’t be defined as a binary sensor in configuration.yaml

automation.yaml

- id: mqtttest
  alias: mqtttest
  trigger:
  - platform: mqtt
    topic: sometopic
  action:

configuration.yaml


sensor:
  - platform: mqtt
    name: mqttsensor
    state_topic: sometopic

Depends. If you only send 2 possible payloads, a binary sensor would do. If more then 2 possible payloads, you need a sensor.

Yeah, it’s contains text that I’m forwarding to an external display.